/* ============================================================
   Amy Photography — warm portraits & family aesthetic
   ============================================================ */

/* ---------- Fonts (self-hosted — GDPR: no Google CDN requests) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/jost-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #faf6f0;
  --sand: #f1e8dc;
  --ink: #3d3630;
  --ink-soft: #6b6158;
  --terracotta: #c47a5a;
  --terracotta-dark: #a8613f;
  --terracotta-text: #9a5535;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(61, 54, 48, 0.10);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 5rem; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--terracotta-text);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--terracotta-dark);
  color: var(--white);
  padding: 0.85rem 2.1rem;
  border: 1px solid var(--terracotta-dark);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn:hover { background: #8f4e30; border-color: #8f4e30; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}

.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(61, 54, 48, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
}

.logo {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover { color: var(--terracotta-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(250, 246, 240, 0.65);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s;
}

.hero-arrow:hover { background: var(--cream); }

.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(250, 246, 240, 0.45), transparent 20%),
    linear-gradient(100deg, rgba(250, 246, 240, 0.8) 0%, rgba(250, 246, 240, 0.42) 45%, rgba(250, 246, 240, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 8rem 4rem;
  max-width: 640px;
  margin-left: max((100% - 1120px) / 2, 4%);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.25rem 0 2rem;
  max-width: 44ch;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Quote strip ---------- */
.quote-strip {
  background: var(--sand);
  padding-block: 3.5rem;
}

.quote-strip blockquote {
  background: none;
  box-shadow: none;
  padding: 0;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.quote-strip blockquote p {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin-bottom: 1.25rem;
}

/* ---------- Sections ---------- */
.section { padding-block: 6rem; }

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

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 1.25rem;
  margin-top: 2.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  margin-bottom: 1.25rem;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.about-text p { margin-bottom: 1.25rem; color: var(--ink-soft); }

/* ---------- Quotes ---------- */
blockquote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

blockquote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro p { color: var(--ink-soft); margin-bottom: 1.5rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2.25rem;
}

.field { margin-bottom: 1.4rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field label,
.contact-form legend {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.field label span { color: var(--ink-soft); font-size: 0.8rem; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(61, 54, 48, 0.18);
  border-radius: 6px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--terracotta-dark);
  outline-offset: 1px;
  border-color: var(--terracotta-dark);
}

fieldset.field { border: none; padding: 0; }

.radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.radio input {
  accent-color: var(--terracotta);
  width: 1.05rem;
  height: 1.05rem;
}

.botcheck { display: none; }

.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status:empty { margin: 0; }
.form-status.err { color: #a8402f; }

.contact-list {
  list-style: none;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
}

.contact-list li { margin-bottom: 0.5rem; }

.contact-list a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-list a:hover { color: var(--terracotta-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a { color: var(--cream); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 26, 22, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .gallery { columns: 2; }
}

@media (max-width: 640px) {
  .nav { padding-block: 1rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid rgba(61, 54, 48, 0.08);
    display: none;
  }

  .nav-links.open { display: flex; }

  .gallery { columns: 2; column-gap: 0.75rem; }
  .gallery-item { margin-bottom: 0.75rem; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.75rem 1.4rem; }

  .section { padding-block: 4rem; }

  .hero-arrow { width: 36px; height: 36px; top: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}
