/* ==========================================================================
   Ran Ruwan — css/style.css
   Luxury artisanal mineral-crafts website
   Palette: SaddleBrown (#8B4513) / Gold (#D4AF37) / dark earth (#1a120f)
   Typography: Playfair Display (serif) + Lato (sans-serif)
   ========================================================================== */

/* ---- CSS Custom Properties (theme tokens) ------------------------------- */
:root {
  --clr-primary: #8b4513;          /* SaddleBrown */
  --clr-accent: #d4af37;           /* Gold */
  --clr-accent-2: #b8860b;         /* Darker gold (hover/active) */
  --clr-bg: #1a120f;               /* dark earth */
  --clr-bg-2: #2a1e14;             /* darker earth (cards) */
  --clr-text: #f5f0e6;             /* off-white */
  --clr-muted: #a89a8a;            /* warm gray */
  --clr-border: #4a3e32;           /* subtle border */
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---- Reduced motion (accessibility) ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0s !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Global reset & base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;                 /* 16px base */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  /* dark earth base with a subtle vignetting gradient for depth */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 69, 19, 0.14) 0%, transparent 55%),
    var(--clr-bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Typography helpers ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: var(--clr-text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover, a:focus { color: var(--clr-accent-2); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout containers ------------------------------------------------ */
.container { width: min(100% - 1.5rem, 1200px); margin-inline: auto; }
.section { padding: var(--space-xl, 4rem) 0; }
.section + .section { --space-xl: 3rem; }

/* ---- Skip link (accessibility) ---------------------------------------- */
.skip-link {
  position: absolute;
  top: -2.5rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 18, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
}

.site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--clr-text);
}
.logo img { height: 44px; width: auto; }
.logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo .logo-name { font-size: 1.1rem; color: var(--clr-text); }
.logo .logo-tag { font-size: 0.65rem; color: var(--clr-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* Mobile menu — hidden by default; shown only when .nav-open is on <header> */
.mobile-menu { display: none; }

/* Desktop nav — hidden by default; shown on tablet+ */
.site-nav { display: none; }
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
}
.nav-list a {
  color: var(--clr-text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  position: relative;
}
.nav-list a.current,
.mobile-menu a.current {
  color: var(--clr-accent);
  font-weight: 600;
}
.nav-list a.current::after {
  width: 100%;
}
.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width 0.3s ease;
}
.nav-list a:hover::after,
.nav-list a:focus::after { width: 100%; }

/* CTA button in header */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--clr-accent);
  border-radius: 999px;
  color: var(--clr-bg);
  background: var(--clr-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.header-cta:hover, .header-cta:focus { background: var(--clr-accent-2); box-shadow: 0 0 16px rgba(212, 175, 55, 0.4); }

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  position: relative;   /* anchor for the ✕ glyph overlay when the menu is open */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--clr-text);
  font-size: 1.5rem;
}
/* Ring on keyboard focus only — touch taps must not leave a gold box. */
.menu-toggle:focus-visible { outline: 2px solid var(--clr-accent); outline-offset: 2px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 72vh;
  min-height: 64vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  color: var(--clr-text);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,18,15,0.7) 0%, rgba(139,69,19,0.45) 55%, rgba(26,18,15,0.85) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/logo.jpg') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 42rem; }
.hero h1 { color: var(--clr-text); text-shadow: 0 2px 8px rgba(0,0,0,0.55); }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}
.hero .subtitle { font-size: 1.15rem; color: var(--clr-muted); margin-bottom: 1.5rem; font-weight: 300; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--clr-accent);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  background: var(--clr-primary);
  color: var(--clr-text);
}
.btn:hover, .btn:focus {
  background: var(--clr-accent);
  color: var(--clr-bg);
  box-shadow: 0 0 18px rgba(212,175,55,0.45);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: rgba(212,175,55,0.1);
  color: var(--clr-text);
}
.btn-gold {
  background: var(--clr-accent);
  color: var(--clr-bg);
  border-color: var(--clr-accent);
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--clr-accent-2);
  box-shadow: 0 0 20px rgba(212,175,55,0.5);
}

