/* ============================================================
   Meagan & Kevin · Douro Valley Wedding Website
   Visual system: porcelain blue · sunshine yellow · orange zest
   Type: Pinyon Script · Cormorant Garamond · DM Sans
   ============================================================ */

:root {
  /* ─── The palette ──────────────────────────────────────────────────
     Only 6 colors. Muted text uses semi-transparent royal so the hue
     stays the same; --ink, --ink-2, --ink-3 are all #2031a1 at
     different alphas (100% / 70% / 45%). --ink-line is royal at 14%.
  */
  --royal: #2031a1;        /* Pantone Magnetic Blue — text + accents */
  --ink:   #2031a1;        /* alias of --royal (body text) */
  --ink-2: rgba(32,49,161,0.7);   /* muted body, eyebrows */
  --ink-3: rgba(32,49,161,0.45);  /* tertiary text */
  --ink-line: rgba(32,49,161,0.14); /* hairline dividers */
  --sky: #c4e9f2;          /* pale sky — accent for tags like "Most Scenic" */
  --sky-2: #c4e9f2;        /* alias of --sky */
  --sky-stripe: #c4e9f2;   /* alias of --sky */
  --sun: #fddf5e;          /* vibrant lemon — saturated, not gold */
  --sun-soft: #fddf5e;     /* alias of --sun */
  --sun-deep: #fddf5e;     /* alias of --sun */
  --zest: #f58b05;         /* orange zest — CTAs, highlights */
  --zest-soft: #f58b05;    /* alias of --zest */
  --olive: #2031a1;        /* retired — aliased to royal */
  --leaf: #2031a1;         /* retired — aliased to royal */
  --paper: #fdfaf0;        /* primary cream, single light tone */
  --cream: #fdfaf0;        /* alias to paper, all "cream" usages collapse here */
  --ivory: #f5ecd5;        /* warmer secondary light for layered tone */
  --paper-2: #f5ecd5;      /* alias to ivory */
  --ink-line: #2031a122;

  /* Type stacks */
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-sans: "DM Sans", -apple-system, "Helvetica Neue", sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--f-serif);
  color: var(--ink);
  background: var(--paper);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--zest); }

/* ============================================================
   Typography
   ============================================================ */

.script { font-family: var(--f-script); font-weight: 400; line-height: 0.95; }
.serif { font-family: var(--f-serif); }
.sans { font-family: var(--f-sans); }

