/* ==========================================================================
   The Weddingwale
   ========================================================================== */

:root {
  /* Palette (sampled from the approved design) */
  --ink: #241e1b;
  --ink-soft: #6b605a;
  --cream: #fbf7f0;
  --cream-card: #fffdf9;
  --sand: #e9d9c6;
  --sage: #52684f;
  --wine: #721d35;
  --wine-dark: #5a1428;
  --rose: #813948;
  --gold: #b8924a;
  --gold-deep: #98702a;
  --line: #ddd2c3;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --header-h: 80px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-pad: clamp(4.5rem, 10.5vw, 9.5rem);
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--wine);
  margin-bottom: 1.5rem;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.92); }
.eyebrow--line {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(251, 247, 240, 0.9);
}
.eyebrow--line::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title--light { color: var(--cream); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn--primary { background: var(--wine); color: var(--cream); }
.btn--primary:hover { background: var(--wine-dark); }
.btn--ghost {
  border-color: rgba(251, 247, 240, 0.55);
  color: var(--cream);
}
.btn--ghost:hover { background: rgba(251, 247, 240, 0.12); border-color: var(--cream); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn--sm { padding: 0.8rem 1.25rem; border-radius: 9px; }
.btn--block { width: 100%; padding-block: 1.1rem; border-radius: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--wine);
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap 0.25s ease;
}
.text-link:hover { gap: 1.1rem; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  /* A touch lighter than the page cream, with a hairline and a soft shadow so it reads as its own layer */
  background: rgba(255, 253, 249, 0.97);
  border-bottom: 1px solid rgba(36, 30, 27, 0.09);
  box-shadow: 0 8px 24px -14px rgba(36, 30, 27, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.99);
  box-shadow: 0 10px 28px -14px rgba(36, 30, 27, 0.38);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
}
.brand__logo { flex: none; width: 50px; height: 50px; }
.brand--light { color: var(--cream); font-size: 1.55rem; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__list { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list a {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle__bar {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(640px, 100svh, 860px);
  padding-top: var(--header-h);
  color: var(--cream);
  background:
    radial-gradient(70% 90% at 18% 65%, rgba(122, 76, 44, 0.28), rgba(122, 76, 44, 0) 70%),
    #251d19;
  overflow: hidden;
  isolation: isolate;
}
/* The photo sits on the right and dissolves into the dark left side, where the headline lives. */
.hero__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: -2;
  width: 72%; height: 100%;
  object-fit: cover;
  object-position: 40% 42%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(37, 29, 25, 0.6) 0%, rgba(37, 29, 25, 0.25) 42%, rgba(37, 29, 25, 0) 64%),
    linear-gradient(180deg, rgba(37, 29, 25, 0.45) 0%, rgba(37, 29, 25, 0) 22%);
}
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 3rem;
}
.hero .eyebrow--line { margin-bottom: 1.5rem; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 6vw + 0.5rem, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.hero__title span { display: block; }
.hero__lede {
  max-width: 38rem;
  margin-top: 2.25rem;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.125rem);
  line-height: 1.65;
  color: rgba(251, 247, 240, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero__regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(251, 247, 240, 0.18);
  background: rgba(36, 30, 27, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__regions li {
  padding: 1.15rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.85);
}

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

.section { padding-block: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage); color: var(--cream); }

/* Numbers */

.stats { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--cream); }
.stats__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(36, 30, 27, 0.28);
}
.stats__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--wine);
  font-variant-numeric: lining-nums;
}
.stats__label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.js .stats__item:nth-child(2) { transition-delay: 0.1s; }
.js .stats__item:nth-child(3) { transition-delay: 0.2s; }
/* Sits right after the hero, so the story section needs less air above it. */
.stats + .story { padding-top: clamp(4rem, 7vw, 6.5rem); }

/* Story */

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.story__copy p:not(.eyebrow) {
  max-width: 34.5rem;
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
}
.story__copy .section-title { margin-bottom: 2rem; }
.story__copy p:not(.eyebrow) + p { margin-top: 1.25rem; }
.story__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(70, 40, 20, 0.35);
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }

/* Celebrations */

