/* =========================================================================
   Arise Mental Wellness
   Colours, type and section shapes are carried over from the Nicepage site
   that this replaces, sampled from the live page rather than guessed.
   ========================================================================= */

:root {
    /* brand */
    --cream: #FFF6EE;
    --cream-deep: #FBEADC;
    --ink: #111111;
    --white: #FFFFFF;

    --terracotta: #B9754D;
    /* Terracotta is light enough that small text on white fails AA at 3.67.
       Backgrounds keep the brand colour; small text uses this deeper shade. */
    --terracotta-text: #9C5831;
    --brown: #7E5B46;
    --peach: #EFD3BA;
    --sand: #F0DAC5;
    --blush: #F6CFD1;
    --lemon: #FBEEBE;
    --lemon-edge: #C2AD5E;
    --sky: #C9DCEF;
    --stone: #E7D3BE;   /* was a muddy grey, now light clay */
    --gold: #F8E28C;

    --orange: #DF711C;
    --orange-dark: #BB5A0F;   /* was #BD5C11, which read 4.47 on white */
    --orange-deep: #B35A14;   /* 4.8:1 against white */
    --orange-deeper: #974A0C;
    --coral: #DB545A;
    --link: #2F6A9E;

    /* type
       Two typefaces only: Roboto for headings, Open Sans for every piece of
       running text. Headings keep a fluid scale because that IS the design;
       everything else comes from the four sizes below, so no running text
       is ever sized by eye. */
    --font-head: Roboto, system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, sans-serif;

    --text-xs:   0.875rem;    /* 14px - dates, footer small print */
    --text-sm:   0.9375rem;   /* 15px - secondary text, labels, nav, buttons */
    --text-base: 1.0625rem;   /* 17px - all body paragraphs */
    --text-lg:   1.1875rem;   /* 19px - leads and intros */

    --h4: 1.25rem;
    --h5: 1.0625rem;

    --ink-soft: #5A463A;      /* the one muted text colour */

    /* layout */
    --shell: 1140px;
    --shell-narrow: 760px;
    --radius: 10px;
    --radius-lg: 22px;
    --header-h: 86px;

    /* Vertical rhythm. Every gap on the page comes from one of these,
       so nothing is spaced by eye. */
    --space-section: clamp(2.5rem, 5vw, 4rem);     /* between bands */
    --space-group: clamp(1.6rem, 3vw, 2.5rem);     /* within a band group */
    --space-cta: 1.75rem;                          /* above a button that follows text */
    --space-cta-block: 3rem;                       /* above a button that follows a grid */

    --shadow-sm: 0 2px 10px rgba(80, 46, 24, .10);
    --shadow: 0 10px 30px rgba(80, 46, 24, .14);
    --shadow-lg: 0 24px 60px rgba(80, 46, 24, .20);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- reset */

/* Light only, and the "only" matters.
   `color-scheme: light` merely says the page HAS a light scheme, which
   Chrome's auto-dark theme and Samsung Internet will still paint over.
   `only light` is the strong form: do not re-colour this page. */
/* Plain value first so engines that do not parse the `only` keyword still
   get a colour scheme; the strong form second for those that do. One line
   of `only light` on its own is discarded whole by older parsers, leaving
   no signal at all. */
:root { color-scheme: light; color-scheme: only light; }
html, body { color-scheme: light; color-scheme: only light; }

/* Belt and braces for engines that honour the media query but not the
   property: restate the real colours when the device asks for dark. */
@media (prefers-color-scheme: dark) {
    :root { color-scheme: light; color-scheme: only light; }
    html, body {
        background: var(--cream) !important;
        color: var(--ink) !important;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    /* clip, not hidden. overflow-x:hidden makes this a scroll container,
       which silently stops position:sticky working anywhere inside it.
       overflow-x:clip contains the same way without that side effect. */
    overflow-x: clip;
}

/*
   One decorative layer for the entire document. Soft, very large radial
   washes in the brand blush and peach, so the warmth of the old design
   survives with no section edges anywhere.
*/
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    /*
       One decorative layer for the whole document, so there are no section
       boundaries for a seam to appear at. waves.svg is a seamless vertical
       tile traced from the client's own shapes; its top and bottom edges
       are transparent, so repeat-y joins invisibly at any page length.
    */
    background-image: url("../images/decor/waves.svg");
    background-repeat: repeat-y;
    background-size: 100% 3600px;
    background-position: 50% 0;
}

.site-header,
main,
.site-footer,
.whatsapp-float,
.scroll-progress { position: relative; z-index: 1; }

.site-header { position: fixed; }

img { max-width: 100%; height: auto; display: block; }

/* Form controls do not inherit type from body. Without this the hamburger
   label and the carousel arrows fall back to Arial at the browser default
   size, which is the only place two stray faces crept onto the site. */
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    line-height: 1.15;
    margin: 0 0 .6em;
    font-weight: 400;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }

