/* Diana Abouljoud – Clinical Psychologist · website styles
   Soft natural pastels, floating pill menu, calm type scale. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #F8F8F4;
  --surface: #F2F1EC;
  --white: #FFFFFF;
  --sage: #E4ECD9;
  --sage-2: #D3E0C4;
  --sky: #E6EDF7;
  --sand: #F3EEE6;
  --butter: #F7F2DF;
  --ink: #1F2421;
  --text: #1F2421;
  --muted: #5E645F;
  --soft: #738A86;
  --link: #476763;
  --line: rgba(31, 36, 33, .11);
  --card: #FFFFFF;
  --heading: #1F2421;
  --btn: #1F2421;
  --btn-text: #FFFFFF;
  --dark: #1F2421;
  --dark-text: #F4F3EE;
  --dark-muted: rgba(244, 243, 238, .74);
  --banner-text: #1F2421;
  --banner-h: clamp(190px, 24vw, 290px);
  --bn-dir: 90deg; --bn-1: rgba(248, 248, 244, .95); --bn-2: rgba(248, 248, 244, .78); --bn-3: rgba(248, 248, 244, .1);
  --topbar-bg: #F2F1EC;
  --topbar-text: #5E645F;
  --header-bg: rgba(255, 255, 255, .94);
  --header-solid: #FFFFFF;
  --nav-text: #1F2421;
  --header-r: 999px;
  --newsletter-bg: #E4ECD9;
  --footer-bg: #F2F1EC;
  --footer-text: #1F2421;
  --footer-muted: rgba(31, 36, 33, .7);
  --wa: #25D366;
  --field-line: rgba(31, 36, 33, .18);
  --h-scale: 1;
  --text-base: #1F2421; --heading-base: #1F2421; --muted-base: #5E645F; --soft-base: #738A86; --link-base: #476763;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "DM Sans", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-h1: calc(var(--h-scale) * clamp(1.95rem, 1.45rem + 1.6vw, 2.75rem));
  --fs-hero: calc(var(--h-scale) * clamp(2.1rem, 1.5rem + 2vw, 3rem));
  --fs-h2: calc(var(--h-scale) * clamp(1.5rem, 1.2rem + 0.95vw, 2.125rem));
  --fs-h3: calc(var(--h-scale) * 1.15rem);
  --fs-lead: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);

  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --sec: clamp(2.75rem, 5.5vw, 4.25rem);
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --shadow: 0 1px 2px rgba(31, 36, 33, .04), 0 8px 24px -12px rgba(31, 36, 33, .14);
  --shadow-lift: 0 2px 6px rgba(31, 36, 33, .05), 0 18px 40px -18px rgba(31, 36, 33, .24);
  --ease: 220ms cubic-bezier(.2, .7, .3, 1);
}

/* All colours, fonts and sizes can be changed in Dashboard → Design (printed as CSS variables in each page). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; }
.h3like { font-size: 1.35rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -60px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; z-index: 100; transition: top var(--ease); }
.skip:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: 960px; }
.wrap--narrow { max-width: 780px; }

/* ------------------------------------------------------------ sections */
.sec { padding-block: var(--sec); }
.sec.pad-tight { padding-block: calc(var(--sec) * .55); }
.sec.pad-none { padding-block: 0; }
.bg-surface { background: var(--surface); }
.bg-sage { background: var(--sage); }
.bg-sky { background: var(--sky); }
.bg-sand { background: var(--sand); }
.sec-head { max-width: 720px; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
.sec-head.center { text-align: center; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.sec-head--row h2 { margin: 0; }
.spacer--s { height: 1.5rem; } .spacer--m { height: 3rem; } .spacer--l { height: 5rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow--light { color: var(--ink); }
.pill-label { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .38rem .85rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pill-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--soft); }

/* ------------------------------------------------------------ buttons */
.btns { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.btns--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 46px; padding: .62rem 1.2rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--btn); color: var(--btn-text); padding-right: .42rem; }
.btn--dark:hover { color: var(--btn-text); box-shadow: 0 12px 24px -14px rgba(31, 36, 33, .7); }
.btn--light { background: var(--dark-text); color: var(--dark); padding-right: .42rem; }
.btn--light:hover { color: var(--dark); }
.btn--soft { background: var(--sage); color: var(--ink); }
.btn--soft:hover { background: var(--sage-2); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--field-line); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
.btn__arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--btn-text); color: var(--btn); flex: none; transition: transform var(--ease); }
.btn--light .btn__arrow { background: var(--dark); color: var(--dark-text); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--sm { min-height: 38px; padding: .45rem .95rem; font-size: .875rem; }
.btn--sm.btn--dark { padding-right: .32rem; }
.btn--sm .btn__arrow { width: 28px; height: 28px; }
button.btn { font-family: var(--font); }

/* ------------------------------------------------------------ top bar & header */
.topbar { background: var(--topbar-bg); font-size: .8125rem; color: var(--topbar-text); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { margin: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: inherit; text-decoration: underline; }
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.social { display: flex; gap: .4rem; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; }
.social a:hover { background: var(--sage); }

.header { position: sticky; top: 0; z-index: 50; padding-block: .65rem; transition: padding var(--ease); }
.header__bar { position: relative; isolation: isolate; display: flex; align-items: center; gap: 1rem; min-height: 62px; padding: .5rem .5rem .5rem 1.35rem; border-radius: var(--header-r); }
/* The blur sits on a background layer: a blur on the bar itself would trap the full-screen phone menu inside it. */
.header__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--header-bg); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); transition: box-shadow var(--ease); }
.is-scrolled .header__bar::before { box-shadow: var(--shadow-lift); }
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--ink); }
.logo img { height: 40px; width: auto; max-width: 190px; }
.logo--text { font: 600 1.1rem var(--font-head); }
.header__nav { margin-left: auto; }
.nav { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav a { display: block; padding: .5rem .75rem; border-radius: 999px; color: var(--nav-text); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background var(--ease); }
.nav a:hover, .nav .is-current > a { background: var(--surface); color: var(--nav-text); }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -.5rem; border: 0; background: none; color: var(--nav-text); border-radius: 50%; cursor: pointer; }
.sub { position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: .5rem; list-style: none; background: var(--header-solid); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
.sub a { padding: .55rem .8rem; border-radius: 10px; font-size: .9rem; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav-cta { display: none; }
.header__cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; place-items: center; }
.burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--nav-text); transition: transform var(--ease), opacity var(--ease); }
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -6px; } .burger__lines::after { top: 6px; }
.nav-open .burger__lines { background: transparent; }
.nav-open .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__cta { display: none; }
}
@media (max-width: 920px) {
  .burger { display: grid; }
  .header__bar { padding-left: 1rem; min-height: 58px; }
  .logo img { height: 34px; }
  .header__nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); margin: 0; padding: 5.5rem 1.25rem 2rem; background: var(--header-solid); box-shadow: -20px 0 60px -20px rgba(31, 36, 33, .3); transform: translateX(100%); visibility: hidden; transition: transform var(--ease), visibility var(--ease); overflow-y: auto; z-index: -1; }
  .nav-open .header__nav { transform: none; visibility: visible; }
  .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(31, 36, 33, .25); z-index: 40; }
  .header { z-index: 60; }
  .nav { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav > li { flex-wrap: wrap; }
  .nav > li > a { flex: 1; font-size: 1.05rem; padding: .8rem 1rem; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; background: var(--surface); }
  .has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: .1rem 0 .4rem 1rem; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.is-open > .sub { display: block; }
  .nav-cta { display: block; margin-top: 1.25rem; }
  .nav-cta .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .header { padding-block: .5rem; }
}

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.08; margin-bottom: .3em; }
.hero .lead { max-width: 34rem; }
.photo-card { position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--sage); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo { aspect-ratio: 1 / 1.02; max-height: 540px; }
.glass { position: absolute; left: 1rem; bottom: 1rem; right: auto; max-width: calc(100% - 2rem); display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1.1rem; border-radius: var(--r-m); background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font-size: .8125rem; line-height: 1.45; }
.glass strong { font: 600 .95rem var(--font-head); }
.glass span { color: var(--muted); }
.glass--quote { right: 1rem; font-size: .9rem; font-style: italic; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.tile { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.15rem 1.05rem; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.tile:nth-child(4n+1) .icon-bubble { background: var(--sage); }
.tile:nth-child(4n+2) .icon-bubble { background: var(--sky); }
.tile:nth-child(4n+3) .icon-bubble { background: var(--sand); }
.tile:nth-child(4n+4) .icon-bubble { background: var(--butter); }
.tile__label { font: 600 1rem/1.3 var(--font-head); margin-top: .55rem; }
.tile__more { font-size: .8125rem; color: var(--muted); }
.tile__more span { display: inline-block; transition: transform var(--ease); }
.tile:hover .tile__more span { transform: translateX(3px); }
.icon-bubble { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sage); flex: none; }
.icon-bubble svg { width: 24px; height: 24px; }
.tone-sage { background: var(--sage); } .tone-sky { background: var(--sky); } .tone-sand { background: var(--sand); } .tone-butter { background: var(--butter); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3.4; max-height: 460px; }
  .hero__photo img { object-position: 50% 22%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .tile { padding: .95rem; }
  .tile__label { font-size: .95rem; }
}
@media (max-width: 480px) {
  .btns .btn { flex: 1 1 100%; justify-content: space-between; }
  .btns--center .btn, .refer-card__btn .btn { justify-content: center; }
  .btns .btn--dark, .btns .btn--light { justify-content: space-between; padding-left: 1.2rem; }
}

/* ------------------------------------------------------------ banner */
.banner-sec { padding-top: .5rem; }
.banner { position: relative; display: flex; align-items: flex-end; min-height: var(--banner-h); padding: clamp(1.35rem, 3.5vw, 2.5rem); border-radius: var(--r-l); overflow: hidden; background: var(--sage); isolation: isolate; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bn-dir), var(--bn-1) 0%, var(--bn-2) 38%, var(--bn-3) 72%); }
.banner h1, .banner .eyebrow--light, .banner .crumbs, .banner .crumbs a { color: var(--banner-text); }
.banner--plain::before { display: none; }
.banner__text { max-width: 560px; }
.banner h1 { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; font-size: .8125rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) {
  .banner::before { background: linear-gradient(0deg, var(--bn-1) 0%, var(--bn-2) 45%, var(--bn-3) 100%); }
  .banner { min-height: max(200px, var(--banner-h)); }
}

