/* ==========================================================================
   Mountaintop Accounting & Tax Consultancy — main stylesheet
   Layout and component style modelled on a big-four-style advisory site
   (utility bar, mega-menu, diagonal heroes, tiles, carousels, sidebars),
   in Mountaintop's own brand colours: navy #030C42 and gold #D1B200.
   ========================================================================== */

:root {
  --navy: #030c42;
  --navy-deep: #03002e;
  --navy-mid: #16205c;
  --gold: #d1b200;
  --gold-hover: #e2c414;
  --gold-soft: #fbf6d6;

  --ink: #26293b;
  --text: #444857;
  --muted: #6d7183;
  --slate: #5b6e7f;
  --line: #e7e7ea;
  --grey: #f4f4f6;
  --grey-2: #ebebef;
  --white: #fff;

  --font: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --shadow: 0 7px 29px rgba(100, 100, 111, 0.2);
  --shadow-lg: 0 18px 40px rgba(30, 32, 60, 0.18);
  --util-h: 38px;
  --head-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-mid); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 400; }
h3 { font-size: 1.375rem; font-weight: 800; }
h4 { font-size: 1.125rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--gold); color: var(--navy-deep); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--grey { background: var(--grey); }
.sec-title { text-align: center; margin-bottom: .35em; }
.sec-sub { text-align: center; font-size: 1.125rem; color: var(--muted); max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.75rem; border: 2px solid transparent; border-radius: 0;
  font-size: 1rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-hover); color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-mid); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9375rem; color: var(--navy); text-decoration: none; }
.more svg { width: 16px; height: 16px; color: var(--gold); transition: transform .2s; }
.more:hover { color: var(--navy); text-decoration: underline; }
.more:hover svg { transform: translateX(3px); }
.chev-only { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--navy); }
.chev-only svg { width: 18px; height: 18px; }

.chip { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--slate); background: var(--white); line-height: 1.3; }
.chip--gold { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }

/* ---------- Utility bar ---------- */
.utility { background: var(--white); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.utility .container { display: flex; align-items: stretch; justify-content: space-between; min-height: var(--util-h); }
.utility__info { display: flex; align-items: center; gap: 1.25rem; color: var(--muted); }
.utility__info span, .utility__info a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; }
.utility__info a:hover { color: var(--navy); }
.utility__info svg { width: 14px; height: 14px; color: var(--gold); }
.utility nav { display: flex; align-items: stretch; }
.utility nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; margin-right: 1.75rem; }
.utility nav a { color: var(--ink); text-decoration: none; }
.utility nav a:hover, .utility nav a[aria-current] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.utility__contact { display: inline-flex; align-items: center; padding: 0 1.5rem; background: var(--gold); color: var(--navy-deep) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none !important; }
.utility__contact:hover { background: var(--gold-hover); }