p { margin: 0 0 1.1em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }

ul { margin: 0 0 1.1em; padding-left: 1.2em; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - 2.5rem, var(--shell-narrow)); }
.center { text-align: center; }

/* ---------------------------------------------------- scroll progress */

.scroll-progress {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
    background: transparent; pointer-events: none;
}
.scroll-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--terracotta), var(--orange));
    transform-origin: 0 50%;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 110;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
                backdrop-filter .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-stuck {
    background: rgba(255, 237, 219, .92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: var(--header-h);
}

.site-header__brand img {
    width: clamp(108px, 11vw, 150px); height: auto;
    transition: width .35s var(--ease);
}
.site-header.is-stuck .site-header__brand img { width: clamp(92px, 9vw, 118px); }

.site-nav__list {
    display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.6rem);
    list-style: none; margin: 0; padding: 0;
}
.site-nav__list > li { position: relative; }

.site-nav__list a {
    color: var(--ink); text-decoration: none; font-size: var(--text-sm);
    font-weight: 600; letter-spacing: .01em; white-space: nowrap;
    padding: .4rem 0; display: inline-block; position: relative;
}
.site-nav__list > li > a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--terracotta);
    transition: right .3s var(--ease);
}
.site-nav__list > li > a:hover::after,
.site-nav__list > li > a[aria-current="page"]::after { right: 0; }
.site-nav__list > li > a.btn::after { display: none; }

/* .site-nav__list a is more specific than .btn, so without this the nav
   button loses its padding and its white text and gets clipped. */
/* Same button, minus the minimum width: a header is a tighter space than
   a page body. .site-nav__list a is more specific than .btn, so the colour
   and size have to be restated here or the nav button loses them. */
/* .site-nav__list a is more specific than .btn, so the colour has to be
   restated here or the nav button loses it. Width is left alone: the nav
   button is the same size as every other button on the site. */
