:root{
  --bg:#fff0f0;       /* deep olive background */
  /*#d8c7d5;
  #58641f
  --panel:#203b09;    /* slightly varied panel tone */
  --light_green_text:#58641f;
  --text:#1e3608;
  --muted:rgba(255,255,255,.78);
  --accent:#58641f;   /* olive button */
  --border:rgba(255,255,255,.14);
  --radius:18px;
  --shadow:0 10px 26px rgba(0,0,0,.20);
  --radio-accent:#c9d46a; /* soft chartreuse for radio accents */
}

/* Force the HTML `hidden` attribute to actually hide elements */
[hidden]{
  display: none !important;
}


*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:var(--bg);
}

.container{max-width:1100px;margin:0 auto;padding:0 20px}
.section{padding:64px 0}
.section.alt{background:transparent}
.narrow{max-width:720px;margin:0 auto}

/* Tighten the gap from hero CTA to Gallery */
#work.section{ padding-top:40px; }

.section-eyebrow{
  font-size:.85rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
  margin:0 0 10px;
}

.about-media{display:block}

/* Typography */
h1,h2{
  font-family:'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
  letter-spacing: .01em;
}
h1{font-size: clamp(2.0rem, 1.2rem + 2.2vw, 3.2rem); margin:0 0 12px; line-height:1.05}
h2{font-size: clamp(1.6rem, 1.1rem + 1vw, 2.1rem); margin:0 0 10px}
.sub{color:var(--muted);margin:6px 0 24px}

/* Buttons */
.btn{
  background:var(--text);
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  display:inline-block;
  text-decoration:none;
  font-weight:650;
  box-shadow:var(--shadow);
  cursor:pointer;
}
.btn:hover{ opacity:.95 }
.btn:focus{ outline:3px solid rgba(255,246,251,.35); outline-offset:2px }

.btn.outline{
  background:transparent;
  color:var(--text);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:none;
}

/* Header / Nav */
.site-header{
  position:sticky; top:0; z-index:50;
  background-color: #fff0f0 ;
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
  gap:14px;
}

.brand img{
  height:225px;
  width:auto;
  display:block;
}

.links{
  display:flex;
  gap:18px;
  align-items:center;
}

.links a{
  color: var(--text);
  text-decoration:none;
  opacity:.92;
}
.links .nav-cta{
  color:#fff;
}

.links a:hover{ opacity:1 }

.nav-cta{ padding:10px 16px; border-radius:12px; }

.hamburger{
  display:none;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  color:#fff;
  font-size:20px;
  width:44px;
  height:44px;
  border-radius:12px;
  cursor:pointer;
}

/* Mobile nav panel */
.mobile-nav{
  border-top:1px solid var(--border);
  background: rgba(30,54,8,.92);
  overflow:hidden;
}

/* optional: JS adds .is-open for consistent behavior across browsers */
.mobile-nav.is-open{ display:block; }
.mobile-nav-inner{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:16px 20px 20px;
}
.mobile-nav a{
  color:#fff;
  text-decoration:none;
  opacity:.92;
}
.mobile-nav a:hover{ opacity:1 }

/* Hero stacked */
.hero-stacked{ padding:0; }

.hero-image{
  position:relative;
}

.hero-image img{
  width:100%;
  height:70vh;
  object-fit:cover;
  display:block;
}

.hero-content{
  background: var(--bg);
  color: var(--text);
  padding: 44px 0 40px;
}

.hero-content p{
  max-width: 640px;
}