/* ==========================================================================
   CARDS / GRID COMPONENTS
   ========================================================================== */
.card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
  border-color: var(--clr-accent);
}

.gold-accent {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}
.gold-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 3rem;
  height: 1.5rem;
  background: linear-gradient(90, var(--clr-accent), transparent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}
.gold-accent h2 { margin-left: 0.25rem; }

.gold-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--clr-accent);
  margin: 0 auto 1.5rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ==========================================================================
   TYPOGRAPHY: blockquote, .lead
   ========================================================================== */
blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--clr-bg-2);
  border-left: 3px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--clr-muted);
}
.lead { font-size: 1.25rem; color: var(--clr-text); font-weight: 300; }
.highlight { color: var(--clr-accent); font-weight: 500; }

/* ==========================================================================
   TABLES (pricing, awards)
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--clr-bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--clr-border); }
th {
  background: var(--clr-primary);
  color: var(--clr-text);
  font-weight: 600;
  letter-spacing: 0.03em;
}
td highlight, td strong { color: var(--clr-accent); }
tbody tr:hover { background: rgba(139,69,19,0.12); }

/* ==========================================================================
   GALLERY / MASONRY
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.filter-btn {
  background: var(--clr-bg-2);
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn:focus, .filter-btn.active {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

.masonry {
  columns: 1;
  column-gap: 1.5rem;
}
.masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: block;
}
.masonry .gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-strong); }

/* ---- Products photo grids (masonry) --------------------------------------
   Natural-height photo cards: each .card frame hugs its image so no row
   stretching / empty space occurs with mixed aspect ratios. Scoped utility —
   the shared .card component used by text cards on other pages is untouched. */
.card-masonry {
  columns: 1;
  column-gap: 1.75rem;
}
.card-masonry > .card {
  break-inside: avoid;
  margin-bottom: 1.75rem;
}
.card-masonry .card img { transition: transform 0.45s ease; }
.card-masonry .card:hover img { transform: scale(1.04); }

/* ==========================================================================
   TIMELINE (awards) — magazine-style chronicle
   Centred narrow measure (max 720px -> ~69ch paragraph lines) so desktop
   reads as an engaged editorial column, never stretched edge-to-edge.
   Each entry is a 3-track grid: [reserved year column][spine track][card].
   The year numeral is a normal grid item in reserved space, and the
   medallion dot is a grid item pinned to the spine track — both can never
   overlap the spine, each other or the card at any viewport width. Only the
   decorative thread is absolutely positioned (it carries no text).
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 2.75rem auto 3.25rem;
}
/* Gilded thread: fixed offset = year col 5.25rem + half spine track (1.25rem).
   Fades away below the last entry for a hand-drawn chronicle feel. */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(6.5rem - 1.5px);
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--clr-accent), rgba(212, 175, 55, 0.35) 72%, transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 5.25rem 2.5rem minmax(0, 1fr);
  align-items: start;
  margin: 0 0 2.4rem;
}
/* Medallion dot — a grid item centred on the spine track. */
.timeline-item::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-top: 1.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  z-index: 1;
}
/* Reserved year column — oversized gilded Playfair numerals, right-aligned
   so they hug the medallion rail. */
.timeline-item .year {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-top: 0.45rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.45rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--clr-accent);
  transition: var(--transition);
}
.timeline-item:hover .year { color: #ecc55e; }
/* Entry card — tighter padding, single-column measure, subtle lift. */
.timeline-card {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  padding: 1.15rem 1.4rem 1.25rem;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.timeline-item:hover .timeline-card {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--shadow-strong);
}
.timeline-head {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--clr-border);
}
.timeline-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.5rem;
  height: 2px;
  background: var(--clr-accent);
}
.timeline-title { min-width: 0; }
.timeline-title h3 { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.35rem); }
.timeline-title .muted-sm-neg { margin-top: 0.25rem; font-size: 0.8rem; }