h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: -0.005em; color: var(--royal); }
h1 { font-size: clamp(56px, 10vw, 148px); }
h2 { font-size: clamp(44px, 5.6vw, 80px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
p  { margin: 0 0 1em; }
em { font-style: italic; color: var(--ink-2); }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.section-title {
  text-align: center;
  margin: 0 auto;
}
.section-title .eyebrow { display: block; margin-bottom: 18px; }
.section-title h2 {
  font-family: var(--f-script);
  font-size: clamp(56px, 8vw, 110px);
  color: var(--royal);
  font-weight: 400;
  line-height: 1;
}
.section-title .sub {
  margin-top: 14px;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--ink-2);
  font-style: italic;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
/* Patterned-section title plates are styled later in this stylesheet
   with the .ornate-frame treatment (royal-blue double border, fancy
   corners). The earlier dot-and-circle decorations have been removed
   so the ornate styling wins cleanly. */

/* ============================================================
   Layout
   ============================================================ */

.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.wrap-narrow { max-width: 880px; margin: 0 auto; }
.wrap-wide { max-width: 1320px; margin: 0 auto; }

/* ============================================================
   Stripes — awning, behind text emphasis
   ============================================================ */

:root {
  --tile-size: 480px;
  --tile-light-size: 480px;
  --stripe-w: 28px;
}
/* Stripes retired — sections collapse to plain paper. Replaced with sketch ornaments. */
.stripes-blue,
.stripes-yellow,
.stripes-h-blue,
.stripes-blue-CHINTZ { background: var(--paper); background-image: none; }

/* ============================================================
   Tiles — azulejo SVG patterns
   ============================================================ */

.tile-bg {
  background-color: var(--paper);
  background-image: url("assets/wedding-tiles.png");
  background-size: var(--tile-size) auto;
  background-repeat: repeat;
}
.tile-bg-light {
  background-color: var(--paper);
  background-image: url("assets/wedding-tiles.png");
  background-size: var(--tile-light-size) auto;
  background-repeat: repeat;
}
/* Chintz floral retired. */
.chintz-bg,
.chintz-bg-light { background: var(--paper); background-image: none; }

/* ============================================================
   Sketch ornaments — blue line-art SVGs that fill white space
   ============================================================ */
.sketch {
  display: block;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  height: auto;
}
.sketch-banner {
  width: min(680px, 92%);
  margin: 32px auto 0;
  opacity: 0.85;
}
.sketch-flourish {
  width: 220px;
  margin: 20px auto 0;
  opacity: 0.85;
}

/* ============================================================
   Illustration / photo slots — drop zones for the user's own art
   ============================================================ */
.hero-illustration-slot,
.stay-illustration-slot {
  display: block;
  margin: 40px auto 32px;
  background: transparent;
  --slot-border: 1px dashed rgba(30, 58, 100, 0.35);
  --slot-empty-color: var(--ink-2);
}
.hero-illustration-slot {
  width: min(900px, 100%);
  height: min(360px, 38vw);
}
.stay-illustration-slot {
  width: min(620px, 92%);
  height: min(280px, 32vw);
}

/* Stay-section venue photo banner */
.stay-banner-wrap {
  position: relative;
  margin: 40px auto 48px;
  width: min(1100px, 100%);
}
.stay-photo-slot {
  display: block;
  width: 100%;
  height: clamp(280px, 38vw, 480px);
}
.stay-sketch-frame {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(253, 250, 240, 0.92);
  padding: 16px 22px 10px;
  border-radius: 4px;
  box-shadow: 0 10px 32px rgba(32, 49, 161, 0.18);
  max-width: min(660px, 88%);
}
.stay-sketch-overlay {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-illustration-slot { height: 220px; }
  .stay-illustration-slot { height: 200px; }
  .stay-sketch-frame { padding: 10px 14px 6px; bottom: 12px; max-width: 90%; }
}
.tile-band {
  height: 96px;
  background: url("assets/tile-band.svg") repeat-x center / auto 96px;
  background-color: var(--paper);
}
.tile-band-thin {
  height: 48px;
  background: url("assets/tile-band.svg") repeat-x center / auto 48px;
  background-color: transparent;
}

/* ── Tile accents using the real azulejo pattern ─────────────────────
   Decorative strips, corners, and frames cut from the tile image,
   used between sections and around standout content. */

/* Horizontal divider band — full-width strip of azulejo between sections.
   Background-size matches --tile-size so the tile pattern is the same scale
   as the body tile sections (no distortion / pixelation). The strip height
   is just a viewport into that pattern. */
.tile-strip {
  height: 140px;
  background-image: url("assets/wedding-tiles.png");
  background-repeat: repeat;
  background-size: var(--tile-size) auto;
  background-position: center;
  position: relative;
}
.tile-strip-tall  { height: 200px; }
.tile-strip-short { height: 96px;  }
/* Soft fade into the next section so the strip doesn't feel like a hard cut */
.tile-strip::before,
.tile-strip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 16px;
  pointer-events: none;
}
.tile-strip::before { top: 0;    background: linear-gradient(180deg, var(--paper), transparent); }
.tile-strip::after  { bottom: 0; background: linear-gradient(0deg,   var(--paper), transparent); }

/* Square tile chip — small azulejo motif used as a decorative anchor.
   Hand-place at a corner / next to a title / before a heading. */
.tile-chip {
  display: inline-block;
  width: 72px;
  height: 72px;
  background-image: url("assets/wedding-tiles.png");
  background-repeat: no-repeat;
  background-size: 288px auto;     /* zoom in so a single motif fills the chip */
  background-position: -36px -180px;
  border: 1.5px solid var(--royal);
  border-radius: 4px;
  box-shadow: 0 6px 18px -10px rgba(32, 49, 161, 0.45);
  flex-shrink: 0;
}
.tile-chip-lg { width: 104px; height: 104px; background-size: 416px auto; background-position: -52px -260px; }
.tile-chip-sm { width: 48px;  height: 48px;  background-size: 192px auto; background-position: -24px -120px; }
/* Variants — different focal motifs from the source image */
.tile-chip-a { background-position: -36px -180px; }
.tile-chip-b { background-position: -100px -420px; }
.tile-chip-c { background-position: -180px -660px; }
.tile-chip-d { background-position: -40px -520px; }
.tile-chip-circle { border-radius: 50%; }

/* Image / card frame: the tile pattern peeks out as a 14px border */
.tile-frame {
  padding: 14px;
  background-image: url("assets/wedding-tiles.png");
  background-repeat: repeat;
  background-size: 220px auto;
  border-radius: 4px;
  box-shadow: 0 14px 36px -22px rgba(32, 49, 161, 0.4);
}
.tile-frame > * { display: block; background: var(--paper); border-radius: 2px; }

/* Corner ornaments — small tile chips bolted to a section's four corners */
.tile-corners {
  position: relative;
}
.tile-corners::before,
.tile-corners::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  background-image: url("assets/wedding-tiles.png");
  background-repeat: no-repeat;
  background-size: 256px auto;
  background-position: -40px -160px;
  border: 1.5px solid var(--royal);
  border-radius: 4px;
  z-index: 2;
}
.tile-corners::before { top: -12px;    left: -12px; }
.tile-corners::after  { bottom: -12px; right: -12px; }

