/* ============================================================
   George Lteif Photography — style.css
   Palette: dusk ink / bridal ivory / champagne gold / limestone
   Type: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

:root {
  --ink: #171310;
  --ink-2: #211b16;
  --ink-3: #2b241d;
  --ivory: #f3ede2;
  --ivory-dim: #cfc6b8;
  --stone: #94897a;
  --champagne: #c79a5b;
  --champagne-soft: rgba(199, 154, 91, 0.35);
  --frame: 14px;
  --max: 1200px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--champagne); color: var(--ink); }

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

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

/* ---------- Signature: the photo-mat frame ---------- */
.mat-frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--champagne-soft);
  pointer-events: none;
  z-index: 90;
}
.mat-frame::before, .mat-frame::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--champagne);
  border-style: solid;
}
.mat-frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.mat-frame::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--champagne);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--champagne);
  opacity: 0.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}

.display {
  font-size: clamp(44px, 7vw, 96px);
  letter-spacing: 0.01em;
}
.display em, h2 em { font-style: italic; color: var(--champagne); }

h2.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  margin: 18px 0 26px;
}

.lead { font-size: 19px; color: var(--ivory-dim); max-width: 62ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 6vw; }
section { padding: 110px 0; position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: calc(var(--frame) + 14px) calc(var(--frame) + 26px) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(23, 19, 16, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 14px;
  box-shadow: 0 1px 0 rgba(199, 154, 91, 0.18);
}

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--ivory);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--champagne);
}

.site-nav { display: flex; gap: 38px; align-items: center; }
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--ivory); }
.site-nav a:hover::after, .site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav a.nav-cta {
  border: 1px solid var(--champagne);
  color: var(--champagne);
  padding: 10px 22px;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--champagne); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 110;
  width: 34px; height: 24px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0; width: 100%; height: 1px;
  background: var(--ivory);
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero-slide.active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,19,16,0.94) 0%, rgba(23,19,16,0.25) 45%, rgba(23,19,16,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 6vw clamp(70px, 12vh, 130px);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--champagne);
  margin-bottom: 12px;
}
.hero-scroll {
  position: absolute;
  right: calc(var(--frame) + 30px);
  bottom: calc(var(--frame) + 26px);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(var(--champagne), transparent);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.hero-count {
  position: absolute;
  left: calc(var(--frame) + 30px);
  bottom: calc(var(--frame) + 26px);
  z-index: 3;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ivory-dim);
}
.hero-count b { color: var(--champagne); font-weight: 400; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 210px 0 90px;
  text-align: left;
}
.page-hero .display { font-size: clamp(40px, 6vw, 78px); }

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92);
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--champagne-soft);
  z-index: -1;
}
.signature-img {
  width: 150px;
  margin-top: 28px;
  filter: invert(0.88) sepia(0.25);
  opacity: 0.9;
}

/* ---------- Services ---------- */
.services { background: var(--ink-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(199, 154, 91, 0.18);
  border: 1px solid rgba(199, 154, 91, 0.18);
  margin-top: 56px;
}
.service {
  background: var(--ink-2);
  padding: 48px 38px 44px;
  transition: background 0.4s ease;
  position: relative;
}
.service:hover { background: var(--ink-3); }
.service h3 {
  font-size: 30px;
  margin: 20px 0 14px;
}
.service p { color: var(--ivory-dim); font-size: 15.5px; }
.service-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 46px;
  color: var(--champagne);
  opacity: 0.85;
  line-height: 1;
}

/* ---------- Gallery ---------- */
.masonry {
  columns: 3;
  column-gap: 22px;
  margin-top: 56px;
}
.masonry a {
  display: block;
  margin-bottom: 22px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.8s;
  filter: saturate(0.9);
}
.masonry a:hover img { transform: scale(1.05); filter: saturate(1); }
.masonry a::after {
  content: attr(data-caption);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(transparent, rgba(23,19,16,0.85));
  opacity: 0;
  transition: opacity 0.5s;
}
.masonry a:hover::after { opacity: 1; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: 40px;
}
.filters button {
  background: none;
  border: 0;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}
