/* Layout: container, sections, grid, header, navigation, page header, footer.
   Desktop-led like the reference design; breakpoints 1520 / 1100 / 900 / 600 / 480. */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-9); }
.section--tight { padding-block: 4.5rem; }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.section--card { background: var(--c-surface-alt); border-block: 1px solid var(--c-border); }
.section + .section--alt, .section--alt + .section--alt { border-top: 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4) var(--s-6); margin-bottom: var(--s-7);
}
.section__head > * { min-width: 0; }
.section__head h2 { margin: 0; }
.section__head p, .section__sub { margin: .85rem 0 0; color: var(--c-text-muted); max-width: 36rem; }
.section__head--center { justify-content: center; text-align: center; }
/* Section "more" links read as line links */
.section__more {
  display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--c-primary); text-decoration: none;
}
.section__more.link-arrow::after { content: ''; width: 2.5rem; height: 1px; background: var(--c-red); transition: width .45s var(--ease); }
.section__more:hover { color: var(--c-red-ink); gap: 1rem; }
.section__more:hover::after { width: 4rem; }
@media (max-width: 900px) {
  .section { padding-block: 5rem; }
  .section__head { margin-bottom: var(--s-6); }
}

.grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
.grid > * { min-width: 0; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stack > * + * { margin-top: var(--s-5); }
.cluster { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.split { display: grid; gap: var(--s-7); }
.split > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 5rem; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* Horizontal scroller (snap row; becomes a grid on wide screens) */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: var(--s-5);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-2) .25rem var(--s-5);
  scrollbar-width: thin; scrollbar-color: var(--c-gold) transparent;
}
.scroller > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 1024px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; } }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--c-blue); color: #FAF8F5;
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase;
  padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.utility-bar a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.utility-bar a:hover { color: #fff; }
.utility-bar__links { display: flex; gap: 1.75rem; }
.utility-bar__links a { display: inline-flex; align-items: center; gap: .45rem; }
.utility-bar__links .icon { width: .95rem; height: .95rem; color: var(--c-gold); }
@media (max-width: 900px) {
  .utility-bar { font-size: .66rem; padding: .6rem 0; }
  .utility-bar__links { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  --hdr-pad: 1.25rem;
  position: sticky; top: 0; z-index: 100; padding: var(--hdr-pad) 0;
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); position: relative; }
/* Brand lockup: crest | gold hairline | kicker over wordmark.
   --brand-size drives the wordmark; the crest and kicker scale from it. */
.brand { --brand-size: 2.35rem; --brand-mark: 62px; display: flex; align-items: center; gap: 1.1rem; text-decoration: none; min-width: 0; color: inherit; }
.brand__mark {
  width: var(--brand-mark); height: var(--brand-mark); flex: none; background: none; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(31, 40, 127, 0.16));
  transition: width .45s var(--ease-out), height .45s var(--ease-out), transform .6s var(--ease-out);
}
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.03); }
/* The name sets the width; the kicker above is stretched letter by letter to exactly that width */
.brand__text {
  display: inline-grid; justify-items: stretch; min-width: 0;
  padding-left: 1.1rem; border-left: 1px solid color-mix(in srgb, var(--c-gold) 70%, transparent);
}
.brand__kicker {
  display: flex; justify-content: space-between; width: 0; min-width: 100%; margin-bottom: .45rem;
  font-family: var(--font-body); font-size: calc(var(--brand-size) * .27); font-weight: 700;
  line-height: 1; text-transform: uppercase; color: var(--c-red-ink);
}
.brand__kicker > span { flex-shrink: 0; }
.brand__gap { width: .45em; }
.brand__name {
  position: relative; padding-bottom: .3rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--brand-size); line-height: .9;
  letter-spacing: -.005em; color: var(--c-heading); white-space: nowrap; transition: color var(--t-fast) ease;
}
/* Rainbow hairline under the wordmark: blue → red → gold, drawn in on hover */
.brand__name::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--rainbow); transform: scaleX(.22); transform-origin: left; opacity: .9;
  transition: transform .6s var(--ease-out);
}
.brand:hover .brand__name::after, .brand:focus-visible .brand__name::after { transform: scaleX(1); }
.site-header.is-scrolled .brand { --brand-mark: 48px; }
/* Dark theme: the navy shield needs a light edge to stand off the night background */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 12px rgba(174, 182, 255, 0.25)); }
}
:root[data-theme="dark"] .brand__mark { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 12px rgba(174, 182, 255, 0.25)); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.icon-btn {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); background: transparent; color: var(--c-primary);
  transition: var(--transition);
}
.icon-btn .icon, .icon-btn svg { width: 1.2rem; height: 1.2rem; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.icon-btn--sm { width: 38px; height: 38px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--c-border); background: transparent; color: var(--c-primary);
  align-items: center; justify-content: center; transition: var(--transition);
}
.nav-toggle .icon { width: 1.3rem; height: 1.3rem; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Primary navigation (desktop) ---------- */
.brand { flex-shrink: 0; }
.primary-nav { flex-shrink: 0; }
.primary-nav__list { display: flex; list-style: none; gap: 1.9rem; align-items: center; margin: 0; padding: 0; }
.primary-nav__extras { display: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .5rem 0;
  background: none; border: 0; white-space: nowrap; text-decoration: none;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: .1rem; width: 0; height: 2px; background: var(--c-red);
  transition: width .35s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--c-red-ink); }
