/* ============================================================================
   West Coast Prenup — Desktop-first implementation of the Figma frame
   "West Coast Prenup - V2 - Desktop" (1440 × 3218)
   ========================================================================== */

/* ---------------------------------------------------------------- Fonts -- */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- Tokens -- */
:root {
  /* Brand palette (sampled directly from the Figma layers) */
  --c-ink:            #173c3a;  /* headings, solid buttons, footer field   */
  --c-ink-soft:       #315b55;  /* nav links, icon badge, deco strokes     */
  --c-eyebrow:        #58706a;  /* section eyebrows                        */
  --c-eyebrow-alt:    #61736d;  /* trust eyebrow                           */
  --c-body:           #4b5c56;  /* primary body copy                       */
  --c-body-hero:      #53625d;  /* hero body copy                          */
  --c-muted:          #6f7773;  /* secondary body copy                     */
  --c-step-no:        #82928d;  /* process step numerals                   */
  --c-rule:           #d9ddd4;  /* hairlines, card borders                 */
  --c-surface:        #ffffff;
  --c-surface-warm:   #f4f2ed;  /* services section field                  */
  --c-nav-rule:       rgba(23, 60, 58, 0.22);

  /* Type */
  --font-display: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout — the 1440 frame uses a 100px gutter and a 1240px content column */
  --gutter: clamp(24px, 6.944vw, 100px);
  --card-gutter: clamp(16px, 3.333vw, 48px);
  --content-max: 1240px;

  /* Marquee */
  --slide: 250px;
  --slide-gap: 24px;
  --marquee-duration: 70s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* In-page nav targets get a little breathing room above the section edge */
:target { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--c-ink-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--c-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------ Structure -- */
.page { position: relative; }

.wrap {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------- Shared components -- */
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.26px;
  color: var(--c-ink);
}

.eyebrow,
.kicker__text {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-eyebrow);
}

.kicker {
  display: flex;
  align-items: center;
  height: 14px;
  --kicker-col: 240px;
}
.kicker__text {
  flex: 0 0 var(--kicker-col);
  color: var(--c-eyebrow-alt);
  letter-spacing: 1.4px;
}
/* The trust kicker is drawn in a 220px box in the frame, which trims the
   trailing word off the visible line. Reproduced verbatim. */
.trust .kicker__text {
  flex-basis: 220px;
  height: 14px;
  margin-right: 20px;
  overflow: hidden;
}
.kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-rule);
}
.kicker--services { --kicker-col: 237px; height: 13px; }
.kicker--process  { --kicker-col: 104px; height: 13px; }
.kicker--services .kicker__text,
.kicker--process .kicker__text {
  color: var(--c-eyebrow);
  letter-spacing: 1.5px;
}

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 42px;
  /* Transparent by default so the hover stroke costs no layout shift */
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Both filled buttons drop their fill on hover and keep only a stroke,
   matching the resting state of the service card links. */
.btn--solid { background: var(--c-ink); color: #fff; }
.btn--solid:hover {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--outline {
  width: 168px;
  height: 38px;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
}
.btn--outline:hover { background: var(--c-ink); color: #fff; }

/* Caption burned into the bottom-left of a photograph */
.media-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 5px rgba(23, 61, 59, 0.7);
}

/* ==========================================================================
   LANDSCAPE — coastal photograph layered behind the header and hero
   ========================================================================== */
.landscape {
  position: absolute;
  inset: 0 0 auto;
  height: 684px;
  overflow: hidden;
  pointer-events: none;
}
.landscape__photo {
  position: absolute;
  top: -104px;
  left: 0;
  width: 103.125%;   /* 1485 / 1440 */
  min-width: 100%;
  height: 836px;
  object-fit: cover;
  max-width: none;
}
.landscape__fade { position: absolute; left: 0; right: 0; }
.landscape__fade--left {
  top: 0;
  height: 684px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.85) 39.904%,
    rgba(244, 229, 217, 0.375) 63.942%,
    rgba(232, 204, 178, 0) 85.096%,
    rgba(232, 204, 178, 0) 100%);
}
.landscape__fade--right {
  top: 0;
  height: 684px;
  background: linear-gradient(90deg,
    rgba(232, 204, 178, 0) 0%,
    rgba(232, 204, 178, 0) 34.135%,
    rgba(232, 204, 178, 0.26) 100%);
}
.landscape__fade--bottom {
  top: 159px;
  height: 526px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 65%,
    #fff 100%);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: relative; }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 78px;
}
/* The rule is inset to the content column rather than the wrap's full width,
   so it starts and ends level with every heading and kicker line below it. */
