/*
Theme Name: Kayser Wealth Strategies
Author: CSV Internal
Description: Bespoke custom theme for Kayser Wealth Strategies — financial planning, Walkerville SA. Corporate-trust direction with the brand's coloured-tile motif carried through as animated accents.
Version: 1.0.4
Text Domain: kayserws
*/

/* Design system — direction: corporate-trust. Fonts: display=Sora body=DM Sans.
   Signature motifs: 1) the four-colour brand tile grid that assembles on scroll;
   2) an accent underline that draws in on reveal; 3) a condensing sticky header. */
:root {
  --primary: #1B2A4A;      /* deep navy */
  --primary-600: #14203a;
  --primary-700: #0d1728;
  --primary-100: #6c85bb;
  --accent: #C2166B;       /* brand magenta */
  --accent-600: #a10e57;

  /* Brand tile palette (from the logo) */
  --tile-magenta: #C2166B;
  --tile-green:   #8BC53F;
  --tile-blue:    #2BA9E0;
  --tile-orange:  #F7941E;

  --bg: #ffffff;
  --surface: #f6f8fc;
  --surface-2: #eef2f9;
  --ink: #1a2233;
  --muted: #5c6678;
  --border: #e2e8f2;

  --n-50: #fafbfd;
  --n-100: #f4f5f5;
  --n-200: #e4e5e7;
  --n-300: #ced0d4;
  --n-400: #9ea1a9;
  --n-500: #787d87;
  --n-600: #60646c;
  --n-700: #484b51;
  --n-800: #303236;
  --n-900: #131a28;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --fs-xs: 0.72rem;
  --fs-sm: 0.85rem;
  --fs-base: 1.0rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.9rem;
  --fs-3xl: 2.4rem;
  --fs-4xl: 3.05rem;
  --fs-5xl: 3.8rem;
  --fs-6xl: 4.6rem;
  --leading-tight: 1.1;
  --leading-body: 1.7;

  --sp-4: 1rem;   --sp-5: 1.5rem; --sp-6: 2rem;
  --sp-7: 3rem;   --sp-8: 4rem;   --sp-9: 6rem;
  --container: 1180px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius: 12px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 4px 12px -6px rgba(16,24,40,.12);
  --shadow: 0 2px 6px rgba(16,24,40,.06), 0 16px 40px -20px rgba(16,24,40,.28);
  --shadow-lg: 0 8px 24px rgba(16,24,40,.10), 0 32px 64px -28px rgba(16,24,40,.36);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .6s;
}

/* ===========================================================================
   BASE
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base);
  line-height: var(--leading-body); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: var(--leading-tight); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; color: var(--primary); }
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
p  { margin: 0 0 1rem; }
strong { font-weight: 700; color: var(--primary); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
section { padding-block: var(--section-pad); position: relative; }
.bg-surface { background: var(--surface); }
.bg-primary  { background: var(--primary); color: #fff; }

/* Section intro (eyebrow + heading + lead) --------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .16em; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: var(--fs-lg); color: var(--muted); }

/* Signature motif: accent underline that draws in on reveal ---------------- */
.u-underline { position: relative; display: inline; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 92%; background-size: 0% .12em; transition: background-size .9s var(--ease) .2s; }
.reveal.is-visible .u-underline, .is-visible.u-underline { background-size: 100% .12em; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9em 1.7em; border-radius: var(--radius); font-weight: 600;
  font-family: var(--font-display); font-size: var(--fs-base); cursor: pointer;
  border: 1.5px solid transparent; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--sm { padding: .6em 1.15em; font-size: var(--fs-sm); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--primary-600); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px var(--accent); }
.btn--accent:hover { transform: translateY(-3px); background: var(--accent-600); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--primary); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary); color: #fff; transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--on-dark.btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--on-dark.btn--ghost:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* Reveal animation --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ===========================================================================
   BRAND TILE MOTIF — the four coloured squares from the logo, reused as a
   signature graphic that assembles on scroll.
   =========================================================================== */
.tilemark { display: inline-grid; grid-template-columns: repeat(2, 1fr); gap: .28em; width: 2.4em; height: 2.4em; }
.tilemark i { border-radius: .22em; transform: scale(0); opacity: 0; transition: transform .55s var(--ease), opacity .55s var(--ease); }
.tilemark i:nth-child(1) { background: var(--tile-magenta); transition-delay: .00s; }
.tilemark i:nth-child(2) { background: var(--tile-blue);    transition-delay: .08s; }
.tilemark i:nth-child(3) { background: var(--tile-orange);  transition-delay: .16s; }
.tilemark i:nth-child(4) { background: var(--tile-green);   transition-delay: .24s; }
.is-visible .tilemark i, .tilemark.is-visible i { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tilemark i { transform: none; opacity: 1; } }

