/* ==========================================================================
   Svvy® Advisor — advisor.besvvy.com
   Single stylesheet for a single page. Organised top-down in the same order
   the sections appear in index.html, so a section in the markup maps to the
   block with the same name here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOKENS
   Type is a 1.25 modular scale on a 17px base. The same seven tokens are
   redefined once at the mobile breakpoint with a tighter 1.15 ratio, so the
   whole scale compresses together rather than needing per-element overrides.
   -------------------------------------------------------------------------- */
:root {
    /* brand */
    --navy: #24314f; /* headings */
    --navy-deep: #1f2d4e; /* buttons */
    --navy-deep-hover: #16213a;
    --mint: #d5f0ed; /* callout card + step card glow */
    --teal: #5a98a4; /* links, focus ring */
    --teal-light: #9cc1c8;
    --body: #666; /* body copy */
    --bg-alt: #f9f9f9; /* feature section bands */
    --bg-bar: #f1f1f1; /* copyright bar */
    --rule: rgba(0, 0, 0, 0.12);

    /* type — desktop, ratio 1.25 from 17px */
    --fs-sm: 0.85rem; /* 13.6px */
    --fs-body: 1.0625rem; /* 17px   */
    --fs-lead: 1.328rem; /* 21.3px */
    --fs-title: 1.66rem; /* 26.6px */
    --fs-h2: 2.076rem; /* 33.2px */
    --fs-h2-lg: 2.595rem; /* 41.5px */
    --fs-display: 3.243rem; /* 51.9px */

    --lh-tight: 1.1;
    --lh-heading: 1.25;
    --lh-body: 1.5;

    /* layout */
    --container: 80rem; /* 1280px */
    --gutter: clamp(1rem, 5vw, 4rem);

    /* Line-length caps. Deliberately in rem, not ch: `ch` scales with
       font-size, so one shared ch value produces a very wide column on
       large text and a very narrow one on small text. */
    --measure-body: 36rem; /* 576px — body copy at --fs-body   */
    --measure-body-wide: 52rem; /* 832px — body copy in a full-width card */
    --measure-large: 44rem; /* 704px — centred lead copy       */
    --measure-heading: 60rem; /* 960px — centred display headings */

    /* spacing */
    --gap-sm: 0.75rem;
    --gap: 2rem;
    --gap-lg: 3.75rem;
    --section-y: 3.5rem;
}

/* Mobile: same seven tokens, ratio 1.15. --fs-sm stays put so small text
   does not grow larger on phones than it is on desktop. */
