/* ==========================================================
   Sam & Bailey — Wedding Site
   Fonts (buy licenses before deploying):
     - Amoresa            (script — Canva font, paid license)
     - Playfair Display   (open license, Google Fonts)
     - Noto Serif Condensed (open license, Google Fonts)
   Once Amoresa is purchased, drop Amoresa.woff2 into a
   /fonts folder next to this file. The @font-face rule below
   will pick it up automatically; until then the site falls
   back to Pinyon Script (free stand-in).
   ========================================================== */

@font-face {
  font-family: 'Amoresa';
  src: url('fonts/Amoresa.woff2') format('woff2'),
       url('fonts/Amoresa.ttf') format('truetype');
  font-display: swap;
}

:root {
  --navy: #072a3a;
  --cream: #fffff9;
  --blue: #0d557e;
  --periwinkle: #90abca;
  --icy: #cfe4fc;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  font-family: 'Playfair Display', serif;
}

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--navy);
  overflow-x: hidden;
}

.script {
  font-family: 'Amoresa', 'Pinyon Script', cursive;
  font-weight: 400;
}

.rule {
  border: none;
  border-top: 1px solid var(--periwinkle);
  width: 100%;
}

/* ============ BUTTONS (animated) ============ */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--icy);
  font-family: 'Noto Serif', 'Noto Serif Condensed', serif;
  font-stretch: 66%;
  font-size: 16px;
  letter-spacing: 2.5px;
  text-decoration: none;
  padding: 18px 0;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover {
  background: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(7, 42, 58, .35);
}
.btn:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 2px 6px rgba(7, 42, 58, .3);
}

/* ============ HERO ============ */
.hero {
  display: flex;
  padding-left: 18px;
  gap: 22px;
}

.photo-strip {
  width: 232px;
  flex-shrink: 0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0; /* photos connect with no space between */
}
.strip-pair { display: contents; }
.photo-strip img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.strip-1 { height: 292px; }
.strip-2 { height: 332px; }
.strip-3 { height: 332px; }
.strip-4 { height: 306px; }

.hero-right {
  flex: 1;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
}

.name-card {
  background: var(--cream);
  text-align: center;
  padding: 135px 60px 118px;
}
.name {
  color: var(--blue);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 1px;
}
.amp {
  color: var(--blue);
  font-size: 40px;
  margin: 30px 0;
}
.name + .amp + .name { margin-top: 0; }
.date-block {
  width: 370px;
  margin: 60px auto 0;
}
.date {
  font-family: 'Amoresa', 'Pinyon Script', cursive;
  color: var(--periwinkle);
  font-size: 30px;
  padding: 14px 0;
}
.date sup { font-size: .6em; }

.nav {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
}
.nav-link {
  color: var(--icy);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 2px;
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--periwinkle);
  transition: width .3s ease, left .3s ease;
}
.nav-link:hover { color: var(--periwinkle); }
.nav-link:hover::after { width: 100%; left: 0; }
.nav-mono { height: 62px; width: auto; }

.invite-panel {
  background: var(--cream);
  position: relative;
  text-align: center;
  padding: 180px 40px 155px;
}
.floral { position: absolute; top: 8px; width: 185px; }
.floral-left { left: 6px; }
.floral-right { right: 0; }
.invite-line {
  font-style: italic;
  color: var(--blue);
  font-size: 29px;
  margin-bottom: 42px;
}
.invite-panel .btn { width: 240px; }

