html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: #000;
  color: #fff;
  font-family: 'Raleway', sans-serif;
}
h1, h2, .navbar a {
  font-family: 'Playfair Display', serif;
}
.navbar {
  background-color: #fff;
  padding: 15px 0;
  text-align: center;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.navbar a {
  text-decoration: none;
  color: #6c3f2b;
  font-weight: bold;
}
.section {
  padding: 80px 20px;
}
.hero-overlay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.hero-text {
  text-align: center;
}
.hero-text .small-text { font-size: 28px; color: #ccc; }
.hero-text h1 { font-size: 40px; color: #f08904; }
.date-text { font-size: 24px; }
.hero-button {
  margin-top: 20px;
  background-color: #f08904;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
}
.hero-image img {
  max-width: 400px;
  height: auto;
}
.section-title {
  font-size: 34px;
  color: #fff;
  display: inline-block;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
  margin-bottom: 30px;
}
.invitation-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}
.inv-img {
  order: 2;
  flex: 1 1 300px;
  text-align: center;
}
.inv-img img {
  max-width: 300px;
  height: auto;
}
.inv-text {
  order: 1;
  flex: 1 1 500px;
  text-align: center;
}
.label {
  color: #f08904;
  font-weight: bold;
}
@media (max-width: 768px) {
  .invitation-container {
    flex-direction: column;
  }
  .inv-img {
    order: -1;
  }
}
strong em {
  font-weight: 900 !important;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
  font-size: 22px;
}
.rsvp-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.rsvp-img {
  flex: 1 1 300px;
  text-align: center;
}

.rsvp-img img {
  max-width: 300px;
  height: auto;
}

.rsvp-text {
  flex: 1 1 500px;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  color: #fff;
}

@media (max-width: 768px) {
  .rsvp-container {
    flex-direction: column;
  }

  .rsvp-img {
    order: -1;
  }

  .rsvp-text {
    order: 2;
  }
}
.highlight {
  color: #f08904;
  font-weight: bold;
}
/* Boxed hero text — keeps your current image on the right */
.hero-text-card {
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  padding: clamp(20px, 3.5vw, 40px);
  max-width: 560px;
  width: 100%;
}

/* Slightly round + pill look for brochure */
.pill {
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: .4px;
}

/* Keep hero layout tidy across widths */
.hero-section { background:#000; }
.hero-overlay {
  max-width: 1200px;
  margin: 0 auto;
  gap: clamp(24px, 4vw, 60px);
}
.hero-image img {
  max-width: min(420px, 40vw);
}

/* Prevent the Directions button from touching text */
.dir-btn { margin: 12px 0 8px; }

/* Mobile: stack boxed text above image, keep spacing clean */
@media (max-width: 900px) {
  .hero-overlay { flex-direction: column; }
  .hero-text-card { max-width: 680px; }
  .hero-image img { max-width: 520px; width: 92%; }
}

/* Very small screens: scale down headings to avoid wrapping oddities */
@media (max-width: 420px) {
  .hero-text .small-text { font-size: 24px; }
  .hero-text h1 { font-size: 34px; }
  .date-text { font-size: 20px; }
}

/* Invitation & RSVP sections — you already had these; small polish */
.section-title {
  /* keep your underline short and centered */
  padding-bottom: 6px;
  border-bottom: 2px solid #fff;
}

/* Make sure invitation image never grows too large */
.inv-img img { max-width: 320px; }
/* ----- Home card layout (wrapper that places card left, image right) ----- */
.home-flex{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px,4vw,60px);
  flex-wrap: wrap; /* lets it stack on small screens */
}
.home-stack{ flex: 1 1 560px; min-width: 320px; }
.hero-image{ flex: 1 1 420px; min-width: 280px; text-align:center; }
.hero-image img{ max-width: min(420px,40vw); height:auto; }

/* Heading above the card */
.home-page-title{
  font-family:'Playfair Display',serif;
  font-size: clamp(24px, 2.2vw, 32px);
  color:#f5f5f5;
  text-align:center;
  margin:0 0 22px;
  letter-spacing:.5px;
  font-weight:700;
}

/* Card container */
.hero-section{ background:#000; padding:36px 16px; }
.hero-card{
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,.6);
  padding:clamp(24px,4vw,48px);
}

/* Center date */
.home-date{
  text-align:center;
  font-family:'Poppins',sans-serif;
  font-size:clamp(22px,2.4vw,30px);
  letter-spacing:2px;
  color:#eaeaea;
  margin-bottom:16px;
}

/* Pill button */
.home-cta{ display:flex; justify-content:center; margin-bottom:28px; }
.pill-btn{
  display:inline-block; padding:12px 28px;
  background:#f08904; color:#000; border-radius:999px;
  text-decoration:none; font-weight:600; letter-spacing:.5px;
  transition:transform .15s ease, background .2s ease;
}
.pill-btn:hover{ background:#d67a04; transform:translateY(-1px); }

/* Two-column grid inside card */
.home-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(20px,3vw,40px);
  align-items:start;
}
.home-col{ text-align:left; }
.home-subtitle{
  font-family:'Playfair Display',serif;
  color:#f08904; font-size:clamp(20px,1.8vw,24px);
  margin:0 0 12px; font-weight:700;
}

/* Venue + Directions */
.venue-name{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.3px; margin:8px 0 2px;
}
.dir-link{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; background:#1a1a1a; border-radius:10px;
  text-decoration:none; color:#f08904; font-weight:600;
}
.dir-link .pin{ width:18px; height:18px; fill:#d35400; }

/* Column text */
.home-col p{
  margin:6px 0; color:#d8d8d8; line-height:1.6;
  font-size:clamp(15px,1.4vw,17px);
}

/* Mobile: stack columns and move image below the card */
@media (max-width: 820px){
  .home-grid{ grid-template-columns:1fr; }
  .home-col{ text-align:center; }
  .venue-name{ justify-content:center; }
  .hero-image{ order: 2; }      /* card first, image second */
  .home-stack{ order: 1; }
  .hero-image img{ max-width: 520px; width:92%; }
}

/* Tighten the space between the invitation heading and image on mobile */
@media (max-width: 768px) {
  .section-title { margin-bottom: 18px; }
}
/* Thicker border for the hero card */
.hero-card {
  border: 2px solid rgba(255,255,255,.12);
}

/* Blurb below the box / image */
.home-about {
  margin: 24px auto 0;
  max-width: 820px;
  text-align: center;
  padding: 0 16px;
}
.home-about h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 22px);
  color: #f08904;
  margin: 0 0 6px;
  font-weight: 700;
}
.home-about .line-1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0;
}
.home-about .line-2 {
  margin: 6px 0;
  color: #ddd;
  font-style: italic;
}
.home-about .line-3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0;
}