.nav-link:hover::after, .nav-link.is-active::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--c-primary); }
.dd-caret { width: .85rem; height: .85rem; transition: transform .3s var(--ease); }
.has-dropdown { position: relative; }
.has-dropdown.is-open .dd-caret { transform: rotate(180deg); }

/* Simple dropdown: one short list of links */
.submenu {
  position: absolute; top: calc(100% + 1rem); left: -1.25rem; z-index: 200;
  min-width: 250px; padding: .6rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-top: 2px solid var(--c-red); border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .3s var(--ease-out), visibility .2s;
}
.submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -1.1rem; height: 1.1rem; } /* hover bridge */
.has-dropdown.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
  .has-dropdown:hover .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover .dd-caret { transform: rotate(180deg); }
}
.primary-nav__list > li:nth-last-child(-n+2) .submenu { left: auto; right: -1.25rem; }
.submenu__list { list-style: none; margin: 0; padding: 0; }
.submenu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .8rem; border-radius: 10px; white-space: nowrap;
  font-size: .9rem; font-weight: 500; color: var(--c-text); text-decoration: none;
  transition: background-color .2s ease, color .2s ease, padding .25s var(--ease-out);
}
.submenu__list a::after { content: '→'; opacity: 0; color: var(--c-red-ink); transition: opacity .2s ease; }
.submenu__list a:hover, .submenu__list a:focus-visible { background: var(--c-bg); color: var(--c-red-ink); padding-left: 1rem; }
.submenu__list a:hover::after, .submenu__list a:focus-visible::after { opacity: 1; }

/* Small desktops: tighten so the menu never runs into the brand */
@media (max-width: 1360px) and (min-width: 1101px) {
  .primary-nav__list { gap: 1.25rem; }
  .nav-link { font-size: .7rem; letter-spacing: .09em; }
  .brand { --brand-size: 2.05rem; --brand-mark: 56px; gap: .9rem; }
  .brand__text { padding-left: .9rem; }
}
@media (max-width: 1240px) and (min-width: 1101px) {
  .brand { --brand-size: 1.9rem; --brand-mark: 50px; }
  .primary-nav__list { gap: 1rem; }
}
/* "Find a church" is an icon button in the header (full button in the mobile panel) */
.header-actions .btn--icon { width: 46px; height: 46px; padding: 0; }
.header-actions .btn--icon .btn__label { display: none; }