/* ---------- Main header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(20, 22, 50, .12); }
.site-header > .container { display: flex; align-items: stretch; gap: 2rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }

.main-nav { display: flex; align-items: stretch; margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: .5rem; }
.main-nav > ul > li { display: flex; align-items: stretch; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: 0 .9rem; background: none; border: 0; cursor: pointer;
  font-size: .9375rem; font-weight: 700; color: var(--ink); text-decoration: none; position: relative;
}
.nav-link svg { width: 14px; height: 14px; color: var(--gold); transition: transform .2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-link:hover { color: var(--navy); }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(20, 22, 50, .14); display: none; }
.mega.is-open { display: block; }
.mega__inner { display: grid; grid-template-columns: 1fr 2.4fr; gap: 3rem; padding-block: 2.25rem 2.5rem; }
.mega__intro h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.mega__intro p { color: var(--muted); font-size: .9375rem; }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.mega__links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.mega__links a:hover { color: var(--navy); }
.mega__links a svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.mega__links small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; margin-top: .15rem; }

/* Search block */
.search { position: relative; display: flex; align-items: stretch; flex: 0 0 260px; margin-right: calc(var(--gutter) * -1); background: var(--grey-2); }
.search label { display: flex; align-items: center; gap: .6rem; width: 100%; padding: 0 1.25rem; cursor: text; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { width: 100%; border: 0; background: transparent; outline: none; font-size: .9375rem; color: var(--ink); min-height: 44px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: inset 0 -3px 0 var(--gold); }
.search-results { position: absolute; right: 0; top: 100%; width: min(420px, 100vw); max-height: 70vh; overflow-y: auto; background: var(--white); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); list-style: none; margin: 0; padding: .5rem 0; display: none; z-index: 120; }
.search-results.is-open { display: block; }
.search-results a { display: block; padding: .75rem 1.25rem; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a.is-active { background: var(--grey); }
.search-results strong { display: block; font-weight: 800; }
.search-results span { font-size: .8125rem; color: var(--muted); }
.search-results .empty { padding: .9rem 1.25rem; color: var(--muted); font-size: .9375rem; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin: auto 0 auto auto; border: 0; background: var(--grey-2); cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (min-width: 1101px) {
  .site-header > .container { position: static; }
  .site-header { position: sticky; }
}
@media (max-width: 1100px) {
  .utility nav ul { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 46px; }
  .site-header > .container { min-height: 68px; align-items: center; }
  .main-nav {
    position: fixed; inset: var(--nav-top, 106px) 0 0 0; z-index: 99; margin: 0;
    flex-direction: column; align-items: stretch; background: var(--white); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 0 var(--gutter); }
  .main-nav > ul > li { flex-direction: column; border-bottom: 1px solid var(--line); }
  .nav-link { justify-content: space-between; padding: 1.05rem 0; font-size: 1.0625rem; width: 100%; }
  .nav-link::after { display: none; }
  .nav-link.is-current { color: var(--navy); box-shadow: inset 4px 0 0 var(--gold); padding-left: .9rem; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega__inner { grid-template-columns: 1fr; gap: 0; padding: 0 0 1rem; }
  .mega__intro { display: none; }
  .mega__links { grid-template-columns: 1fr; }
  .mega__links a { padding-left: .75rem; }
  .search { order: -1; flex: none; margin: 0; }
  .search label { padding: .4rem var(--gutter); }
  .search-results { position: static; width: 100%; box-shadow: none; }
  .main-nav .mobile-contact { display: flex; padding: 1.5rem var(--gutter) 2rem; }
  .main-nav .mobile-contact .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
.mobile-contact { display: none; }
@media (max-width: 640px) {
  .utility__info .hide-sm { display: none; }
  .utility__contact { padding: 0 1rem; }
}

/* ---------- Home hero slider ---------- */
.hero { position: relative; background: var(--grey); overflow: hidden; }
.hero__slides { position: relative; min-height: clamp(520px, 44vw, 620px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media::after { content: ""; position: absolute; inset: 0; background: var(--gold); clip-path: polygon(100% 38%, 100% 100%, 62% 100%); }
.hero__pattern { position: absolute; inset: 0; background:
  linear-gradient(118deg, transparent 0 34%, rgba(255,255,255,.75) 34% 46%, transparent 46%),
  linear-gradient(118deg, transparent 0 12%, rgba(255,255,255,.45) 12% 20%, transparent 20%); pointer-events: none; }
.slide__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.slide__text { max-width: 33rem; padding-block: 3rem 8rem; }
.slide__text .chip { margin-bottom: 1rem; }
.slide__text h1, .slide__text h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem); font-weight: 800; color: var(--ink); margin-bottom: .35em; }
.slide__text p { font-size: 1.25rem; color: var(--text); margin-bottom: 1.75rem; }

.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.75rem; }
.hero__controls .container { display: flex; align-items: center; gap: .75rem; }
.hero__arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.hero__arrow svg { width: 26px; height: 26px; }
.hero__arrow:hover { color: var(--navy); }
.hero__thumbs { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.hero__thumbs button { display: block; width: 92px; height: 60px; padding: 0; border: 0; cursor: pointer; background: var(--grey-2); position: relative; opacity: .65; transition: opacity .2s; }
.hero__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumbs button[aria-current="true"] { opacity: 1; }
.hero__thumbs button[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--gold); }
.hero__pause { display: grid; place-items: center; width: 36px; height: 36px; margin-left: .5rem; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); }
.hero__pause svg { width: 14px; height: 14px; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }

/* ---------- Pill tabs + featured list ---------- */
.pills { display: flex; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.pills [role="tablist"] { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .25rem; padding: .3rem; background: var(--grey); border-radius: 9999px; }
.pill { padding: .55rem 1.5rem; border: 0; border-radius: 9999px; background: transparent; font-size: 1.0625rem; font-weight: 700; color: var(--slate); cursor: pointer; }
.pill:hover { color: var(--navy); }
.pill[aria-selected="true"] { background: var(--navy); color: var(--white); }

.featured { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.featured__list { list-style: none; margin: 0; padding: 0; }
.featured__item { padding: 1.1rem 0 1.1rem 1.5rem; border-left: 3px solid var(--line); }
.featured__item + .featured__item { margin-top: 1rem; }
.featured__item:first-child { border-left-color: var(--gold); }
.featured__item .chip { margin-bottom: .6rem; }
.featured__item h3 { margin-bottom: .35rem; }
.featured__item h3 a { color: var(--ink); text-decoration: none; }
.featured__item h3 a:hover { color: var(--navy); text-decoration: underline; }
.featured__item p { font-size: .9375rem; margin-bottom: .6rem; }
.featured__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-lg); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Service tiles over a slanted photo band ---------- */
.tiles-wrap { position: relative; padding-block: var(--section); overflow: hidden; }
.tiles-stage { position: relative; }
.tiles-band { position: absolute; top: -3rem; bottom: -3rem; left: 38%; right: calc((100% - 100vw) / 2); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.tiles-band img { width: 100%; height: 100%; object-fit: cover; }
.tiles-wrap .container { position: relative; }
.tiles-wrap { padding-block: calc(var(--section) + 1rem); }
.tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.tile { display: flex; flex-direction: column; min-height: 250px; padding: 2rem 1.75rem 1.5rem; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: box-shadow .2s; position: relative; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .25s; }
.tile:hover::before, .tile:focus-visible::before { width: 100%; }
.tile:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.tile h3 { color: var(--ink); }
.tile p { font-size: .9375rem; margin-bottom: 1rem; }
.tile .chev-only { margin-top: auto; margin-left: -6px; }

/* ---------- Card carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .5rem 2rem; margin: 0 -.5rem; list-style: none; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; display: flex; }
.card { display: flex; flex-direction: column; width: 100%; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.card__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--grey-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1rem; }
.card__body .chip { align-self: flex-start; margin-bottom: .75rem; }
.card__body h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: .5rem; }
.card__meta { font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.card__body .chev-only { margin-top: auto; margin-left: -6px; }
.carousel__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.carousel__bars { display: flex; gap: .4rem; flex: 1; }
.carousel__bars button { flex: 1 1 0; max-width: 40px; min-width: 8px; height: 4px; padding: 0; border: 0; background: var(--grey-2); cursor: pointer; }
.carousel__bars button[aria-current="true"] { background: var(--navy); }
.carousel__arrows { display: flex; gap: .5rem; }
.carousel__arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--navy); }
.carousel__arrows button:hover { border-color: var(--navy); }
.carousel__arrows button:disabled { opacity: .35; cursor: default; }
.carousel__arrows svg { width: 20px; height: 20px; }

/* ---------- Process cards ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { background: var(--white); box-shadow: var(--shadow); padding: 2rem 1.5rem 1.75rem; border-top: 3px solid var(--gold); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--navy); margin-bottom: 1rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { font-size: .9375rem; margin: 0; }

/* ---------- Dark "why us" band ---------- */
.band-dark { position: relative; overflow: hidden; background: var(--navy-deep); color: #cfd2ea; padding-block: var(--section); isolation: isolate; }
.band-dark__img { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; z-index: -2; }
.band-dark__img img { width: 100%; height: 100%; object-fit: cover; }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-deep) 45%, rgba(3, 0, 46, .55) 75%, rgba(3, 0, 46, .2)); }
.band-dark h2 { color: var(--white); }
.band-dark__text { max-width: 40rem; }
.band-dark .motto { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; color: var(--white); line-height: 1.25; margin-bottom: 1rem; }
.ethics { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.ethics li { padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.35); font-size: .875rem; font-weight: 700; color: var(--white); }

/* ---------- "Find your adviser" split ---------- */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--white); }
.split-cta__img { align-self: stretch; min-height: 380px; }
.split-cta__img img { width: 100%; height: 100%; object-fit: cover; }
.split-cta__text { padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 5vw, 6rem); max-width: 40rem; }
.split-cta__text p { margin-bottom: 1.75rem; }