/* Behind-title accent — small tile square sitting behind the section title */
.section-title-tile {
  position: relative;
}
.section-title-tile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%) rotate(45deg);
  background-image: url("assets/wedding-tiles.png");
  background-repeat: no-repeat;
  background-size: 360px auto;
  background-position: -80px -260px;
  border: 1.5px solid var(--royal);
  z-index: -1;
  opacity: 0.85;
}

/* ============================================================
   Decorative ornaments
   ============================================================ */

.ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-2);
}
.ornament .line {
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.ornament svg { width: 18px; height: 18px; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 1px 0 #ffffff inset, 0 12px 32px -24px #2031a133;
}
.card-tile {
  background: var(--paper);
  border: 2px solid var(--royal);
  border-radius: 2px;
  padding: 32px;
  position: relative;
}
.card-tile::before, .card-tile::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--royal);
  border-radius: 50%;
  background: var(--sun);
}
.card-tile::before { top: -10px; left: -10px; }
.card-tile::after  { bottom: -10px; right: -10px; }

.placeholder-photo {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-2) 60%, var(--ink-3) 100%);
  border: 1px solid var(--ink-line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.placeholder-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed #ffffff66;
  border-radius: 2px;
  pointer-events: none;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1.5px solid var(--royal);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}
.btn:hover { background: var(--royal); color: var(--paper); }
.btn-zest { background: var(--zest); border-color: var(--zest); color: var(--paper); }
.btn-zest:hover { background: var(--royal); border-color: var(--royal); color: var(--paper); }
.btn-sun  { background: var(--sun); border-color: var(--royal); color: var(--ink); }
.btn-sun:hover  { background: var(--royal); color: var(--sun); }
.btn-ghost { background: transparent; }

.btn-sm {
  padding: 9px 18px;
  font-size: 10px;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(253, 250, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 240ms ease;
}
.nav.hidden { transform: translateY(-100%); }
.nav .brand {
  font-family: var(--f-script);
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--zest); }
.nav-links a.cta {
  background: var(--zest);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-links a.cta:hover { background: var(--royal); color: var(--paper); }
.nav-burger {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-line);
    padding: 22px var(--gutter);
    gap: 18px;
    transform: translateY(calc(-100% - 60px));
    transition: transform 220ms ease;
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-burger { display: block; }
}

/* Tighten + add safe-area inset on small phones so the script brand flourish
   doesn't clip on the left edge */