/* Thin four-colour rule used as a section divider accent */
.brand-rule { height: 4px; width: 72px; border-radius: 4px; background: linear-gradient(90deg, var(--tile-magenta) 0 25%, var(--tile-blue) 25% 50%, var(--tile-orange) 50% 75%, var(--tile-green) 75% 100%); }

/* ===========================================================================
   HEADER  (condensing sticky — signature motif)
   =========================================================================== */
/* Fixed-height header so condensing never changes layout height (no reflow =
   no scroll "bounce"). Only non-layout properties animate: shadow, background,
   and a transform-based logo scale. */
/* NOTE: backdrop-filter must NOT live on .site-header itself — it would make
   the header a containing block for its position:fixed children (the mobile
   nav panel), trapping the panel inside the 76px header. Put the blur on a
   ::before layer instead, which does not create that containing block. */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); transition: box-shadow .35s var(--ease), background .35s var(--ease); border-bottom: 1px solid transparent; will-change: box-shadow; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); pointer-events: none; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--bg) 97%, transparent); border-bottom-color: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.custom-logo-link, .site-header__brand img { display: block; }
.site-header__brand img { max-height: 50px; width: auto; transform-origin: left center; transition: transform .35s var(--ease); }
.site-header.is-scrolled .site-header__brand img { transform: scale(.86); }
.site-header__brand .custom-logo-link { line-height: 0; }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--primary); display: inline-flex; align-items: center; gap: .6rem; }

.site-nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav__list a { font-weight: 500; font-size: .98rem; position: relative; padding-block: .4rem; color: var(--primary); }
.site-nav__list a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.site-nav__list a:hover::after, .site-nav__list .current-menu-item > a::after { width: 100%; }
.site-nav__list .current-menu-item > a { color: var(--accent); }

/* Dropdown sub-menus (quandary, about) */
.site-nav__list li { position: relative; }
.site-nav__list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; list-style: none; margin: .6rem 0 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; z-index: 70; }
.site-nav__list li:hover > .sub-menu, .site-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav__list .sub-menu a { display: block; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; }
.site-nav__list .sub-menu a::after { display: none; }
.site-nav__list .sub-menu a:hover { background: var(--surface); color: var(--accent); }
.menu-item-has-children > a::before { content: ''; display: inline-block; width: .4em; height: .4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: .45em; vertical-align: .12em; opacity: .6; }

.site-header__actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .45rem; }
.header-phone svg { width: 1rem; height: 1rem; color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 80; }
.nav-toggle span { width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: .3s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem); background: radial-gradient(120% 120% at 85% -10%, var(--surface-2) 0%, var(--bg) 55%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { max-width: 42rem; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .6rem; }
.hero__eyebrow::before { content: ''; width: 1.8rem; height: 2px; background: currentColor; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, var(--fs-6xl)); margin-bottom: 1.3rem; letter-spacing: -.025em; }
.hero__title .word { display: inline-block; opacity: 0; will-change: transform; }
.hero__title .word > span { display: inline-block; }
body.is-loaded .hero__title .word { animation: wordIn .8s var(--ease) forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__title .word { opacity: 1 !important; animation: none !important; } }
.hero__subtitle { font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center; color: var(--muted); font-size: var(--fs-sm); }
.hero__trust span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--primary); }
.hero__trust svg { width: 1.15rem; height: 1.15rem; color: var(--tile-green); }

/* Hero visual: floating brand-tile card stack */
.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.hero__card { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.5rem 1.6rem; }
.hero__card--main { inset: 8% 4% 20% 8%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero__card--main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 96%, #000), var(--primary-600)); }
.hero__card--main > * { position: relative; color: #fff; }
.hero__card-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: .5rem; width: 4.6rem; }
.hero__card-tiles i { aspect-ratio: 1; border-radius: 8px; }
.hero__card-tiles i:nth-child(1){background:var(--tile-magenta)} .hero__card-tiles i:nth-child(2){background:var(--tile-blue)} .hero__card-tiles i:nth-child(3){background:var(--tile-orange)} .hero__card-tiles i:nth-child(4){background:var(--tile-green)}
.hero__card-num { font-family: var(--font-display); font-size: var(--fs-4xl); font-weight: 800; line-height: 1; }
.hero__card-label { color: rgba(255,255,255,.75) !important; font-size: var(--fs-sm); max-width: 22ch; }
.hero__card--float { right: -2%; bottom: 6%; padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .9rem; animation: float 6s var(--ease) infinite; }
.hero__card--float .dot { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tile-green) 18%, #fff); color: #3f8f16; flex: none; }
.hero__card--float .dot svg { width: 1.3rem; height: 1.3rem; }
.hero__card--float strong { display: block; font-size: var(--fs-base); }
.hero__card--float small { color: var(--muted); font-size: var(--fs-xs); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@media (prefers-reduced-motion: reduce){ .hero__card--float{animation:none} }
.hero__glow { position: absolute; width: 40rem; height: 40rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tile-blue) 22%, transparent), transparent 65%); top: -20%; right: -18%; z-index: 0; pointer-events: none; filter: blur(6px); }