.site-nav__list a.btn {
    color: #fff;
    font-size: var(--text-sm);
    /* The body buttons share a fixed 17rem width so a set of calls to
       action reads as one component. A header is a different context:
       here the button sits in a row of links and must size to its label,
       or it dwarfs the navigation. */
    width: auto;
    min-height: 2.75rem;
    padding: .6rem 1.4rem;
    margin-left: .75rem;
    margin-top: 0;
}
.site-nav__list a.btn:hover { color: #fff; }

.site-nav__sub {
    position: absolute; top: 100%; left: -1rem; min-width: 230px;
    list-style: none; margin: 0; padding: .6rem;
    background: var(--brown); border-radius: var(--radius);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all .25s var(--ease);
}
.has-children:hover .site-nav__sub,
.has-children:focus-within .site-nav__sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__sub a { color: #fff; display: block; padding: .5rem .8rem; border-radius: 6px; }
.site-nav__sub a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.site-nav__meta { display: none; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    padding: .6rem; border-radius: 8px;
}
.nav-toggle__bars { display: block; width: 26px; }
.nav-toggle__bars i {
    display: block; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars i + i { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-scrim {
    position: fixed; inset: 0; background: rgba(40, 22, 10, .45);
    z-index: 105; opacity: 0; transition: opacity .3s var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

/* ------------------------------------------------------------- buttons */
/*
   One button. Every call to action on the site shares the same height,
   padding, radius, type and minimum width, so a short label like "Prices"
   reads as the same component as a long one. Emphasis is carried by
   colour, never by size.

   Primary is deep orange on white type at 4.8:1, which passes WCAG AA for
   normal text. The old bright orange with black type read as muddy.
*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    /* Every button is the SAME SIZE, not just the same height. A fixed
       width is what makes a set of calls to action read as one component:
       min-width only sets a floor and still let long labels grow. */
    min-height: 3rem;             /* 48px */
    width: 17rem;                 /* 272px, fits the longest label on the site */
    max-width: 100%;
    padding: .75rem 1.25rem;

    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 10px;          /* matches the heading pills */
    cursor: pointer;

    transition: background-color .22s var(--ease),
                border-color .22s var(--ease),
                color .22s var(--ease),
                transform .22s var(--ease),
                box-shadow .22s var(--ease);
}

/* ONE colour, ONE hover. There is no secondary button variant: a second
   treatment is what made these look inconsistent, because an outlined
   button sitting beside a solid one reads as a different component and
   hovers in a different direction (fill vs darken). */
.btn,
.btn--primary,
.btn--ghost {
    color: #fff;
    background: var(--orange-deep);
    border-color: var(--orange-deep);
    box-shadow: 0 1px 2px rgba(74, 34, 6, .16);
}

.btn:hover,
.btn--primary:hover,
.btn--ghost:hover,
.site-nav__list a.btn:hover {
    color: #fff;
    background: var(--orange-deeper);
    border-color: var(--orange-deeper);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(74, 34, 6, .34);
}

.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(74, 34, 6, .2); }

.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* --------------------------------------------------------- cta spacing */
/*
   .prose :last-child clears the bottom margin of the final paragraph, which
   left several buttons sitting flush against the text above them. Rather
   than patch each one, the space above a call to action comes from here and
   has exactly two values: after text, and after a grid of cards.
*/

.hero__panel .btn,
.service__card .btn,
.band--pricing .btn,
.contact__map-link .btn,
.contact-form button.btn,
.bio__body .btn,
.member__body .btn,
.article .btn { margin-top: var(--space-cta); }

/* A paragraph that exists only to wrap a button adds no space of its own. */
p:has(> .btn:only-child) { margin: 0; }

/* These used to supply the gap by hand; the rules above own it now. */
.hero__contact { margin-bottom: 0; }
.contact__list { margin-bottom: 0; }
.contact__map-link { margin: 0; }

/* A button after a grid takes its distance from the grid itself. */
.team-grid,
.post-grid { margin-bottom: var(--space-cta-block); }

/* After a grid the distance comes from the grid's own margin, so these
   must not add a second gap on top of it. */
.band--team .center .btn,
.band--blog .center .btn { margin-top: 0; }

/* the review button follows the carousel, which is a block, not text */
.quotes__cta { margin: 0; }
.quotes__cta .btn { margin-top: var(--space-cta-block); }

/* -------------------------------------------------------- pill heading */

.pill-heading {
    display: inline-block; margin: 0 0 2rem;
    background: var(--terracotta); color: #fff;
    padding: .55rem 2.4rem; border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
.pill-heading--light { background: var(--brown); }
.pill-heading--soft { background: var(--blush); color: var(--ink); }
.center .pill-heading { margin-inline: auto; }

/* ---------------------------------------------------------------- bands */

.band { position: relative; padding: var(--space-section) 0; }
.band--alt { background: var(--cream-deep); }
.band__sub { font-size: var(--text-lg); max-width: 62ch; }
/* Inside a centred block the sub-heading has to be centred as a block
   too, or it hangs to the left under a centred pill. */
.ab-center .band__sub, .center .band__sub { margin-inline: auto; }
.band__sub--centered { margin-inline: auto; text-align: center; }

/*
   The decorative shapes used to be a cover-sized PNG per section. Each one
   painted inside its own box, so every section boundary became a visible
   seam: a hard horizontal line, a band of colour that stopped dead, and a
   strip of bare cream above the footer. They are now one continuous layer
   behind the whole document (see body::before), which cannot seam because
   there is only one of it.
*/
.band__blob,
.hero__blob { display: none; }

.band > .shell { position: relative; z-index: 1; }

.prose :last-child { margin-bottom: 0; }
.prose--lead { font-size: var(--text-lg); max-width: 72ch; }
/* A lead paragraph is narrower than its column, so without this it sits
   flush left with a wide empty margin beside it. */
.ab-col > .prose--lead { margin-inline: auto; }
.center .prose--lead { margin-inline: auto; }

/* ----------------------------------------------------------------- hero */

.hero {
    position: relative;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: var(--space-section);
    overflow: hidden;
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr;
    align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; height: clamp(360px, 48vw, 640px); object-fit: cover; }

.hero__panel {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3vw, 2.6rem);
    box-shadow: var(--shadow);
    text-align: center;
}
.hero__logo { width: clamp(190px, 22vw, 300px); margin: 0 auto 1.2rem; }
.hero__lede {
    font-family: var(--font-body); font-weight: 400;
    font-size: var(--text-lg); line-height: 1.5;
    margin-bottom: 1.2rem;
}
.hero__contact {
    display: flex; flex-direction: column; gap: .15rem;
    font-weight: 700;
    margin-bottom: 0;   /* the space below is owned by --space-cta */
}
.hero__contact a { color: var(--ink); text-decoration: none; }
.hero__contact a:hover { color: var(--orange-dark); text-decoration: underline; }


/* -------------------------------------------------------------- intro */

.band--intro { overflow: clip; }
.band--intro .prose { font-size: var(--text-lg); }

/* -------------------------------------------------- why counselling */

.why__grid {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: start;        /* required: a stretched item cannot stick */
}
.why__copy {
    background: var(--white); border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 2.6vw, 2.2rem); box-shadow: var(--shadow-sm);
    height: 100%;      /* both boxes end level, whichever is taller */
}
.why__list {
    background: var(--peach); color: var(--ink);
    border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.6vw, 2rem);
    box-shadow: var(--shadow);
    height: 100%;
}
.why__list h3 { color: var(--ink); font-size: var(--h4); }
.why__list ul {
    list-style: none; padding: 0; margin: 0;
    /* Two columns halve the height of the list so it matches the paragraph
       beside it. Below 720px there is no room, and it falls back to one. */
    columns: 2;
    column-gap: clamp(1rem, 2.4vw, 1.8rem);
}
.why__list li { break-inside: avoid; }
.why__list li {
    position: relative; padding: .42rem 0 .42rem 1.7rem;
    border-bottom: 1px solid rgba(90, 70, 58, .22);
    font-size: var(--text-base);
}
/* In two columns the item at the foot of the left column is not the last
   child, so dropping the rule only there left one column with a closing
   line and the other without. Every item keeps its divider instead. */
.why__list li:last-child { border-bottom: 1px solid rgba(90, 70, 58, .22); }
@media (max-width: 720px) {
    /* back to one column, where the last item really is the last */
    .why__list li:last-child { border-bottom: 0; }
}
.why__list li::before {
    content: ""; position: absolute; left: 0; top: 1.05em;
    width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta);
}

