/* ─────────────────────────────────────────────
   Ox Hollow Media — warm editorial / photo-walk gallery
   ───────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  --bg:           #FFFFFF;   /* white — primary surface (per style guide) */
  --bg-section:   #F6F1E7;   /* warm paper — alternating sections */
  --bg-dark:      #232120;   /* warm charcoal ink (accent sections) */
  --accent:       #3D6B4F;   /* forest green (brand mark green) */
  --accent-hover: #2E5240;
  --accent-soft:  #DDE6D5;
  --clay:         #B67C56;   /* warm terracotta accent */
  --paper:        #F4EEE2;   /* cream — type on dark surfaces */
  --text:         #232120;   /* warm near-black (matches ink) */
  --text-muted:   #6E695E;   /* warm muted grey */
  --border:       #E9E3D6;   /* warm light border */
  --paper-05:     rgba(255,255,255,0.05);

  --serif:        'Cormorant Garamond', Georgia, serif;  /* brand serif (logo sheet: CG 500) */
  --sans:         'DM Sans', system-ui, sans-serif;
  --radius:       2px;
  --max-w:        1240px;
  --nav-h:        72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; color: var(--text); }
h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; }
p  { color: var(--text-muted); max-width: 60ch; margin-bottom: 1rem; }
em { font-style: italic; }

.eyebrow, .section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline {
  border: 1px solid rgba(244,238,226,0.55);
  color: #F4EEE2;
}
.btn-outline:hover {
  background: #F4EEE2;
  color: var(--bg-dark);
  border-color: #F4EEE2;
}
.btn-filled {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-filled:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-dark {
  border: 1px solid var(--text);
  color: var(--text);
}
.btn-dark:hover { background: var(--text); color: var(--bg); }

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--paper);
  transition: color 0.3s ease;
}
/* Wordmark lockup — Cormorant Garamond 500, uppercase, 0.12em tracking (measured from logo sheet) */
.nav-logo span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* trailing letter-spacing adds phantom space on the right; pull it back for optical balance */
  margin-right: -0.12em;
}
.brand-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: block;
}
#nav.scrolled .nav-logo { color: var(--text); }

/* On light interior pages the nav starts dark */
body.light-nav .nav-logo,
body.light-nav .nav-links a { color: var(--text-muted); }
body.light-nav .nav-logo { color: var(--text); }
body.light-nav .nav-toggle span { background: var(--text); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,238,226,0.78);
  transition: color 0.2s;
}
.nav-links a:hover { color: #F4EEE2; }
#nav.scrolled .nav-links a { color: var(--text-muted); }
#nav.scrolled .nav-links a:hover { color: var(--accent); }
body.light-nav .nav-links a:hover,
body.light-nav.scrolled .nav-links a:hover { color: var(--accent); }

.nav-cta {
  border: 1px solid currentColor;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #F4EEE2;
  transition: background 0.3s;
  border-radius: 2px;
}
#nav.scrolled .nav-toggle span { background: var(--text); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0 0 0 38%;
  z-index: 200;
  background: var(--bg-dark);
  padding: 5rem 2.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { display: flex; flex-direction: column; gap: 2.25rem; }
.nav-drawer a { font-size: 1.6rem; font-family: var(--serif); color: var(--bg); }
.drawer-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(244,238,226,0.5);
  font-size: 1.1rem;
  cursor: pointer;
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.45);
}
.drawer-overlay.active { display: block; }

/* ── Hero (full-bleed featured image) ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  /* Featured photo (surfer at dusk, from the original portfolio); gradient shows while it loads. */
  background:
    url('../images/hero/dawn-patrol.jpg') center / cover no-repeat,
    linear-gradient(115deg, #2b3a2a 0%, #4a5b3e 40%, #8a6b4a 78%, #b6875c 100%);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,0.74) 0%, rgba(28,25,22,0.16) 45%, transparent 75%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(244,238,226,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}
.hero-inner .eyebrow { color: rgba(244,238,226,0.7); }
.hero-headline {
  color: #F4EEE2;
  margin: 0.5rem 0 1rem;
  max-width: 12ch;
}
.hero-headline em { color: var(--accent-soft); }
.hero-sub {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,238,226,0.55);
  margin: 0 0 2rem;
  max-width: none;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Statement / Vision · Mission ── */
#statement {
  padding: 8rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
}
.statement-block .section-label { color: var(--clay); }
.statement-block .lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  color: var(--text);
  max-width: 26ch;
}
.statement-block .lead em { color: var(--accent); }

/* ── About ── */
#about {
  padding: 9rem 0;
  background: var(--bg-section);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-text p { max-width: 48ch; }
.about-image { display: flex; justify-content: center; }
.about-image img { width: 100%; height: auto; border-radius: var(--radius); }
.image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #cbb79b 0%, #9aa584 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

