/* ==========================================================================
   Active Frequency — site styles
   No framework, no build step. Edit this file directly.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Self-hosted latin subsets. Both files are variable fonts, so one file
   covers every weight we use.
   ------------------------------------------------------------------------ */

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/raleway-latin-var.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/roboto-latin-var.woff2') format('woff2');
}

/* --- Tokens -------------------------------------------------------------- */

:root {
    --red: #ef4035;
    --red-dark: #d32f25;
    --ink: #222;
    --ink-soft: #4a4a4a;
    --ink-faint: #6b6b6b;  /* darkened from #767676: 4.17:1 failed AA on --surface-alt */
    --surface: #fff;
    --surface-alt: #f5f5f5;
    --rule: #e1e1e1;

    --font-display: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Fluid type scale — no fixed pixel headings, so long headlines behave. */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: clamp(1.0625rem, 0.99rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
    --text-hero: clamp(2.125rem, 1.2rem + 4.2vw, 4.5rem);

    --space-section: clamp(2.75rem, 5vw, 4rem);
    --container: 1140px;
    --measure: 40rem;

    --nav-h: 64px;
}

/* --- Reset --------------------------------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--surface);
}

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

a {
    color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--red-dark);
}

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

button {
    font: inherit;
    color: inherit;
}

/* --- Typography ---------------------------------------------------------- */

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.6em;
}

/* Section titles keep the original all-caps treatment. */
.section-title {
    font-size: var(--text-3xl);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 0.25em;
}

/* Sub-headings are sentence case — all-caps below h2 reads as shouting. */
h3 {
    font-size: var(--text-xl);
    font-weight: 700;
}

h4 {
    font-size: var(--text-lg);
    font-weight: 700;
}

p {
    margin: 0 0 1.15em;
}

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

.rule {
    width: 120px;
    height: 3px;
    margin: .9rem auto 1.35rem;
    border: 0;
    border-radius: 2px;
    background: var(--red);
}

.lede {
    font-size: var(--text-lg);
    text-align: center;
    max-width: var(--measure);
    margin-inline: auto;
}

/* --- Layout -------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section {
    padding-block: var(--space-section);
    scroll-margin-top: var(--nav-h);
}

.section--alt {
    background: var(--surface-alt);
}

.prose {
    max-width: var(--measure);
    margin-inline: auto;
}

.prose p {
    margin-bottom: 1.35em;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border: 2px solid currentColor;
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}

.btn--light {
    color: #fff;
    background: transparent;
}

.btn--light:hover {
    color: var(--ink);
    background: #fff;
    border-color: #fff;
}

.btn--primary {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}

.btn--primary:hover {
    color: #fff;
    background: var(--red-dark);
    border-color: var(--red-dark);
}

/* --- Nav ----------------------------------------------------------------- */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(26, 26, 26, .96);
    backdrop-filter: saturate(140%) blur(8px);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--nav-h);
}

.nav__brand img {
    width: 146px;
    height: auto;
}

.nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__list a {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    padding-block: .5rem;
}

.nav__list a:hover,
.nav__list a[aria-current='true'] {
    color: var(--red);
}

@media (max-width: 800px) {
    .nav__list {
        display: none;
        position: absolute;
        inset: var(--nav-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 1.5rem 1.25rem;
        background: rgba(26, 26, 26, .98);
    }

    .nav[data-open='true'] .nav__list {
        display: flex;
    }

    .nav__list a {
        display: block;
        padding-block: .75rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
}

@media (min-width: 801px) {
    .nav__toggle {
        display: none;
    }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 3rem) 0 5rem;
    overflow: hidden;
    isolation: isolate;
}

.hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrim: the original ran white text straight onto a bright photo. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .42) 45%, rgba(0, 0, 0, .62) 100%);
}

.hero__inner {
    text-align: center;
    color: #fff;
}

/* max-width in ch resolves against this element's own fluid font-size, so the
   line count stays roughly constant from phone to desktop. */
.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    /* 13em sits between the width of the first sentence (12.1em) and that
       sentence plus the next word (14.8em), so the line breaks at the period.
       em (not ch) so it tracks the fluid font-size. Re-measure if this copy changes. */
    max-width: 13em;
    margin: 0 auto;
}

.hero__sub {
    font-size: var(--text-xl);
    font-weight: 300;
    color: rgba(255, 255, 255, .92);
    /* Just over half the full string's width (41.3em), so balance settles on two
       even lines instead of three. em tracks the fluid font-size. */
    max-width: 22em;
    margin: 0 auto 1.65rem;
    text-wrap: balance;
}

