/* =====================================================================
   Style C · Modern Gradient
   Bold and contemporary: rich blue gradients, hero illustration with
   floating cards, wave dividers, pill buttons and gradient accents.
   ===================================================================== */

:root {
  --brand-hue: 216;
  --color-primary: hsl(var(--brand-hue) 80% 42%);
  --color-primary-dark: hsl(var(--brand-hue) 75% 28%);
  --color-primary-darker: hsl(calc(var(--brand-hue) + 6) 70% 14%);
  --color-accent: hsl(calc(var(--brand-hue) - 16) 95% 62%);
  --gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --heading-weight: 800;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 6px rgb(16 24 40 / .05), 0 10px 30px rgb(16 24 40 / .07);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 48c180 26 360 32 540 18S900 6 1080 10s300 30 360 38v32H0z'/%3E%3C/svg%3E");
}

h1 { letter-spacing: -.03em; }
.eyebrow { background: var(--color-primary-light); padding: .3rem .8rem; border-radius: 999px; letter-spacing: .06em; }
.hero .eyebrow, .page-hero .eyebrow { background: rgb(255 255 255 / .12); color: #fff; }

.btn { border-radius: 999px; }
.btn-primary { background: var(--gradient); border: 0; box-shadow: 0 8px 20px hsl(var(--brand-hue) 80% 45% / .35); }
.btn-primary:hover { filter: brightness(1.08); background: var(--gradient); }
.header-call { box-shadow: none; }

/* Hero: mesh gradient, illustration, wave at the bottom */
.hero {
  background:
    radial-gradient(ellipse at 10% 10%, hsl(calc(var(--brand-hue) - 16) 95% 60% / .35), transparent 45%),
    radial-gradient(ellipse at 90% 80%, hsl(calc(var(--brand-hue) + 40) 80% 60% / .25), transparent 45%),
    linear-gradient(160deg, var(--color-primary-darker) 0%, var(--color-primary-dark) 55%, var(--color-primary) 100%);
  padding-bottom: 70px;
}
.hero::after { inset: auto 0 -1px 0; width: auto; height: 80px; border: 0; border-radius: 0; background: var(--wave) center / 100% 100% no-repeat; }
.hero h1 { background: linear-gradient(90deg, #fff 30%, hsl(calc(var(--brand-hue) - 16) 100% 82%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points .icon { color: #7dd3fc; }
.hero-card { display: none; }
.hero-art { display: block; }
@media (max-width: 959px) { .hero-art { max-width: 360px; } }

/* Stats: floating white card */
.trust { display: none; }
.stats { display: block; position: relative; z-index: 2; margin-top: -40px; }
.stats ul { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-2); }
.stats strong { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

/* Cards with gradient icon badges and gradient border on hover */
.icon-badge { background: var(--gradient); color: #fff; border-radius: 16px; box-shadow: 0 8px 18px hsl(var(--brand-hue) 80% 45% / .3); }
.card { border-color: transparent; }
.card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s ease-out; }
@media (hover: hover) { .card-link:hover::before { opacity: 1; } }
.card-link:focus-visible::before { opacity: 1; }

.section-alt { background: linear-gradient(180deg, var(--color-primary-light), #fff); border: 0; }
.steps li { border-color: transparent; box-shadow: var(--shadow); }
.steps li::before { background: var(--gradient); border-radius: 12px; }
.quote .stars { color: var(--color-star); }
.tag-list li { background: #fff; box-shadow: var(--shadow); }

/* Inner pages: gradient with wave */
.page-hero {
  position: relative; padding-bottom: calc(var(--space-7) + 50px);
  background:
    radial-gradient(ellipse at 85% 0%, hsl(calc(var(--brand-hue) - 16) 95% 60% / .35), transparent 50%),
    linear-gradient(160deg, var(--color-primary-darker), var(--color-primary));
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px; background: var(--wave) center / 100% 100% no-repeat; }

.cta-band { background: radial-gradient(ellipse at 0% 100%, hsl(calc(var(--brand-hue) - 16) 95% 60% / .45), transparent 55%), linear-gradient(135deg, var(--color-primary-darker), var(--color-primary)); }
.calc-results { background: linear-gradient(160deg, var(--color-primary-darker), var(--color-primary-dark)); }
.card-accent { background: var(--gradient); }
.field input, .field select, .field textarea, .field-radio label { border-radius: 14px; }
.call-bar-call { background: var(--gradient); }

/* ---------- Shared pieces used by the C-based styles ---------- */
/* Hero calculator card */
.quick-calc { position: relative; z-index: 1; background: #fff; color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: 0 30px 60px rgb(0 0 0 / .3); display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .quick-calc { padding: var(--space-6); } }
.quick-calc h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--color-primary-darker); }
.quick-calc h2 .icon { color: var(--color-primary); }
.quick-calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.quick-calc-result div { background: var(--color-primary-light); border-radius: 16px; padding: var(--space-3) var(--space-4); }
.quick-calc-result span { display: block; font-size: .85rem; color: var(--color-muted); font-weight: 600; }
.quick-calc-result strong { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); color: var(--color-primary-darker); font-variant-numeric: tabular-nums; }
.quick-calc .calc-saving { margin: 0; background: hsl(150 60% 94%); color: hsl(150 60% 22%); font-weight: 600; }
.quick-calc .form-note { text-align: center; }

/* Portrait (photo set in site.json -> principal.photo) */
.portrait { position: relative; width: min(100%, 380px); margin: var(--space-4) auto var(--space-5); }
.portrait-ring { aspect-ratio: 1; border-radius: 50%; padding: 10px; background: conic-gradient(from 200deg, var(--color-accent), #a5b4fc, #7dd3fc, var(--color-accent)); box-shadow: 0 30px 60px rgb(0 0 0 / .35); }
.portrait-ring img, .portrait-placeholder { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 6px solid var(--color-primary-darker); }
.portrait-placeholder { display: grid; place-content: center; text-align: center; background: linear-gradient(160deg, var(--color-primary), var(--color-primary-darker)); color: #fff; }
.portrait-placeholder span { font-size: clamp(4rem, 3rem + 4vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.portrait-placeholder small { opacity: .7; margin-top: .5rem; }
.portrait-badge-1 { left: -6%; bottom: 6%; }
.portrait-badge-2 { right: -4%; top: 4%; animation-delay: -3s; }
@media (max-width: 480px) { .portrait-badge-1 { left: 0; } .portrait-badge-2 { right: 0; } }

/* ---------- Home hero (home/standard.njk): same gradient as the inner pages ---------- */
.hero-bleed { min-height: 560px; display: flex; align-items: center; }
.hero-bleed .hero-inner { width: 100%; }
.hero-photo { display: none; position: relative; }
@media (min-width: 960px) {
  .hero-bleed .hero-inner { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-8); }
  .hero-photo { display: block; justify-self: end; width: 100%; }
}
.hero-photo-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; border-radius: 28px; border: 6px solid rgb(255 255 255 / .18); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.hero-photo .float-card-1 { top: 8%; left: -12%; }
.hero-photo .float-card-2 { bottom: 8%; right: -6%; }