.filters button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: right;
}
.filters button:hover { color: var(--ivory); }
.filters button.active { color: var(--champagne); }
.filters button.active::after { transform: scaleX(1); transform-origin: left; }
.masonry a.hidden { display: none; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--ink-2);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.35;
  max-width: 22ch;
  margin: 0 auto;
}
.quote-band cite {
  display: block;
  margin-top: 26px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--champagne);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 72px);
  color: var(--champagne);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 6px;
}

/* ---------- Timeline (about) ---------- */
.timeline { margin-top: 60px; border-left: 1px solid var(--champagne-soft); padding-left: 40px; }
.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -44.5px; top: 10px;
  width: 9px; height: 9px;
  background: var(--ink);
  border: 1px solid var(--champagne);
  transform: rotate(45deg);
}
.timeline-year {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--champagne);
}
.timeline-item p { color: var(--ivory-dim); max-width: 58ch; margin-top: 6px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    linear-gradient(rgba(23,19,16,0.88), rgba(23,19,16,0.88)),
    url("../img/g-golden-hour.jpg") center 35% / cover fixed no-repeat;
  padding: 150px 0;
}
.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 17px 52px;
  border: 1px solid var(--champagne);
  color: var(--champagne);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: background 0.35s, color 0.35s;
  cursor: pointer;
  background: none;
  font-family: var(--sans);
}
.btn:hover { background: var(--champagne); color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 7vw, 110px);
  margin-top: 30px;
}
.contact-item { margin-bottom: 40px; }
.contact-item .label {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 8px;
}
.contact-item a, .contact-item p {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ivory);
  line-height: 1.4;
}
.contact-item a:hover { color: var(--champagne); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(199, 154, 91, 0.3);
  padding: 10px 2px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 19px;
  transition: border-color 0.3s;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--ivory); font-family: var(--sans); font-size: 15px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--champagne);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(199, 154, 91, 0.18);
  padding: 60px 0 calc(var(--frame) + 40px);
  text-align: center;
}
.footer-mark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.04em;
}
.footer-mark span { color: var(--champagne); font-style: italic; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 26px 0;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--champagne); }
.footer-copy { font-size: 13px; color: var(--stone); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 12, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(88vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-caption {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--ivory);
  font-size: 34px;
  font-family: var(--serif);
  cursor: pointer;
  padding: 18px;
  transition: color 0.3s;
  line-height: 1;
}
.lightbox button:hover { color: var(--champagne); }
.lb-close { top: 22px; right: 30px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--champagne);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
}

@media (max-width: 720px) {
  :root { --frame: 8px; }
  section { padding: 80px 0; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(23, 19, 16, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 16px; }
  .nav-toggle { display: block; }
  .masonry { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .hero-scroll { display: none; }
  .cta { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Packages ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 60px;
  align-items: stretch;
}
.package {
  border: 1px solid rgba(199, 154, 91, 0.25);
  padding: 46px 36px 42px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--ink-2);
  transition: border-color 0.4s, transform 0.4s;
}
.package:hover { border-color: var(--champagne); transform: translateY(-6px); }
.package.featured { border-color: var(--champagne); background: var(--ink-3); }
.package-tag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--champagne);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 4px 16px 3px;
  white-space: nowrap;
}
.package h3 {
  font-size: 32px;
  text-align: center;
}
.package-price {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--champagne);
  text-align: center;
  margin: 10px 0 6px;
}
.package-desc {
  font-size: 14.5px;
  color: var(--stone);
  text-align: center;
  margin-bottom: 28px;
}
.package ul {
  list-style: none;
  margin: 0 0 34px;
  flex: 1;
}
.package li {
  padding: 11px 0 11px 26px;
  font-size: 15.5px;
  color: var(--ivory-dim);
  border-bottom: 1px solid rgba(199, 154, 91, 0.12);
  position: relative;
}
.package li:last-child { border-bottom: 0; }
.package li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 7px; height: 7px;
  border: 1px solid var(--champagne);
  transform: rotate(45deg);
}
.package .btn { margin-top: 0; width: 100%; text-align: center; }
.packages-note {
  text-align: center;
  margin-top: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ivory-dim);
}
@media (max-width: 980px) {
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