.site-header__inner::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--c-nav-rule);
}
/* True hairline where the display can render one */
@media (min-resolution: 2dppx) {
  .site-header__inner::after { height: 0.5px; }
}
.site-header__logo { flex: none; }
.site-header__logo img { width: 155px; height: 39px; }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 25px;
  white-space: nowrap;
}
.site-nav__list li { line-height: 1.23; }
.site-nav__list a {
  font-size: 13px;
  line-height: 1.23;
  color: var(--c-ink-soft);
  transition: color .2s ease;
}
.site-nav__list a:hover { color: var(--c-ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--c-nav-rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--c-ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__box {
  width: 14px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;           /* keep the marquee's shadow above the next section's
                           background, which would otherwise clip it flat */
  display: flow-root;   /* contain the card's top margin */
  height: 660px;
}
/* Sits inside .wrap so it tracks the same content column as every other
   section, including where that column centres above 1440px. */
.hero > .wrap { padding-top: 84px; }
.hero__card { max-width: 769px; }
.hero__headline {
  margin-top: 15px;
  font-family: var(--font-display);
  font-size: 55px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -2.2px;
  color: var(--c-ink);
}
.hero__body {
  max-width: 658px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body-hero);
}
.hero .btn--solid { margin-top: 25px; }

/* ------------------------------------------------------------- Marquee -- */
.marquee {
  position: absolute;
  top: 385px;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;   /* the taller clip box overlaps the section below */
  /* Generous block padding so the card shadows fall inside the clip box
     instead of being sheared off at a hard edge. */
  padding-block: 20px 44px;
  margin-block: -20px -44px;
  --marquee-fade: clamp(48px, 10vw, 150px);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    #000 var(--marquee-fade),
    #000 calc(100% - var(--marquee-fade)),
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0,
    #000 var(--marquee-fade),
    #000 calc(100% - var(--marquee-fade)),
    transparent 100%);
}
.marquee__track {
  display: flex;
  gap: var(--slide-gap);
  width: max-content;
  margin-left: -128px;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}
.marquee__item {
  position: relative;
  flex: none;
  width: var(--slide);
  height: var(--slide);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 22px -8px rgba(23, 60, 58, 0.42);
}
.marquee__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Crops carried over verbatim from the Figma image fills */
.marquee__img--crop-b { width: 177.78%; left: -74.71%; }
.marquee__img--crop-c { width: 177.78%; left: -71.99%; }
.marquee__img--crop-e { width: 127.86%; height: 191.79%; left: -14.07%; top: -74.65%; }

.marquee .media-label { left: 14px; bottom: 15px; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--marquee-shift, 2740px) * -1), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ==========================================================================
   TRUST
   ========================================================================== */
.trust {
  position: relative;
  background: var(--c-surface);
  padding: 63px 0 42px;
}
.trust__body {
  display: flex;
  align-items: flex-start;
  min-height: 230px;
  margin-top: 21px;
}
.trust__intro {
  flex: none;
  width: 480px;
  margin-top: 7px;
}
.trust__lede {
  max-width: 456px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body);
}

.assurances {
  display: flex;
  align-items: flex-start;
  gap: 29px;
  margin-left: 83px;
}
.assurance {
  position: relative;
  flex: none;
  width: 213.333px;
}
.assurance + .assurance::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 18px;
  width: 1px;
  height: 194px;
  background: var(--c-rule);
}
.assurance__inner { padding-top: 30px; }
.assurance__inner--a { width: 189.333px; }
.assurance__inner--b { width: 213.667px; padding-left: 23.667px; }
.assurance__inner--c { width: 195.333px; padding-left: 24.333px; }

.assurance__icon { display: block; }
.assurance__icon img { width: 44px; height: 44px; }
/* Each Lucide glyph carries a different amount of padding inside its 24px
   box, so nudge each one to sit optically flush with the text column. */
.assurance__inner--a .assurance__icon { margin-left: -3.5px; }
.assurance__inner--b .assurance__icon { margin-left: -1.5px; }
.assurance__inner--c .assurance__icon { margin-left: -5.5px; }