/* ------------------------------------------------------------ services */

.band--services-intro { padding-bottom: var(--space-group); }

.service { }

.service { padding: var(--space-group) 0; overflow: clip; }
/* The last service closes the group and restores the full band gap.
   :last-of-type cannot be used here: the last <section> on the page is the
   contact band, not a service. */
.service:has(+ .band) { padding-bottom: var(--space-section); }
.service__inner {
    display: grid; grid-template-columns: 1.1fr .9fr;
    /* stretch, not center: the photo and the panel are the same height and
       line up top and bottom, instead of the shorter one floating */
    align-items: stretch;
    gap: clamp(1.2rem, 3vw, 2.5rem);
}
.service--image-right .service__media { order: 2; }

.service__media {
    margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow);
}
.service__media img { width: 100%; height: 100%; min-height: clamp(260px, 32vw, 420px); object-fit: cover; }

.service__card {
    background: var(--peach); color: var(--ink);
    border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.6rem);
    box-shadow: var(--shadow);
    /* centre the wording inside a panel that now matches the photo height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service__card h2 { color: var(--ink); font-weight: 300; }
.service__card .prose { color: var(--ink); }
.service:nth-of-type(even) .service__card { background: var(--sand); }

/* ---------------------------------------------------------- approaches */

.band--approaches { overflow: clip; }
.band--approaches > .shell { text-align: center; }
.band--approaches .pill-heading { margin-inline: auto; }