/* ---------- Breadcrumb + inner hero ---------- */
.crumbs { background: var(--white); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.crumbs ol { list-style: none; margin: 0; padding: .8rem 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }

.page-hero { position: relative; background: var(--grey); overflow: hidden; min-height: 300px; display: flex; align-items: center; }
.page-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero__text { max-width: 30rem; padding-block: 3rem; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { font-size: 1.125rem; margin: 0; }

/* ---------- Inner page layout with sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.sidebar { position: sticky; top: calc(var(--head-h) + 1.5rem); display: grid; gap: 1.5rem; }
.side-box { background: var(--white); box-shadow: var(--shadow); border-left: 4px solid var(--gold); padding: 1.75rem 1.75rem 1rem; }
.side-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; text-decoration: none; color: var(--ink); font-size: .9375rem; }
.side-links a:hover { color: var(--navy); text-decoration: underline; }
.side-links a[aria-current="page"] { font-weight: 800; color: var(--navy); }
.side-links a svg { width: 16px; height: 16px; flex: none; color: var(--navy); }
.side-box--contact { text-align: center; padding-bottom: 1.75rem; }
.side-box--contact .btn { padding-inline: 1.1rem; min-height: 46px; font-size: .875rem; }
.side-box--contact p { font-size: .9375rem; }

/* Content components */
.check-list { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23030c42' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.roadmap { list-style: none; counter-reset: rd; margin: 1.25rem 0 0; padding: 0 !important; }
.roadmap li { counter-increment: rd; position: relative; padding: 1.1rem 0 1.1rem 3.75rem; border-top: 1px solid var(--line); margin: 0 !important; }
.roadmap li:last-child { border-bottom: 1px solid var(--line); }
.roadmap li::before { content: counter(rd); position: absolute; left: 0; top: 1rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 800; }
.roadmap strong { display: block; color: var(--ink); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.info-box { background: var(--grey); padding: 1.5rem; border-top: 3px solid var(--navy); }
.info-box h3 { font-size: 1.0625rem; margin-top: 0; }
.info-box ul { margin: 0; font-size: .9375rem; }
.def-list { margin: 1.25rem 0 0; }
.def-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.def-list div:last-child { border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 800; color: var(--navy); font-size: 1.0625rem; }
.def-list dd { margin: 0; font-size: .9375rem; }
.def-list dd strong { color: var(--ink); }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.mini-cards article { background: var(--white); box-shadow: var(--shadow); padding: 1.5rem; border-top: 3px solid var(--gold); font-size: .9375rem; }
.mini-cards h3 { font-size: 1.125rem; margin-top: 0; }
.mini-cards p { margin: 0; }
.callout { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 1.25rem 1.5rem; color: var(--ink); margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { border-top: 3px solid var(--gold); padding-top: 1.25rem; }
.stat b { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: .5rem; }
.stat span { color: var(--muted); }

/* People (key-contact style) */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.person { text-align: center; }
.avatar { width: 180px; height: 180px; margin: 0 auto 1.25rem; border-radius: 50%; overflow: hidden; background: var(--grey-2); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.avatar--sm { width: 120px; height: 120px; }
.person h3 { margin-bottom: .15rem; }
.person__role { display: block; color: var(--slate); font-weight: 700; font-size: .9375rem; margin-bottom: .75rem; }
.person p { font-size: .9375rem; }
.person details { text-align: left; font-size: .9375rem; margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.person summary { cursor: pointer; font-weight: 700; color: var(--navy); text-align: center; }
.person details[open] summary { margin-bottom: .6rem; }

/* Partner */
.partner-logo { background: var(--white); box-shadow: var(--shadow); padding: 2rem; display: grid; place-items: center; min-height: 200px; }
.partner-logo img { max-height: 150px; width: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-size: 1.1875rem; font-weight: 800; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23030c42' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy); }
.faq .answer { padding: 0 3rem 1.4rem 0; }
.faq .answer p:last-child { margin: 0; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list svg { width: 20px; height: 20px; color: var(--navy); margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); }
.map { display: block; width: 100%; height: 400px; border: 0; background: var(--grey-2); }

/* Forms */
.form-panel { background: var(--white); box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 4px solid var(--gold); }
.form-panel h2 { font-size: 1.625rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.field .req { color: #b42318; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1px solid #c9cbd4; border-radius: 0; background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.field input[type="file"] { padding: .6rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
.field-error { font-size: .8125rem; color: #b42318; }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-note { font-size: .8125rem; color: var(--muted); margin: 0; }
.form-status { margin-top: 1.25rem; padding: .9rem 1rem; font-size: .9375rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8f6ee; color: #10592f; border-left: 4px solid #1e8a4c; }
.form-status.is-error { background: #fdecea; color: #8a1c13; border-left: 4px solid #b42318; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b5b9d6; font-size: .9375rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem); }
.footer-logo { display: block; width: 96px; height: 96px; border-radius: 50%; background: var(--white); margin-bottom: 1.25rem; overflow: hidden; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.site-footer h2 { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .55rem; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); margin-top: 4px; }
.footer-news .row { display: flex; flex-direction: column; gap: .5rem; }
.footer-news input { flex: 1; min-width: 0; min-height: 50px; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: var(--white); border-radius: 0; }
.footer-news input::placeholder { color: #9095bf; }
.footer-news input:focus { outline: none; border-color: var(--gold); }
.footer-news .btn { min-height: 50px; padding-inline: 1.1rem; }
.footer-news .field-error { color: #ffb4a8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-bottom li + li { margin-top: 0; }
.footer-bottom p { margin: 0; }

.whatsapp-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem .7rem .85rem; border-radius: 999px; background: #1fa855; color: var(--white); font-weight: 700; font-size: .9375rem; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,.3); }
.whatsapp-fab:hover { background: #178d46; color: var(--white); }
.whatsapp-fab svg { width: 24px; height: 24px; }

.not-found { text-align: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem); }
.not-found p { max-width: 40rem; margin-inline: auto; }
.not-found .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__slides { min-height: 0; display: grid; }
  .slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .slide__content { height: auto; align-items: flex-start; }
  .slide__media { position: relative; width: 100%; height: 260px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .slide__media::after { clip-path: polygon(100% 45%, 100% 100%, 55% 100%); opacity: .95; }
  .hero__pattern { display: none; }
  .slide__text { padding-block: 1.75rem 1.5rem; }
  .hero__controls { position: static; padding-bottom: 1.5rem; }
  .featured, .with-sidebar, .split-cta { grid-template-columns: 1fr; }
  .featured__media { order: -1; }
  .sidebar { position: static; }
  .tiles-band { left: 20%; top: -2rem; bottom: -2rem; }
  .carousel__track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .band-dark__img { width: 100%; opacity: .35; }
  .split-cta__img { min-height: 260px; }
  .page-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .page-hero__media { position: relative; width: 100%; height: 200px; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
  .page-hero__text { padding-block: 1.5rem 2.25rem; }
  .people { grid-template-columns: 1fr 1fr; }
  .mini-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tiles, .steps, .stats, .people, .form-grid, .info-grid, .footer-main { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .carousel__track { grid-auto-columns: 85%; }
  .hero__thumbs button { width: 64px; height: 44px; }
  .hero__thumbs li:nth-child(n+4) { display: none; }
  .def-list div { grid-template-columns: 1fr; gap: .2rem; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: .8rem; }
  .faq .answer { padding-right: 0; }
  .btn-row .btn { flex: 1 1 auto; }
  .pill { padding: .5rem 1rem; font-size: .9375rem; white-space: nowrap; }
  .pills { justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pills [role="tablist"] { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .carousel__track { scroll-behavior: auto; }
}
@media print {
  .utility, .site-header, .whatsapp-fab, .hero__controls, .site-footer form { display: none !important; }
}
