/* ==========================================================================
   The Goa Wedding Co. — base, layout, header, hero, season band
   Components live in components.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
/* The build stamps width/height on every img for CLS. Without this the
   intrinsic attributes fight the CSS box and images render squashed. */
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--wght-display);
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 72;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s-4); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100%;
  background: var(--gold); color: var(--tinta);
  padding: var(--s-3) var(--s-5); z-index: 200; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

/* ---- layout -------------------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-dark { background: var(--marine); color: var(--on-marine); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--limewash); }
.section-ink { background: var(--tinta); color: var(--on-marine); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--s-5); }

/* ---- the plaque -----------------------------------------------------------
   A small enamelled sign, the kind screwed to the gatepost of every Goan
   house. We use that shape to label sections. It only ever carries a real
   label — never a decorative 01 / 02 / 03 sequence.
   -------------------------------------------------------------------------- */
.plaque {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  padding: 0.42em 0.85em 0.36em;
  background: var(--marine);
  color: var(--limewash);
  border: 2px solid var(--marine);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--limewash) 55%, transparent);
  margin-bottom: var(--s-5);
}
.section-dark .plaque, .section-ink .plaque {
  background: transparent;
  border-color: color-mix(in srgb, var(--limewash) 45%, transparent);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--limewash) 20%, transparent);
}

.lede { font-size: var(--t-lg); line-height: 1.42; color: var(--ink-soft); }
.section-dark .lede { color: var(--on-marine-soft); }
.caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-sm);
  color: var(--ink-faint);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 14;
}

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 0.95rem 1.6rem;
  font-weight: 600; font-size: var(--t-base);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn-primary { background: var(--gold); color: var(--tinta); box-shadow: var(--shadow-tile); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--limewash) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand-mark { width: 46px; height: auto; flex: none; }
.brand-type { display: flex; flex-direction: column; line-height: 1.05; }
.brand-type b {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-lg); font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 40;
  letter-spacing: -0.012em; color: var(--marine);
}
.brand-type i {
  font-style: normal; font-family: var(--font-body); font-weight: 600;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); margin-top: 2px;
}
@media (max-width: 420px) {
  .brand-mark { width: 38px; }
  .brand-type b { font-size: 1.02rem; }
}
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding-block: var(--s-2); border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.nav .btn { padding: 0.6rem 1.1rem; font-size: var(--t-sm); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track-eyebrow); }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--limewash); border-bottom: var(--hairline);
    padding: var(--s-4) var(--gutter) var(--s-6);
    transform: translateY(-120%); transition: transform var(--dur) var(--ease);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav[data-open='true'] { transform: translateY(0); }
  .nav a { padding-block: var(--s-4); border-bottom: var(--hairline); }
  .nav .btn { margin-top: var(--s-4); justify-content: center; }
}

/* ---- hero ---------------------------------------------------------------- */
.hero { position: relative; background: var(--marine); color: var(--on-marine); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tinta) 55%, transparent) 0%, transparent 38%),
    linear-gradient(0deg, var(--marine) 6%, color-mix(in srgb, var(--marine) 72%, transparent) 55%, color-mix(in srgb, var(--marine) 40%, transparent) 100%);
}
.hero-inner { position: relative; padding-block: clamp(4.5rem, 13vw, 9rem) 0; }
.hero h1 { font-size: var(--t-4xl); color: var(--limewash); max-width: 15ch; font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 144; }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144; }
.hero-lede { margin-top: var(--s-5); max-width: 48ch; font-size: var(--t-lg); color: var(--on-marine-soft); }
.hero .btn-row { margin-top: var(--s-6); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-7); font-size: var(--t-sm); color: var(--on-marine-soft); }
.hero-proof strong { color: var(--limewash); font-weight: 600; }

/* ---- the season band ------------------------------------------------------
   The signature. Twelve painted tiles saying what Goa actually does across the
   year. It runs along the foot of the hero so the first claim the brand makes
   is a piece of local knowledge rather than an adjective.
   -------------------------------------------------------------------------- */
.season-band { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: var(--hairline-light); }
.season-band-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); padding-block: var(--s-4) var(--s-3);
}
.season-band-head h2 { font-size: var(--t-base); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track-eyebrow); color: var(--limewash); }
.season-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; padding-bottom: var(--s-6); }
.season-month {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-3) var(--s-2) var(--s-4);
  background: color-mix(in srgb, var(--limewash) 8%, transparent);
  border-top: 4px solid var(--tile);
  font-size: var(--t-xs);
  text-align: left;
}
.season-month abbr { text-decoration: none; font-weight: 700; letter-spacing: 0.06em; color: var(--limewash); }
.season-month span { color: var(--on-marine-soft); line-height: 1.3; }
.season-month[data-state='peak']     { --tile: var(--season-peak); }
.season-month[data-state='premium']  { --tile: var(--season-premium); }
.season-month[data-state='shoulder'] { --tile: var(--season-shoulder); }
.season-month[data-state='monsoon']  { --tile: var(--season-monsoon); }

@media (max-width: 860px) {
  .season-months { grid-template-columns: repeat(6, 1fr); }
  .season-month span { display: none; }
}
@media (max-width: 460px) {
  .season-months { grid-template-columns: repeat(4, 1fr); }
}

.season-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-xs); color: var(--on-marine-soft); }
.season-key b { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.season-key i { width: 10px; height: 10px; display: inline-block; background: var(--tile); }
.season-key b[data-state='peak'] i     { --tile: var(--season-peak); }
.season-key b[data-state='premium'] i  { --tile: var(--season-premium); }
.season-key b[data-state='shoulder'] i { --tile: var(--season-shoulder); }
.season-key b[data-state='monsoon'] i  { --tile: var(--season-monsoon); }

/* ---- reveal on scroll ---------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