.assurance__text { margin-top: 30px; }
.assurance__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-ink);
}
.assurance__body {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--c-muted);
}
.assurance__inner--b .assurance__body { max-width: 177px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  background: var(--c-surface-warm);
  padding: 73px 0 81px;
}
.services__head {
  display: flex;
  align-items: flex-start;
  height: 124px;
  margin-top: 20px;
}
.services__head .section-heading {
  flex: none;
  width: 600px;
  margin-top: 11px;
}
.services__lede {
  flex: none;
  width: 356px;
  margin: 16px 0 0 303px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-muted);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1440px;
  margin: 25px auto 0;
  padding-inline: var(--card-gutter);
}

.service-card {
  position: relative;
  display: grid;
  /* Even split on every row, so the photo/copy divide lands on the same
     centreline across all three cards. */
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--c-rule);
  border-radius: 14px;
  background: var(--c-surface);
}

.service-card__media {
  position: relative;
  overflow: hidden;
}
/* Taken out of flow so the photograph never dictates the row height —
   the 380px card height owns it. */
.service-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card--consultation .service-card__media img { object-position: 50% 60%; }
.service-card--marriage .service-card__media img { object-position: 50% 71%; }

/* The engagement row mirrors the layout: copy left, photograph right */
.service-card--engagement .service-card__media { order: 2; }
.service-card--engagement .service-card__copy { order: 1; }

.service-card__copy { background: var(--c-surface); }
.service-card__inner { padding: 32px 34px; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.64px;
  color: var(--c-ink);
}
.service-card__body {
  max-width: 274px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-body);
}
.service-card--consultation .service-card__body { max-width: 247px; }
.service-card .btn--outline { margin-top: 22px; }

.service-card--engagement .service-card__inner { text-align: right; }
.service-card--engagement .service-card__body { margin-left: auto; }

.service-card__deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.service-card__deco--pen   { right: 39px; bottom: 39px; width: 174px; height: 174px; }
.service-card__deco--ring  { left: 31px;  bottom: 31px; width: 176px; height: 176px; }
.service-card__deco--rings { right: 40px; bottom: 44px; width: 168px; height: 168px; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
  background: var(--c-surface);
  padding: 70px 0 26px;
}
.process__body {
  display: flex;
  align-items: flex-start;
  min-height: 220px;
  margin-top: 26px;
}
.process__intro {
  flex: none;
  width: 460px;
}
.process__intro .section-heading { margin-top: 15px; }
.process__lede {
  max-width: 371px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-muted);
}

.steps {
  flex: none;
  width: 710px;
  margin-left: 70px;
}
.step {
  display: flex;
  align-items: flex-start;
  height: 60px;
}
.step + .step { border-top: 1px solid var(--c-rule); }
.step__no {
  flex: none;
  width: 72px;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  color: var(--c-step-no);
}
.step__text { margin-left: 18px; padding-top: 12px; }
.step__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  color: var(--c-ink);
}
.step__desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: var(--c-muted);
}

/* ==========================================================================
   FOOTER CTA
   ========================================================================== */
.footer-cta {
  background: var(--c-ink);
  padding: 58px 0 73px;
}
.footer-cta__wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 100px;
  gap: 40px;
}
.footer-cta__heading {
  font-family: var(--font-display);
  font-size: 39px;
  line-height: 1.04;
  letter-spacing: -1.17px;
  color: #fff;
}
.footer-cta .btn--light { flex: none; margin-top: 30px; }

/* ==========================================================================
   RESPONSIVE — tablet
   ========================================================================== */
@media (max-width: 1200px) {
  .site-nav__list { gap: 20px; }
  .site-nav__list a { font-size: 12px; }

  .hero { height: 620px; }
  .hero__headline { font-size: clamp(38px, 4.4vw, 55px); letter-spacing: -1.6px; }
  .marquee { top: 350px; }

  .trust { padding-bottom: 64px; }
  .trust__body { flex-direction: column; gap: 48px; }
  .trust__intro { width: 100%; max-width: 560px; }
  .assurances { margin-left: 0; width: 100%; gap: 32px; }
  .assurance { flex: 1 1 0; width: auto; }
  .assurance__inner,
  .assurance__inner--a,
  .assurance__inner--b,
  .assurance__inner--c { width: auto; padding-left: 0; }
  .assurance__inner--b .assurance__body { max-width: none; }
  .assurance + .assurance::before { left: -16px; }

  .services__head { flex-direction: column; height: auto; gap: 24px; }
  .services__head .section-heading { width: auto; margin-top: 0; }
  .services__lede { margin: 0; width: 100%; max-width: 560px; }

  .service-card__deco--pen,
  .service-card__deco--rings { right: 24px; bottom: 24px; }
  .service-card__deco--ring { left: 24px; bottom: 24px; }

  .process { padding-bottom: 72px; }
  .process__body { flex-direction: column; gap: 48px; }
  .process__intro { width: 100%; max-width: 560px; }
  .steps { width: 100%; margin-left: 0; }

  .footer-cta__heading { font-size: 34px; }
}

