/* ===========================================================
   Tom Seery Photography — clean / light theme
   =========================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --ink: #1c1b19;
  --ink-soft: #5c5953;
  --line: #e7e3dd;
  --accent: #9a7b4f;        /* muted warm gold */
  --accent-dark: #7c6240;
  --max: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

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

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled,
.nav.solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand b { font-weight: 600; }

.nav-links { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* hero nav (transparent over dark image) uses light text until scrolled */
.nav.over-hero:not(.scrolled) .brand,
.nav.over-hero:not(.scrolled) .nav-links a { color: #fff; }
.nav.over-hero:not(.scrolled) .burger span { background: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.5));
  z-index: 1;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; }
.hero-inner .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p.lead { font-size: 1.15rem; max-width: 540px; margin: 0 auto 2rem; opacity: .95; }
.hero .btn { border-color: #fff; background: #fff; color: var(--ink); }
.hero .btn:hover { background: transparent; color: #fff; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--ink-soft); }

.bg-soft { background: var(--bg-soft); }

/* ---------- Services / feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
}
.feature .ph { aspect-ratio: 4/3; overflow: hidden; }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .ph img { transform: scale(1.06); }
.feature .body { padding: 28px 26px 32px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }

/* ---------- Gallery ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.tab {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 24px;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery {
  columns: 4 240px;
  column-gap: 14px;
}
.gallery .cell {
  break-inside: avoid;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
  position: relative;
}
.gallery .cell img {
  width: 100%;
  height: auto;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery .cell::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(28,27,25,0);
  transition: background .4s var(--ease);
}
.gallery .cell:hover img { transform: scale(1.05); }
.gallery .cell:hover::after { background: rgba(28,27,25,.08); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none;} }

/* ---------- Video embed ---------- */
.video-wrap {
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,14,12,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}
.lightbox.open { display: flex; animation: fade .3s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  color: #fff;
  background: none; border: 0;
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
  user-select: none;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { opacity: 1; }
.lb-close { top: 22px; right: 30px; font-size: 2.8rem; }
.lb-nav { top: 50%; transform: translateY(-50%); padding: 0 18px; font-size: 3rem; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- Split / about ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split.reverse .txt { order: 2; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }

.contact-info p { margin-bottom: 1.6rem; }
.contact-info .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 600; display:block; margin-bottom: 3px; }
.contact-info a:hover { color: var(--accent); }

.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #2c7a4b; }
.form-status.err { color: #b23b3b; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc9c0; padding: 64px 0 40px; text-align: center; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.socials { display: flex; justify-content: center; gap: 26px; margin: 22px 0 28px; }
.socials a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #cfc9c0; transition: color .25s; }
.socials a:hover { color: #fff; }
.footer small { color: #8a857c; letter-spacing: .04em; }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: calc(var(--nav-h) + 70px) 0 50px; text-align: center; }
.page-head .eyebrow { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 16px 0; color: var(--ink) !important; }
  .burger { display: flex; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .txt { order: 0; }
  section { padding: 70px 0; }
}