/* ===========================================================================
   STATS
   =========================================================================== */
.stats { background: var(--primary); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem 1.5rem; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -.75rem; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.14); }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat__num .suffix { color: var(--tile-green); }
.stat__label { color: rgba(255,255,255,.72); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-top: .3rem; display: block; }

/* ===========================================================================
   SERVICES / CARD GRID
   =========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.2rem 2rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color .3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.card::after { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); background: linear-gradient(90deg, var(--tile-magenta), var(--tile-blue), var(--tile-orange), var(--tile-green)); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem; background: var(--surface); color: var(--accent); flex: none; }
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card:nth-child(4n+1) .card__icon { color: var(--tile-magenta); background: color-mix(in srgb, var(--tile-magenta) 10%, #fff); }
.card:nth-child(4n+2) .card__icon { color: var(--tile-blue);    background: color-mix(in srgb, var(--tile-blue) 10%, #fff); }
.card:nth-child(4n+3) .card__icon { color: var(--tile-orange);  background: color-mix(in srgb, var(--tile-orange) 12%, #fff); }
.card:nth-child(4n+4) .card__icon { color: #4f8f16;             background: color-mix(in srgb, var(--tile-green) 14%, #fff); }
.card h3 { margin-bottom: .5rem; font-size: var(--fs-lg); }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1.2rem; }
.card__link { margin-top: auto; font-weight: 600; font-family: var(--font-display); color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; }
.card__link svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ===========================================================================
   FEATURE SPLIT (about snapshot / why us)
   =========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__badge { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .9rem; }
.split__badge--br { right: -1rem; bottom: -1rem; }
.split__badge .tilemark { width: 2.2rem; height: 2.2rem; }
.split__badge strong { display: block; font-size: var(--fs-lg); color: var(--primary); font-family: var(--font-display); }
.split__badge small { color: var(--muted); font-size: var(--fs-xs); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.checklist li { display: flex; align-items: flex-start; gap: .75rem; color: var(--ink); }
.checklist svg { width: 1.4rem; height: 1.4rem; color: var(--tile-green); flex: none; margin-top: .15rem; }

/* ===========================================================================
   PROCESS / STEPS
   =========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--accent); opacity: .35; line-height: 1; }
.step h3 { font-size: var(--fs-lg); margin: .6rem 0 .4rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ===========================================================================
   QUANDARY ("What's your quandary?") interactive grid
   =========================================================================== */
.quandary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.quandary-tile { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; color: var(--primary); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.quandary-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.quandary-tile .tilemark { width: 1.7rem; height: 1.7rem; flex: none; }
.quandary-tile .q-arrow { margin-left: auto; color: var(--accent); transition: transform .3s var(--ease); }
.quandary-tile:hover .q-arrow { transform: translateX(4px); }

/* ===========================================================================
   TESTIMONIAL / QUOTE
   =========================================================================== */
.quote { max-width: 60rem; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--accent); opacity: .25; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, var(--fs-2xl)); font-weight: 600; color: var(--primary); margin: 0 0 1.3rem; letter-spacing: -.01em; line-height: 1.35; }
.quote cite { font-style: normal; color: var(--muted); font-weight: 600; }

/* ===========================================================================
   PAGE HERO (interior pages)
   =========================================================================== */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); background: radial-gradient(120% 130% at 90% -20%, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--border); }
.page-hero__crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.page-hero__crumbs a:hover { color: var(--accent); }
.page-hero__title { font-size: clamp(2.2rem, 5vw, var(--fs-5xl)); max-width: 20ch; }
.page-hero__sub { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; margin-top: .5rem; }

/* ===========================================================================
   PAGE BODY (block-editor content)
   =========================================================================== */