.approach-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem); margin-top: 2.5rem; text-align: left;
}
.approach {
    border-radius: var(--radius-lg); padding: clamp(1.3rem, 2.4vw, 1.9rem);
    box-shadow: var(--shadow-sm); background: var(--blush);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.approach:hover, .approach:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); }
.approach h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.approach p { font-size: var(--text-base); margin: 0; }

.approach--blush { background: var(--blush); }
.approach--lemon { background: var(--lemon); }
.approach--sky   { background: var(--sky); }
.approach--stone { background: var(--stone); }
.approach--sand  { background: var(--sand); }
.approach--gold  { background: var(--gold); }

/* ---------------------------------------------------------------- team */
/*
   Fixed-width columns rather than 1fr, so a part-filled last row centres
   under the rest instead of hanging to the left. Each card is a 3-row grid
   with the role block given a floor, which keeps every chip on one line
   across the row no matter how long a job title runs.
*/

/* Flex, not grid: a part-filled last row centres under the rest on its
   own, where grid would leave the orphans hanging to the left. */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.8rem, 3vw, 2.6rem) clamp(1.6rem, 3vw, 2.4rem);
}

.team-card {
    /* Fixed width: no grow, no shrink.
       With flex-grow the cards in a short last row expand to fill it, so a
       row of two ends up with bigger photos than a row of three. With
       flex-shrink, a long word in a job title stretches the card. Both
       change the photo size, because the photo is a percentage of the card.
       Pinning the width is the only way every photo is identical. */
    flex: 0 0 200px;
    width: 200px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    gap: .85rem;
}

.team-card__photo {
    display: block; width: 100%; aspect-ratio: 1;
    border-radius: 50%; overflow: hidden;
    background: var(--cream-deep);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .85),
                0 10px 24px -10px rgba(80, 46, 24, .45);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.team-card__photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
    transition: transform .6s var(--ease);
}
.team-card:hover .team-card__photo,
.team-card:focus-visible .team-card__photo {
    transform: translateY(-5px);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .95),
                0 18px 34px -12px rgba(80, 46, 24, .5);
}
.team-card:hover .team-card__photo img { transform: scale(1.05); }

.team-card__name {
    display: inline-block;
    background: var(--lemon);
    border: 1px solid rgba(178, 154, 54, .45);
    border-radius: 999px;
    padding: .34rem 1.05rem;
    font-size: var(--text-base); font-weight: 600; line-height: 1.3;
    color: #4A3A12;
    /* Must never be wider than its card: nowrap let a long name such as
       "Dr Shehani Perera" spill out and overlap the card beside it. */
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.team-card:hover .team-card__name {
    background: #F5DE80;
    border-color: rgba(178, 154, 54, .8);
}

.team-card__role {
    /* Same size and colour as body copy everywhere else on the site. No
       min-height is needed to keep the rows aligned: the photo and the name
       chip above it are a fixed height, so the chips line up regardless of
       how many lines a job title runs to. */
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--ink);
}