/* ------------------------------------------------------------ split (image + text) */
.split__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split__grid--top { align-items: start; grid-template-columns: .85fr 1.15fr; }
.split__grid--center { align-items: center; grid-template-columns: 1fr 1.1fr; }
.split--flip .split__media { order: 2; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--r-l); object-fit: cover; }
.split .photo img { aspect-ratio: 4 / 4.4; max-height: 520px; }
.photo figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); text-align: center; }
@media (max-width: 820px) {
  .split__grid, .split__grid--top, .split__grid--center { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split .photo img { aspect-ratio: 4 / 3; }
}

.statement__text { color: var(--muted); }
.statement .lead { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------ grid & cards */
.grid { display: grid; gap: clamp(.85rem, 2vw, 1.25rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { position: relative; padding: clamp(1.15rem, 2.4vw, 1.6rem); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); }
.card > :first-child { margin-top: 0; }
.card--tinted { background: var(--sage); border-color: transparent; }
.card h3 { margin: .9rem 0 .4rem; }
.card .icon-bubble + h3 { margin-top: 1rem; }
.card--hover { transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.card__img { margin: -.35rem -.35rem 0; border-radius: var(--r-m); overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cards-sec .card p { margin: 0; }
.cards-sec .btns { margin-top: 2rem; }
@media (max-width: 640px) {
  .cards-sec .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .cards-sec .grid--4 .card { padding: .65rem .65rem .85rem; border-radius: var(--r-m); }
  .cards-sec .grid--4 .card__img { margin: 0; border-radius: 12px; }
  .cards-sec .grid--4 h3 { font-size: .95rem; margin-top: .65rem; }
  .cards-sec .grid--4 .card p { font-size: .8125rem; line-height: 1.5; }
}

/* ------------------------------------------------------------ dark cards */
.ink-card { padding: clamp(1.75rem, 5vw, 3.25rem); border-radius: var(--r-l); background: var(--dark); color: var(--dark-text); }
.ink-card h2 { color: var(--dark-text); }
.ink-card .lead { color: var(--dark-muted); max-width: 40rem; margin-inline: auto; }
.features__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.features__list li { display: flex; flex-direction: column; gap: .85rem; font: 600 1rem/1.3 var(--font-head); color: var(--dark-text); }
.icon-bubble--ink { background: var(--sage); width: 52px; height: 52px; }
@media (max-width: 900px) { .features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .features__list li { font-size: .95rem; } }

/* ------------------------------------------------------------ refer band */
.refer-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-l); background: var(--sky); }
.refer-card h2 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); margin: 0 0 .25rem; }
.refer-card p { margin: 0; }
.refer-card .icon-bubble { background: var(--card); }
@media (max-width: 760px) { .refer-card { grid-template-columns: 1fr; } .refer-card__btn .btn { width: 100%; } }

/* ------------------------------------------------------------ testimonials */
.quote-card { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.quote-card::after { content: "“"; position: absolute; top: .35rem; right: 1.15rem; font: 700 4.5rem/1 var(--font-head); color: var(--sage); }
.quote-card__img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.quote-card figcaption { display: flex; flex-direction: column; margin-top: auto; }

/* ------------------------------------------------------------ accordion */
.accordion { display: grid; gap: .65rem; }
.acc { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); transition: box-shadow var(--ease), border-color var(--ease); }
.acc[open] { box-shadow: var(--shadow); border-color: transparent; }
.acc summary { position: relative; padding: 1rem 3.4rem 1rem 1.2rem; list-style: none; cursor: pointer; font: 600 1.02rem/1.35 var(--font-head); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2421' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 58% no-repeat; transition: transform var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 1.2rem 1.2rem; }
.acc__img { margin-bottom: 1rem; border-radius: var(--r-s); overflow: hidden; }
.acc__img img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.faq__photo { aspect-ratio: 4 / 5; max-height: 600px; position: sticky; top: 100px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__photo { position: relative; top: 0; aspect-ratio: 4 / 3.6; } }

/* ------------------------------------------------------------ content + aside */
.ca__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4.5vw, 3.5rem); align-items: start; }
.ca__aside .sticky { position: sticky; top: 100px; display: grid; gap: 1rem; }
.ca__aside .photo img { aspect-ratio: 4 / 3; }
.ca__main .accordion { margin-top: .25rem; }
.form-card { margin-top: 2rem; }
@media (max-width: 900px) { .ca__grid { grid-template-columns: 1fr; } .ca__aside .sticky { position: static; } }