/* Keep spacing tidy on mobile */
@media (max-width: 820px) {
  .home-about { margin-top: 16px; }
}
/* ---------------------------
   About Bharatanatyam section
---------------------------- */
#about-bharatanatyam .section-title {
  /* you already use .section-title elsewhere; this just tightens spacing here */
  margin-bottom: 26px;
}

/* Layout: image left, text right on desktop */
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* image : text */
  gap: 48px;
  align-items: start;
}

/* Image block */
.about-img {
  text-align: center;
}
.about-img img {
  width: 100%;
  max-width: 520px;   /* keep consistent with your other sections */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Text block */
.about-text {
  text-align: left;
  line-height: 1.7;
  color: #e8e8e8;
  font-family: 'Raleway', sans-serif; /* matches your body copy */
}
.about-text p {
  margin: 8px 0;
}

/* In-section subheads */
.about-subtitle {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: #f08904;
  text-align: center;
  letter-spacing: 0.4px;
  margin: 4px 0 10px;
}

/* Mobile stacking: image below the section heading, above the text */
@media (max-width: 820px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-img { order: -1; }      /* after the section title, before text */
  .about-text { text-align: center; }
}
/* ===== About Guru ===== */
.guru-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr; /* image left, text right on desktop */
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding: 0 16px;
}

.guru-img {
  text-align: center;
}
.guru-img img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.guru-text {
  text-align: left;
  color: #e9e9e9;
  line-height: 1.75;
  font-size: clamp(15px, 1.35vw, 17px);
}

.guru-subtitle {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: .5px;
  color: #f08904;
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.guru-text p {
  margin: 8px 0 14px;
}

.guru-contact {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* center the contact line */
}
.guru-contact a {
  color: #f08904;
  text-decoration: none;
  font-weight: 600;
}
.guru-contact a:hover {
  text-decoration: underline;
}

/* Mobile: stack image then text */
@media (max-width: 820px) {
  .guru-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .guru-text {
    text-align: center;
    font-size: 16px;
  }
  .guru-img img { max-width: 340px; }
}
/* Orchestra */
.orchestra-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 38px;
}