@media (max-width: 520px) {
  .nav {
    padding-left: max(22px, env(safe-area-inset-left, 22px));
    padding-right: max(22px, env(safe-area-inset-right, 22px));
  }
  .nav .brand { padding-left: 2px; }
}

/* ============================================================
   Hero — text-only editorial mark
   ============================================================ */

/* ============================================================
   Hero — split into photo section + names section
   ============================================================ */

.hero-photo-section {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--paper);
  padding-top: 68px; /* clear sticky nav */
}
.hero-photo-slot {
  position: absolute;
  inset: 68px 0 0 0;
  width: 100%;
  display: block;
  border-radius: 0;
  --slot-empty-color: var(--ink-2);
}
.hero-sketch-frame {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(253, 250, 240, 0.92);
  padding: 22px 34px 16px;
  border-radius: 4px;
  box-shadow: 0 10px 32px rgba(32, 49, 161, 0.18);
  max-width: min(880px, 90%);
}
.hero-sketch-overlay {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-names-section {
  position: relative;
  width: 100%;
  background: var(--paper);
  padding: 80px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .hero-photo-section { height: 62vh; min-height: 420px; }
  .hero-sketch-frame { padding: 14px 18px 10px; bottom: 16px; }
  .hero-names-section { padding: 56px var(--gutter); }
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-stripes-top, .hero-stripes-bot { display: none; }

.hero-floral {
  position: absolute;
  top: 60px;
  bottom: 60px;
  height: auto;
  width: 100px;
  z-index: 1;
  opacity: 0.55;
}
.hero-floral-left { left: 4vw; }
.hero-floral-right { right: 4vw; transform: scaleX(-1); }
@media (max-width: 880px) {
  .hero-floral { display: none; }
}

.hero-mark {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 var(--gutter);
}
.hero-eyebrow-clean {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto;
  max-width: 280px;
}
.hero-bar span:not(.hero-bar-dot) {
  flex: 1;
  height: 1px;
  background: var(--royal);
  opacity: 0.5;
}
.hero-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zest);
}

.hero-names {
  font-family: var(--f-script);
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.85;
  color: var(--royal);
  margin: 0;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-name {
  display: block;
  line-height: 0.95;
}
.hero-amp {
  display: block;
  color: var(--zest);
  font-style: italic;
  font-size: 0.55em;
  line-height: 1;
  margin: -0.05em 0 -0.05em;
}

.hero-date-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  font-family: var(--f-serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero-date-line .hd-mid { color: var(--zest); }

.hero-place {
  margin-top: 14px;
  font-family: var(--f-sans);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero-cta-row {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* ============================================================
   Collapsible section bodies — used on long content sections
   (Portugal 101, Things To Do "Euro Extensions") so the page
   feels scannable instead of endless. Header stays visible;
   tap the pill to reveal the rest.
   ============================================================ */
.collapsible-toggle-wrap {
  text-align: center;
  margin-top: 40px;
}
.collapsible-toggle {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--royal);
  color: var(--royal);
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.collapsible-toggle:hover {
  background: var(--royal);
  color: var(--paper);
}
.collapsible-chevron {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 240ms ease;
}
.collapsible-toggle.open .collapsible-chevron {
  transform: rotate(180deg);
}

.collapsible-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms ease, margin-top 380ms ease, opacity 240ms ease;
  opacity: 0;
}
.collapsible-body.open {
  grid-template-rows: 1fr;
  margin-top: 44px;
  opacity: 1;
}
.collapsible-inner {
  overflow: hidden;
  min-height: 0;
}

/* ============================================================
   Back-to-top floating button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--royal);
  color: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 0 10px 24px -10px rgba(32, 49, 161, 0.55);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
  z-index: 60;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--zest);
}
@media (max-width: 520px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
}

/* ============================================================
   Countdown
   ============================================================ */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 580px;
  margin: 40px auto 0;
}
.cd-cell {
  background: var(--paper);
  border: 1px solid var(--royal);
  border-radius: 2px;
  padding: 18px 8px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cd-num {
  position: relative; z-index: 1;
  font-family: var(--f-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.cd-label {
  position: relative; z-index: 1;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 8px;
}

/* ============================================================
   Schedule
   ============================================================ */

.schedule-day {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--ink-line);
}
.schedule-day:last-child { border-bottom: none; }
.schedule-day .date {
  position: sticky;
  top: 92px;
  align-self: start;
}
.schedule-day .day-num {
  font-family: var(--f-script);
  font-size: 84px;
  color: var(--zest);
  line-height: 1;
}
.schedule-day .month {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 8px;
}
.schedule-day .weekday {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-top: 4px;
}

.event {
  margin-bottom: 28px;
}
.event:last-child { margin-bottom: 0; }
.event h3 {
  font-family: var(--f-serif);
  font-size: 30px;
  margin-bottom: 6px;
  color: var(--royal);
}
.event .time {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--zest);
  font-weight: 600;
  margin-bottom: 4px;
}
.event .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink-2);
}
.event .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event p { margin: 8px 0 0; max-width: 60ch; }

@media (max-width: 720px) {
  .schedule-day { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .schedule-day .date { position: static; }
  .schedule-day .day-num { font-size: 64px; }
}

/* ============================================================
   Grids
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Phrasebook flashcards
   ============================================================ */

.phrase-card {
  perspective: 1000px;
  height: 180px;
  cursor: pointer;
}
.phrase-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.4, 0.1, 0.2, 1);
  transform-style: preserve-3d;
}
.phrase-card.flipped .phrase-card-inner { transform: rotateY(180deg); }
.phrase-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}
.phrase-front {
  background: var(--paper);
  border: 1.5px solid var(--royal);
}
.phrase-back {
  background: var(--royal);
  color: var(--paper);
  transform: rotateY(180deg);
  border: 1.5px solid var(--royal);
}
.phrase-en {
  font-family: var(--f-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--ink);
}
.phrase-pt {
  font-family: var(--f-script);
  font-size: 44px;
  color: var(--sun);
  line-height: 1;
}
.phrase-pho {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: 12px;
}
.phrase-tip {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 10px;
  opacity: 0.6;
}