/* ------------------------------------------------------------ prose */
.prose { line-height: 1.7; }
.prose > * + h2 { margin-top: 1.8em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose > * + h4 { margin-top: 1.3em; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--r-m); margin: 1.25rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--sage-2); font-size: 1.05rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose--lead { font-size: var(--fs-lead); color: var(--muted); }
.prose .lead { font-size: var(--fs-lead); }
.small-prose { font-size: .9375rem; }
.small-prose h4 { margin: 1rem 0 .25rem; }
ul.checks { list-style: none; padding-left: 0; }
ul.checks > li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
ul.checks > li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2421' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 66% no-repeat; }
ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 2.9rem; margin-bottom: 1rem; min-height: 2rem; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-size: .85rem; font-weight: 700; }
.note { padding: .9rem 1.1rem; border-radius: var(--r-s); background: var(--butter); font-size: .9375rem; }

/* ------------------------------------------------------------ articles */
.post-card { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.post-card__img { display: block; overflow: hidden; background: var(--sage); }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.post-card h2, .post-card h3 { font-size: 1.1rem; line-height: 1.35; margin: .35rem 0 .45rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--link); }
.post-card .muted { margin-bottom: .85rem; }
.more { margin-top: auto; font-size: .875rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.more:hover { color: var(--link); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; font-size: .8125rem; color: var(--muted); }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--sage); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.tag:hover { background: var(--sage-2); color: var(--ink); }
.blog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: .875rem; text-decoration: none; }
.chip:hover, .chip.is-on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.search { display: flex; gap: .5rem; }
.search input { min-width: 0; width: 240px; }
.search--center { justify-content: center; margin: 1.5rem 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.25rem; }
.pager a, .pager span { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; }
.pager span[aria-current] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.article h1 { font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.6rem); margin: .75rem 0 0; }
.crumbs--dark { margin: 0 0 1.25rem; }
.article__img { margin: 0; }
.article__img img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-l); }
.article__body { font-size: 1.0625rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share .label { margin-right: .25rem; }
.share a { padding: .35rem .85rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .875rem; }
.share a:hover { background: var(--sage); }
.msg-page { padding-block: 2rem; }
@media (max-width: 640px) { .search input { width: 100%; } .search { width: 100%; } }

/* ------------------------------------------------------------ contact */
.contact-cards.overlap { padding-top: 0; margin-top: calc(var(--sec) * -.15); }
.contact-cards .card h3 { margin-top: .9rem; }
.map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: var(--r-m); }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: .9rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .9rem; }
.form legend { padding: 0; margin-bottom: .1rem; font: 600 .95rem var(--font-head); color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--soft); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .9rem; border: 1px solid var(--field-line); border-radius: var(--r-s); background: var(--card); color: var(--text); font: 400 .9375rem/1.4 var(--font); transition: border-color var(--ease), box-shadow var(--ease);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--sage); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--btn); flex: none; }
.form .btn { justify-self: start; }
.form--inline .form__inline { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: .6rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .85rem 1rem; border-radius: var(--r-s); font-size: .9375rem; }
.notice p { margin: 0 0 .35rem; } .notice p:last-child { margin: 0; }
.notice--ok { background: var(--sage); color: var(--ink); }
.notice--err { background: #FBE7E2; color: #7A2E1D; }
.copy-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.copy-row input { flex: 1 1 220px; }
@media (max-width: 640px) {
  .form__row, .form--inline .form__inline { grid-template-columns: 1fr; }
  .form .btn { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------ video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ newsletter band & footer */
.newsletter { background: var(--newsletter-bg); }
.newsletter h2 { margin-bottom: .35em; }
.sec[style*="background"] { background-clip: border-box; }
.footer { padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.5rem; background: var(--footer-bg); color: var(--footer-text); font-size: .9375rem; --muted: var(--footer-muted); --heading: var(--footer-text); --ink: var(--footer-text); --line: var(--footer-muted); }
.footer .muted { color: var(--footer-muted); }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer__h { margin: 0 0 1rem; font-size: 1rem; }
.logo--footer img { height: 38px; margin-bottom: 1rem; }
.footer .label, .label { display: block; margin: 1rem 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__list li .label { margin: 0 0 .15rem; }
.footer a { color: var(--footer-text); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__list, .footer__posts, .footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer__posts li { display: grid; gap: .1rem; line-height: 1.4; }
.footer__links { gap: .5rem; }
.footer__links .sub, .footer__links .sub-toggle { display: none; }
.footer__links a { padding: 0; background: none !important; }
.footer .social { margin-left: -.4rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ WhatsApp */
.wa { position: fixed; bottom: 18px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.wa--right { right: 18px; }
.wa--left { left: 18px; align-items: flex-start; }
.wa__btn { display: inline-flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.15rem 0 .95rem; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; font-size: .9375rem; text-decoration: none; box-shadow: 0 10px 28px -10px rgba(18, 140, 70, .7); transition: transform var(--ease); }
.wa__btn:hover { color: #fff; transform: translateY(-2px); }
.wa__bubble { max-width: 240px; padding: .7rem .95rem; border-radius: 16px 16px 4px 16px; background: var(--card); color: var(--text); font-size: .875rem; box-shadow: var(--shadow-lift); }
.wa--left .wa__bubble { border-radius: 16px 16px 16px 4px; }
@media (max-width: 640px) {
  .wa__label { display: none; }
  .wa__btn { width: 54px; padding: 0; justify-content: center; }
  .wa__bubble { display: none; }
}
@media (max-width: 920px) { .wa--desktop-only { display: none; } }
@media (min-width: 921px) { .wa--mobile-only { display: none; } }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .footer, .wa, .newsletter { display: none !important; }
}

/* Cards keep their normal text colours inside sections that have a custom text colour. */
.sec[style] :is(.card, .post-card, .acc, .tile, .refer-card, .photo-card .glass, form.form input, form.form textarea, form.form select) {
  --text: var(--text-base); --heading: var(--heading-base); --ink: var(--heading-base); --muted: var(--muted-base); --soft: var(--soft-base); --link: var(--link-base); color: var(--text-base);
}