/* ---------- Mobile menu panel (≤1100px): the same nav, opened under the header ---------- */
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav.is-open {
    display: block; position: absolute; top: calc(100% + var(--hdr-pad)); left: 0; right: 0;
    max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border); border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 30px rgba(13, 16, 43, 0.12); padding: .5rem var(--gutter) 1.5rem;
  }
  .primary-nav.is-open .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open .primary-nav__list > li { border-bottom: 1px solid var(--c-border); }
  .primary-nav.is-open .nav-link { display: flex; width: 100%; justify-content: space-between; padding: 1rem 0; font-size: .8rem; }
  .primary-nav.is-open .nav-link::after { display: none; }
  .submenu, .primary-nav__list > li:nth-last-child(-n+2) .submenu {
    position: static; min-width: 0; display: none; padding: 0 0 .75rem;
    border: none; border-radius: 0; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none;
  }
  .submenu::before { display: none; }
  .has-dropdown.is-open .submenu { display: block; }
  .submenu__list a { padding: .65rem .5rem; white-space: normal; }
  .primary-nav.is-open .primary-nav__extras { display: grid; gap: 1.25rem; padding-top: 1.5rem; }
  .primary-nav__quick { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
  .primary-nav__utility { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
  .primary-nav__utility a { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500; color: var(--c-text); text-decoration: none; }
  .primary-nav__utility .icon { color: var(--c-red-ink); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 900px) {
  .site-header { --hdr-pad: 1rem; }
  .brand { --brand-size: 2rem; --brand-mark: 54px; gap: .9rem; }
  .brand__text { padding-left: .9rem; }
  .site-header.is-scrolled .brand { --brand-mark: 44px; }
  .header-actions .btn { padding: .75rem 1rem; font-size: .68rem; }
}
@media (max-width: 600px) {
  .header-actions { gap: .4rem; }
  .icon-btn, .nav-toggle, .header-actions .btn--icon { width: 42px; height: 42px; }
  .header-actions .btn--icon { padding: 0; }
  .header-actions .btn--icon .btn__label { display: none; }
  .primary-nav__quick { grid-template-columns: 1fr; }
}
/* Phones: the gold rule gives way so the wordmark and kicker stay legible beside three buttons */
@media (max-width: 480px) {
  .site-header__inner { gap: .75rem; }
  .brand { --brand-size: 1.55rem; --brand-mark: 34px; gap: .6rem; }
  .brand__text { border-left: 0; padding-left: 0; }
  .brand__kicker { font-size: calc(var(--brand-size) * .285); margin-bottom: .35rem; }
  .site-header.is-scrolled .brand { --brand-mark: 32px; }
}
@media (max-width: 370px) { .brand { --brand-size: 1.42rem; --brand-mark: 32px; gap: .5rem; } }
@media (max-width: 340px) {
  .brand { --brand-size: 1.12rem; --brand-mark: 28px; gap: .4rem; }
  .icon-btn, .nav-toggle, .header-actions .btn--icon { width: 40px; height: 40px; }
  .site-header.is-scrolled .brand { --brand-mark: 28px; }
}

/* ---------- Header search panel ---------- */
.search-panel { border-top: 1px solid var(--c-border); margin-top: 1.25rem; padding-top: 1.25rem; }
.search-form {
  display: flex; align-items: center; gap: .75rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-pill);
  padding: .4rem .4rem .4rem 1.4rem; box-shadow: var(--shadow-1);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.search-form:focus-within { border-color: var(--c-primary); box-shadow: 0 10px 30px rgba(31, 40, 127, 0.14); }
.search-form__icon { width: 1.15rem; height: 1.15rem; color: var(--c-text-muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--c-text); padding: .6rem 0; }
.search-form__input:focus-visible { outline: 0; }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--c-surface-alt); border-bottom: 1px solid var(--c-border); color: var(--c-text); font-size: var(--fs-sm); }
.notice-bar .container { display: flex; gap: var(--s-4); align-items: center; min-height: 52px; padding-block: var(--s-2); }
.notice-bar__icon { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c-red) 10%, transparent); color: var(--c-red-ink); }
.notice-bar__icon .icon { width: 1rem; height: 1rem; }
.notice-bar p { margin: 0; flex: 1; min-width: 0; }
.notice-bar a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--c-primary); text-decoration: none; }
.notice-bar a:hover { color: var(--c-red-ink); }
.notice-bar a .icon { width: .9rem; height: .9rem; }

/* ---------- Page header (inner pages): navy band with grain ---------- */
.page-header {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue) 100%); color: var(--c-on-dark);
  padding-block: 5.5rem 5rem;
}
.page-header::before { /* soft glow */
  content: ''; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(197, 160, 89, 0.16), transparent);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--c-on-dark); margin-bottom: var(--s-4); max-width: 22ch; }
