/* ============================================================
   Willesden SDA Church — styles
   Design tokens live in :root so the palette is centralised and
   ports cleanly to a future Astro build.
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #0f2f76;
  --navy-dark:   #0a2154;
  --navy-deep:   #071838;
  --gold:        #d9a441;
  --gold-light:  #e8c37a;

  /* Surfaces & text */
  --white:       #ffffff;
  --off-white:   #f6f7fb;
  --ink:         #1a2233;
  --ink-soft:    #4a5468;
  --line:        #e2e6ef;

  /* Type */
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(7, 24, 56, 0.35);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-gold   { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }

.btn-navy   { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(7, 24, 56, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.brand-sub  { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.primary-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.primary-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(217, 164, 65, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: clamp(84px, 14vw, 120px); margin-bottom: 22px; }
.hero-eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-light);
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 20px;
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt  { background: var(--off-white); }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 5vw, 52px); }
.kicker {
  display: inline-block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}
.kicker-light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--navy);
}
.section-title-light { color: var(--white); }
.section-intro { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }
.section-intro-light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive video / map frames (16:9) ---------- */
.video-frame,
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe,
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-note {
  text-align: center;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ============================================================
   SERVICE TIMES
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 10px 30px -22px rgba(7, 24, 56, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-title { font-family: var(--font-head); font-size: 1.5rem; margin: 0 0 6px; color: var(--navy); }
.card-time  { font-size: 1.7rem; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.card-desc  { margin: 0; color: var(--ink-soft); }
.times-note { text-align: center; margin: 28px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.about-text .section-title { margin-top: 6px; }
.about-text p { font-size: 1.06rem; color: var(--ink-soft); }
.about-logo-wrap { display: flex; justify-content: center; }
.about-logo { width: min(280px, 70%); opacity: 0.95; }

/* ============================================================
   VISIT / MAP
   ============================================================ */
.visit-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.visit-details {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visit-details h3 { font-family: var(--font-head); font-size: 1.6rem; margin: 0 0 14px; color: var(--navy); }
.visit-details address { font-style: normal; color: var(--ink-soft); line-height: 1.8; margin-bottom: 24px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.contact-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--white);
  transition: background 0.2s ease, transform 0.18s ease;
}
a.contact-item:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); text-decoration: none; }
.contact-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--gold-light);
}
.contact-value { font-size: 1.15rem; font-weight: 600; }
.social-links { display: flex; flex-wrap: wrap; gap: 16px; }
.social-links a { color: var(--white); font-weight: 600; }
.social-links a:hover { color: var(--gold-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); padding: 44px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; }
.footer-logo { width: 40px; height: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-nav a { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy { margin: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-logo-wrap { order: -1; }
  .visit-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-dark);
    padding: 8px 14px 16px;
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .primary-nav.open { max-height: 340px; }
  .primary-nav a { padding: 13px 12px; border-radius: 8px; }
}

@media (max-width: 460px) {
  .brand-sub { display: none; }
  .btn { width: 100%; text-align: center; }
  .hero-actions { width: 100%; }
}
