/* ============================================================
   Weddings by Daria — weddingsbydaria.com
   Palette: ivory shell, warm sand, soft ink, dusk blue, champagne
   Type: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

:root {
  --ivory: #f7f4ee;
  --sand: #ece5d8;
  --ink: #23231f;
  --ink-soft: #4c4a43;
  --dusk: #6e7b84;
  --champagne: #a8894f;
  --champagne-deep: #8a6f3c;
  --white: #ffffff;
  --hairline: rgba(35, 35, 31, 0.16);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", sans-serif;

  --w-content: 1180px;
  --w-text: 680px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.display-xl { font-size: clamp(2.9rem, 7vw, 5.6rem); }
.display-lg { font-size: clamp(2.3rem, 4.5vw, 3.8rem); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.5rem); }

em, .it { font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

.eyebrow--dusk { color: var(--dusk); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--ivory); }

.btn--gold {
  border-color: var(--champagne);
  background: var(--champagne);
  color: var(--white);
}

.btn--gold:hover, .btn--gold:focus-visible {
  border-color: var(--champagne-deep);
  background: var(--champagne-deep);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--white); color: var(--ink); }

.text-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--champagne);
  padding-bottom: 0.35rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link:hover { color: var(--champagne-deep); }

:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-header.is-solid {
  background: rgba(247, 244, 238, 0.96);
  box-shadow: 0 1px 0 var(--hairline);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin-top: 0.25rem;
}

.site-header, .site-header a { color: var(--ink); }

.site-header.on-hero:not(.is-solid), .site-header.on-hero:not(.is-solid) a { color: var(--white); }
.site-header.on-hero:not(.is-solid) .brand-sub { color: rgba(255, 255, 255, 0.75); }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }

.main-nav a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--champagne); }

.header-actions { display: flex; align-items: center; gap: 1.6rem; }

.header-phone {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions .btn { padding: 0.7rem 1.7rem; }

.site-header.on-hero:not(.is-solid) .header-actions .btn--gold {
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.site-header.on-hero:not(.is-solid) .header-actions .btn--gold:hover {
  background: var(--white);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  position: relative;
  z-index: 130;
}

.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 20px; }

body.nav-open .nav-toggle span:nth-child(1) { top: 13px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}

.hero--short { min-height: 72svh; }

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

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(24, 26, 27, 0.72) 0%,
    rgba(24, 26, 27, 0.28) 42%,
    rgba(24, 26, 27, 0.18) 100%
  );
}

.hero-inner {
  width: 100%;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 2rem 11vh;
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.82); }

.hero h1 { margin: 1.4rem 0 2.4rem; max-width: 15ch; }

.hero h1 .kw {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.1rem; }

.hero-scroll {
  position: absolute;
  right: 2.2rem;
  bottom: 2.2rem;
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) 2rem; }

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

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

.container { max-width: var(--w-content); margin: 0 auto; }

.container--text { max-width: var(--w-text); margin: 0 auto; }

.section-head { max-width: var(--w-text); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.section-head h2 { margin-top: 1.2rem; }

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Editorial split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.split--tight { align-items: start; }

.split-media { position: relative; }

.split-media img { width: 100%; height: auto; }

.split-media .img-caption { margin-top: 0.9rem; }

.img-caption {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dusk);
}

/* Signature overlap: italic display line bleeding over image edge */

.overlap-line {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: var(--ink);
  margin-left: clamp(-3rem, -6vw, -6.5rem);
}

.section--ink .overlap-line { color: var(--ivory); }

/* Stacked duo images */

.duo { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.6rem; align-items: start; }

.duo figure:last-child { margin-top: clamp(2rem, 6vw, 5rem); }