/* ============================================================
   Packing list
   ============================================================ */

.pack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}
@media (max-width: 720px) { .pack-list { grid-template-columns: 1fr; } }
.pack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ink-line);
  cursor: pointer;
  font-family: var(--f-serif);
  font-size: 20px;
  color: var(--ink);
  transition: opacity 200ms;
}
.pack-item.checked {
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: var(--zest);
}
.pack-check {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--royal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms;
}
.pack-item.checked .pack-check {
  background: var(--zest);
  border-color: var(--zest);
}
.pack-item.checked .pack-check::after {
  content: "✓";
  color: var(--paper);
  font-size: 12px;
}
.pack-section-title {
  font-family: var(--f-script);
  font-size: 36px;
  color: var(--royal);
  margin: 36px 0 6px;
  grid-column: 1 / -1;
}
.pack-section-title:first-child { margin-top: 0; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  border-bottom: 1px solid var(--ink-line);
  padding: 22px 0;
}
.faq-q {
  font-family: var(--f-serif);
  font-size: 24px;
  color: var(--royal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q::after {
  content: "+";
  font-family: var(--f-serif);
  font-size: 28px;
  color: var(--zest);
  font-weight: 300;
  transition: transform 200ms;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, margin 220ms ease;
  font-family: var(--f-serif);
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
  margin-top: 0;
}
.faq-item.open .faq-a {
  max-height: 600px;
  margin-top: 14px;
}

/* ============================================================
   RSVP form
   ============================================================ */

.form-row {
  margin-bottom: 22px;
}
.form-row label {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-serif);
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-line);
  border-radius: 2px;
  outline: none;
  transition: border-color 200ms;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--royal); }
.textarea { resize: vertical; min-height: 120px; }

