/* ==========================================================================
   Jessica & Nigel — Malta Wedding
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink: #2a1e28;
  --ink-soft: #6c5762;
  --sea: #6a3a63;
  --sea-deep: #2b1329;
  --sand: #f6efe0;
  --sand-alt: #ebe0da;
  --gold: #a3822e;
  --gold-soft: #cbab6b;
  --terracotta: #7c3b53;
  --line: rgba(42, 30, 40, 0.18);
  --gold-line: rgba(163, 130, 46, 0.4);
  --white: #fffdf8;

  --font-display: "Cormorant Garamond", serif;
  --font-imperial: "Cinzel", serif;
  --font-body: "Jost", sans-serif;

  --max-width: 1120px;
  --radius: 1px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 74px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--sea-deep);
  margin: 0 0 0.5em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.015em;
}

h2, h3, h4 {
  font-family: var(--font-imperial);
  font-weight: 600;
  letter-spacing: 0.03em;
}

h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.section {
  padding: 68px 0;
}

.section--alt {
  background:
    repeating-linear-gradient(115deg, rgba(163,130,46,0.05) 0px, rgba(163,130,46,0.05) 1px, transparent 1px, transparent 34px),
    var(--sand-alt);
}

.section--sea {
  background:
    repeating-linear-gradient(115deg, rgba(203,168,107,0.05) 0px, rgba(203,168,107,0.05) 1px, transparent 1px, transparent 34px),
    var(--sea-deep);
  color: var(--sand);
}
.section--sea h2, .section--sea h3 { color: var(--white); }

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

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 0;
  width: 180px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.45;
}
.divider svg { flex-shrink: 0; width: 26px; height: 14px; color: var(--gold); }
.section--sea .divider, .hero .divider { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -5px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--sea-deep);
}
.btn:hover { background: var(--gold); color: var(--sea-deep); border-color: var(--gold); }

.btn--solid {
  background: var(--sea-deep);
  border-color: var(--gold-soft);
  outline-color: rgba(203, 168, 107, 0.55);
  color: var(--sand);
}
.btn--solid:hover { background: var(--gold); border-color: var(--gold); outline-color: var(--sea-deep); color: var(--sea-deep); }

.btn--light {
  border-color: var(--gold-soft);
  outline-color: rgba(203, 168, 107, 0.55);
  color: var(--white);
}
.btn--light:hover { background: var(--white); color: var(--sea-deep); border-color: var(--white); outline-color: var(--sea-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 224, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 3px 0 -2px var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .amp { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--sea-deep);
  border-color: var(--gold);
}
.nav-links .btn { padding: 10px 22px; }
.nav-links .btn--solid { background: #3c1e39; }
.nav-links .btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sea-deep);
  margin: 5px 0;
  transition: 0.25s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(43, 19, 41, 0.72) 0%, rgba(32, 13, 31, 0.8) 55%, rgba(18, 7, 18, 0.9) 100%),
    url('../images/venue-hero-mobile.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--sand);
  overflow: hidden;
  padding: 140px 24px 100px;
}

/* Wider venue shot once there's room for its 2:1 panorama */
@media (min-width: 800px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(43, 19, 41, 0.72) 0%, rgba(32, 13, 31, 0.8) 55%, rgba(18, 7, 18, 0.9) 100%),
      url('../images/venue-hero-desktop.webp');
    background-position: 80% center;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 0, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(203,168,107,0.2) 0, transparent 45%);
}

.hero-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  color: rgba(203, 168, 107, 0.7);
  z-index: 2;
  pointer-events: none;
}
.hero-corner svg { width: 100%; height: 100%; }
.hero-corner.tl { top: 22px; left: 22px; }
.hero-corner.tr { top: 22px; right: 22px; transform: rotate(90deg); }
.hero-corner.br { bottom: 22px; right: 22px; transform: rotate(180deg); }
.hero-corner.bl { bottom: 22px; left: 22px; transform: rotate(270deg); }
@media (max-width: 600px) {
  .hero-corner { width: 28px; height: 28px; }
  .hero-corner.tl, .hero-corner.tr { top: 14px; }
  .hero-corner.bl, .hero-corner.br { bottom: 14px; }
  .hero-corner.tl, .hero-corner.bl { left: 14px; }
  .hero-corner.tr, .hero-corner.br { right: 14px; }
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero .eyebrow { color: var(--gold-soft); }

.hero h1 {
  color: var(--white);
  margin-bottom: 0.2em;
}

.hero-names { font-style: italic; }

.hero-date {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-alt);
  margin-top: 18px;
}

