/* =========================================================
   TRACEY'S BOOKKEEPING — "Bold Navy"
   Colours taken from the logo
========================================================= */

:root {
    --navy: #14294c;
    --navy-deep: #0b1830;
    --navy-line: #2f4a74;
    --steel: #4c82aa;          /* decorative: rules, swoosh */
    --steel-text: #3b6f96;     /* small text on white (AA) */
    --steel-bright: #5b93bb;   /* button on navy */
    --ice: #a9c6dd;            /* accent text on navy */
    --mist: #d4e1ec;           /* body text on navy */
    --tint: #e8f0f6;
    --tint-line: #c8d8e6;
    --paper: #f6f9fb;
    --body: #3d4f69;
    --white: #ffffff;

    --font-heading: "Montserrat", system-ui, sans-serif;
    --font-body: "Lato", system-ui, sans-serif;
    --font-script: "Allura", cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:hover { color: var(--steel-text); }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.muted { color: var(--body); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--steel-text);
}
.eyebrow-light { color: var(--ice); }

.section { padding: 120px 0; }
.section-tint { background: var(--paper); }

.section-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover { transform: translateY(-1px); }

.button-accent { background: var(--steel-bright); color: var(--navy-deep); }
.button-accent:hover { background: #7aa9cb; color: var(--navy-deep); }

.button-outline-light { color: var(--white); border-color: #8fb0c9; }
.button-outline-light:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--white); }

.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: var(--navy-deep); color: var(--white); }

/* ---------- Hero + nav ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.hero-swoosh {
    position: absolute;
    right: -180px;
    top: 140px;
    width: 900px;
    height: 420px;
    border-radius: 50%;
    border: 3px solid var(--steel);
    transform: rotate(-12deg);
    opacity: .55;
    pointer-events: none;
}

.navbar { position: relative; z-index: 2; }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 26px;
    padding-bottom: 26px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-script { font-family: var(--font-script); font-size: 42px; line-height: 1; }
.brand-caps {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
}
.nav-links a { color: var(--white); text-decoration: none; }
.nav-links a:hover { color: var(--ice); }
.nav-links .nav-contact {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
}
.nav-links .nav-contact:hover { background: var(--tint); color: var(--navy); }

.mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--navy-line);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 120px;
}

.hero-content {
    flex: 999 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

.hero-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(40px, 5.6vw, 70px);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.hero-description {
    margin: 0;
    max-width: 540px;
    font-size: 19px;
    color: var(--mist);
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.hero-logo {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.logo-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(5, 15, 35, .35);
}
.logo-card img { width: 100%; height: auto; mix-blend-mode: multiply; }

/* ---------- Values strip ---------- */

.values { background: var(--tint); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 34px 28px;
    border-right: 1px solid var(--tint-line);
}
.value:last-child { border-right: 0; }
.value strong {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--steel-text);
}

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

.services-layout { display: flex; flex-wrap: wrap; gap: 56px; }

.services-intro {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.services-intro p { margin: 0; }

.services-list { flex: 999 1 560px; min-width: 0; }

.service {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    padding: 36px 0;
    border-top: 1px solid var(--tint-line);
}
.service:first-child { border-top: 2px solid var(--navy); }
.service:last-child { border-bottom: 1px solid var(--tint-line); }

.service-number {
    flex: 0 0 64px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--steel-text);
}

.service-body {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-body h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
}
.service-body p { margin: 0; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}
.tags li { background: var(--tint); padding: 6px 14px; border-radius: 999px; }

/* ---------- About ---------- */

.about-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: stretch; }

.experience-card {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 40px;
    background: var(--navy);
    color: var(--white);
    border-radius: 20px;
}
.experience-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(88px, 10vw, 120px);
    font-weight: 700;
    line-height: 1;
    color: var(--ice);
}
.experience-text {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
}
.credentials {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 24px 0 0;
    list-style: none;
    font-size: 15px;
    color: var(--mist);
    border-top: 1px solid var(--navy-line);
}

.about-content {
    flex: 999 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
.about-content p { margin: 0; }
.signature {
    font-family: var(--font-script);
    font-size: 48px;
    line-height: 1;
    color: var(--navy);
}

/* ---------- Memberships ---------- */

.memberships { padding: 80px 0; }

.memberships-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.memberships-title { flex: 1 1 220px; margin: 0; }

.membership-logos {
    flex: 999 1 640px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.membership-logos img { height: 72px; width: auto; }
.membership-logos a { display: block; transition: opacity .2s; }
.membership-logos a:hover { opacity: .8; }

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

.contact { background: var(--navy); color: var(--white); }

.contact-layout { display: flex; flex-wrap: wrap; gap: 64px; }

.contact-info {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}
.contact-info p { margin: 0; color: var(--mist); }

.contact-link {
    display: flex;
    flex-direction: column;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-link:first-of-type { margin-top: 12px; }
.contact-link small {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ice);
}
.contact-link:hover { color: var(--ice); }

.contact-form {
    flex: 999 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 40px;
    background: var(--white);
    color: var(--navy);
    border-radius: 20px;
}
.contact-form h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}
.contact-form .button { align-self: flex-start; }

.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row .form-group { flex: 1 1 200px; }

.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group label { font-size: 14px; font-weight: 700; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font: inherit;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid #c5d3e0;
    border-radius: 10px;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--steel-text);
    box-shadow: 0 0 0 3px rgba(76, 130, 170, .25);
    background: var(--white);
}

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

.footer {
    padding: 32px 0;
    background: var(--navy-deep);
    color: var(--ice);
    font-size: 14px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .container { padding: 0 22px; }
    .section { padding: 84px 0; }

    .mobile-toggle { display: inline-flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% - 8px);
        left: 22px;
        right: 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        background: var(--navy-deep);
        border: 1px solid var(--navy-line);
        border-radius: 14px;
        box-shadow: 0 20px 40px rgba(0,0,0,.3);
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 12px 14px; }
    .nav-links .nav-contact { text-align: center; margin-top: 6px; }

    .brand-script { font-size: 34px; }
    .brand-caps { font-size: 12px; letter-spacing: .24em; }

    .hero-grid { padding-top: 32px; padding-bottom: 84px; gap: 40px; }
    .hero-swoosh { width: 600px; height: 280px; right: -260px; top: 360px; }

    .value { border-right: 0; border-bottom: 1px solid var(--tint-line); padding: 24px 0; }
    .value:last-child { border-bottom: 0; }

    .experience-card { padding: 36px 28px; }
    .contact-form { padding: 28px 22px; }

    .membership-logos { justify-content: center; }
    .membership-logos img { height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .membership-logos a { transition: none; }
    .button:hover { transform: none; }
}