.artist.row {
  display: grid;
  grid-template-columns: 1.05fr 1.6fr; /* image | text */
  align-items: center;
  gap: 28px;
}

.artist.row.reverse {
  grid-template-columns: 1.6fr 1.05fr; /* text | image (visually) */
}

/* Place image block on the left for normal row; on the right for reverse */
.artist.row .artist-img { order: 1; }
.artist.row .artist-text { order: 2; }
.artist.row.reverse .artist-img { order: 2; }
.artist.row.reverse .artist-text { order: 1; }

.artist-img img {
  width: 100%;
  height: auto;
  max-width: 360px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}

.artist-text {
  text-align: left;
  line-height: 1.7;
  color: #e8e8e8;
  font-size: clamp(16px, 1.2vw, 18px);
}

.artist-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2vw, 28px);
  color: #f5f5f5;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: .3px;
  font-weight: 700;
}

.artist-role {
  text-align: center;
  color: #f08904;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 12px;
}

/* Responsive stacking */
@media (max-width: 860px) {
  .artist.row,
  .artist.row.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .artist-text { text-align: center; }
  .artist-img img { max-width: 300px; }
}
/* Program Brochure */
.program-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 38px;
}

.piece.row {
  display: grid;
  grid-template-columns: 1.05fr 1.6fr; /* image | text */
  align-items: center;
  gap: 28px;
}
.piece.row.reverse { grid-template-columns: 1.6fr 1.05fr; }

.piece.row .piece-img { order: 1; }
.piece.row .piece-text { order: 2; }
.piece.row.reverse .piece-img { order: 2; }
.piece.row.reverse .piece-text { order: 1; }

.piece-img img {
  width: 100%;
  height: auto;
  max-width: 360px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}

.piece-text {
  text-align: left;
  line-height: 1.7;
  color: #e8e8e8;
  font-size: clamp(16px, 1.2vw, 18px);
}

.piece-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2vw, 28px);
  color: #f5f5f5;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: .3px;
  font-weight: 700;
}

.piece-meta {
  text-align: center;
  color: #f08904;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 12px;
}

/* Intermission divider */
.program-divider {
  text-align: center;
  margin: 6px auto 12px;
  color: #f08904;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  position: relative;
  width: fit-content;
  padding: 6px 16px;
}
.program-divider::before,
.program-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 1px;
  background: rgba(255,255,255,.2);
}
.program-divider::before { right: calc(100% + 10px); }
.program-divider::after  { left:  calc(100% + 10px); }

/* Stack on mobile */
@media (max-width: 860px) {
  .piece.row,
  .piece.row.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .piece-text { text-align: center; }
  .piece-img img { max-width: 300px; }
}

/* Program Brochure layout (works for desktop AND mobile) */
.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* stay 2 columns on all sizes */
  gap: clamp(14px, 3.2vw, 32px);
  align-items: center;
  margin: clamp(18px, 3.5vw, 36px) 0;
}

.program-row .prog-img {
  text-align: center;
}

.program-row .prog-img img {
  width: 100%;
  max-width: clamp(120px, 40vw, 340px); /* scales down on small screens */
  height: auto;
  display: inline-block;
}

/* Optional alternating sides (left/right) */
.program-row.left  .prog-img { order: 1; }
.program-row.left  .prog-text{ order: 2; }
.program-row.right .prog-img { order: 2; }
.program-row.right .prog-text{ order: 1; }

/* Typography inside brochure rows */
.program-row .prog-text h3 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #f08904;
  margin: 0 0 8px;
  font-size: clamp(18px, 4.2vw, 24px);
  letter-spacing: .3px;
}

.program-row .prog-text p {
  margin: 4px 0;
  line-height: 1.6;
  color: #e6e6e6;
  font-size: clamp(14px, 3.8vw, 16px);
  text-align: left;                 /* keeps copy tidy next to image */
}