.page-header h1 em, .page-header .display em { color: var(--c-gold); }
.page-header .lead { color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 46rem; }
.page-header .tag { margin-bottom: var(--s-5); }
.page-header .breadcrumbs, .page-header .breadcrumbs a { color: rgba(255, 255, 255, 0.7); }
.page-header .breadcrumbs a:hover { color: var(--c-gold); }
.page-header .breadcrumbs [aria-current] { color: #fff; }
.page-header .badge { background: rgba(255, 255, 255, 0.1); color: #fff; }
.page-header .badge--accent, .page-header .badge--warning { color: var(--c-gold); }
.page-header a:not(.btn):not(.share-btn) { color: #fff; }
.page-header a:not(.btn):not(.share-btn):hover { color: var(--c-gold); }
.page-header .btn--secondary, .page-header .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.page-header .muted, .page-header .card__meta { color: rgba(255, 255, 255, 0.7); }
.page-header__accent { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rainbow); z-index: 3; }
.page-header--photo { padding-block: 7rem 5rem; }
.page-header--photo > img, .page-header--photo > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .22; filter: grayscale(30%);
}
@media (max-width: 900px) { .page-header { padding-block: 4rem 3.75rem; } .page-header--photo { padding-block: 5rem 3.75rem; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: var(--s-5); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: ''; width: 5px; height: 5px; border: 1px solid var(--c-gold); transform: rotate(45deg); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs [aria-current] { color: inherit; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--c-navy) 0%, var(--c-blue) 120%); color: var(--c-on-dark);
  padding: 6rem 0 3rem;
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer__accent { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rainbow); z-index: 3; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; }
.footer-grid > * { min-width: 0; }
.footer-brand__name { color: #fff; font-family: var(--font-display); font-style: italic; font-size: 2.75rem; line-height: 1; margin-bottom: 1rem; }
.footer-brand__name em { color: var(--c-gold); }
.footer-brand__text { color: rgba(255, 255, 255, 0.75); }
.site-footer h2 {
  color: var(--c-gold); font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; margin-bottom: 1.5rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .75rem; }
.footer-grid li a { display: inline-flex; align-items: baseline; gap: .6rem; color: rgba(255, 255, 255, 0.75); font-size: .875rem; text-decoration: none; }
.footer-grid li a::before { content: ''; flex: none; width: 5px; height: 5px; position: relative; top: -.15em; border: 1px solid var(--c-gold); transform: rotate(45deg); transition: background-color .3s ease; }
.footer-grid li a:hover { color: #fff; }
.footer-grid li a:hover::before { background: var(--c-red); border-color: var(--c-red); }
.footer-address { font-style: normal; color: rgba(255, 255, 255, 0.75); margin-top: 1.5rem; line-height: 1.7; display: grid; gap: .75rem; font-size: .92rem; }
.footer-address a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-address a:hover { color: var(--c-gold); }
.footer-contact { display: flex; align-items: flex-start; gap: .65rem; }
.footer-contact > .icon { width: 1rem; height: 1rem; margin-top: .35rem; color: var(--c-gold); }
.footer-follow { margin-top: 2rem; }
.footer-bottom {
  margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  font-size: .8125rem; color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.footer-bottom__links { display: flex; align-items: center; gap: 1.5rem; }
.footer-bottom__links a:not(.to-top) { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-bottom__links a:not(.to-top):hover { color: var(--c-gold); }
.to-top {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); color: #fff; transition: var(--transition);
}
.to-top .icon { width: 1rem; height: 1rem; }
.to-top:hover { background: var(--c-red); border-color: var(--c-red); transform: scale(1.06); color: #fff; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .site-footer { padding-top: 4.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 3.5rem; }
  .footer-bottom__links { flex-wrap: wrap; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } .footer-brand__name { font-size: 2.25rem; } }

/* Social links (dark by default, light variant inside the mobile menu) */
.social { display: flex; gap: .65rem; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; transition: var(--transition);
}
.social .icon { width: 1.05rem; height: 1.05rem; }
.social a:hover { background: var(--c-red); border-color: var(--c-red); transform: translateY(-2px); color: #fff; }
.social--dark a { border-color: var(--c-border); color: var(--c-primary); }
