/* ==========================================================================
   Eléonor & Elliott — shared styles
   Aesthetic: soft sage green + ivory + deep forest-green ink, with muted
   gold and dusty-rose accents, over a recoloured contour-map background.

   Colour rules used throughout this file:
   - Text sitting directly on the page background (or a tinted section, or
     any "unboxed" surface) is always --ink (dark forest green).
   - --accent-gold / --accent-rose are only used inside a box: as a fill
     (buttons, pills, badges) or as text on a fill with enough contrast
     (dark --ink surfaces). The "-deep" variants are darkened versions of
     each accent, safe to use as text directly on light --box surfaces.
   - The hero is a box too, but deliberately accent-free — it stays within
     the ink/box tonal range so accent colour reads as a deliberate, rarer
     accent everywhere else on the site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg: #bfe3d0;
  --bg-deep: #a9d6bd;
  --box: #fdf8f0;
  --box-alt: #ffffff;
  --ink: #2c3e35;
  --ink-dark: #1b2620;
  --ink-soft: #54665a;
  --accent-gold: #d4a373;
  --accent-gold-deep: #a97d4b;
  --accent-rose: #e8b4b8;
  --accent-rose-deep: #b96e74;
  --stone: #c3ccc5;
  --earth: #a98a63;
  --mist: #e7f4ed;
  --line: rgba(44, 62, 53, 0.14);
  --shadow: 0 24px 48px -28px rgba(44, 62, 53, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) url('/img/texture.png') repeat;
  background-size: 1000px auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Bilingual toggle ---------- */
/* Default language is English; setting data-lang="fr" on <html> swaps which
   set of spans is visible. Both languages always exist in the DOM so no
   content is fetched or re-rendered on switch — pure conditional display. */

[lang="fr"] { display: none; }
html[data-lang="fr"] [lang="fr"] { display: initial; }
html[data-lang="fr"] [lang="en"] { display: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--box);
}

.hero .lang-toggle { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.hero .lang-toggle button { color: rgba(255,255,255,0.82); }
.hero .lang-toggle button[aria-pressed="true"] { background: rgba(255,255,255,0.92); color: var(--ink); }

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9em;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Site header ---------- */

.site-header {
  padding: 26px 0 10px;
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.brand small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--box);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--box);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(44,62,53,0.4); }
.btn:active { transform: translateY(0); }

.btn--heather { --btn-bg: var(--accent-gold); --btn-fg: var(--ink); }
.btn--heather:hover { background: var(--ink); color: var(--box); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { background: var(--box); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
/* Deliberately accent-free: stays in the ink/box tonal range so gold and
   rose read as a rarer highlight everywhere else on the site. */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 6px 16px 0;
  background-color: var(--ink);
  background-image: linear-gradient(160deg, rgba(44,62,53,0.94) 0%, rgba(27,38,32,0.92) 100%), url('/img/texture.png');
  background-size: cover, 700px auto;
  background-repeat: no-repeat, repeat;
  isolation: isolate;
}

.hero-inner {
  padding: 76px 26px 64px;
  text-align: center;
  color: var(--box);
}

.hero-inner .eyebrow { color: rgba(253, 248, 240, 0.85); }

.hero-names {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  margin-bottom: 0.28em;
}

.hero-names em {
  font-style: italic;
  color: rgba(253, 248, 240, 0.92);
  font-weight: 400;
}

.hero-date {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: rgba(253, 248, 240, 0.86);
  margin-bottom: 28px;
}

.hero-lede {
  max-width: 46ch;
  margin: 0 auto 32px;
  color: rgba(253, 248, 240, 0.9);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Section shells ---------- */

.section {
  padding: 88px 0;
}

.section--tinted {
  background: var(--bg-deep);
  background-image: url('/img/texture.png');
  background-size: 900px auto;
  background-repeat: repeat;
  background-blend-mode: multiply;
  background-color: var(--bg-deep);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Intro copy ---------- */

.intro-copy {
  max-width: 66ch;
  margin: 0 auto;
  text-align: center;
}

.intro-copy p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Gift cards grid ---------- */

.gift-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.gift-group-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 24px;
  text-align: center;
}

.gift-group-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gift-group-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .gift-group-grid { grid-template-columns: repeat(3, 1fr); }
  .gift-card--featured { grid-column: span 2; }
}

.gift-card {
  position: relative;
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gift-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.gift-card--featured {
  background: var(--ink);
  color: var(--box);
  border-color: transparent;
}

.gift-card--featured .gift-desc { color: rgba(253, 248, 240, 0.82); }
.gift-card--featured .gift-index { color: var(--accent-gold); border-color: rgba(212, 163, 115, 0.4); }
.gift-card--featured .gift-price { color: var(--accent-rose); }

.gift-index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-gold-deep);
}

.gift-title {
  font-size: 1.22rem;
  margin-bottom: 0;
}

.gift-desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex-grow: 1;
}

.gift-price {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--accent-gold-deep);
  font-weight: 700;
}

.gift-card .btn { margin-top: 6px; }

/* ---------- Thank-you / form page ---------- */

.narrow {
  max-width: 620px;
  margin: 0 auto;
}

.card-panel {
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px 32px;
}

@media (min-width: 640px) {
  .card-panel { padding: 56px 60px; }
}

.card-panel h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--box);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--box);
  box-shadow: 0 0 0 3px rgba(44,62,53,0.14);
}

.field textarea { min-height: 110px; }

/* honeypot — hidden from sighted users, still present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-status.is-visible { display: block; }
.form-status.is-error { background: #f7e3e0; color: var(--ink); }
.form-status.is-loading { background: var(--bg-deep); color: var(--ink-soft); }

/* ---------- Payment options ---------- */

.payment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 34px;
}

@media (min-width: 720px) {
  .payment-grid { grid-template-columns: repeat(3, 1fr); }
}

.payment-option {
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.payment-option h3 { font-size: 1.1rem; }
.payment-option p { color: var(--ink-soft); font-size: 0.92rem; }

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-rose);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

.bank-details {
  text-align: left;
  background: var(--box-alt);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.9rem;
  width: 100%;
}

.bank-details dt {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.bank-details dt:first-child { margin-top: 0; }
.bank-details dd { margin: 2px 0 0; }

/* ---------- Placeholder pages ---------- */

.placeholder-block {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 48px 26px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--box);
}

.placeholder-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
}

@media (min-width: 720px) {
  .placeholder-grid { grid-template-columns: repeat(3, 1fr); }
}

.placeholder-tile {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--bg-deep), var(--mist));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
  padding: 12px;
}

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

.site-footer {
  padding: 48px 0 60px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer .brand { justify-content: center; margin-bottom: 10px; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 44px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 26px;
}

.back-link:hover { color: var(--ink); }