@media (max-width: 47.9375rem) {
    :root {
        --fs-body: 1.0625rem; /* 17px   */
        --fs-lead: 1.222rem; /* 19.6px */
        --fs-title: 1.405rem; /* 22.5px */
        --fs-h2: 1.616rem; /* 25.9px */
        --fs-h2-lg: 1.858rem; /* 29.7px */
        --fs-display: 2.137rem; /* 34.2px */
        --section-y: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   RESET — only what this page actually uses
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
li,
figure {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Mulish", Helvetica, Arial, sans-serif;
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: var(--lh-body);
    color: var(--body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    color: var(--navy);
    font-weight: 700;
    line-height: var(--lh-heading);
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Visible focus for keyboard users everywhere. Replaces Divi's
   `:focus { outline: 0 }`, which removed the indicator site-wide. */
:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Prose stays readable no matter how wide the container gets.
   Each cap is chosen for the font size that block is set at. */
.step__body,
.site-footer__brand p {
    max-width: var(--measure-body);
}

/* Wider than --measure-body: this sits centred in a full-width card, so a
   narrow column leaves too much mint dead space either side. */
.callout p {
    max-width: var(--measure-body-wide);
}

.cta__body {
    max-width: var(--measure-large);
}

.cta h2 {
    max-width: var(--measure-heading);
}

/* --------------------------------------------------------------------------
   BUTTON
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 6px;
    background: var(--navy-deep);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    transition:
        background-color 200ms ease,
        transform 200ms ease;
}

.btn:hover {
    background: var(--navy-deep-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-block: 10px;
}

.site-header__logo img {
    width: 151px;
    height: auto;
}

@media (max-width: 47.9375rem) {
    .site-header__inner {
        flex-direction: column;
        gap: var(--gap-sm);
    }
}

/* --------------------------------------------------------------------------
   HERO
   Photo plus a white scrim that fades out across the left 40–47%, which is
   what keeps the headline legible over the image.
   -------------------------------------------------------------------------- */
.hero {
    /* min-height keeps the photo reading as a hero band rather than a
       thin strip once the copy is set on a wider measure. */
    min-height: 34rem;
    display: flex;
    align-items: center;
    padding-block: 113px 80px;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.7) 40%,
            rgba(255, 255, 255, 0) 47%
        ),
        url("/assets/img/home-hero.jpg");
    background-size: cover, cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.hero__content {
    width: min(50%, 36rem);
    text-align: center;
}

.hero h1 {
    font-size: var(--fs-display);
    line-height: var(--lh-tight);
    margin-bottom: 0.5rem;
}

.hero .lead {
    font-size: var(--fs-lead);
    margin-bottom: 1.75rem;
}

@media (max-width: 61.9375rem) {
    .hero {
        padding-block: 4rem 3rem;
        /* Scrim covers the full width once the copy is centred over the photo. */
        background-image:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.82) 0%,
                rgba(255, 255, 255, 0.72) 100%
            ),
            url("/assets/img/home-hero.jpg");
    }

    .hero__content {
        width: 100%;
        margin-inline: auto;
    }

    .hero .lead {
        margin-inline: auto;
    }
}

/* --------------------------------------------------------------------------
   CALLOUT — mint card pulled up to overlap the hero
   -------------------------------------------------------------------------- */
.callout-band {
    padding-bottom: var(--section-y);
}

.callout {
    /* Overlap up into the hero. */
    margin-top: -40px;
    padding: 50px;
    border-radius: 5px;
    background: var(--mint);
    text-align: center;
}

.callout h2 {
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
}

.callout p {
    margin-inline: auto;
    margin-bottom: 1.75rem;
}

@media (max-width: 47.9375rem) {
    .callout {
        /* margin-top is inherited from the base rule — same 40px offset. */
        padding: 1.75rem 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   FEATURE — image beside copy, on a tinted band
   -------------------------------------------------------------------------- */
.feature {
    padding-block: var(--section-y);
    background: var(--bg-alt);
}

.feature__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    align-items: center;
}

.feature__media {
    width: 100%;
}

.feature__body h2 {
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
}

@media (max-width: 47.9375rem) {
    .feature__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   STEPS — three cards
   Divi inset the image, title, rule and body by four different amounts
   (15 / 45 / 25 / 20px). Normalised here to one card padding.
   -------------------------------------------------------------------------- */
.steps {
    padding-block: var(--section-y);
}

.steps__title {
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.step {
    display: flex;
    flex-direction: column;
    padding: 25px 25px 30px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 5px 83px var(--mint);
    text-align: center;
}

.step__media {
    width: 100%;
    margin-bottom: 1.5rem;
}

.step__title {
    font-size: var(--fs-title);
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--navy);
    margin-bottom: 1.25rem;
}

.step__body {
    margin-inline: auto;
}

.steps__cta {
    margin-top: 2.5rem;
    text-align: center;
}

@media (max-width: 63.9375rem) {
    .steps__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 47.9375rem) {
    .steps__list {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   CTA — closing pitch over a background photo
   -------------------------------------------------------------------------- */
.cta {
    display: flex;
    align-items: center;
    min-height: 37rem;
    padding-block: 54px;
    /* White scrim over the photo. The image has a dark diagonal band that
       cut through the copy at narrow widths, dropping navy-on-photo
       contrast below AA; the wash keeps the backdrop light everywhere. */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
        url("/assets/img/empowering-women.jpg");
    background-size: cover, cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    text-align: center;
}

.cta h2 {
    font-size: var(--fs-h2-lg);
    margin-inline: auto;
    margin-bottom: 1.25rem;
}

.cta__body {
    font-size: var(--fs-lead);
    margin-inline: auto;
    margin-bottom: 1.75rem;
}

@media (max-width: 47.9375rem) {
    .cta {
        min-height: 0;
    }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    padding-top: 54px;
}

.site-footer__brand {
    margin-bottom: 4rem;
    text-align: center;
}

.site-footer__brand p {
    margin-inline: auto;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.site-footer__brand img {
    width: 108px;
    height: auto;
}

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap-lg);
}

.footer-col__title {
    font-size: 1.125rem; /* 18px — matches the original footer headings */
    margin-bottom: 0.75rem;
}

.footer-col ul li + li {
    margin-top: 0.25rem;
}

.footer-col a,
.footer-col p {
    font-size: var(--fs-sm);
}

.footer-col a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.social {
    display: flex;
    gap: 0.75rem;
}

/* 44px hit area — comfortably above the 24px WCAG 2.5.8 minimum. */
.social a {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--teal-light);
    transition: color 200ms ease;
}

.social a:hover {
    color: var(--teal);
}

.social svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
}

.site-footer__rule {
    border: 0;
    border-top: 1px solid var(--rule);
    margin-block: 2.5rem 1.75rem;
}

@media (max-width: 63.9375rem) {
    .site-footer__cols {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gap);
    }
}

@media (max-width: 47.9375rem) {
    .site-footer__cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   DISCLOSURE — SEC-required text. Small by design; see fs-sm token.
   -------------------------------------------------------------------------- */
/* Deliberately uncapped: the disclosure spans the full container so its edges
   line up with the footer link columns above it. */
.disclosure p {
    font-size: var(--fs-sm);
    margin-bottom: 1.25rem;
}

.disclosure p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   COPYRIGHT BAR
   -------------------------------------------------------------------------- */
.copyright {
    margin-top: 2.5rem;
    padding-block: 27px;
    background: var(--bg-bar);
    text-align: center;
}

.copyright p {
    font-size: var(--fs-sm);
    color: rgba(0, 0, 0, 0.55);
}