.cta{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

/* ===== Work carousel: 3-up like reference ===== */
.gallery2-head h2 { color: #fff; } /* adjust if your background changes */

.gallery2-viewport {
  overflow: hidden;
  touch-action: pan-y;

  /*
    iOS Safari sometimes flickers (re-rasterizes) large images inside
    transformed elements while the page is scrolling.
    Forcing the carousel into its own composited layer + paint containment
    significantly reduces that.
  */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  contain: paint;
}

.gallery2-track{
  display: flex;
  gap: 18px;              /* keep this — JS reads it */
  transition: transform 240ms ease-out; /* important */
  will-change: transform;
  overflow: visible;      /* NOT scroll-based */

  /* Reduce iOS Safari flicker during page scroll */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.gallery2-shell{
  position: relative;
  margin-top: 12px;
}

/* slide sizing: 3 across on desktop */
.gallery2-slide{
  flex: 0 0 calc((100% - 36px) / 3); /* 3 slides, 2 gaps of 18px = 36px */
  scroll-snap-align: start;
}

.gallery2-slide img{
  width: 100%;
  height: 460px;                    /* set the visual height */
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: var(--shadow);

  /* Reduce iOS Safari flicker */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Arrows overlay left/right like your screenshot */
.g2-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  z-index: 2;
}

.g2-prev{ left: 14px; }
.g2-next{ right: 14px; }

.g2-btn:hover{ background: #fff; }
.g2-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
}

/* Responsive: 2 across on tablet */
@media (max-width: 980px){
  .gallery2-slide{
    flex: 0 0 calc((100% - 18px) / 2);
  }
  .gallery2-slide img{
    height: 420px;
  }
}

/* Responsive: 1 across on mobile */
@media (max-width: 640px){
  .gallery2-track{ gap: 14px; }
  .gallery2-slide{ flex: 0 0 100%; }
  /*
    Avoid vh on mobile Safari (address bar show/hide changes vh while scrolling,
    which can cause the gallery image to "refresh" / flicker).
  */
  .gallery2-slide img{
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  .g2-btn{
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .g2-prev{ left: 10px; }
  .g2-next{ right: 10px; }
}


/* About */
.about{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:center;
}

.about-photo{
  width:100%;
  height:340px;
  object-fit:cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about p{ color: var(--text); }

/* Contact */
#contact h2{ color: var(--text); }
#contact .sub{ color: var(--text); }

.form{ display:grid; gap:16px; }

.row{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.form input, .form textarea{
  width:100%;
  padding:12px 14px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--text);
  border-radius:12px;
  color:var(--text);
}

.form textarea{ resize:vertical; }

.form label span{
  display:block;
  font-size:.92rem;
  color: var(--text);
  margin-bottom:4px;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:28px 0;
  background: var(--bg);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.small{ color: var(--text); font-size:.92rem }

.site-footer a {
  color: #0066cc;          /* classic hyperlink blue */
  text-decoration: underline;
}

.site-footer a:visited {
  color: #551a8b;          /* classic visited link purple (optional) */
}

.site-footer a:hover {
  color: #004999;
}


/* --- Compact card selector (roles & event types) --- */
.role-options, .option-cards{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:8px 0 20px;
}

/* Hide native radios */
.role-options input[type="radio"], .option-cards input[type="radio"]{ display:none; }

/* Card */
.role-options label, .option-cards label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  cursor:pointer;
  background: rgba(255,255,255,.06);
  color:var(--text);
  transition:all .2s ease;
  box-shadow:0 1px 3px rgba(0,0,0,.10);
  font-size:.95rem;
}

.role-options label:hover, .option-cards label:hover,
.role-options label:focus-within, .option-cards label:focus-within{
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.09);
}

.role-options input[type="radio"]:checked + label,
.option-cards input[type="radio"]:checked + label{
  background: var(--text);
  color: #fff;
  border-color: rgba(255,255,255,.40);
}

/* Letter badge */
.role-options .letter, .option-cards .letter{
  font-weight:700;
  font-size:.8rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:8px;
  background: rgba(255,255,255,.22);
  color:var(--text);
  flex-shrink:0;
}

/* Field spacing */
.field{ display:grid; gap:6px; }
.field-tight{ gap:4px; margin-bottom:14px; }

/* Inline radios */
.inline-radios{
  display:flex;
  gap:20px;
  align-items:center;
  margin:0;
  padding:0;
}
.inline-radios label{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.inline-radios input[type="radio"]{
  margin:0 6px 0 0;
  width:18px;
  height:18px;
  accent-color: var(--text);
}

/* Chip-style checkbox grid */
.chips-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:10px;
  margin:8px 0 22px;
}
.chips-grid input[type="checkbox"]{ display:none; }
.chips-grid label{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition:.2s;
  box-shadow:0 1px 2px rgba(0,0,0,.10);
  font-size:.95rem;
}
.chips-grid input[type="checkbox"]:checked + label{
  background: var(--text);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

/* Responsive */
@media (min-width: 768px){
  .row{ grid-template-columns:1fr 1fr; }
  .about{ grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 767px){
  .links{ display:none; }
  .hamburger{ display:inline-flex; align-items:center; justify-content:center; }
  .hero-image img{ height:55vh; }
  .brand img{ height:38px; }

  /* Reduce repaint cost on iOS while scrolling */
  .site-header{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
}


/* Prevent background scroll when mobile menu is open */
body.menu-open{ overflow:hidden; }

/* Hero Desktop 3-up styles */
.hero-desktop-3up {
  display: none;
}
.hero-mobile-single {
  display: block;
}
@media (min-width: 768px) {
  .hero-desktop-3up {
    display: flex;
    gap: 0;
    width: 100%;
    height: 70vh;
    overflow: hidden;
  }
  .hero-desktop-3up img {
    flex: 1 1 0%;
    width: 33.3333%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .hero-mobile-single {
    display: none;
  }
}

/* Center the logo (brand) in the header */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;     /* Center everything horizontally */
  height: 64px;
  gap: 14px;
  position: relative;
}

/* Position nav-cta and hamburger absolutely on the right */
.links {
  position: fixed;
  right: 0;
  top: 32px; /* half the header height (64px / 2) */
  transform: translateY(-50%);
  z-index: 100;
  padding-right: 32px; /* nice spacing from window edge */
}

@media (max-width: 1100px) {
  .links {
    padding-right: 20px; /* match .container on smaller screens */
  }
}
@media (max-width: 767px) {
  .links {
    display: none;
    position: static;
    padding-right: 0;
  }
}


/* Center the logo brand */
.brand {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .links { display: none; }
  .hamburger {
    display: inline-flex;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
  }
  .brand img {
    height: 195px;
  }
}

/* Make selects match inputs */
.form select{
  width:100%;
  padding:12px 14px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--text);
  border-radius:12px;
  color: var(--text);
  font: inherit;
  line-height: normal; /* key fix */
  height: auto;

  box-shadow: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;

  padding-right: 44px;
}


.form select:invalid {
  color: rgba(30, 54, 8, 0.55); /* matches input placeholder softness */
}

/* Focus styling consistent with your buttons */
.form select:focus{
  outline:3px solid rgba(255,246,251,.35);
  outline-offset:2px;
}

.form input,
.form textarea,
.form select{
  font-size: 1rem;
}