/* <600px: chronicle folds onto a tight left rail — dot + year share the
   first row, the card sits beneath. Reserved grid tracks keep the year
   clear of the spine at every width; nothing is clipped. */
@media (max-width: 599px) {
  .timeline::before { left: calc(0.85rem - 1.5px); }
  .timeline-item {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.55rem 1rem;
    margin-bottom: 2rem;
  }
  .timeline-item::before { grid-column: 1; margin-top: 0.55rem; }
  .timeline-item .year {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-top: 0;
    font-size: 2rem;
  }
  .timeline-card { grid-column: 2; grid-row: 2; padding: 1.1rem 1.15rem 1.15rem; }
}


/* ==========================================================================
   CONTACT / FORM
   ========================================================================== */
.info-grid { display: grid; gap: 1.25rem; }
.contact-method {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-method .icon {
  font-size: 1.2rem;
  color: var(--clr-accent);
  min-width: 1.4rem;
  margin-top: 0.15rem;
}

form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1rem; }
.form-row--split { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.85rem;
  color: var(--clr-muted);
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
  border-color: var(--clr-accent);
}
input::placeholder, textarea::placeholder { color: var(--clr-muted); }

/* ==========================================================================
   MAP / LOCATION CARD
   ========================================================================== */
.location-card {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.location-card h4 { color: var(--clr-accent); margin-bottom: 0.4rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #130d09;
  border-top: 2px solid var(--clr-accent);
  color: var(--clr-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.footer-brand img { height: 36px; }
.footer-brand .f-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: var(--clr-text); }
.social { display: flex; gap: 0.8rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--clr-bg);
  color: var(--clr-accent);
  border: 1px solid var(--clr-border);
}
.social a:hover, .social a:focus { background: var(--clr-accent); color: var(--clr-bg); }
.footer-links h4 { color: var(--clr-text); font-size: 1rem; margin-bottom: 0.9rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.copyright {
  text-align: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--clr-border);
  color: #7a6f5f;
  font-size: 0.82rem;
}

/* ==========================================================================
   DECORATIVE: gold text
   ========================================================================== */
.gold-text {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}
.text-shadow-gold { text-shadow: 0 0 8px rgba(212, 175, 55, 0.5); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet */
@media (min-width: 600px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
  .form-row--split { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero { min-height: 72vh; }
  .hero-content { max-width: 50rem; }
  .hero .subtitle { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .masonry, .card-masonry { columns: 2; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .masonry, .card-masonry { columns: 3; }
  .hero { padding: 5rem 0 6rem; }
}

@media (min-width: 1440px) {
  .container { max-width: 1200px; }
  .masonry { columns: 4; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* Mobile nav — premium heritage drawer */
@media (max-width: 599px) {
  /* Drawer panel: elevated ground, gold hairline, deep shadow — reads as a
     layer above the page instead of a flat continuation of it. */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001; /* above the ::after backdrop; header z-index: 1000 keeps both above page content */
    background: var(--clr-bg-2);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0 1.25rem;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    display: none;
  }

  /* Open state — display flips via .nav-open/.is-open, so the entrance runs
     as a keyframes animation (transitions do not fire on display changes). */
  .nav-open .mobile-menu,
  .mobile-menu.is-open {
    display: flex;
    transform-origin: top center;
    animation: mobile-menu-in 0.28s ease both;
  }

  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }

  /* Links: full-width flex rows (kills the stray inline underline), 48px+ tap
     target, uppercase letter-spaced Lato aligned with the desktop gold nav. */
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    color: var(--clr-text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
  }
  .mobile-menu li:last-child a { border-bottom: 0; }
  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    color: var(--clr-accent);
    background: rgba(212, 175, 55, 0.08);
  }
  /* Current page: gold text (shared rule) + 3px gold bar inset on the left. */
  .mobile-menu a.current { box-shadow: inset 3px 0 0 var(--clr-accent); }

  /* Staggered link reveal on open; fill mode "backwards" takes the hidden
     pre-delay state from the keyframes so links are never stuck invisible. */
  .nav-open .mobile-menu li { animation: mobile-menu-item-in 0.32s ease backwards; }
  .nav-open .mobile-menu li:nth-child(1) { animation-delay: 0.05s; }
  .nav-open .mobile-menu li:nth-child(2) { animation-delay: 0.08s; }
  .nav-open .mobile-menu li:nth-child(3) { animation-delay: 0.11s; }
  .nav-open .mobile-menu li:nth-child(4) { animation-delay: 0.14s; }
  .nav-open .mobile-menu li:nth-child(5) { animation-delay: 0.17s; }
  .nav-open .mobile-menu li:nth-child(6) { animation-delay: 0.2s; }
  .nav-open .mobile-menu li:nth-child(7) { animation-delay: 0.23s; }

  /* Dimmed page backdrop behind the open drawer — pure CSS, no markup changes.
     position: absolute, NOT fixed: .site-header's backdrop-filter makes the
     header the containing block for fixed descendants, which would collapse a
     fixed layer onto the header box itself. Anchored below the sticky header
     (top: 100%) with a 100vh height instead, so it always covers the visible
     page. z-index: -1 keeps it inside the header's stacking context
     (z-index: 1000): above all page content, below the drawer and its links. */
  .site-header.nav-open::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: -1;
  }

  /* Hamburger → ✕: hide the ☰ glyph inside the span (layout preserved) and
     centre a gold ✕ over the button via ::after. */
  .menu-toggle[aria-expanded="true"] span { visibility: hidden; }
  .menu-toggle[aria-expanded="true"]::after {
    content: "\2715";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--clr-accent);
  }

  .hero { padding: 3rem 0 4rem; }
  .form-row--split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Drawer entrance keyframes (panel slides down from under the header). */
@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mobile-menu-item-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion: drawer and links appear instantly, no animation. */
@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .nav-open .mobile-menu,
  .mobile-menu.is-open,
  .nav-open .mobile-menu li { animation: none; }
}

/* Ensure focusable elements have visible focus */
*:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* ---- Scroll reveal (JS-driven) --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

/* Hidden state (gallery filter, mobile menu) */
.hidden { display: none !important; }
.is-open { display: flex !important; }

/* Form success */
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success h3 { color: var(--clr-accent); }

/* ==========================================================================
   UTILITY CLASSES (extracted from inline styles)
   ========================================================================== */
.section-dark { background: var(--clr-bg-2); }
.pad { padding: 1rem; }
.pad-lg { padding: 2rem; }
.pad-center { padding: 1.25rem; text-align: center; }
.text-accent { color: var(--clr-accent); }
.text-center { text-align: center; }
.mt-xl { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted-sm { color: var(--clr-muted); font-size: 0.85rem; }
.muted-sm-neg { color: var(--clr-muted); font-size: 0.85rem; margin-top: -0.5rem; }
.caption-sm { text-align: center; color: var(--clr-muted); font-size: 0.88rem; margin-top: 0.5rem; }
.lead-centered { max-width: 640px; text-align: center; margin-inline: auto; }
.text-block-sm { margin: 0.3rem 0; }
.hero-content-narrow { max-width: 42rem; }
.hero-content-wide { max-width: 44rem; }
.hero-min-38 { min-height: 38vh; }
.hero-min-42 { min-height: 42vh; }
.hero-min-44 { min-height: 44vh; }
.hero-min-46 { min-height: 46vh; }
.hero-min-48 { min-height: 48vh; }
.bg-gradient-hero { background: linear-gradient(135deg,rgba(139,69,19,0.2) 0%,rgba(212,175,55,0.08) 100%); }
.card-no-shadow { border: 0; box-shadow: none; background: transparent; margin-top: -1px; }

.mt-1 { margin-top: 1rem; }

/* ==========================================================================
   APPENDED COMPONENTS — History spotlight & Founder (about.html),
   Video gallery cards (gallery.html). Nothing above this block is modified.
   ========================================================================== */

/* ---- History spotlight (about.html) -------------------------------------- */
/* .eyebrow is only themed inside .hero elsewhere, so scope it here. */
.history-spotlight .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin: 0 0 0.5rem;
}
/* Museum-plaque frame: matte ground + fine gold border around the print. */
.history-figure {
  margin: 0;
  padding: 0.75rem 0.75rem 0.6rem;
  background: var(--clr-bg);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}
.history-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.history-figure .caption-sm { margin-top: 0.6rem; margin-bottom: 0; }

/* ---- Founder (about.html) ------------------------------------------------ */
.founder-figure {
  margin: 0;
  max-width: 30rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.founder-figure img { width: 100%; height: auto; }
.founder-name { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.1; margin-bottom: 0.9rem; }
.founder-credentials .founder-role {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-muted);
  margin-bottom: 0.6rem;
}
.founder-credentials .founder-degrees {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.6rem;
}
.founder-credentials .founder-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}
.founder-director { margin-top: 2.5rem; margin-bottom: 0; }

/* ---- Video gallery cards (gallery.html) -----------------------------------
   Card matches the shared .card look (radius/shadow/hover) so video cards sit
   naturally beside image cards. Markup contract for the implementing page:
     <div class="video-card" data-youtube="VIDEO_ID">
       <img class="video-thumb" src="..." alt="...">
       <span class="video-play" aria-hidden="true"></span>
       <span class="video-badge">Video</span>
     </div>
   On click, JS may swap in an iframe (see .video-card iframe) and add .playing.
   aspect-ratio (16/9) is used for the thumb — same evergreen-browser tier the
   site already targets (clamp, backdrop-filter); unsupported browsers simply
   show the thumb at natural height. */
.video-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.video-card:hover,
.video-card:focus-visible {
  box-shadow: var(--shadow-strong);
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}
/* Wins over .masonry .gallery-item:hover (scale) so video cards keep the
   shared card lift instead of being scaled inside the gallery grid. */
.masonry .gallery-item.video-card:hover { transform: translateY(-3px); }
.video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Centered play button: gold-bordered circle + CSS-border triangle. */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(26, 18, 15, 0.65);
  border: 2px solid var(--clr-accent);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);   /* optical centring of the triangle */
  border-left: 1.1rem solid var(--clr-accent);
  border-top: 0.7rem solid transparent;
  border-bottom: 0.7rem solid transparent;
}
.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(26, 18, 15, 0.8);
}
.video-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
/* YouTube embed swaps in over the thumb. */
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Self-hosted <video> (data-video-src) renders in-flow at its own aspect
   ratio — full card width, never stretched or cropped. */
.video-card video {
  display: block;
  width: 100%;
  height: auto;
}
.video-card.playing .video-play { display: none; }
.video-card.playing .video-thumb { visibility: hidden; }
/* Native-video case: drop the reserved thumb box entirely so the player
   defines the card height (no dead space). The iframe case keeps the hidden
   16/9 box because the absolutely-positioned iframe needs it. Uses :has() —
   same evergreen tier this file already targets (aspect-ratio,
   backdrop-filter). */
.video-card.playing:has(video) .video-thumb { display: none; }

/* Smaller play target on phones */
@media (max-width: 599px) {
  .video-play { width: 3.5rem; height: 3.5rem; }
  .video-play::after {
    border-left-width: 0.85rem;
    border-top-width: 0.55rem;
    border-bottom-width: 0.55rem;
  }
}
