
/* ===== Design tokens ===== */
:root {
  --color-gold:#C7A200;
  --color-black:#111111;
  --color-bg:#F9F1CF;
  --color-text:#222222;
  --color-muted:#6b7280;
  --color-surface:#ffffff;
  --color-border:#e5e7eb;
  --color-focus:#1a73e8;
  --overlay-1:rgba(246,234,182,0.70);
  --overlay-2:rgba(246,234,182,0.55);
  --overlay-solid:#F9F1CF;
  --cta:#375B5B;
  --container:1100px;
  --header-h:64px;
  --space-1:.25rem;
  --space-2:.5rem;
  --space-3:.75rem;
  --space-4:1rem;
  --space-5:1.5rem;
  --space-6:2rem;
  --space-7:3rem;
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--color-text);
  background:var(--color-bg);
  line-height:1.5;
}

/* ===== Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:saturate(180%) blur(6px);
  background:#F9F1CF;
  border-bottom:1px solid var(--color-border);
}
.header-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:var(--space-2) var(--space-4);
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:var(--header-h);
  gap:var(--space-4);
  overflow:visible;
}
nav[aria-label="Primary"], .site-header { overflow: visible; }
.brand{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  text-decoration:none;
  color:var(--color-black);
  font-weight:700;
  letter-spacing:.2px
}
.brand .torch{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--color-black);
  color:var(--color-gold);
  font-weight:700;
  font-size:.9rem
}

/* ===== Nav / menu ===== */
.nav-toggle{
  appearance:none;
  border:none;
  background:transparent;
  color:var(--color-black);
  font-size:1.1rem;
  padding:var(--space-2);
  display:none;
  cursor:pointer
}
nav#primary-nav{
  display:flex;
  align-items:center;
  gap:var(--space-4)
}
.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:var(--space-2);
  flex-wrap:wrap
}
.menu>li{ position:relative }
.menu a,
.menu button.menu-link{
  display:inline-flex;
  align-items:center;
  gap:var(--space-2);
  padding:calc(var(--space-3) - .1rem) var(--space-4);
  border-radius:8px;
  color:var(--color-black);
  text-decoration:none;
  font-weight:600;
  border:1px solid transparent;
  transition:background 120ms,color 120ms,border-color 120ms;
}
.menu a:hover,
.menu button.menu-link:hover{ background:rgba(255,255,255,.4) }
.menu a.active{ border-color:var(--color-gold) }
.menu .dropdown>button.menu-link{
  background:rgba(255,255,255,.6);
  border:1px solid var(--color-border)
}

/* ===== Submenus: open LEFT and only when expanded ===== */
.submenu{
  position:absolute;
  left:auto;      /* open left */
  right:100%;     /* position to the left of parent */
  top:0;          /* align to triggering item */
  min-width:220px;
  padding:var(--space-3);
  margin:0;
  list-style:none;
  border-radius:10px;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  display:none;   /* hidden by default */
  z-index:1000;
}
.dropdown[aria-expanded="true"] > .submenu{ display:block; } /* show only on click */
.submenu li a{
  display:block;
  padding:var(--space-3) var(--space-4);
  border-radius:8px;
  color:var(--color-text)
}
.submenu li a:hover{ background:#f7f7f7 }

/* ===== Pointer-gap bridge (prevents accidental closing while moving pointer) ===== */
/* Top-level dropdowns: extend the interactive area towards the submenu on the left */
.menu > li.dropdown{ position:relative; }
.menu > li.dropdown::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-12px;     /* extend leftwards toward the submenu */
  width:12px;     /* the invisible 'bridge' thickness */
  background:transparent;
}

/* Nested dropdowns: same bridge so deeper levels are easy to reach */
.submenu > li.dropdown{ position:relative; }
.submenu > li.dropdown::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-12px;     /* submenu opens to the left, so bridge to the left too */
  width:12px;
  background:transparent;
}

/* Optional: pull submenu slightly closer to parent to reduce any visual gap */
.submenu{ right:calc(100% - 2px); }

/* Increase hover hit area slightly (visual only; state is JS-controlled) */
.menu>li.dropdown{ padding-bottom:2px }

/* ===== Mobile drawer ===== */
@media (max-width:860px){
  .nav-toggle{ display:inline-flex }
  nav#primary-nav{ display:none }
  nav#primary-nav[data-open="true"]{
    display:block;
    position:absolute;
    left:0; right:0; top:100%;
    background:#F9F1CF;
    border-bottom:1px solid var(--color-border);
  }
  .menu{ flex-direction:column; align-items:stretch; padding:var(--space-3) }
  .menu>li{ width:100% }
  .menu a, .menu button.menu-link{ width:100% }
  .submenu{ position:static; box-shadow:none; border:none; padding:0 }
  .submenu li a{ padding:.6rem var(--space-4) }
}

/* ===== Hero, sections, buttons ===== */
.hero{
  min-height:calc(100vh - 0px);
  display:grid;
  grid-template-rows:66.6667vh 1fr;
  background:linear-gradient(135deg,var(--overlay-1),var(--overlay-2)),url('hero-bg.jpg') center right/cover no-repeat;
  border-bottom:1px solid var(--color-border);
}
.cta-row{ grid-row:2; align-self:start; justify-self:center; }
.btn{
  display:inline-flex;
  gap:var(--space-3);
  align-items:center;
  padding:.6rem 1rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 6px 16px rgba(17,17,17,.15);
  transition:filter 120ms,transform 120ms
}
.btn:hover{ filter:brightness(1.03); transform:translateY(-1px) }
.btn.btn--cta{ background:var(--cta); color:#fff }
.section{
  max-width:var(--container);
  margin:0 auto;
  padding:2.25rem var(--space-4);
  display:grid;
  gap:var(--space-4);
  background: #F9F1CF; 
}
.card{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:12px;
  padding:var(--space-4)
}

/* ===== Focus styles ===== */
a:focus,button:focus{
  outline:3px solid var(--color-focus);
  outline-offset:2px
}
.brand-logo {
  height: 48px;          /* adjust as needed */
  width: auto;
  display: block;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
  gap: 12px;
}

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
  }
}

/* Tablets */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

/* Phones */
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 per row */
  }
}

/* Thumbnail image styling */
.gallery-grid img {
  width: 100%;
  height: 160px;       /* or any height you prefer */
  object-fit: cover;   /* keeps images uniformly cropped */
  border-radius: 6px;
}
.thumbnail {
    width: 120px;       /* thumbnail width */
    height: 120px;      /* thumbnail height */
    object-fit: cover;  /* crop to fill the square */
    border-radius: 6px;
    border: 1px solid #ddd;
}