/* Wedding guest site — template styles.
   To re-theme a wedding, change the tokens in :root only. */
:root {
  --bg: #f6f1e7;          /* limestone */
  --bg-tint: #ece4d4;
  --surface: #fffdf8;
  --ink: #1f2a2e;
  --ink-soft: #55626a;
  --line: #d9cfbc;
  --sea: #1d5c63;         /* Ionian teal */
  --sea-deep: #123f45;
  --accent: #c0673f;      /* terracotta */
  --olive: #7a8150;
  --sun: #f0c987;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); text-align: center; margin-bottom: 1.2em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.tinted { background: var(--bg-tint); }

/* sample banner */
.sample-banner {
  background: var(--accent); color: #fff; text-align: center;
  font-size: .82rem; letter-spacing: .04em; padding: 6px 16px;
}

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.monogram { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.monogram span { color: var(--accent); font-style: italic; padding: 0 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .9rem;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg-tint); }
.nav .nav-rsvp { color: #fff; background: var(--sea); }
.nav .nav-rsvp:hover { background: var(--sea-deep); color: #fff; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang button {
  font: 600 .75rem var(--sans); letter-spacing: .05em; color: var(--ink-soft);
  background: none; border: 0; padding: 7px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .nav a:not(.nav-rsvp) { display: none; }
}

/* hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-art { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; }
.hero-art .sun { fill: var(--sun); }
.hero-art .hill-back { fill: #d6d4b8; }
.hero-art .hill-front { fill: #a9ab80; }
.hero-art .sea { fill: var(--sea); opacity: .9; }
.hero-art .wave { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 2; stroke-linecap: round; }
.hero-inner { position: relative; padding: 48px 20px 160px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--ink-soft); }
.names { font-size: clamp(3.2rem, 11vw, 7rem); margin: .1em 0 .15em; letter-spacing: -.01em; }
.names .amp { font-style: italic; color: var(--accent); font-size: .8em; padding: 0 .08em; }
.hero-date { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: .2em; }
.hero-place { color: var(--ink-soft); }
.countdown { font-size: .9rem; color: var(--sea); font-weight: 600; letter-spacing: .03em; min-height: 1.6em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-wide { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.45rem); text-align: center; line-height: 1.55; margin: 0; }
.welcome { padding-top: 24px; }

/* schedule */
.days { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.day-main { border-color: var(--sea); box-shadow: 0 10px 30px -18px rgba(18, 63, 69, .45); }
.day h3 { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.day-date { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); letter-spacing: .08em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; }
.timeline time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sea); }
.timeline p { color: var(--ink-soft); font-size: .93rem; margin: 2px 0 0; }

/* cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card-feature { background: var(--sea); color: #fff; border-color: var(--sea); }
.card-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: .5em; }
.card-feature .card-kicker { color: var(--sun); }
.sub-h { margin-top: 48px; }
.drive table { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 16px; }
.drive th, .drive td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.drive td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: .95rem; }

.callout { margin-top: 24px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.callout p { margin: 0; }

/* dress */
.dress-code { font-family: var(--serif); font-size: 1.8rem; text-align: center; color: var(--sea); margin-top: -.6em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--olive); opacity: .7; }

/* map */
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-tint); }
@media (max-width: 640px) { .map-box { aspect-ratio: 4 / 5; } }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { height: 100%; display: grid; place-content: center; text-align: center; gap: 8px; padding: 20px; color: var(--ink-soft); }
.map-links { text-align: center; margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* faq */
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--serif); font-size: 1.2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 1.6rem var(--sans); color: var(--sea); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); padding-bottom: 8px; }
.contact { margin-top: 32px; text-align: center; }

/* rsvp */
.rsvp { background: var(--sea-deep); color: #f3efe6; }
.rsvp h2 { color: #fff; }
.rsvp a { color: var(--sun); }
.rsvp-intro { text-align: center; margin-top: -1em; margin-bottom: 2em; opacity: .85; }
form { background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 5vw, 40px); }
form a { color: var(--sea); }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
input:not([type=radio]):not([type=checkbox]), textarea, select {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 20%, transparent); }
textarea { resize: vertical; }
.field-small select { max-width: 120px; }
.field-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hint { font-size: .85rem; color: var(--ink-soft); margin: 6px 0 0; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; padding: 10px 0; cursor: pointer; }
.choice-row .choice { flex: 1 1 180px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.choice-row .choice:has(input:checked) { border-color: var(--sea); background: color-mix(in srgb, var(--sea) 7%, #fff); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea); flex-shrink: 0; }
.choice small { color: var(--ink-soft); margin-left: auto; }
.consent { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-error { background: #fbe9e2; color: #8a3417; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.field.invalid input, .field.invalid textarea, fieldset.invalid .choice-row .choice { border-color: #b4441f; }
.thanks { background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: 48px 32px; text-align: center; }
.thanks-mark { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }

/* footer */
.footer { padding: 56px 0 40px; font-size: .9rem; color: var(--ink-soft); }
.privacy h2 { font-size: 1.4rem; text-align: left; margin-bottom: .6em; color: var(--ink); }
.credit { margin-top: 32px; text-align: center; font-family: var(--serif); letter-spacing: .06em; }

/* very narrow screens (small phones, embedded previews) */
@media (max-width: 340px) {
  .topbar { gap: 8px; padding: 10px 12px; }
  .nav .nav-rsvp { padding: 7px 10px; }
  .lang button { padding: 6px 8px; }
}

/* "Made by" credit: the only Kalimera Digital element on client pages */
.madeby { text-align: center; margin: 16px 0 0; }
.kd-madeby { font: 500 12px/1 var(--sans); color: inherit; opacity: .75; text-decoration: none; }
.kd-madeby:hover { opacity: 1; text-decoration: underline; }