/* ------------------------------------------------------------ pricing */

.band--pricing { overflow: clip; }

/* ------------------------------------------------------- testimonials */

.band--testimonials > .shell { text-align: center; }
.band--testimonials .pill-heading { margin-inline: auto; }

.quotes { position: relative; padding: 0 clamp(0rem, 5vw, 3.5rem); }
.quotes__viewport { overflow: hidden; }
.quotes__track {
    display: flex; list-style: none; margin: 0; padding: 0;
    transition: transform .6s var(--ease);
}
.quote { flex: 0 0 100%; padding: .5rem; }
.quote blockquote {
    margin: 0; background: var(--white); border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3.5vw, 3rem); box-shadow: var(--shadow-sm);
    position: relative;
}
.quote blockquote::before {
    content: "\201C"; position: absolute; top: -.1em; left: .3em;
    font-family: var(--font-head); font-size: 5rem; color: var(--blush);
    line-height: 1;
}
.quote p { font-size: var(--text-lg); font-style: italic; margin: 0; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; }

.quotes__nav {
    position: absolute; top: 50%; translate: 0 -50%;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--white); color: var(--terracotta-text); font-size: var(--text-base);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.quotes__nav:hover { background: var(--terracotta); color: #fff; transform: translateY(-50%) scale(1.08); }
.quotes__nav--prev { left: 0; }
.quotes__nav--next { right: 0; }

.quotes__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.quotes__dots button {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(177, 110, 71, .35); cursor: pointer;
    transition: all .25s var(--ease);
}
.quotes__dots button[aria-current="true"] { background: var(--terracotta); width: 26px; border-radius: 999px; }

/* ---------------------------------------------------------------- blog */

.post-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: clamp(1.2rem, 2.6vw, 2rem);
}
.post-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* Flex column so "Read more" sits on the bottom edge of every card in a
   row, however long the titles and excerpts run. */
.post-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    height: 100%;
}
.post-card__media { display: block; overflow: hidden; }

/* A post saved without a header image used to leave a blank area the height
   of the other cards. This gives it the brand wave instead, so a row of
   cards keeps its rhythm. */