/* ==========================================================================
   RESPONSIVE — mobile
   ========================================================================== */
@media (max-width: 760px) {
  :root { --slide: 190px; --slide-gap: 16px; }

  .landscape,
  .landscape__fade--left,
  .landscape__fade--right { height: 620px; }
  .landscape__fade--bottom { top: 220px; height: 400px; }
  .landscape__photo { width: auto; min-width: 140%; height: 620px; top: 0; }
  .landscape__fade--left {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(244, 229, 217, 0.25) 100%);
  }

  .site-header__inner { height: 68px; }
  .site-header__logo img { width: 128px; height: 32px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 20;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--c-rule);
    box-shadow: 0 12px 28px -18px rgba(23, 60, 58, 0.5);
  }
  .site-header:not(.is-nav-open) .site-nav { display: none; }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav__list li { width: 100%; }
  .site-nav__list a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--c-rule);
  }
  .site-nav__list li:last-child a { border-bottom: 0; }

  .hero { height: auto; padding-bottom: 56px; }
  .hero > .wrap { padding-top: 56px; }   /* .wrap already supplies the gutter */
  .hero__card { max-width: none; }
  .hero__headline { font-size: 38px; letter-spacing: -1.1px; line-height: 1.02; }
  .hero__body { font-size: 15px; }
  .hero .btn--solid { width: 100%; max-width: 260px; }

  .marquee {
    position: static;
    margin: 40px 0 -16px;
    padding-block: 14px 36px;
    --marquee-fade: 32px;
  }
  .marquee__track { margin-left: 0; }

  .kicker { --kicker-col: auto; height: auto; }
  .kicker__text { flex: 0 1 auto; padding-right: 16px; }
  .kicker--services, .kicker--process { --kicker-col: auto; height: auto; }

  .section-heading { font-size: 32px; letter-spacing: -0.8px; }

  .trust { padding: 48px 0 56px; }
  .trust__body { margin-top: 24px; gap: 40px; }
  .trust__lede { font-size: 15px; }
  .assurances { flex-direction: column; gap: 32px; }
  .assurance { width: 100%; }
  .assurance + .assurance::before {
    left: 0;
    top: -16px;
    width: 100%;
    height: 1px;
  }
  .assurance__inner { padding-top: 0; }

  .services { padding: 48px 0 56px; }
  .service-list { gap: 16px; margin-top: 28px; }
  .service-card { grid-template-columns: 1fr; min-height: 0; }
  .service-card__media { order: 1; height: 240px; }
  .service-card--engagement .service-card__media { order: 1; }
  .service-card__copy,
  .service-card--engagement .service-card__copy { order: 2; }
  .service-card__inner { padding: 24px; }
  .service-card--engagement .service-card__inner { text-align: left; }
  .service-card--engagement .service-card__body { margin-left: 0; }
  .service-card__body { max-width: none; }
  .service-card--consultation .service-card__body { max-width: none; }
  .service-card__title { font-size: 28px; }
  .service-card__deco { display: none; }

  .process { padding: 48px 0 56px; }
  .process__body { margin-top: 24px; gap: 32px; }
  .process__lede { font-size: 15px; }
  .step { height: auto; padding: 16px 0; }
  .step__no { width: 56px; padding-top: 0; font-size: 20px; }
  .step__text { padding-top: 0; }

  .footer-cta { padding: 48px 0 56px; }
  .footer-cta__wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-cta__heading { font-size: 30px; letter-spacing: -0.6px; }
  .footer-cta .btn--light { margin-top: 0; width: 100%; max-width: 260px; }
}
