/* ============================================================
   Middleton Fine Art & Nature Photography
   Design language: "Lake Michigan before dawn"
   — deepwater blues, first-light gold, museum placards,
     and the recurring horizon rule.
   ============================================================ */

:root {
  --deepwater: #0b1420;      /* page background — the lake before first light */
  --ink: #111d2c;            /* panels, cards */
  --ink-2: #16243a;          /* raised panels */
  --bone: #ede7da;           /* primary text — snow & ice */
  --mist: #8ea2b6;           /* secondary text — sea smoke */
  --gold: #d6a44a;           /* first light */
  --gold-soft: rgba(214, 164, 74, 0.35);
  --aurora: #4c9b8a;         /* a whisper of northern lights */
  --hairline: rgba(214, 164, 74, 0.28);
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--deepwater);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #e8bd6a; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* --------------- The horizon rule (signature) --------------- */
.horizon {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 35%, var(--aurora) 65%, transparent);
  opacity: 0.55;
  margin: 0 auto;
  max-width: var(--max);
}
.horizon--short { max-width: 120px; margin: 18px 0 0; opacity: 0.9; }
.horizon--center { margin: 18px auto 0; }

/* ----------------------------- Type ------------------------ */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede { color: var(--mist); font-size: 1.1rem; max-width: 62ch; }

/* --------------------------- Header ------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 20, 32, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 164, 74, 0.12);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--bone); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { color: var(--bone); font-size: 0.9rem; letter-spacing: 0.04em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); padding: 8px 18px; border-radius: 2px;
  color: var(--gold); transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--deepwater); }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  display: none; position: absolute; top: 100%; left: -14px;
  background: var(--ink-2); border: 1px solid rgba(214,164,74,0.18);
  min-width: 230px; padding: 8px 0; border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { display: block; }
.drop a { display: block; padding: 9px 18px; font-size: 0.88rem; color: var(--bone); }
.drop a:hover { background: rgba(214,164,74,0.08); color: var(--gold); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); color: var(--bone); padding: 8px 12px; border-radius: 2px; font-size: 0.85rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--hairline); padding: 10px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 11px 0; font-size: 1rem; }
  .drop { display: block; position: static; background: none; border: 0; box-shadow: none; min-width: 0; padding: 0 0 0 16px; }
  .nav-cta { display: inline-block; margin-top: 10px; }
}

/* ---------------------------- Hero ------------------------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-img.crop-bottom { object-position: center bottom; }
.hero-img.crop-top { object-position: center top; }
.hero-img.crop-bottom-slight { object-position: center 75%; }
.hero-img.crop-top-slight { object-position: center 25%; }
.hero-img.darker { filter: brightness(0.82); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,20,32,0.25) 0%, rgba(11,20,32,0.05) 40%, rgba(11,20,32,0.92) 100%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px 72px; }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,0.45); }
.hero .lede { color: #cfd9e2; margin-top: 18px; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 2px; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-gold { background: var(--gold); color: var(--deepwater); border: 1px solid var(--gold); }
.btn-gold:hover { background: #e8bd6a; color: var(--deepwater); }
.btn-ghost { background: rgba(11,20,32,0.35); color: var(--bone); border: 1px solid rgba(237,231,218,0.55); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ------------------------- Sections ------------------------ */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--mist); }

.section-alt { background: var(--ink); }

/* --------------------- Collection cards -------------------- */
.collections-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.collection-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 3px; aspect-ratio: 4 / 3; isolation: isolate;
}
.collection-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.collection-card:hover img { transform: scale(1.045); }
.collection-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,20,32,0.88) 100%);
}
.collection-label {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2;
}
.collection-label h3 { color: var(--bone); font-size: 1.5rem; }
.collection-label span { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* ----------------------- Gallery grid ----------------------- */
.masonry {
  columns: 3 320px;
  column-gap: 20px;
}
.masonry .tile { break-inside: avoid; margin-bottom: 20px; }

.tile {
  display: block;
  position: relative; overflow: hidden; border-radius: 3px;
  cursor: zoom-in; isolation: isolate;
}
.tile img { width: 100%; transition: transform 0.7s ease; }
.tile:hover img { transform: scale(1.03); }

/* Museum placard on hover */
.placard {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(11, 20, 32, 0.85);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.tile:hover .placard, .tile:focus-visible .placard { opacity: 1; transform: translateY(0); }
.placard .p-title { font-family: var(--serif); font-size: 1.05rem; color: var(--bone); }
.placard .p-meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
@media (hover: none) {
  .placard { opacity: 1; transform: none; }
}

/* --------------------------- Lightbox ----------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(5, 9, 15, 0.95); padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-height: 76vh; width: auto; max-width: 100%; margin: 0 auto; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox figcaption { margin-top: 18px; }
.lightbox .lb-title { font-family: var(--serif); font-size: 1.4rem; }
.lightbox .lb-actions { margin-top: 14px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: none; border: 1px solid rgba(237,231,218,0.3);
  color: var(--bone); font-size: 1.1rem; line-height: 1;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ----------------------- Page banner ------------------------ */
.banner {
  position: relative; min-height: 46vh;
  display: flex; align-items: flex-end; isolation: isolate; overflow: hidden;
}
.banner .hero-img { position: absolute; inset: 0; z-index: -2; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,20,32,0.3), rgba(11,20,32,0.92));
}
.banner-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px 48px; }

/* ------------------------ Split blocks ---------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split img { border-radius: 3px; }

/* ---------------------- Materials cards --------------------- */
.materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.material-card {
  background: var(--ink-2); border: 1px solid rgba(214,164,74,0.14);
  border-radius: 3px; padding: 30px 26px;
}
.material-card h3 { color: var(--gold); }
.material-card .from { font-family: var(--serif); font-size: 1.6rem; margin-top: 14px; }
.material-card .from span { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); display: block; }
.material-card p { color: var(--mist); font-size: 0.95rem; margin-top: 12px; }

/* ------------------------- Process -------------------------- */
.process { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px;
  padding: 34px 0; border-bottom: 1px solid rgba(214,164,74,0.14);
}
.step:last-child { border-bottom: 0; }
.step-num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--mist); }
@media (max-width: 640px) { .step { grid-template-columns: 56px 1fr; gap: 16px; } .step-num { font-size: 1.9rem; } }

/* ------------------------ Trust band ------------------------ */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; text-align: center; }
.trust h3 { font-size: 1.05rem; color: var(--bone); margin-top: 10px; }
.trust p { font-size: 0.9rem; color: var(--mist); margin-top: 6px; }
.trust .t-icon { font-size: 1.5rem; color: var(--gold); }

/* -------------------------- Quote --------------------------- */
.pull-quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic; line-height: 1.4; max-width: 34ch;
  margin: 0 auto; text-align: center; color: var(--bone);
}
.pull-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 20px; }

/* --------------------------- Forms -------------------------- */
.form-card { background: var(--ink-2); border: 1px solid rgba(214,164,74,0.16); border-radius: 3px; padding: 40px; max-width: 640px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--deepwater); border: 1px solid rgba(142,162,182,0.35);
  color: var(--bone); padding: 13px 15px; border-radius: 2px; font-family: var(--sans); font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 150px; resize: vertical; }

/* -------------------------- Footer -------------------------- */
.site-footer { background: #081019; padding: 60px 0 34px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: var(--mist); font-size: 0.92rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(214,164,74,0.12); color: #5f7186; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------ Utilities ------------------------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 34px; } .mt-4 { margin-top: 52px; }
.center { text-align: center; }
.note { font-size: 0.85rem; color: var(--mist); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