/* ---------- Portfolio grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.gallery figure { position: relative; overflow: hidden; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.gallery figure:hover img { transform: scale(1.035); }

.gallery figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.gallery .wide { grid-column: span 2; }

.gallery .wide img { aspect-ratio: 3 / 2; }

/* ---------- Experience steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  counter-reset: step;
}

.step { border-top: 1px solid var(--hairline); padding-top: 1.6rem; }

.section--ink .step { border-top-color: rgba(247, 244, 238, 0.25); }

.step-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--champagne);
  display: block;
  margin-bottom: 0.9rem;
}

.step h3 { font-size: 1.55rem; margin-bottom: 0.8rem; }

.step p { font-size: 0.98rem; color: var(--ink-soft); }

.section--ink .step p { color: rgba(247, 244, 238, 0.78); }

/* ---------- Collections ---------- */

.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.collection {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: clamp(2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.collection--featured { border-color: var(--champagne); }

.collection .eyebrow { margin-bottom: 1.4rem; }

.collection h3 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); font-style: italic; font-weight: 400; }

.collection .price {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1rem 0 1.8rem;
}

.collection .price strong { color: var(--ink); font-weight: 500; }

.collection ul {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-bottom: 2.2rem;
  text-align: center;
}

.collection li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
}

.collection .btn { margin-top: auto; align-self: center; }

.collections-note {
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Testimonials ---------- */

.quote { max-width: 860px; margin: 0 auto; text-align: center; }

.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.4;
}

.quote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

.section--ink .quote cite { color: var(--champagne); }

.quote .stars { color: var(--champagne); letter-spacing: 0.35em; margin-bottom: 1.6rem; font-size: 0.9rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }

.cta-band h2 { max-width: 18ch; margin: 1.2rem auto 1.6rem; }

.cta-band p { max-width: 52ch; margin: 0 auto 2.6rem; color: var(--ink-soft); }

.section--ink .cta-band p { color: rgba(247, 244, 238, 0.78); }

.cta-band .hero-ctas { justify-content: center; }

.cta-phone {
  display: block;
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.cta-phone:hover { color: var(--champagne); }

/* ---------- Forms ---------- */

.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.8rem; }

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.65rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--champagne-deep);
}

.form-actions { grid-column: 1 / -1; margin-top: 1rem; text-align: center; }

.form-status {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  min-height: 1.6em;
}

.form-status.is-error { color: #9c3f2e; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.82);
  padding: clamp(4rem, 7vw, 6rem) 2rem 2.5rem;
}

.footer-grid {
  max-width: var(--w-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(247, 244, 238, 0.16);
}

.footer-brand .brand-name { color: var(--ivory); }

.footer-brand p { font-size: 0.92rem; margin-top: 1.2rem; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.4rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.7rem; font-size: 0.92rem; }

.footer-col a { text-decoration: none; transition: color 0.3s ease; }

.footer-col a:hover { color: var(--champagne); }

.footer-meta {
  max-width: var(--w-content);
  margin: 2.2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 238, 0.55);
}

.footer-meta a { text-decoration: none; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  /* Home hero: keep both bride and groom in frame on narrow crops */
  .hero .hero-media img { object-position: 35% 50%; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    background: var(--ivory);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  body.nav-open .main-nav { opacity: 1; pointer-events: auto; }

  body.nav-open .site-header,
  body.nav-open .site-header .brand,
  body.nav-open .site-header .main-nav a,
  body.nav-open .site-header .nav-toggle { color: var(--ink); }

  .main-nav a { font-size: 0.95rem; }

  .nav-toggle { display: block; }

  .header-phone { display: none; }

  .split, .duo { grid-template-columns: 1fr; }

  .overlap-line { margin-left: 0; }

  .steps, .collections { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .gallery .wide { grid-column: span 2; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .inquiry-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding-left: 1.2rem; padding-right: 1.2rem; }

  .brand-name { font-size: 1.15rem; white-space: nowrap; }

  .brand-sub { display: none; }

  .header-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.68rem; }

  .hero-inner { padding-bottom: 14vh; }

  .hero-scroll { display: none; }

  .gallery { grid-template-columns: 1fr; }

  .gallery .wide { grid-column: auto; }

  .gallery img { aspect-ratio: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
