/* ============================================================
   Stephen O'Sullivan Photography — Stylesheet
   Aesthetic: Editorial luxury — dark, cinematic, refined
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --ink:       #111010;
  --cream:     #f5f0eb;
  --warm:      #c8a97e;
  --warm-dim:  #a07850;
  --mid:       #4a4540;
  --light:     #e8e2da;
  --white:     #ffffff;
  --overlay:   rgba(17,16,16,0.55);

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', sans-serif;

  --nav-h: 72px;
  --max:   1200px;
  --gap:   clamp(2rem, 5vw, 5rem);
}

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

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-nav.scrolled {
  background: rgba(17,16,16,0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200,169,126,0.15);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1.2;
}
.nav-logo span { display: block; font-style: italic; font-size: 0.78rem; color: var(--warm); letter-spacing: 0.12em; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--warm); }
.nav-cta {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--warm);
  color: var(--warm);
  padding: 0.55rem 1.3rem;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--warm); color: var(--ink); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(17,16,16,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--warm); }
.nav-drawer .drawer-contact {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--mid);
  text-align: center;
}

/* ── Sections & Layout ── */
.section { padding: var(--gap) clamp(1.5rem, 5vw, 4rem); }
.section--wide { max-width: var(--max); margin-inline: auto; }
.section--light { background: var(--cream); color: var(--ink); }
.section--mid { background: #1a1816; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.italic { font-style: italic; }
p { max-width: 65ch; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-primary {
  background: var(--warm);
  color: var(--ink);
  border: 1px solid var(--warm);
}
.btn-primary:hover { background: transparent; color: var(--warm); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,240,235,0.4);
}
.btn-outline:hover { border-color: var(--warm); color: var(--warm); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-whatsapp:hover { background: #1aad53; border-color: #1aad53; }

/* ── Divider ── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--warm);
  margin: 1.5rem 0;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  height: clamp(280px, 40vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  margin-top: var(--nav-h);
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,16,16,0.9) 0%, rgba(17,16,16,0.3) 100%);
}
.page-hero-content { position: relative; z-index: 1; }

/* ── Footer ── */
.site-footer {
  background: #0d0c0c;
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem;
  border-top: 1px solid rgba(200,169,126,0.15);
}
.footer-grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { font-size: 0.85rem; color: var(--light); margin-top: 1rem; max-width: 38ch; line-height: 1.8; }
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.2rem;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.85rem;
  color: var(--light);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--light);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--warm); color: var(--warm); }
.footer-bottom {
  max-width: var(--max);
  margin-inline: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--light);
}
.footer-awards { display: flex; gap: 1.5rem; align-items: center; }
.footer-awards img { height: 84px; width: auto; opacity: 1; transition: transform 0.2s; }
.footer-awards img:hover { transform: scale(1.06); }

/* ── Testimonial card ── */
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 2.5rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--warm);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
}
.testimonial-card p { font-size: 0.95rem; font-style: italic; color: var(--light); line-height: 1.85; }
.testimonial-card cite { display: block; margin-top: 1.2rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm); font-style: normal; }

/* ── Popup / Modal ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17,16,16,0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.popup-overlay.show { display: flex; }
.popup-box {
  background: #1a1816;
  border: 1px solid rgba(200,169,126,0.3);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 520px;
  width: 100%;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none; border: none;
  color: var(--mid);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--cream); }
.popup-box h3 { margin-bottom: 0.5rem; }
.popup-box p { font-size: 0.88rem; color: var(--mid); margin-bottom: 1.8rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.4rem;
}
.form-field input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-field input:focus { border-color: var(--warm); }
.form-field input::placeholder { color: var(--mid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

.footer-note {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-note p {
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--light);
  margin-bottom: 0.75rem;
}
.footer-note a {
  color: var(--warm);
  border-bottom: 1px solid rgba(200,169,126,0.25);
}
.footer-note a:hover { color: var(--cream); }

/* ── Lead forms (popup + contact page embed) ── */
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form-row { display: flex; gap: 16px; }
.lead-form-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lead-form-field--full { width: 100%; }
.lead-form-field label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-transform: uppercase;
}
.lead-form-field input,
.lead-form-field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  border-radius: 2px;
}
.lead-form-field input:focus,
.lead-form-field select:focus { outline: none; border-color: var(--warm); }
.lead-form-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 14px 40px;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lead-form-submit:hover { background: #b8935f; }
.lead-form-submit:disabled { opacity: 0.6; cursor: default; }
.lead-form-status { font-family: var(--sans); font-size: 14px; margin: 0; min-height: 20px; }
.lead-form-status.is-error { color: #b3261e; }
.lead-form-status.is-success { color: #2e7d32; }
@media (max-width: 640px) { .lead-form-row { flex-direction: column; } }

/* popup */
.lead-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(17,16,16,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.lead-popup-overlay[hidden] { display: none; }
.lead-popup-card {
  background: var(--cream);
  max-width: 960px; width: 100%;
  display: flex; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.lead-popup-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 28px; line-height: 1;
  color: var(--ink); cursor: pointer;
}
.lead-popup-image { flex: 0 0 38%; display: none; }
.lead-popup-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-popup-form-wrap { flex: 1; padding: 48px 44px; }
.lead-popup-title {
  font-family: var(--serif);
  font-size: 34px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  margin: 0 0 28px;
}
@media (min-width: 900px) { .lead-popup-image { display: block; } }

.lead-form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* contact page: override label/input for dark background context */
.contact-form-box .lead-form-field label { color: var(--cream); }
.lead-form--embedded { max-width: 640px; }
