/* Lynnwood Tennisklub – modern black & white (Sparktoo-style) */

:root {
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-white: #ffffff;
  --bg-light: #f8f8f8;
  --border-color: #e5e5e5;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

/* Header & Navigation */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  position: relative;
}

.logo-link {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.03);
}

.logo {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: block;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.92;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.section--alt {
  background: var(--bg-light);
}

/* About */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-content .lead {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Facilities grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Last card centered and same size as one grid column (gap is 1.5rem) */
.facilities-grid .facility-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 3rem) / 3);  /* matches one column when grid has 3 columns */
}

@media (max-width: 900px) {
  .facilities-grid .facility-card:last-child {
    width: calc((100% - 1.5rem) / 2);  /* 2 columns */
  }
}

@media (max-width: 600px) {
  .facilities-grid .facility-card:last-child {
    width: 100%;  /* 1 column */
  }
}

.facility-card {
  aspect-ratio: 4 / 3;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.facility-card--placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border-color);
}

.facility-placeholder-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.contact-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  min-width: 200px;
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.contact-item a {
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--text-light);
}

.contact-item address {
  font-style: normal;
  margin: 0;
  line-height: 1.5;
  color: var(--text-dark);
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-light);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer-logo {
  display: block;
  margin: 0 auto 1rem;
  max-height: 56px;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer a {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 1rem;
  }

  .nav-links.active {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a:hover {
    background: var(--bg-light);
    transform: none;
    padding-left: 2rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 0.75rem 0;
  }

  .logo {
    height: 44px;
  }

  .container {
    padding: 0 16px;
  }
}
