/* =====================================================================
   The Golden Vale Wedding Film Companion
   Theme: "Claret & Gold — Irish Wedding Stationery Editorial"
   Hand-rolled CSS. No UI framework. Marcellus + Mulish.
   ===================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, form { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --claret:        #5a1f2e;
  --claret-dark:   #3f1420;
  --claret-light:  #7a3242;
  --gold:          #b98d4f;
  --gold-light:    #d8b98a;
  --blush:         #e9d5d2;
  --paper:         #faf6f0;
  --paper-alt:     #f3ebe1;
  --ink:           #332028;
  --muted:         #7d6a70;

  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 76px;
  --measure: 46rem;      /* ~68ch editorial measure */
  --container: 1200px;
  --radius: 12px;
  --arch: 150px 150px 12px 12px;   /* wedding-stationery arch top */

  --shadow-sm: 0 6px 18px rgba(63, 20, 32, 0.08);
  --shadow-md: 0 18px 44px rgba(63, 20, 32, 0.16);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--header-h);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--claret);
  letter-spacing: 0.005em;
}

p { color: var(--ink); }
strong { font-weight: 700; color: var(--claret-dark); }
em { font-style: italic; }

a { color: var(--claret-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.measure   { max-width: var(--measure); margin-inline: auto; }
.center    { text-align: center; }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  color: var(--gold);
  margin: 0;
}
.kicker--light { color: var(--gold-light); }

/* Ornamental centered divider: rule — diamond — rule */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.4rem auto;
  max-width: 260px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to var(--dir, right), transparent, currentColor);
}
.divider::before { --dir: left; }
.divider__mark { font-size: 0.9rem; line-height: 1; letter-spacing: .3em; }
.divider--light { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--gold); color: var(--claret-dark); }
.btn--primary:hover { background: var(--gold-light); color: var(--claret-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--gold-light); }
.btn--ghost:hover { background: rgba(216,185,138,.16); color: var(--paper); transform: translateY(-2px); }
.btn--ink { background: var(--claret); color: var(--paper); border-color: var(--claret); }
.btn--ink:hover { background: var(--claret-dark); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* =====================================================================
   Header + Navigation
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--claret-dark);
  border-bottom: 1px solid rgba(185, 141, 79, 0.4);
  z-index: 1000;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Wordmark */
.brand { display: flex; flex-direction: column; line-height: 1.05; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand__name { font-family: var(--font-head); font-size: 1.28rem; letter-spacing: 0.02em; color: var(--paper); }
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  margin-top: 2px;
}

/* Nav */
.nav-menu { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper);
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--gold-light); }
.nav-link .caret { font-size: 0.6rem; opacity: 0.8; transition: transform .2s ease; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--claret-dark);
  border: 1px solid rgba(185, 141, 79, 0.4);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  list-style: none;
  display: none;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown { display: block; }
.dropdown a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}
.dropdown a:hover { background: var(--claret); color: var(--gold-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(216,185,138,.5);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  color: var(--gold-light);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }

/* =====================================================================
   Home hero (full-bleed)
   ===================================================================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(63,20,32,.55), rgba(63,20,32,.35) 45%, rgba(63,20,32,.78)),
    radial-gradient(circle at 50% 40%, rgba(63,20,32,.1), rgba(63,20,32,.55));
}
.hero__inner { max-width: 760px; color: var(--paper); }
.hero__inner .kicker { color: var(--gold-light); }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  margin: 0.6rem 0 0.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__lead {
  font-size: 1.12rem;
  color: var(--blush);
  max-width: 40rem;
  margin: 0.4rem auto 1.8rem;
}
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   Subpage banner hero (arch-top stationery photo)
   ===================================================================== */
.page-hero {
  background: var(--paper-alt);
  border-bottom: 1px solid rgba(185,141,79,.25);
  padding: 3rem 1.5rem 3.4rem;
  text-align: center;
}
.page-hero__inner { max-width: 900px; margin-inline: auto; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-top: 0.5rem;
}
.page-hero__figure {
  margin: 2rem auto 0;
  max-width: 940px;
}
.page-hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--arch);
  border: 1px solid rgba(185,141,79,.5);
  box-shadow: var(--shadow-md);
}

/* Compact banner (no image) — claret ground for the 4 image-less pages */
.page-hero--plain {
  background: var(--claret-dark);
  border-bottom: 1px solid rgba(185,141,79,.4);
  color: var(--paper);
  padding: 3.6rem 1.5rem 3.8rem;
  position: relative;
}
.page-hero--plain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(185,141,79,.14), transparent 60%);
}
.page-hero--plain h1 { color: var(--paper); position: relative; }
.page-hero--plain .kicker { color: var(--gold-light); position: relative; }
.page-hero--plain .divider { position: relative; }

/* =====================================================================
   Article / editorial body
   ===================================================================== */
.article {
  padding: 3.2rem 0 3.6rem;
}
.article__body { }
.article__body > * { max-width: var(--measure); margin-inline: auto; }