.hero .rule {
    margin-block: 1.1rem;
}

.hero__scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    color: #fff;
}

.hero__scroll:hover {
    color: var(--ink);
    background: #fff;
}

/* --- Services ------------------------------------------------------------ */

.offer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.offer__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
}

.offer--lead {
    max-width: 52rem;
    margin-inline: auto;
    margin-bottom: 2.25rem;
}

/* All three offers share one title size — the Roadmap leads by position and its
   "Start here:" prefix, not by being bigger. */
.offer__title {
    font-size: var(--text-2xl);
    margin-bottom: .5rem;
}

.offer__list {
    margin: 0;
    padding-left: 1.1em;
}

.offer__list li {
    margin-bottom: .4em;
}

/* Stacked, not columned: the blocks carry very different amounts of copy, and a
   side-by-side split leaves a ragged void under the shorter one. */
.offer-grid {
    display: grid;
    gap: 2.25rem;
    max-width: 52rem;
    margin-inline: auto;
}

.services__outro {
    margin-top: 2.25rem;
    text-align: center;
}

/* --- Team ---------------------------------------------------------------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem 1.5rem;
    max-width: 60rem;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: .9rem;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.team-card__role {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    margin: 0;
}

/* --- Testimonials -------------------------------------------------------- */

.slider {
    position: relative;
}

.slider__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slider__track::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding-inline: .5rem;
    text-align: center;
}

.slide__lead {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.slide__quote {
    max-width: 46rem;
    margin: 0 auto 2rem;
}

.slide__attr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.slide__attr img {
    max-height: 60px;
    width: auto;
}

.slide__who {
    text-align: left;
    font-size: var(--text-sm);
    line-height: 1.4;
}

.slide__name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
}

.slider__btn {
    position: absolute;
    top: 40%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(239, 64, 53, .85);
    cursor: pointer;
    transition: background-color .2s;
}

.slider__btn:hover {
    background: var(--red);
}

.slider__btn[disabled] {
    opacity: .3;
    cursor: default;
}

.slider__btn--prev {
    left: 0;
}

.slider__btn--next {
    right: 0;
}

/* Below the side-arrow breakpoint the controls move under the track, laid out as
   a real grid row (prev · dots · next) rather than offset by hand. */
@media (max-width: 900px) {
    .slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.5rem 1.25rem;
    }

    /* Track takes its own full-width row; the controls wrap beneath it as one
       centred group. order/ reorders around the source order (prev, track, next, dots). */
    .slider__track {
        order: 1;
        flex: 0 0 100%;
    }

    .slider__btn {
        position: static;
    }

    .slider__btn--prev {
        order: 2;
    }

    .slider__dots {
        order: 3;
        margin-top: 0;
    }

    .slider__btn--next {
        order: 4;
    }
}

.slider__dots {
    display: flex;
    justify-content: center;
    gap: .15rem;
    margin-top: 1.5rem;
}

/* 24px hit area (WCAG 2.5.8) with an 11px visual dot drawn inside it. */
.slider__dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.slider__dot::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #bdbdbd;
    transition: background-color .2s;
}

.slider__dot[aria-current='true']::before {
    background: var(--ink);
}

/* --- Contact ------------------------------------------------------------- */

.booking {
    text-align: center;
    margin-top: 1.75rem;
}

.booking__alt {
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: var(--ink-faint);
}

/* --- Footer -------------------------------------------------------------- */

.footer {
    position: relative;
    isolation: isolate;
    padding-block: 3.5rem 2rem;
    color: rgba(255, 255, 255, .78);
    text-align: center;
    overflow: hidden;
}

.footer__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .68);
}

.footer a {
    color: #fff;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer__col h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: .5rem;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    transition: background-color .2s;
}

.footer__social a:hover {
    background: rgba(255, 255, 255, .16);
}

/* --- Long-form prose ----------------------------------------------------- */

.prose h3 {
    margin-top: 2.5rem;
}

.prose h4 {
    margin-top: 1.75rem;
    margin-bottom: .35rem;
}

/* --- Utilities ----------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer__icon .icon {
    width: 30px;
    height: 30px;
}

.hero__scroll .icon,
.slider__btn .icon,
.nav__toggle .icon {
    width: 24px;
    height: 24px;
}

.footer__social .icon {
    width: 22px;
    height: 22px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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