.entry-content { font-size: var(--fs-lg); color: var(--ink); }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide { max-width: min(100%, 1080px); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.8em; font-size: var(--fs-2xl); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5rem; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.3rem; margin-left: 0; color: var(--primary); font-family: var(--font-display); font-weight: 600; }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-content .wp-block-button__link { background: var(--primary); color: #fff; border-radius: var(--radius); padding: .8em 1.6em; font-family: var(--font-display); font-weight: 600; text-decoration: none; }

/* ===========================================================================
   CONTACT
   =========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-card__ico { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent); flex: none; }
.contact-card__ico svg { width: 1.35rem; height: 1.35rem; }
.contact-card h4 { margin: 0 0 .1rem; font-size: var(--fs-base); }
.contact-card a, .contact-card p { color: var(--muted); margin: 0; }
.contact-card a:hover { color: var(--accent); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: var(--fs-sm); color: var(--primary); }
input, textarea, select { width: 100%; padding: .85em 1em; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.is-ok { color: #16794a; } .form-status.is-err { color: #b3261e; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 2.5rem; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ===========================================================================
   CTA BANNER
   =========================================================================== */
.cta { background: linear-gradient(150deg, var(--primary-600), var(--primary)); color: #fff; text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(43,169,224,.18), transparent 70%); }
.cta__inner { position: relative; max-width: 46rem; margin-inline: auto; }
.cta .brand-rule { margin: 0 auto 1.6rem; }
.cta__title { color: #fff; font-size: clamp(1.9rem, 4vw, var(--fs-4xl)); margin-bottom: 1rem; }
.cta__sub { color: rgba(255,255,255,.8); font-size: var(--fs-lg); margin-bottom: 2rem; }

/* ===========================================================================
   BLOG
   =========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: .6rem; }
.post-card h3 { font-size: var(--fs-lg); margin-bottom: .5rem; }
.blog-empty { text-align: center; padding: 3rem 1rem; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer { background: var(--n-900); color: rgba(255,255,255,.68); padding-top: var(--section-pad); }
.site-footer a { color: rgba(255,255,255,.68); transition: color .2s; } .site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: 1.1rem; }
.site-footer__blurb { max-width: 34ch; font-size: .95rem; margin-top: 1rem; }
.footer-menu, .site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.site-footer__col address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; }
.footer-brand img { max-height: 42px; width: auto; }
.footer-tiles { display: inline-grid; grid-template-columns: repeat(2,1fr); gap: .25rem; width: 2rem; }
.footer-tiles i { aspect-ratio: 1; border-radius: 5px; }
.footer-tiles i:nth-child(1){background:var(--tile-magenta)}.footer-tiles i:nth-child(2){background:var(--tile-blue)}.footer-tiles i:nth-child(3){background:var(--tile-orange)}.footer-tiles i:nth-child(4){background:var(--tile-green)}
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; font-size: var(--fs-sm); }
.site-footer__bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__disclaimer { font-size: var(--fs-xs); color: rgba(255,255,255,.4); max-width: 100%; margin-top: 1.2rem; line-height: 1.6; }

/* ===========================================================================
   UTILITIES / A11Y
   =========================================================================== */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .5rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 3px; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 26rem; margin-inline: auto; width: 100%; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Keep the header (and its toggle) above the overlay so the X is always tappable. */
  .site-header { z-index: 90; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  /* Panel sits BELOW the sticky header (top:76px) and fills to the bottom, so
     the whole menu is visible — not hidden behind the header. dvh handles
     mobile browser chrome. */
  .site-nav { position: fixed; top: 76px; right: 0; bottom: 0; height: auto; width: min(86vw, 360px); background: #fff; padding: 1.4rem 1.6rem 2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; z-index: 85; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  body.nav-open .site-nav { transform: none; }

  /* Dim overlay covers everything below the header. */
  .nav-overlay { position: fixed; inset: 76px 0 0 0; background: rgba(15,20,35,.45); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 80; border: 0; padding: 0; cursor: pointer; }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }   /* lock scroll while menu open */

  .site-nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav__list > li { border-bottom: 1px solid var(--border); }
  .site-nav__list a { padding: .85rem .2rem; font-size: 1.05rem; display: block; }
  .site-nav__list a::after { display: none; }
  .site-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--surface-2); border-radius: 0; margin: 0 0 .5rem .3rem; padding: 0 0 0 .7rem; min-width: 0; }
  .site-nav__list .sub-menu a { padding: .55rem .2rem; font-size: .98rem; color: var(--muted); }
  .menu-item-has-children > a::before { float: right; margin-top: .35em; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-2xl); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero__card--float { right: 0; }
  .site-footer__bar .container { flex-direction: column; }
}