.radio-row, .check-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-pill, .check-pill {
  flex: 1 1 auto;
  position: relative;
  cursor: pointer;
}
.radio-pill input, .check-pill input {
  position: absolute; opacity: 0; pointer-events: none;
}
.radio-pill span, .check-pill span {
  display: block;
  text-align: center;
  padding: 14px 18px;
  border: 1.5px solid var(--ink-line);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all 180ms;
  background: var(--paper);
}
.radio-pill input:checked + span,
.check-pill input:checked + span {
  background: var(--royal);
  color: var(--paper);
  border-color: var(--royal);
}

/* ============================================================
   Map
   ============================================================ */

.map-shell {
  position: relative;
  background: var(--sky);
  border: 1.5px solid var(--royal);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 2;
}
.map-pin .pin-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--zest);
  border: 2.5px solid var(--paper);
  box-shadow: 0 4px 0 -1px var(--royal), 0 8px 16px -4px #2031a155;
  transition: transform 200ms;
}
.map-pin:hover .pin-dot { transform: scale(1.15); }
.map-pin.active .pin-dot { background: var(--royal); }
.map-pin .pin-label {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-script);
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
  background: var(--paper);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--ink-line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.map-pin:hover .pin-label, .map-pin.active .pin-label { opacity: 1; }

.map-detail {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--paper);
  border: 1.5px solid var(--royal);
  border-radius: 4px;
  padding: 18px 22px;
  font-family: var(--f-serif);
  z-index: 3;
}
.map-detail h4 {
  font-family: var(--f-serif);
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--royal);
}
.map-detail .kind {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--zest);
}
.map-detail p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }

/* ============================================================
   Weather widget
   ============================================================ */

.weather-card {
  background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%);
  border: 1.5px solid var(--royal);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.weather-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 30%, var(--sun-soft) 60%, transparent 80%);
  filter: blur(2px);
}
.weather-temp {
  font-family: var(--f-serif);
  font-size: 84px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  position: relative; z-index: 1;
}
.weather-temp sup { font-size: 32px; }
.weather-cond {
  font-family: var(--f-script);
  font-size: 36px;
  color: var(--zest);
  margin-top: 4px;
  line-height: 1;
}
.weather-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative; z-index: 1;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--royal);
  color: var(--paper);
  padding: 80px var(--gutter) 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer .script {
  font-size: clamp(56px, 8vw, 110px);
  color: var(--sun);
}
.footer .meta {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff99;
  margin-top: 24px;
}

/* ============================================================
   Utilities
   ============================================================ */

.center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 80px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }
.muted { color: var(--ink-2); }
.italic { font-style: italic; }
.tag {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 500;
}
.tag-zest { background: var(--zest); color: var(--paper); }
.tag-sky { background: var(--sky); color: var(--ink); }
.tag-ink { background: var(--royal); color: var(--paper); }
.tag-royal { background: var(--royal); color: var(--paper); }

/* Stay arc: three numbered cards laid out as a journey */
.stay-arc {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
.stay-step {
  background: var(--paper);
  border: 1.5px solid var(--royal);
  border-radius: 4px;
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.stay-step-feature {
  background: var(--cream);
  border-width: 2px;
  border-color: var(--royal);
  box-shadow: 0 16px 40px -22px rgba(32, 49, 161, 0.5);
}
.stay-step-num {
  position: absolute;
  top: -22px;
  left: 22px;
  width: 44px;
  height: 44px;
  background: var(--royal);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  border: 2px solid var(--paper);
  box-shadow: 0 4px 12px rgba(32, 49, 161, 0.25);
}
.stay-step-feature .stay-step-num {
  background: var(--royal);
}
.stay-step-title {
  font-family: var(--f-script);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--royal);
  line-height: 0.95;
  margin: 12px 0 14px;
}
.stay-step .muted { font-size: 16px; line-height: 1.55; }
.stay-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 15px;
}
.stay-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--ink-line);
}
.stay-list li:last-child { border-bottom: none; }

.stay-arrow {
  align-self: center;
  font-family: var(--f-serif);
  font-size: 36px;
  color: var(--royal);
  line-height: 1;
  padding: 0 4px;
}