/* Smallest devices: tighten spacing a bit more */
@media (max-width: 420px) {
  .program-row { gap: 12px; }
  .program-row .prog-text p { font-size: 14px; }
}
/* --- Mobile navbar polish --- */
.navbar {
  position: sticky;          /* stays visible while scrolling */
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Default spacing/touch targets */
.navbar ul {
  gap: 28px;
  padding: 12px 16px;
}

/* Make long labels behave nicely on small screens */
@media (max-width: 820px) {
  .navbar ul {
    flex-wrap: nowrap;                 /* keep in one line */
    overflow-x: auto;                  /* allow sideways scroll */
    -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
    justify-content: flex-start;       /* start from left */
    gap: 18px;
    padding: 10px 12px;
    scroll-snap-type: x mandatory;     /* optional: snap per item */
  }
  .navbar li { scroll-snap-align: start; }
  .navbar a {
    white-space: nowrap;               /* prevent breaking */
    font-size: 16px;                   /* slightly smaller on phones */
    letter-spacing: 0.5px;
    padding: 8px 2px;                  /* comfy tap area */
  }

  /* hide ugly scrollbar while still scrollable */
  .navbar ul::-webkit-scrollbar { display: none; }
  .navbar ul { scrollbar-width: none; }
}

/* Optional: show active link state */
.navbar a.active {
  color: #6c3f2b;
  border-bottom: 2px solid #6c3f2b;
}

/* If content jumps under sticky bar, add a tiny top offset to first section */
.section:first-of-type { scroll-margin-top: 56px; }
/* Prevent horizontal scroll on small screens */
html, body { overflow-x: hidden; }

/* Make sure flex/grid children don’t force width overflow */
.home-flex, .home-grid, .hero-card, .navbar ul {
  max-width: 100%;
}

/* Allow wrapping and prevent long items pushing width */
.navbar ul { flex-wrap: wrap; }
.hero-image img, .inv-img img, .rsvp-img img, .orchestra-photo, .program-photo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* In flex rows, allow items to shrink properly */
.home-flex > * { min-width: 0; }

/* If any long links/addresses overflow, wrap them */
a, p { word-wrap: break-word; overflow-wrap: anywhere; }
/* Keep header visible and tidy */
.navbar { position: sticky; top: 0; z-index: 1000; }

/* Active link underline */
.navbar a.active {
  border-bottom: 3px solid #6c3f2b;
  padding-bottom: 4px;
}

/* Mobile-friendly nav */
@media (max-width: 640px) {
  .navbar ul { gap: 14px; padding: 10px 12px; }
  .navbar a { font-size: 18px; line-height: 1.2; }
}

/* Space below navbar so the card isn't cramped */
.hero-section { padding-top: 18px; }

/* Prevent any accidental overflow from nav text */
.navbar a { word-break: break-word; white-space: normal; }
/* ===== Nav: desktop + mobile hamburger ===== */
.navbar{
  position: sticky; top: 0; z-index: 1000;
  background:#fff; border-bottom:1px solid rgba(0,0,0,.06);
}
.nav-inner{
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
}
.brand{
  font-family:'Playfair Display', serif;
  font-weight:700; font-size:20px;
  color:#6c3f2b; text-decoration:none;
}

/* Desktop links row */
.nav-links{ list-style:none; display:flex; gap:28px; margin:0; padding:0; }
.nav-links a{
  font-family:'Playfair Display', serif;
  color:#6c3f2b; text-decoration:none; font-weight:700; letter-spacing:.3px;
  position:relative; padding:6px 2px; display:inline-block;
}
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px;
  height:3px; background:#6c3f2b; border-radius:2px;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle{ display:none; background:transparent; border:0; padding:8px; }
.menu-toggle span{ display:block; width:24px; height:2px; background:#6c3f2b; margin:5px 0; transition:.2s ease; }

/* ===== Mobile ===== */
@media (max-width: 900px){
  .menu-toggle{ display:block; }
  .nav-links{
    position:fixed; top:56px; right:12px; left:12px;
    background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:12px;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
    display:none; flex-direction:column; gap:14px; padding:14px; z-index:1001;
  }
  .nav-links.open{ display:flex; }
  body.nav-open{ overflow:hidden; }

  /* turn hamburger into X */
  .menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}

/* Make sure the first section doesn't hide under sticky bar */
.section:first-of-type{ scroll-margin-top:56px; }
/* Mobile overlay panel sits above the bar/content */
.nav-panel{
  position: fixed;
  left: 12px; right: 12px; top: 60px;                /* just below the sticky bar */
  max-height: calc(100vh - 84px);
  overflow: auto;
  background: #fff; border-radius: 14px;
  box-shadow: 0 22px 50px rgba(0,0,0,.25);
  z-index: 1002;                                      /* above navbar */
}

/* Backdrop behind the panel to catch taps and dim page */
.nav-backdrop[hidden]{ display: none !important; }
.nav-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(1px);
  z-index: 1001;                                      /* under panel, over content */
}

/* Keep the sticky navbar below the panel */
.navbar{ z-index: 1000; }

/* Prevent background scroll when menu open (JS toggles this) */
body.menu-open{ overflow: hidden; }
/* Backdrop */
.nav-backdrop[hidden] { display: none; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9;
}

/* Base nav stacking */
.navbar { position: sticky; top: 0; z-index: 10; }

/* Hamburger hidden by default (desktop) */
.menu-toggle { display: none; }

/* Desktop: horizontal menu as you have now */
@media (min-width: 901px) {
  .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
  }
}