.celebrations__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23.5rem);
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.celebrations__intro {
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.card--offset { margin-top: 3.5rem; }
.celebrations__more { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.celebrations__more .text-link { margin-top: 0; }
.card__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px -18px rgba(70, 40, 20, 0.45);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}
.card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.card__meta {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}
.card__arrow {
  color: var(--wine);
  font-size: 1rem;
  line-height: 1.6;
  transition: transform 0.3s ease;
}
.card:hover .card__arrow { transform: translate(2px, -2px); }

/* Process */

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42rem);
  gap: 3rem clamp(2rem, 4vw, 3rem);
}
.process .section-title { font-size: clamp(2.1rem, 3.4vw, 3rem); }

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-deep);
  padding-top: 0.15rem;
}
.step__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.step p {
  margin-top: 0.7rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* Promise */

.promise { padding-block: clamp(4.5rem, 9vw, 8.5rem); text-align: center; }
.promise .eyebrow { margin-bottom: 2rem; }
.promise__quote {
  max-width: 46rem;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--cream);
  text-wrap: balance;
}
.promise__sign {
  margin-top: 2.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.62);
}

/* Inquire */

.inquire {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  color: var(--cream);
  background: var(--rose);
  isolation: isolate;
  overflow: hidden;
}
.inquire__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.inquire__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(129, 57, 72, 0.88);
}
.inquire__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
  align-items: start;
  gap: 3rem clamp(2.5rem, 6vw, 5rem);
}
.inquire .section-title {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.08;
  text-wrap: wrap;
}
.inquire__lede {
  max-width: 30rem;
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.95;
  color: rgba(251, 247, 240, 0.88);
}
.inquire__facts { margin-top: 2.5rem; display: grid; gap: 1rem; }
.inquire__facts li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: rgba(251, 247, 240, 0.9);
}
.inquire__facts .icon { flex: none; color: #d9a84e; }
.inquire__facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(251, 247, 240, 0.4); }
.inquire__facts a:hover { text-decoration-color: currentColor; }

.inquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--cream-card);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(30, 6, 14, 0.5);
}
/* Spam trap, kept off-screen rather than display:none so naive bots still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbf6ef;
  border: 1px solid #e7dccd;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field input { height: 2.75rem; }
.field textarea { min-height: 6.6rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #756a63; opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(114, 29, 53, 0.15);
}
.field .is-invalid { border-color: #b3261e; }
.field .is-invalid:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }

.inquiry .btn--block { margin-top: 0.75rem; }
.inquiry__note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.inquiry__status {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage);
}
.inquiry__status:empty { display: none; }
.inquiry__status.is-error { color: #b3261e; }

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

.site-footer {
  padding-block: 2.75rem;
  background: var(--ink);
  color: var(--cream);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.site-footer__tag {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(251, 247, 240, 0.6);
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.site-footer__nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.72);
  transition: color 0.2s ease;
}
.site-footer__nav a:hover { color: var(--cream); }

/* ---------- Scroll reveal (only when JS is available) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .cards .reveal:nth-child(3) { transition-delay: 0.2s; }

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

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

@media (max-width: 1000px) {
  .story__grid,
  .process__grid,
  .inquire__grid { grid-template-columns: minmax(0, 1fr); }

  .story__copy p:not(.eyebrow) { max-width: none; }

  .celebrations__head { grid-template-columns: minmax(0, 1fr); }
  .celebrations__intro { max-width: 28rem; padding-bottom: 0; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--offset { margin-top: 0; }
}

@media (max-width: 1000px) {
  .hero__bg { width: 88%; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(37, 29, 25, 0.85) 0%, rgba(37, 29, 25, 0.45) 50%, rgba(37, 29, 25, 0.1) 80%),
      linear-gradient(180deg, rgba(37, 29, 25, 0.45) 0%, rgba(37, 29, 25, 0) 22%);
  }
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(255, 253, 249, 0.98);
    border-top: 1px solid rgba(36, 30, 27, 0.07);
    box-shadow: 0 20px 30px -20px rgba(36, 30, 27, 0.35);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .site-nav__list a { display: inline-block; padding-block: 0.6rem; font-size: 0.8rem; }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__bg {
    width: 100%;
    object-position: 62% center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__shade {
    background: linear-gradient(180deg, rgba(37, 29, 25, 0.88) 0%, rgba(37, 29, 25, 0.74) 100%);
  }
  .hero__content { padding-block: 4rem 3.5rem; }
  .hero__title span { display: inline; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__regions { grid-template-columns: repeat(2, 1fr); }
  .hero__regions li:nth-child(n + 3) { border-top: 1px solid rgba(251, 247, 240, 0.12); }

  .cards { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

  .step { grid-template-columns: 3.5rem minmax(0, 1fr); padding-block: 1.5rem; }

  .inquiry { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .stats__list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .stats__item { padding-top: 1.5rem; }
}
