/* ==========================================================================
   Dynamite Faith Church International — Design System
   Palette: navy #12355B | gold #D4A72C | white | light gray #F7F8FA
   ========================================================================== */

:root {
  /* Brand */
  --navy: #12355B;
  --navy-700: #0d2846;
  --navy-300: #2f5c8f;
  --gold: #D4A72C;
  --gold-600: #b78d1d;
  --gold-soft: #FBF4E0;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #EEF1F5;
  --gray-200: #E2E6EC;
  --text: #1F2937;
  --muted: #6B7280;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Space + shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 53, 91, .06), 0 2px 8px rgba(18, 53, 91, .05);
  --shadow: 0 8px 28px rgba(18, 53, 91, .09);
  --container: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-600); }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--gray-50); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.sec-head p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; min-height: 48px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; font-weight: 600; font-size: .96rem; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #22303f; --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-600); --btn-bd: var(--gold-600); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: var(--gray-200); }
.btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--sm { padding: 9px 18px; min-height: 40px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.link-more svg { transition: transform .18s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 4px 20px rgba(18, 53, 91, .08); }
.header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 54px; height: 54px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.brand__sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--text);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--navy); background: var(--gray-50); }
.nav__link[aria-current="true"] { font-weight: 600; }
.header__cta { margin-left: 10px; }
.nav__cta { display: none; } /* shown only inside the mobile menu */
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--gray-200);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .22s var(--ease), background-color .22s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile navigation: a drawer that slides in from the side, over a dimmed page.
   (It deliberately does not drop down from the top of the screen.) */
.nav__head { display: none; }
.nav-scrim {
  /* Below the header (z-index 100), because the drawer lives inside the header's
     stacking context and cannot paint above a scrim that sits over it. The
     header bar itself is dimmed by .header.is-nav-open::after. */
  position: fixed; inset: 0; z-index: 99;
  background: rgba(13, 30, 51, .55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  /* backdrop-filter would make the header a containing block for the fixed
     drawer, trapping it at header height — so it is dropped at these widths. */
  .header { backdrop-filter: none; background: #fff; }

  /* Dims the header bar in step with the scrim over the rest of the page. */
  .header.is-nav-open::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: rgba(13, 30, 51, .55);
    animation: nav-scrim-in .3s var(--ease) both;
  }
  @keyframes nav-scrim-in { from { opacity: 0; } to { opacity: 1; } }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    width: min(86vw, 330px);
    display: flex; flex-direction: column;
    background: #fff;
    padding:
      calc(14px + env(safe-area-inset-top, 0px))
      20px
      calc(26px + env(safe-area-inset-bottom, 0px));
    box-shadow: -20px 0 50px rgba(18, 53, 91, .18);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%);
    /* visibility keeps the closed drawer out of the tab order. It flips
       instantly on open, and only after the slide-out finishes on close —
       transitioning it would leave the drawer hidden to focus() while open. */
    visibility: hidden;
    transition: transform .32s var(--ease), visibility 0s linear .32s;
  }
  .nav.is-open {
    transform: none; visibility: visible;
    transition: transform .32s var(--ease), visibility 0s linear 0s;
  }

  .nav__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-bottom: 14px; margin-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav__title {
    font-size: .72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gold-600);
  }
  .nav__close {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center;
    border: 1.5px solid var(--gray-200); border-radius: 12px;
    background: #fff; color: var(--navy); cursor: pointer;
    transition: border-color .18s var(--ease), color .18s var(--ease);
  }
  .nav__close:hover { border-color: var(--navy); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.02rem;
  }
  .nav__link[aria-current="true"] {
    background: var(--gold-soft); color: var(--navy);
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .nav__cta { display: block; margin-top: auto; padding-top: 22px; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 68px) clamp(48px, 7vw, 92px); background: var(--white); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 9px;
  background: var(--gold-soft); border: 1px solid #F0E2B8; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: #7a5e0f; margin-bottom: 22px;
}
.hero__badge svg { width: 18px; height: 18px; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--gold-600); }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 44ch; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--gray-100); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__meta dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 1.06rem; color: var(--navy); font-weight: 600; }
.hero__media { position: relative; }
.hero__media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--gray-100); background: var(--gray-50);
}
.hero__media .frame img { width: 100%; height: clamp(300px, 46vw, 520px); object-fit: cover; }
.hero__card {
  position: absolute; left: -18px; bottom: -22px;
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 290px;
}
.hero__card .dot { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-600); }
.hero__card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.hero__card span { font-size: .84rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__card { left: 12px; bottom: -18px; }
}