/* Mobile panel */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    width: 36px;
    height: 28px;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: #6c3f2b;
    width: 100%;
  }

  /* Hide the links by default and turn them into a floating panel */
  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 64px;                     /* drops below the navbar */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #fff;
    color: #6c3f2b;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    padding: 18px 16px;
    display: none;                 /* <- hidden by default */
    z-index: 10;                   /* above backdrop */
  }
  .nav-links.open {                /* shown when toggled */
    display: block;
    animation: fadeSlide .18s ease-out;
  }

  .nav-links li { margin: 10px 0; }
  .nav-links a {
    display: block;
    text-align: center;
    font-size: 22px;
    line-height: 1.35;
    color: #6c3f2b;
    text-decoration: none;
  }
  .nav-links a.active {
    border-bottom: 3px solid #6c3f2b;
    padding-bottom: 6px;
  }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Lock page scroll while menu is open */
  body.nav-open { overflow: hidden; }
}
/* Make the hamburger sit ABOVE the panel so it can close it */
@media (max-width: 900px) {
  .menu-toggle {
    position: relative;
    z-index: 11;  /* panel is 10, backdrop is 9 */
  }
  .nav-links { z-index: 10; }
  .nav-backdrop { z-index: 9; }
}
/* --- Mobile menu panel + backdrop --- */

/* Hide the hamburger on desktop, show on mobile */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; gap: 6px; flex-direction: column; border: 0; background: none; }
  .menu-toggle span { width: 26px; height: 3px; background: #6c3f2b; border-radius: 2px; }
}

/* Desktop links stay inline */
.nav-links { display: flex; gap: 20px; }

/* On mobile, turn #navMenu into a floating panel */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 64px;           /* below the navbar */
    left: 12px;
    right: 12px;
    z-index: 1001;
    display: none;       /* hidden by default */
    flex-direction: column;
    gap: 24px;
    padding: 22px 16px;
    background: #fff;
    color: #6c3f2b;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
  }
  .nav-links.open { display: block; }
  .nav-links a { color: #6c3f2b; font-size: 22px; text-align: center; }
}

/* Dim background when menu is open */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(1px);
  z-index: 1000;
  display: none;
}
body.nav-open #navBackdrop { display: block; }

/* Prevent page from scrolling behind the open menu */
body.nav-open { overflow: hidden; }
/* --- Mobile nav overlay layout --- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  /* Collapsed by default (kept visible for desktop) */
  .nav-links {
    position: fixed;
    top: 58px;               /* sits just under the sticky bar */
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    padding: 16px 20px 20px;
    z-index: 1002;           /* above backdrop */
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  /* When open */
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Backdrop */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.42);
    z-index: 1001;           /* behind panel, above page */
  }

  /* Make the list look like the screenshot */
  .nav-links li { margin: 14px 0; }
  .nav-links a {
    display: block;
    font-size: 22px;
    color: #6c3f2b;
    text-align: center;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
  }
}

/* Keep the bar above everything */
.navbar { position: sticky; top: 0; z-index: 1003; }

/* Hide/show helper for the backdrop */
[hidden] { display: none !important; }
/* Accessible visually-hidden text */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Brand icon (left) */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.brand-icon {
  width: 28px; height: 28px;
  fill: #6c3f2b;
}

/* Hamburger (right) */
.menu-toggle {
  display: none;            /* shown on mobile in the media query below */
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #6c3f2b;
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* Show hamburger on mobile, keep desktop layout */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
}

/* Optional: morph to "X" when menu is open */
.nav-links.open + * {}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Hamburger icon */
.menu-toggle {
  display: none; /* default hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #6c3f2b; /* match your site color */
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Show hamburger on mobile and float right */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto; /* push it to the right in flex container */
  }
}

/* Animate into an X when menu is open */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