/* ── Offerings ── */
#offerings {
  padding: 9rem 0;
  background: var(--bg);
}
#offerings h2 { margin-bottom: 3.5rem; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.offer-card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--border);
}
.offer-card:last-child { border-right: none; padding-right: 0; }
.offer-card:first-child { padding-left: 0; }
.offer-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--clay);
  margin-bottom: 1.25rem;
  display: block;
}
.offer-card h3 { color: var(--text); margin-bottom: 0.75rem; }
.offer-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ── Gallery highlights (home) ── */
#highlights {
  padding: 9rem 0;
  background: var(--bg-section);
}
.highlights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.highlights-head h2 { margin-bottom: 0; }

/* ── Masonry (shared: home highlights + gallery page) ── */
.masonry {
  column-count: 3;
  column-gap: 1.25rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.masonry-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.masonry-item:hover img { transform: scale(1.03); }

/* Placeholder tiles (varied heights + warm tones) until real photos land */
.ph {
  width: 100%;
  position: relative;
}
.ph-tall  { aspect-ratio: 3/4; }
.ph-wide  { aspect-ratio: 4/3; }
.ph-sq    { aspect-ratio: 1/1; }
.ph-ocean    { background: linear-gradient(140deg, #6d8a86 0%, #9db7ad 100%); }
.ph-mountains{ background: linear-gradient(140deg, #7d8467 0%, #a9a986 100%); }
.ph-people   { background: linear-gradient(140deg, #a9805f 0%, #caa079 100%); }

.masonry-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(28,25,22,0.7), transparent);
  color: #F4EEE2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.masonry-item:hover .cap { opacity: 1; }
.cap .cap-title { font-size: 0.9rem; font-weight: 500; }
.cap .cap-cat {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft);
}

/* ── Interior page header (gallery, about, store, contact) ── */
#gallery-hero, .page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 3rem;
  background: var(--bg);
}
#gallery-hero p, .page-hero p { max-width: 52ch; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 0.5rem;
}
.filter-chip {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-count { color: inherit; opacity: 0.55; margin-left: 0.35rem; }

#gallery-wrap { padding: 2.5rem 0 8rem; background: var(--bg); }

/* ── Films (video embeds on gallery page) ── */
#films {
  padding: 7rem 0 8rem;
  background: var(--bg-section);
}
#films h2 { margin-bottom: 3rem; }
.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.film { display: flex; flex-direction: column; }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
}
.film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film h3 { margin: 1.1rem 0 0.2rem; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.film p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Contact info block (contact page) ── */
.contact-info { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-info a { color: var(--accent-soft); font-size: 0.95rem; transition: opacity 0.2s; }
.contact-info a:hover { opacity: 0.7; }
.contact-info .ci-label {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,238,226,0.4); margin-top: 1rem;
}
.socials { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.socials a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(244,238,226,0.55); border-bottom: 1px solid rgba(244,238,226,0.2);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

/* ── About page ── */
.craft-note { font-size: 0.95rem; }
.about-hero-img { width: 100%; border-radius: var(--radius); margin: 3rem 0 0; }
.masonry-item.is-hidden { display: none; }
.gallery-empty {
  display: none;
  padding: 4rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Contact (warm) ── */
#contact {
  padding: 9rem 0;
  background: var(--bg-dark);
}
#contact h2 { color: #F4EEE2; font-size: clamp(2rem, 4vw, 3.25rem); }
#contact .section-label { color: rgba(182,124,86,0.95); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6rem;
  align-items: start;
}
.contact-text p { color: rgba(244,238,226,0.55); }
.contact-email {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-soft);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.7; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,238,226,0.4);
}
input, textarea {
  background: rgba(244,238,226,0.05);
  border: 1px solid rgba(244,238,226,0.12);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: #F4EEE2;
  font-family: var(--sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: rgba(244,238,226,0.25); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(61,107,79,0.1);
}
.form-note { font-size: 0.8125rem; color: var(--accent-soft); max-width: none; margin: 0; }

/* ── Footer ── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(244,238,226,0.07);
  padding: 2.25rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 500; color: rgba(244,238,226,0.65); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; }
.footer-logo .brand-mark { width: 16px; height: 16px; }
.footer-tagline { color: rgba(244,238,226,0.3); font-size: 0.9rem; font-family: var(--serif); font-style: italic; }
.footer-copy { color: rgba(244,238,226,0.25); font-size: 0.78rem; }

/* ── Fade-in animation ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .statement-grid { grid-template-columns: 1fr; gap: 3rem; }
  .films-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; border-top: 1px solid var(--border); }
  .offer-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
  }
  .offer-card:last-child { border-bottom: none; }
  .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  h2 { font-size: 2.1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image { order: -1; }
  .image-placeholder { aspect-ratio: 3/2; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-drawer { inset: 0 0 0 25%; }
}

@media (max-width: 480px) {
  .masonry { column-count: 1; }
  .nav-drawer { inset: 0; }
  .container, .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