.hero-place {
  font-size: 0.95rem;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.hero-countdown {
  margin-top: 34px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.85;
}
.hero-countdown strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-soft);
  display: block;
  font-style: normal;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  background: var(--sea-deep);
  color: var(--sand);
  text-align: center;
  padding: 130px 24px 70px;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--sand-alt); max-width: 560px; margin: 0 auto; }

/* ---------- At a Glance cards ---------- */
.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .glance-grid { grid-template-columns: 1fr; }
}

.glance-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-top: 3px solid var(--gold);
  padding: 46px 32px 40px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glance-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(43, 19, 41, 0.14);
}
.glance-card::before {
  font-family: var(--font-imperial);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  position: absolute;
  top: 16px;
  left: 20px;
}
.glance-card:nth-of-type(1)::before { content: "I"; }
.glance-card:nth-of-type(2)::before { content: "II"; }
.glance-card:nth-of-type(3)::before { content: "III"; }

.glance-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--gold-soft);
}

.glance-card h3 { margin-bottom: 0.4em; }
.glance-card p { color: var(--ink-soft); font-size: 0.96rem; }

.glance-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  border-bottom: 1px solid var(--gold);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
@media (max-width: 600px) {
  .timeline::before { left: 17px; }
}

.timeline-item {
  position: relative;
  padding-left: 74px;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .timeline-item { padding-left: 50px; }
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 46px;
  height: 46px;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--sand-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  transform: rotate(45deg);
}
.timeline-marker svg { transform: rotate(-45deg); }
@media (max-width: 600px) {
  .timeline-marker { width: 30px; height: 30px; left: 4px; top: 4px; }
  .timeline-marker svg { width: 15px; height: 15px; }
}

.timeline-item h3 {
  margin-bottom: 0.15em;
}
.timeline-time {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}
.timeline-venue { color: var(--ink-soft); font-size: 0.96rem; }
.map-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
  border-bottom: 1px solid var(--gold);
}

/* ---------- Info page content blocks ---------- */
.content-block {
  max-width: 760px;
  margin: 0 auto 56px;
}
.content-block:last-child { margin-bottom: 0; }
.content-block h2 { margin-bottom: 0.4em; }
.content-block h3 { color: var(--sea); margin-top: 1.2em; }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--white);
  padding: 20px 26px;
  margin: 28px 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.callout strong { color: var(--sea-deep); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.two-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.two-col h3 svg { color: var(--gold-soft); }

ul.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.styled-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
ul.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.placeholder-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--terracotta);
  background: rgba(124, 59, 83, 0.08);
  padding: 6px 12px;
  border: 1px dashed rgba(124, 59, 83, 0.4);
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sea-deep);
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--gold);
}
.faq-question .plus::before, .faq-question .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq-question .plus::before { left: 0; top: 9px; width: 20px; height: 1px; }
.faq-question .plus::after { left: 9px; top: 0; width: 1px; height: 20px; }
.faq-item.is-open .faq-question .plus::after { transform: rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 22px;
  color: var(--ink-soft);
}

/* ---------- RSVP Form ---------- */
.rsvp-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 24px 60px rgba(10, 4, 10, 0.35);
}
@media (max-width: 600px) {
  .rsvp-wrap { padding: 32px 22px; }
}

.form-row { margin-bottom: 26px; }

.form-row label.field-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
}
.form-row label.field-label .req { color: var(--terracotta); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { resize: vertical; min-height: 90px; }

.pill-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pill-group input { position: absolute; opacity: 0; pointer-events: none; }
.pill-group label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 22px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ink-soft);
}
.pill-group label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transition: all 0.2s ease;
}
.pill-group input:checked + label {
  border-color: var(--gold);
  color: var(--sea-deep);
}
.pill-group input:checked + label::before {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--gold-line);
}

.conditional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.conditional-field.is-visible {
  max-height: 260px;
  opacity: 1;
  margin-top: 20px;
}

.hidden-field { position: absolute; left: -9999px; }

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

#rsvp-success, #rsvp-error {
  display: none;
  text-align: center;
  padding: 20px 0;
}
#rsvp-success h3 { color: var(--sea-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sea-deep);
  color: var(--sand-alt);
  text-align: center;
  padding: 56px 24px 34px;
  border-top: 1px solid rgba(203, 168, 107, 0.25);
}
.site-footer .logo { justify-content: center; color: var(--white); margin-bottom: 10px; }
.site-footer p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 6px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 18px 0;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-alt);
  opacity: 0.85;
}
.footer-links a:hover { color: var(--gold-soft); opacity: 1; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