.post-card__media--placeholder {
    height: 210px;
    background:
        radial-gradient(120% 90% at 20% 15%, rgba(255, 255, 255, .55), transparent 60%),
        linear-gradient(140deg, var(--sand), var(--blush) 55%, var(--peach));
    position: relative;
}
.post-card__media--placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/AriseLogonobackground.png") center/42% no-repeat;
    opacity: .35;
    mix-blend-mode: multiply;
}
.post-card__media img {
    width: 100%; height: 210px; object-fit: cover;
    transition: transform .6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.3rem 1.4rem 1.6rem;
}
.post-card__body time { font-size: var(--text-xs); color: var(--terracotta-text); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.post-card__body h3 { font-size: var(--h4); margin: .45rem 0 .6rem; }
.post-card__body p { font-size: var(--text-sm); margin-bottom: 1rem; }
.post-card__more { margin-top: auto; font-weight: 700; color: var(--orange-dark); font-size: var(--text-sm); }

.pagination-wrap { display: flex; justify-content: center; }
.pagination-wrap nav { font-size: var(--text-sm); }

/* ---------------------------------------------------------- page head */

.page-head {
    padding: calc(var(--header-h) + 3rem) 0 2rem;
    background: var(--cream-deep);
}
.page-head h1 { margin-bottom: .3rem; }
.page-head__sub { font-size: var(--text-lg); max-width: 60ch; margin: 0; }

.breadcrumb { font-size: var(--text-sm); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; font-weight: 600; }

/* --------------------------------------------------------------- bios */

.bio-list { display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.bio {
    display: grid; grid-template-columns: 300px 1fr;
    gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start;
    background: var(--white); border-radius: var(--radius-lg);
    padding: clamp(1.3rem, 2.6vw, 2.2rem); box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.bio__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.bio__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bio__role { color: var(--terracotta-text); font-weight: 700; margin-top: -.6em; }
.bio h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }

/* --------------------------------------------------- member + article */

.member { padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.member__inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(1.5rem, 3.5vw, 2.8rem);
    align-items: center;          /* name sits beside the photo, not above it */

    /* The biography below sits in the narrow measure articles use. Matching
       it here puts the photo, the name and the biography on one left edge
       instead of three. */
    width: min(100% - 2.5rem, var(--shell-narrow));
}
.member__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.member__body { min-width: 0; }
.member__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.member__role { color: var(--terracotta-text); font-weight: 700; font-size: var(--text-base); margin-top: -.5em; }

.article { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.article__hero {
    height: clamp(260px, 42vw, 460px); overflow: hidden;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.article__hero img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.page-post .article:first-child:not(:has(.article__hero)) { padding-top: calc(var(--header-h) + 3rem); }
.page-post .article__hero { margin-top: var(--header-h); }
.article__meta { display: flex; gap: 1rem; align-items: center; font-size: var(--text-xs); color: var(--terracotta-text); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.article__cat { background: var(--lemon); color: var(--ink); border-radius: 999px; padding: .2rem .85rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.article__body { font-size: var(--text-base); }
.article__body h2, .article__body h3 { margin-top: 1.6em; }
.article__sign { font-weight: 700; color: var(--terracotta-text); }

/* ------------------------------------------------------------ contact */

.band--contact { overflow: clip; }
.contact__inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list a { color: var(--ink); text-decoration: none; }
.contact__list a:hover { color: var(--orange-dark); text-decoration: underline; }
.contact__icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    background: var(--terracotta); display: grid; place-items: center;
}
.contact__icon svg { width: 20px; height: 20px; fill: #fff; }

.contact__form-wrap {
    background: var(--white); border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: .35rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
    /* block, not inline-block: otherwise the baseline leaves a stray few px
       under every field and the form rhythm drifts. */
    display: block;
    width: 100%; font: inherit; font-size: var(--text-base); color: var(--ink);
    padding: .75rem .9rem; border: 2px solid #E6D4C2; border-radius: 10px;
    background: #FFFBF6;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
    border-color: var(--terracotta); outline: 0;
    box-shadow: 0 0 0 4px rgba(177, 110, 71, .14);
}
.field textarea { resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: var(--text-sm); }
.form-note--ok { background: #E7F3E4; color: #27591E; }
.form-note--error { background: #FBE3E4; color: #8A2B30; }
.form-note ul { margin: .4rem 0 0; padding-left: 1.2em; }

/* ------------------------------------------------------------- footer */

.site-footer { background: var(--brown); color: #F6E8DC; margin-top: 0; }
.site-footer a { color: #F6E8DC; }
.site-footer a:hover { color: var(--lemon); }
.site-footer__inner {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.site-footer__brand img { width: 160px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }
.site-footer__brand p { font-size: var(--text-sm); }
.site-footer h2 { font-size: var(--text-sm); letter-spacing: .06em; text-transform: uppercase; color: #F2DCC7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer p { font-size: var(--text-sm); margin-bottom: .5rem; }
.site-footer__bar { border-top: 1px solid rgba(246, 232, 220, .18); padding: 1.1rem 0; font-size: var(--text-xs); }
.site-footer__bar p { margin: 0; }

/* ------------------------------------------------------ whatsapp float */

.whatsapp-float {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 100;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform .3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ------------------------------------------------------------ reveals */
/*
   Content is visible by default and stays visible with no JavaScript, with
   reduced motion, or if a script fails. Only the script adds .will-reveal,
   and only after it has confirmed motion is wanted.
*/
.will-reveal { opacity: 0; transform: translateY(26px); }
.will-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1080px) {
}

@media (max-width: 920px) {
    :root { --header-h: 74px; }

    /* Centre every call to action once the layout stacks. display:flex makes
       the button block level, so the auto margins actually centre it. */
    .btn { display: flex; margin-left: auto; margin-right: auto; }
    .site-nav__list a.btn { display: inline-flex; margin-left: 0; margin-right: 0; }

    /* One above .site-nav's 106: the drawer is a fixed sibling of this
       button inside the header, so without a stacking position of its own
       the open drawer paints over the X and eats the tap that closes it. */
    .nav-toggle { display: block; position: relative; z-index: 107; }

    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); z-index: 106;
        /* inset:0 resolves against the LARGE viewport on iOS Safari, which
           puts the foot of the drawer under Safari's own toolbar. 100dvh is
           the visible height, so the last item stays reachable. The vh line
           is the fallback for engines without dvh. */
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        /* Enough to clear the transparent fixed header and no more: the old
           extra 1.5rem read as dead space above the first link. */
        padding: calc(var(--header-h) + .25rem) 1.6rem calc(1.25rem + env(safe-area-inset-bottom));
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        /* Without this, flicking past the end of the menu scrolls the page
           behind it and the drawer appears to jump. */
        overscroll-behavior: contain;
        transform: translateX(100%); transition: transform .4s var(--ease);
        visibility: hidden;
    }
    .site-nav.is-open { transform: translateX(0); visibility: visible; }

    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__list > li { border-bottom: 1px solid rgba(177, 110, 71, .2); }
    .site-nav__list a { padding: .72rem 0; font-size: var(--text-base); display: block; }
    .site-nav__list > li > a::after { display: none; }
    .site-nav__list > li > a.btn { margin: .9rem 0; text-align: center; }

    .site-nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: transparent; box-shadow: none; padding: 0 0 .6rem 1rem;
    }
    .site-nav__sub a { color: var(--ink); padding: .38rem 0; font-size: var(--text-sm); }
    .site-nav__sub a:hover { background: transparent; color: var(--orange-dark); }

    .site-nav__meta {
        display: grid; gap: .3rem; margin-top: 1.1rem;
        font-weight: 700; font-size: var(--text-sm);
    }

    /* Narrower card, still fixed, so photos stay identical across rows. */
    .team-card { flex: 0 0 170px; width: 170px; }
    .team-card__name { font-size: .8125rem; padding: .26rem .7rem; }
    .site-nav__meta a { color: var(--ink); text-decoration: none; }

    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { order: 2; }
    .hero__media img { height: clamp(260px, 52vw, 400px); }

    .why__grid,
    .service__inner,
    .contact__inner,
    .member__inner,
    .bio { grid-template-columns: 1fr; }

    .service--image-right .service__media { order: 0; }
    .bio__media { max-width: 260px; }

    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    /* On a phone a button fills the width it is given, so there is never an
       odd gap on one side of it. */
    .btn { width: 100%; max-width: 22rem; }

    .team-grid { gap: 1.7rem 1.4rem; }
    .team-card { flex: 0 0 150px; width: 150px; }
    /* Smaller label so the longest name still fits a 150px card on one line */
    .team-card__name { font-size: .75rem; padding: .24rem .6rem; letter-spacing: 0; }
    .post-grid { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .quotes { padding: 0; }
    .quotes__nav { display: none; }
}

/* -------------------------------------------------------- reduced motion */
/*
   Everything stays visible and in place. Nothing here may hide content:
   that failure mode is exactly what broke the old Nicepage build.
*/
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .will-reveal,
    .will-reveal.is-in { opacity: 1 !important; transform: none !important; }

    .hero__blob, .band__blob, .hero__media,
    .service__media, .bio__media, .article__hero img { transform: none !important; }
}

@media print {
    .site-header, .whatsapp-float, .scroll-progress, .quotes__nav { display: none !important; }
    body { background: #fff; }
}

/* Two columns of benefits need the width. Narrower than this and a single
   column reads better than two cramped ones. */
@media (max-width: 720px) {
    .why__list ul { columns: 1; }
}