@media (max-width: 1000px) {
  .stay-arc {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .stay-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* Venue peek CTA, prominent link out to the Quinta site */
.venue-peek {
  display: block;
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--paper);
  border: 2px solid var(--royal);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  box-shadow: 0 14px 32px -18px rgba(32, 49, 161, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.venue-peek:hover {
  transform: translateY(-2px);
  border-color: var(--royal);
  box-shadow: 0 22px 44px -20px rgba(32, 49, 161, 0.55);
}
.venue-peek-eyebrow {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 6px;
}
.venue-peek-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-script);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.05;
  color: var(--ink);
}
.venue-peek-link svg {
  flex-shrink: 0;
  transition: transform 180ms ease;
}
.venue-peek:hover .venue-peek-link svg { transform: translateX(4px); }
.venue-peek-note {
  display: block;
  margin-top: 8px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
}

/* ============================================================
   Elegant ornate frame, fancy corners for cards / panels
   ============================================================ */
.ornate-frame {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--royal);
  padding: clamp(36px, 4.5vw, 64px) clamp(28px, 4vw, 56px);
  border-radius: 2px;
  box-shadow: 0 18px 48px -28px rgba(32, 49, 161, 0.4);
}
.ornate-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 0.75px solid var(--royal);
  border-radius: 1px;
  pointer-events: none;
}
.ornate-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 0.5px solid var(--royal);
  opacity: 0.45;
  border-radius: 1px;
  pointer-events: none;
}
.ornate-frame > .corner {
  position: absolute;
  width: 44px;
  height: 44px;
  color: var(--royal);
  pointer-events: none;
  z-index: 2;
}
.ornate-frame > .corner-tl { top: -2px; left: -2px; }
.ornate-frame > .corner-tr { top: -2px; right: -2px; transform: scaleX(-1); }
.ornate-frame > .corner-bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.ornate-frame > .corner-br { bottom: -2px; right: -2px; transform: scale(-1, -1); }

/* Default section-title plate gets fancy corners */
.section.stripes-blue .section-title,
.section.stripes-yellow .section-title,
.section.stripes-h-blue .section-title,
.tile-bg .section-title,
.tile-bg-light .section-title {
  background: var(--paper);
  border: 1.5px solid var(--royal);
  border-radius: 2px;
  padding: clamp(36px, 4.5vw, 56px) clamp(28px, 4vw, 64px);
  box-shadow: 0 14px 36px -20px rgba(32, 49, 161, 0.35);
  position: relative;
  z-index: 1;
}
.section.stripes-blue .section-title::before,
.section.stripes-yellow .section-title::before,
.section.stripes-h-blue .section-title::before,
.tile-bg .section-title::before,
.tile-bg-light .section-title::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 0.75px solid var(--royal);
  border-radius: 1px;
  background: transparent;
  pointer-events: none;
}
.section.stripes-blue .section-title::after,
.section.stripes-yellow .section-title::after,
.section.stripes-h-blue .section-title::after,
.tile-bg .section-title::after,
.tile-bg-light .section-title::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 0.5px solid var(--royal);
  opacity: 0.45;
  border-radius: 1px;
  background: transparent;
  pointer-events: none;
}

/* Stripe card upgraded with inner royal liner */
.stripe-card {
  background: var(--paper);
  border: 1.5px solid var(--royal);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 12px 32px -16px rgba(32, 49, 161, 0.25);
  position: relative;
  z-index: 1;
}
.stripe-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 0.75px solid var(--royal);
  border-radius: 1px;
  pointer-events: none;
}
.stripe-card > * { position: relative; z-index: 1; }
.stripe-card + .stripe-card { margin-top: 32px; }
.stripe-card-tight { padding: clamp(20px, 2.5vw, 32px); }

/* Schedule day on striped bg */
.schedule-day.stripe-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  border-top: 1.5px solid var(--royal);
}
@media (max-width: 720px) {
  .schedule-day.stripe-card { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
}

.divider-script {
  text-align: center;
  margin: 48px 0;
}
.divider-script .ornament svg { color: var(--zest); }

/* prevent flash before fonts/JS */
#root:empty::before {
  content: "Bem-vindos…";
  font-family: var(--f-script);
  font-size: 64px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