.article__body p {
  margin-bottom: 1.3rem;
  font-size: 1.06rem;
}
.article__body h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 2.8rem auto 1rem;
  padding-top: 0.4rem;
  text-align: center;
}
/* Ornamental gold diamond above every section heading */
.article__body h2::before {
  content: "\2726";           /* ✦ */
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: .3em;
  margin-bottom: 0.7rem;
}
.article__body h3 {
  font-size: 1.22rem;
  color: var(--claret-light);
  margin: 2rem auto 0.6rem;
}
.article__body ul, .article__body ol {
  margin: 0 auto 1.5rem;
  padding-left: 1.3rem;
}
.article__body li { margin-bottom: 0.6rem; }
.article__body ul li::marker { color: var(--gold); }
.article__body ol li::marker { color: var(--gold); font-family: var(--font-head); }

.article__body a { color: var(--claret-light); border-bottom: 1px solid rgba(185,141,79,.5); }
.article__body a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* First paragraph as a lead */
.article__body > p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--claret-dark);
}

/* Inline figure with arch-top treatment */
.figure {
  max-width: var(--measure);
  margin: 2.4rem auto;
}
.figure img {
  width: 100%;
  border-radius: var(--arch);
  border: 1px solid rgba(185,141,79,.5);
  box-shadow: var(--shadow-sm);
}
.figure figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.8rem;
}

/* Pull-quote (available for editorial emphasis) */
.article__body blockquote {
  max-width: var(--measure);
  margin: 2rem auto;
  padding: 1.4rem 1.8rem;
  border-left: 3px solid var(--gold);
  background: var(--paper-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--claret);
  font-style: italic;
}

/* =====================================================================
   Card grid (home "explore by region" section index)
   ===================================================================== */
.section {
  padding: 3.4rem 0;
}
.section--alt { background: var(--paper-alt); border-block: 1px solid rgba(185,141,79,.22); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.section__head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-top: 0.5rem;
}
.section__head p { color: var(--muted); margin-top: 0.6rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--paper);
  border: 1px solid rgba(185,141,79,.3);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { padding: 0.75rem 0.75rem 0; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--arch);
}
.card__body { padding: 1.1rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.28rem; color: var(--claret); margin-bottom: 0.4rem; }
.card__body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card__link {
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.card:hover .card__link { color: var(--claret-light); }

/* Quiet CTA band */
.cta-band {
  background: var(--claret);
  color: var(--paper);
  text-align: center;
  padding: 3.4rem 1.5rem;
}
.cta-band h2 { color: var(--paper); font-size: clamp(1.6rem,3.2vw,2.2rem); }
.cta-band p { color: var(--blush); max-width: 42rem; margin: 0.6rem auto 1.6rem; }

/* =====================================================================
   Contact form
   ===================================================================== */
.contact-form {
  max-width: var(--measure);
  margin: 0 auto;
  background: var(--paper-alt);
  border: 1px solid rgba(185,141,79,.35);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
}
.contact-form p { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--claret);
  margin-bottom: 0.4rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(90,31,46,.25);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185,141,79,.18);
}
.contact-form button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--claret);
  background: var(--claret);
  color: var(--paper);
  transition: background .2s ease, transform .2s ease;
}
.contact-form button:hover { background: var(--claret-dark); transform: translateY(-2px); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--claret-dark);
  color: var(--blush);
  border-top: 3px solid var(--gold);
  padding: 3.2rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand__name { color: var(--paper); font-size: 1.3rem; }
.footer-brand p { color: var(--blush); font-size: 0.9rem; margin-top: 0.9rem; max-width: 30ch; }
.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--blush); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }

.footer-disclaimer {
  max-width: var(--container);
  margin: 2.6rem auto 0;
  padding: 1.4rem 1.5rem 0;
  border-top: 1px solid rgba(185,141,79,.28);
  color: var(--blush);
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.9;
}
.footer-bottom {
  max-width: var(--container);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--blush);
}
.footer-bottom a { color: var(--gold-light); }

/* =====================================================================
   404
   ===================================================================== */
.errorpage {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--paper-alt);
}
.errorpage__inner { max-width: 620px; }
.errorpage .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--gold);
  line-height: 1;
}
.errorpage h1 { margin: 0.4rem 0 0.6rem; font-size: clamp(1.6rem,4vw,2.4rem); }
.errorpage p { color: var(--muted); margin-bottom: 1.6rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--claret-dark);
    border-bottom: 1px solid rgba(185,141,79,.4);
    padding: 0.6rem 1rem 1.4rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 0.75rem 0.5rem; font-size: 0.8rem; width: 100%; justify-content: space-between; }
  .nav-link .caret { display: none; }
  /* On mobile, dropdown items are always shown, indented — never hidden behind JS */
  .dropdown {
    position: static;
    display: block;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.4rem 0.9rem;
    margin: 0;
  }
  .dropdown a { font-size: 0.8rem; padding: 0.5rem 0.5rem; color: var(--blush); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero__figure img, .hero { border-radius: 90px 90px 10px 10px; }
  .hero { border-radius: 0; }
}

/* =====================================================================
   Safeguard: content is NEVER hidden waiting on JS.
   ===================================================================== */
[data-aos] { opacity: 1 !important; transform: none !important; }