/* ============ DETAILS ============ */
.details {
  padding-top: 125px;
}
.section-title {
  color: var(--cream);
  text-align: center;
  font-weight: 400;
  font-size: 46px;
  letter-spacing: 2px;
}
.details-body {
  display: flex;
  margin-top: 95px;
  padding-bottom: 105px;
}
.details-left {
  width: 50%;
  position: relative;
}
.temple-wrap { position: relative; }
.temple-accent {
  position: absolute;
  left: 0;
  top: 58px;
  width: 429px; /* reaches the right edge of the temple photo */
  height: 174px;
  background: var(--periwinkle);
}
.temple-img {
  display: block;
  position: relative;
  z-index: 1;
  margin-left: 58px;
  width: 371px;
  height: 280px;
  object-fit: cover;
}
.floral-frame {
  margin: 132px 0 0 70px;
  width: 360px;
  height: 511px;
  background: url('images/img-007.jpg') center / cover;
  position: relative;
}
.framed-img {
  position: absolute;
  left: 10%;
  top: 7%;
  width: 80%;
  height: 86%;
  object-fit: cover;
  border: 3px solid var(--blue); /* dark blue to match the site palette */
}
.details-card {
  background: var(--cream);
  width: 432px;
  margin: 0 auto;
  align-self: flex-start;
  text-align: center;
  padding: 74px 30px 70px;
}
.event { margin-bottom: 56px; }
.event:last-child { margin-bottom: 0; }
.event .script {
  color: var(--blue);
  font-size: 38px;
  margin-bottom: 24px;
}
.event p {
  font-family: 'Noto Serif', 'Noto Serif Condensed', serif;
  font-stretch: 66%;
  color: var(--periwinkle);
  font-size: 19px;
  margin-bottom: 16px;
}

/* ============ REGISTRY ============ */
.registry-section {
  padding: 100px 0 0; /* full-bleed white panel — edges match the footer runner */
}
.registry-panel {
  background: var(--cream);
  position: relative;
  padding: 120px 0 120px;
  overflow: hidden;
}
.reg-floral { position: absolute; z-index: 1; }
.reg-tl { left: 26px; top: 20px; width: 240px; }
.reg-tr { right: 28px; top: 16px; width: 290px; }

/* mid florals: complete flower designs floating beside their cards */
.card-floral { position: absolute; pointer-events: none; }
.card-floral-left  { left: -255px; top: -40px; width: 250px; }
.card-floral-right { right: -245px; top: -90px; width: 225px; }

.registry-heading {
  width: 366px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.registry-title {
  color: var(--blue);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: 2px;
  padding: 12px 0;
}

.reg-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 307px 307px;
  justify-content: center;
  column-gap: 134px;
  row-gap: 114px; /* keeps the floral sprays flush with the card rows */
}
.reg-card {
  background: var(--cream);
  border: 3px solid var(--periwinkle);
  text-align: center;
  padding: 30px 25px 34px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.reg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(7, 42, 58, .18);
  border-color: var(--blue);
}
.reg-card .script {
  color: var(--blue);
  font-size: 34px;
  margin-bottom: 26px;
  white-space: nowrap;
}
.reg-card .btn { width: 100%; padding: 16px 0; }

/* ============ OUR STORY ============ */
.our-story {
  display: flex;
  align-items: flex-start;
  padding: 120px 0 130px 102px;
}
.lace-frame {
  width: 343px;
  height: 487px;
  flex-shrink: 0;
  background: url('images/deco-lace-frame.png') center / 100% 100% no-repeat;
  position: relative;
}
.lace-photo {
  position: absolute;
  left: 16.8%;
  top: 11.8%;
  width: 66.4%;
  height: 76.8%;
  object-fit: cover;
}
.story-text {
  flex: 1;
  text-align: center;
  margin-top: 110px; /* title sits slightly lower */
  padding: 0 50px;
}
.story-title {
  color: var(--cream);
  font-weight: 400;
  font-size: 64px;
}
.story-para {
  font-family: 'Noto Serif', 'Noto Serif Condensed', serif;
  font-stretch: 66%;
  color: var(--icy);
  font-size: 19px;
  line-height: 2;
  max-width: 520px;
  margin: 45px auto 0;
}