/* ---------- Split (welcome) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: clamp(280px, 40vw, 460px); object-fit: cover; }
.split__body p { color: var(--muted); }
.checklist { margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.checklist svg { flex: none; margin-top: 3px; color: var(--gold-600); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px 24px; height: 100%; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8DFE8; }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); margin-bottom: 18px;
}
.card--gold .card__icon { background: var(--gold-soft); color: var(--gold-600); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.card__foot { margin-top: auto; }
.card__time {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  color: var(--navy); background: var(--gray-50); border: 1px solid var(--gray-200);
  padding: 7px 13px; border-radius: 999px;
}
.card__time[data-placeholder="true"] { color: var(--gold-600); background: var(--gold-soft); border-color: #F0E2B8; }

/* ---------- Sermon cards ---------- */
.sermon { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.sermon__thumb { position: relative; background: var(--navy); }
.sermon__thumb img { width: 100%; height: 190px; object-fit: cover; opacity: .92; }
.sermon__play {
  position: absolute; inset: auto 16px 16px auto; width: 52px; height: 52px; border-radius: 50%;
  border: none; background: var(--gold); color: #22303f; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.sermon__play:hover { transform: scale(1.08); background: #e3b638; }
.sermon__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .94); color: var(--navy);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.sermon__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .84rem; margin-bottom: 10px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.sermon__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- Event cards ---------- */
.event { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.event__date {
  background: var(--navy); color: #fff; border-radius: var(--radius-sm); text-align: center;
  padding: 14px 8px; line-height: 1.1;
}
.event__date .d { font-family: var(--font-head); font-size: 1.85rem; font-weight: 700; display: block; }
.event__date .m { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.event__date .y { font-size: .72rem; color: #B9C7D8; }
@media (max-width: 420px) { .event { grid-template-columns: 1fr; } .event__date { width: 96px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item {
  position: relative; padding: 0; border: none; background: var(--gray-100); cursor: pointer;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery__item:nth-child(1), .gallery__item:nth-child(6) { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 53, 91, .55), transparent 55%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:nth-child(1), .gallery__item:nth-child(6) { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: rgba(13, 30, 51, .93); padding: 24px; place-items: center;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox__inner { max-width: 960px; width: 100%; text-align: center; }
.lightbox__inner img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { color: #E8EDF3; margin-top: 14px; font-size: .95rem; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; transform: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold-soft); border: 1px solid #F0E2B8; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gold);
}
.cta-band p { color: #5d5233; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 16px; margin-bottom: 26px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); display: grid; place-items: center; color: var(--navy); }
.info-item strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-item a, .info-item span { color: var(--text); font-weight: 500; }
.info-item a:hover { color: var(--gold-600); }

.form { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--text);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3AF; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18, 53, 91, .1); }
.field textarea { resize: vertical; min-height: 130px; }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; }
.field__error { display: none; color: #C0392B; font-size: .82rem; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.form__note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form__status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .92rem; background: var(--gold-soft); border: 1px solid #F0E2B8; color: #6b5514; }
.form__status.is-visible { display: block; }

.map-frame { margin-top: clamp(32px, 4vw, 52px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); background: var(--gray-50); }
.map-frame iframe { width: 100%; height: clamp(280px, 38vw, 420px); border: 0; display: block; background: var(--gray-50); }
.map-frame__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: #fff; border-top: 1px solid var(--gray-200);
}
.map-place {
  position: relative; display: grid; place-content: center; text-align: center;
  height: clamp(280px, 38vw, 420px);
  background:
    linear-gradient(140deg, #12355B 0%, #0d2846 100%),
    var(--navy);
  color: #fff; overflow: hidden;
}
.map-place::before {
  content: ""; position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: rotate(-4deg);
}
.map-place > * { position: relative; }
.map-place__pin {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: #22303f; background: var(--gold);
  box-shadow: 0 0 0 10px rgba(212, 167, 44, .18);
}
.map-place__town { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; color: #fff; }
.map-place__region { margin: 6px 0 0; color: #B9C7D8; font-size: .95rem; letter-spacing: .04em; }
.map-frame__bar p { margin: 0; font-size: .94rem; color: var(--muted); }
.map-frame__bar strong { color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #C6D2E0; padding-block: clamp(48px, 6vw, 76px) 0; margin-top: clamp(56px, 7vw, 96px); }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #C6D2E0; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__name, .footer__brand .brand__sub { color: #fff; }
.footer__brand p { margin-top: 16px; max-width: 34ch; font-size: .94rem; }
.footer__links { display: grid; gap: 10px; font-size: .94rem; }
.footer__contact { display: grid; gap: 10px; font-size: .94rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.socials a:hover { background: var(--gold); color: #22303f; transform: translateY(-2px); }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .86rem; color: #9FB0C4;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }
.placeholder-note {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted);
  background: var(--gray-50); border: 1px dashed var(--gray-200); padding: 8px 14px; border-radius: 999px;
}
