html {
  scroll-behavior: smooth;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background-color: #3b2f2f; /* Fallback dark */
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled,
.header.menu-open {
  background-color: rgba(84, 57, 36, 0.4); /* 40% opacity dark brown */
  backdrop-filter: blur(8px); /* Optional: adds a nice blur to the background */
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
  width: 32px;
  z-index: 11;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.menu-toggle.open span:nth-child(2) {
  transform: translateY(-4.75px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #543924; /* Dark brown background for high contrast */
  z-index: 9; /* Sits right behind the header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #EBE8E1; /* Cream text */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #d8ced5;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  /* Use the background image */
  background-image: url('./assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content towards bottom */
  align-items: center;
  text-align: center;
  padding: 20px 20px 60px 20px;
}

/* Subtle gradient to make text pop against the image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(88, 59, 31, 0.3) 0%,
    rgba(88, 59, 31, 0.6) 50%,
    rgba(88, 59, 31, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero p {
  font-size: 16pt;
  line-height: 1.4;
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background-color: #c4b9c1; /* Lavender-grey matching reference */
  color: #452b21; /* Dark brown text matching reference */
  padding: 14px 44px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 16pt;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #d8ced5;
  transform: translateY(-2px);
}

/* Responsive Adaptations for Tablets and Desktops */
@media (min-width: 768px) {
  .hero {
    padding-bottom: 100px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 16pt;
    max-width: 80%;
  }
  .header {
    padding: 32px 48px;
  }
  .header.scrolled,
  .header.menu-open {
    padding: 20px 48px;
  }
  .logo {
    font-size: 1.5rem;
  }
  .btn {
    font-size: 16pt;
    padding: 16px 52px;
  }
}

/* About Section */
.about {
  background-color: #EBE8E1;
  color: #452b21;
  padding: 60px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.about-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

.about-text {
  font-family: 'Playfair Display', serif;
  font-size: 16pt;
  line-height: 1.6;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 20px;
}

.img-yoga {
  grid-column: 1 / 10;
  grid-row: 1;
  width: 100%;
  height: auto;
  z-index: 1;
}

.img-portrait {
  grid-column: 6 / 13;
  grid-row: 1;
  width: 100%;
  height: auto;
  z-index: 2;
  margin-top: 35%;
}

@media (min-width: 768px) {
  .about {
    padding: 100px 48px;
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .about-content {
    flex: 1;
  }
  .about-images {
    flex: 1;
    margin-top: 0;
  }
  .about-content h2 {
    font-size: 3rem;
  }
  .about-content h3 {
    font-size: 1.8rem;
  }
  .about-text {
    font-size: 16pt;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero p {
    font-size: 16pt;
    max-width: 70%;
  }
  .header {
    padding: 40px 64px;
  }
}

/* Club Info Section */
.club-info {
  background-color: #EBE8E1;
  color: #452b21;
  padding: 0 24px 80px 24px; /* Continuing from about section */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.club-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
}

.club-text {
  font-family: 'Playfair Display', serif;
  font-size: 16pt;
  line-height: 1.6;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.club-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 20px 0;
  display: block;
}

.club-action {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-dark {
  display: inline-block;
  background-color: #543924; /* Dark brown from the mockup */
  color: #EBE8E1;
  padding: 16px 44px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 16pt;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Playfair Display', serif;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.btn-dark:hover {
  background-color: #3b2719;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .club-info {
    padding: 0 48px 100px;
  }
  .club-info h2 {
    font-size: 3rem;
    text-align: center;
  }
  .club-text {
    font-size: 16pt;
    max-width: 800px;
  }
  .club-image {
    max-width: 600px;
  }
  .btn-dark {
    max-width: 400px;
  }
}

/* Philosophy Section */
.philosophy {
  background-color: #F8F5F1; /* Very light beige/off-white */
  padding: 0 0 60px 0; /* No top padding to allow full-bleed images */
  color: #452b21;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 50vw 50vw; /* Square grid items on mobile */
  gap: 0;
  width: 100%;
}

.collage-item {
  width: 100%;
  height: 100%;
  background-color: #d8ced5;
  background-size: cover;
  background-position: center;
}

/* Placeholder colors for now - to be replaced with real images */
.placeholder-1 { 
  background-color: #d1c7c3;
  background-image: url('./assets/grid-water.png');
}
.placeholder-2 { 
  background-color: #a49187;
  background-image: url('./assets/grid-girls-v2.png');
}
.placeholder-3 { 
  background-color: #8c786f;
  background-image: url('./assets/grid-yoga.png');
}
.placeholder-4 { 
  background-color: #725d53;
  background-image: url('./assets/grid-salad.png');
}

.philosophy-content {
  padding: 40px 24px 0 24px;
}

.philosophy-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.philosophy-list {
  list-style: none;
  font-family: 'Playfair Display', serif; /* Serif font for the list per mockup */
  font-size: 16pt;
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.philosophy-list li {
  position: relative;
  padding-left: 20px;
}

.philosophy-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
}

@media (min-width: 768px) {
  .collage-grid {
    grid-template-rows: 400px; /* Fixed height for tablet/desktop */
    grid-template-columns: repeat(4, 1fr); /* 4 in a row */
  }
  .philosophy-content {
    padding: 60px 48px;
    max-width: 800px;
    margin: 0 auto;
  }
  .philosophy-list {
    font-size: 16pt;
  }
}

/* Marathon Section */
.marathon {
  background-color: #EBE8E1;
  color: #452b21;
  padding: 60px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marathon-header {
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

.marathon-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.3;
}

.marathon-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.marathon-card {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.marathon-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  background-color: #f8f5f1; /* Light background for the illustration */
  padding: 20px;
  /* subtle inner shadow or border can go here if needed */
}

.marathon-image-placeholder {
  width: 100%;
  height: 250px;
  background-color: #e5dfd8;
  border-radius: 8px;
}

.marathon-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; 
}

.marathon-badge {
  position: absolute;
  top: -20px;
  right: -10px;
  background-color: #543924;
  color: #EBE8E1;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 16pt;
  font-weight: 500;
  line-height: 1.3;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.marathon-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center; /* Center everything like the club info section */
}

.marathon-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: left; /* Align text back to the left */
}

.marathon-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: left; /* Align text back to the left */
}

.marathon-description {
  font-family: 'Playfair Display', serif; /* Matching mockup */
  font-size: 16pt;
  line-height: 1.6;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left; /* Align text back to the left */
}

.btn-full {
  display: inline-block;
  background-color: #543924; /* Dark brown */
  color: #EBE8E1;
  padding: 16px 44px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 16pt;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Playfair Display', serif;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin-top: 16px;
  align-self: center; /* Center the button */
}

.btn-full:hover {
  background-color: #3b2719;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .marathon {
    padding: 100px 48px;
  }
  .marathon-header h2 {
    font-size: 3rem;
  }
  .marathon-header h3 {
    font-size: 2.2rem;
  }
  .marathon-badge {
    top: -30px;
    right: -30px;
    width: 110px;
    height: 110px;
    font-size: 16pt;
  }
}

/* Footer Section */
.footer {
  background-color: #3b2719; /* Very dark brown */
  color: #EBE8E1; /* Cream text */
  padding: 60px 24px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-socials a {
  font-family: 'Playfair Display', serif;
  color: #EBE8E1;
  text-decoration: none;
  font-size: 16pt;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-socials a:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: 'Playfair Display', serif;
  font-size: 12pt;
  opacity: 0.6;
  margin-top: 16px;
}