/* ============ FOOTER (full-screen runner) ============ */
.footer {
  background: var(--cream);
  width: 100%;
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-mono { height: 56px; }
.footer-navy { height: 61px; background: var(--navy); }

/* ============ MOBILE ============ */
@media (max-width: 820px) {
  /* ---- hero: photo pair / names / photo pair ---- */
  .hero { flex-direction: column; padding: 0; gap: 0; }
  .photo-strip, .hero-right { display: contents; }
  .strip-pair { display: flex; width: 100%; }
  .strip-pair img,
  .strip-1, .strip-2, .strip-3, .strip-4 { width: 50%; height: 62vw; }
  .pair-1 { order: 1; }
  .name-card { order: 2; margin: 12px 0; } /* small navy gaps around the names */
  .pair-2 { order: 3; }
  .nav { order: 4; }
  .invite-panel { order: 5; }

  .name-card { padding: 72px 24px 62px; }
  .name { font-size: 32px; letter-spacing: 1px; }
  .amp { font-size: 26px; margin: 20px 0; }
  .date-block { width: 82%; }
  .date { font-size: 22px; padding: 10px 0; }
  .rule { border-top: 1px solid var(--periwinkle); }

  /* ---- nav: monogram centered on top, links in one row ---- */
  .nav { height: auto; padding: 24px 8px 26px; gap: 16px; flex-wrap: wrap; }
  .nav-mono { order: -1; width: 100%; height: 40px; object-fit: contain; }
  .nav-link { font-size: 12.5px; letter-spacing: 1.5px; }

  /* ---- buttons ---- */
  .btn { font-size: 13px; letter-spacing: 2px; padding: 14px 0; }

  /* ---- invites ---- */
  .invite-panel { padding: 118px 22px 82px; }
  .floral { width: 106px; top: 6px; }
  .invite-line { font-size: 20px; margin-bottom: 30px; }
  .invite-panel .btn { width: 210px; }

  /* ---- details: temple, then events, then framed photo ---- */
  .details { padding-top: 72px; }
  .section-title { font-size: 32px; }
  .details-body {
    flex-direction: column;
    align-items: center;
    gap: 56px;
    margin-top: 48px;
    padding: 0 18px 72px;
  }
  .details-left { display: contents; }
  .temple-wrap { order: 1; width: 100%; text-align: center; }
  .details-card { order: 2; }
  .floral-frame { order: 3; }
  .temple-accent { display: none; }
  .temple-img { margin: 0 auto; width: 100%; max-width: 430px; height: auto; }
  .floral-frame {
    margin: 0;
    width: min(84vw, 340px);
    height: auto;
    aspect-ratio: 360 / 511;
  }
  .details-card { width: 100%; max-width: 460px; padding: 50px 22px 46px; }
  .event { margin-bottom: 40px; }
  .event .script { font-size: 28px; margin-bottom: 14px; }
  .event p { font-size: 15px; margin-bottom: 10px; }

  /* ---- registry ---- */
  .registry-section { padding-top: 72px; }
  .registry-panel { padding: 72px 0; }
  .reg-tl { width: 96px; left: 8px; top: 8px; }
  .reg-tr { width: 112px; right: 8px; top: 6px; }
  .registry-heading { width: 72%; margin-bottom: 44px; }
  .registry-title { font-size: 34px; padding: 10px 0; }
  .reg-grid { grid-template-columns: min(78vw, 320px); row-gap: 44px; }
  .reg-card { padding: 26px 20px 28px; }
  .reg-card .script { font-size: 26px; margin-bottom: 16px; }
  .card-floral { display: none; }

  /* ---- our story ---- */
  .our-story {
    flex-direction: column;
    align-items: center;
    padding: 72px 20px 84px;
    gap: 44px;
  }
  .lace-frame { width: min(80vw, 320px); height: auto; aspect-ratio: 343 / 487; }
  .story-text { margin-top: 0; padding: 0; }
  .story-title { font-size: 46px; }
  .story-para { font-size: 15px; line-height: 1.9; margin-top: 22px; max-width: 440px; }

  /* ---- footer ---- */
  .footer { height: 96px; }
  .footer-mono { height: 40px; }
  .footer-navy { height: 44px; }
}
