/* layout.css - section system, banners, header, navigation, mega menu, footer */

/* ---------- Sections ---------- */
.website-main-sec {
    padding: var(--space-6) 0;
    position: relative;
}

.sec-white {
    background: var(--paper-white);
}

.sec-ivory {
    background: var(--warm-ivory) url("../images/backgrounds/ivory-paper-grain.svg");
}

.sec-navy {
    background: var(--midnight-navy);
    color: #fff;
}

.sec-deep {
    background: var(--deep-navy);
    color: #fff;
}


/* ==========================================
   OLD SPIRE — BRAND MANIFESTO
========================================== */

.why-sec {
    --why-charcoal: #171e2b;
    --why-white: #f5f0e6;
    position: relative;
    padding: 105px 0 35px;
    background: linear-gradient(175deg, #000000 0%, #d18622d1 100%),
        var(--why-charcoal) url("../images/backgrounds/cta-bg-img-new.webp") center / cover no-repeat;
    color: var(--why-white);
    overflow: hidden;
}



/* Topline */

.why-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245, 240, 230, .18);
}

.why-label,
.why-edition {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.why-label {
    color: var(--why-gold);
}

.why-edition {
    color: var(--why-muted);
}

/* Main layout */

.why-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(55px, 9vw, 125px);
    padding: 85px 0 75px;
}

/* Manifesto */

.why-manifesto {
    position: relative;
    align-self: center;
}

.why-overline {
    display: block;
    margin-bottom: 25px;
    color: var(--why-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}

.why-manifesto h2 {
    max-width: 470px;
    margin: 0;
    color: var(--why-white);
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.why-manifesto h2 span {
    color: var(--why-gold);

}

.why-gold-rule {
    width: 55px;
    height: 1px;
    margin: 30px 0 24px;
    background: var(--why-gold);
}

.why-description {
    max-width: 370px;
    margin: 0;
    color: var(--why-muted);
    font-size: 14px;
    line-height: 1.95;
}

.why-signature {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 55px;
}

.why-signature-mark {
    color: var(--why-gold);
    font-family: Georgia, serif;
    font-size: 37px;

}

.why-signature>span:last-child {
    padding-left: 17px;
    border-left: 1px solid rgba(245, 240, 230, .25);
    color: var(--why-muted);
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: .04em;
}

/* Principles */

.why-principles {
    border-top: 1px solid rgba(245, 240, 230, .2);
}

.why-principle {
    position: relative;
    display: grid;
    grid-template-columns: 55px 1fr 24px;
    gap: 20px;
    align-items: start;
    padding: 33px 0;
    border-bottom: 1px solid rgba(245, 240, 230, .2);
    transition: padding .35s ease;
}

.why-principle:hover {
    padding-left: 9px;
}

/* Number */

.why-principle-index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.why-principle-index>span:first-child {
    color: var(--why-gold);
    font-family: Georgia, serif;
    font-size: 25px;

}

.why-index-line {
    width: 22px;
    height: 1px;
    background: rgba(189, 154, 91, .5);
}

/* Content */

.why-principle-category {
    display: block;
    margin-bottom: 10px;
    color: var(--why-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .17em;
}

.why-principle-content h3 {
    margin: 0 0 11px;
    color: var(--why-white);
    font-family: Georgia, serif;
    font-size: clamp(21px, 2.3vw, 27px);
    font-weight: 400;
    line-height: 1.25;
}

.why-principle-content p {
    max-width: 430px;
    margin: 0;
    color: var(--why-muted);
    font-size: 13px;
    line-height: 1.85;
}

/* Arrow */

.why-principle-arrow {
    padding-top: 5px;
    color: var(--why-gold);
    font-size: 19px;
    opacity: .5;
    transition: opacity .3s ease, transform .3s ease;
}

.why-principle:hover .why-principle-arrow {
    opacity: 1;
    transform: translate(4px, -4px);
}

/* Bottom statement */

.why-bottom {
    display: grid;
    grid-template-columns: 140px 1fr 30px;
    align-items: center;
    gap: 20px;
    padding: 23px 0;
    border-top: 1px solid rgba(245, 240, 230, .2);
}

.why-bottom>span:first-child {
    color: var(--why-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.why-bottom p {
    margin: 0;
    color: var(--why-white);
    font-family: Georgia, serif;
    font-size: 18px;

}

.why-bottom-symbol {
    color: var(--why-gold);
    font-size: 20px;
    text-align: right;
}

/* Accessibility */

.why-sec *:focus-visible {
    outline: 2px solid var(--why-gold);
    outline-offset: 5px;
}

/* Tablet */

@media (max-width: 991px) {
    .why-sec {
        padding-top: 80px;
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 55px;
        padding: 60px 0;
    }

    .why-manifesto h2 {
        max-width: 600px;
    }

    .why-description {
        max-width: 550px;
    }

    .why-signature {
        margin-top: 30px;
    }
}

/* Mobile */

@media (max-width: 575px) {
    .why-sec {
        padding: 65px 0 20px;
    }

    .why-label,
    .why-edition {
        font-size: 8px;
    }

    .why-layout {
        gap: 42px;
        padding: 45px 0;
    }

    .why-manifesto h2 {
        font-size: clamp(40px, 11vw, 52px);
    }

    .why-description {
        font-size: 13px;
    }

    .why-principle {
        grid-template-columns: 38px 1fr 16px;
        gap: 13px;
        padding: 27px 0;
    }

    .why-principle-index>span:first-child {
        font-size: 21px;
    }

    .why-principle-content h3 {
        font-size: 22px;
    }

    .why-principle-content p {
        font-size: 12px;
    }

    .why-bottom {
        grid-template-columns: 1fr 25px;
        gap: 12px;
    }

    .why-bottom>span:first-child {
        grid-column: 1 / -1;
    }

    .why-bottom p {
        font-size: 16px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .why-sec *,
    .why-sec *::before,
    .why-sec *::after {
        transition-duration: .01ms !important;
    }
}


.sticky-heading {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.cta-sec {
    padding: 110px 0;
    background: var(--antique-gold);
    color: var(--black-color);
    overflow: hidden;
}

.cta-kicker {
    margin-bottom: 24px;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cta-sec .heading-two {
    margin-bottom: 32px;
    color: var(--black-color);
    font-size: clamp(40px, 6.5vw, 92px);
    line-height: 1;
}

.cta-sec .heading-two em {
    position: relative;
    display: inline-block;
    color: var(--warm-ivory);
}

.cta-sec .heading-two svg {
    position: absolute;
    left: 0;
    bottom: -0.12em;
    width: 100%;
    height: 0.22em;
    overflow: visible;
}

.cta-sec .heading-two path {
    fill: none;
    stroke: var(--black-color);
    stroke-width: 4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
}

.cta-lead {
    max-width: 440px;
    margin-bottom: 48px;
    font-size: 19px;
}

.cta-points {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pt;
}

.cta-points li {
    flex: 1;
    padding-top: 14px;
    border-top: 2px solid var(--black-color);
    font-size: 15px;
    font-weight: 600;
    counter-increment: pt;
}

.cta-points li::before {
    content: "0" counter(pt);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
}

.cta-stage {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.cta-cover {
    display: block;
    width: 100%;
    height: auto;

}

.cta-seal {
    position: absolute;
    left: -70px;
    bottom: -10px;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--black-color);
    color: var(--warm-ivory);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: cta_spin 18s linear infinite;
}

.cta-ring text {
    fill: currentColor;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta-arrow {
    font-size: 40px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.cta-seal:hover,
.cta-seal:focus-visible {
    background: var(--warm-ivory);
    color: var(--black-color);
    transform: scale(1.08);
}

.cta-seal:hover .cta-arrow,
.cta-seal:focus-visible .cta-arrow {
    transform: translateX(6px);
}

.cta-seal:focus-visible {
    outline: 3px solid var(--black-color);
    outline-offset: 4px;
}

@keyframes cta_spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .cta-sec {
        padding: 80px 0;
    }

    .cta-stage {
        margin-top: 70px;
    }
}

@media (max-width: 575px) {
    .cta-points {
        flex-direction: column;
        gap: 16px;
    }

    .cta-seal {
        left: -12px;
        width: 120px;
        height: 120px;
    }

    .cta-cover {
        box-shadow: 12px 12px 0 var(--black-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-ring {
        animation: none;
    }

    .cta-seal,
    .cta-arrow {
        transition: none;
    }
}



/* ==========================================
   OLD SPIRE — AUTHOR GROWTH STUDIO
========================================== */

.growth-sec {
    --growth-paper: #f5f0e6;
    --growth-ink: #18243c;
    --growth-gold: var(--antique-gold, #bd9a5b);
    --growth-muted: #777367;

    position: relative;
    padding: 115px 0 85px;
    background: var(--growth-paper);
    color: var(--growth-ink);
    overflow: hidden;
}

/* HEADER */

.growth-header {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: end;
    gap: 75px;
    margin-bottom: 75px;
}

.growth-eyebrow {
    display: block;
    margin-bottom: 28px;
    color: var(--growth-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.growth-heading h2 {
    max-width: 750px;
    margin: 0;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.055em;
    color: var(--growth-ink);
}

.growth-heading h2 span {
    display: block;
    color: var(--growth-gold);
    font-family: Georgia, serif;

    font-weight: 400;
}

.growth-intro {
    position: relative;
    padding: 0 0 8px 30px;
    border-left: 1px solid rgba(24, 36, 60, .2);
}

.growth-intro-mark {
    display: block;
    margin-bottom: 17px;
    color: var(--growth-gold);
    font-family: Georgia, serif;
    font-size: 30px;
}

.growth-intro p {
    max-width: 340px;
    margin: 0 0 24px;
    color: var(--growth-muted);
    font-size: 14px;
    line-height: 1.9;
}

.growth-main-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: var(--growth-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
}

.growth-main-link span {
    color: var(--growth-gold);
    font-size: 20px;
    transition: transform .3s ease;
}

.growth-main-link:hover span {
    transform: translate(4px, -4px);
}

/* GRID */

.growth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* SERVICE CARD */

.growth-card {
    position: relative;
    display: flex;
    min-height: 325px;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 34px;
    background: #ebe4d7;
    border: 1px solid rgba(24, 36, 60, .08);
    color: var(--growth-ink);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition:
        background .4s ease,
        color .4s ease,
        transform .4s ease,
        border-color .4s ease;
}

.growth-card:hover {
    background: #e4d8c5;
    border-color: rgba(189, 154, 91, .55);
    transform: translateY(-5px);
}

/* Card metadata */

.growth-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.growth-card-top>span:first-child {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--growth-muted);
}

.growth-card-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(24, 36, 60, .2);
    border-radius: 50%;
    color: var(--growth-gold);
    font-size: 17px;
    transition: transform .35s ease;
}

.growth-card:hover .growth-card-icon {
    transform: rotate(45deg);
}

/* Card content */

.growth-card-content {
    position: relative;
    z-index: 2;
    max-width: 410px;
}

.growth-card-small {
    display: block;
    margin-bottom: 13px;
    color: var(--growth-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.growth-card-content h3 {
    margin: 0 0 13px;
    font-family: Georgia, serif;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.growth-card-content p {
    max-width: 350px;
    margin: 0;
    color: var(--growth-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Oversized background numbers */

.growth-card-number {
    position: absolute;
    right: 22px;
    bottom: -48px;
    z-index: 1;
    color: rgba(24, 36, 60, .045);
    font-family: Georgia, serif;
    font-size: 180px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
    transition: color .4s ease, transform .4s ease;
}

.growth-card:hover .growth-card-number {
    color: rgba(189, 154, 91, .13);
    transform: translateY(-5px);
}

/* Featured card */

.growth-card-featured {
    background: #e9dfcf;
}

.growth-card-featured:hover {
    background: #e1d3bf;
}

/* Dark accent card */

.growth-card-dark {
    background: var(--growth-ink);
    color: #f5f0e6;
    border-color: var(--growth-ink);
}

.growth-card-dark:hover {
    background: #22324e;
    border-color: var(--growth-gold);
}

.growth-card-dark .growth-card-top>span:first-child,
.growth-card-dark .growth-card-content p {
    color: rgba(245, 240, 230, .65);
}

.growth-card-dark .growth-card-icon {
    border-color: rgba(245, 240, 230, .25);
}

.growth-card-dark .growth-card-number {
    color: rgba(255, 255, 255, .045);
}

.growth-card-dark:hover .growth-card-number {
    color: rgba(189, 154, 91, .12);
}

/* FOOTER STATEMENT */

.growth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    margin-top: 65px;
    padding-top: 30px;
    border-top: 1px solid rgba(24, 36, 60, .2);
}

.growth-footer-label {
    display: block;
    margin-bottom: 12px;
    color: var(--growth-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .17em;
}

.growth-footer h3 {
    max-width: 560px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(21px, 2.6vw, 30px);
    font-weight: 400;
    line-height: 1.35;
}

.growth-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding: 16px 21px;
    background: var(--growth-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .3s ease;
}

.growth-footer-link:hover {
    background: var(--growth-ink);
}

.growth-footer-link span {
    font-size: 17px;
}

/* ACCESSIBILITY */

.growth-sec a:focus-visible {
    outline: 2px solid var(--growth-gold);
    outline-offset: 5px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .growth-sec {
        padding: 85px 0 65px;
    }

    .growth-header {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .growth-intro {
        max-width: 550px;
    }

    .growth-card {
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .growth-sec {
        padding: 70px 0 50px;
    }

    .growth-heading h2 {
        font-size: clamp(40px, 11vw, 53px);
    }

    .growth-header {
        gap: 30px;
        margin-bottom: 35px;
    }

    .growth-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .growth-card {
        min-height: 285px;
        padding: 25px;
    }

    .growth-card-content h3 {
        font-size: 30px;
    }

    .growth-card-number {
        font-size: 145px;
    }

    .growth-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        margin-top: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .growth-sec *,
    .growth-sec *::before,
    .growth-sec *::after {
        transition-duration: .01ms !important;
    }
}





/* ---------- Banners ---------- */
.banner-main-sec {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--text-on-dark);

    background:
        var(--navy-900) url("../images/backgrounds/spire-lines-wide.png") center / cover no-repeat;

    padding-top: var(--space-5);
    border-bottom: 1px solid var(--line-dark);
   
}


.banner-main-sec.banner-home.form-sec{
     padding: 50px 0;
    
}


.banner-main-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(90deg,
            rgba(5, 8, 13, .96) 0%,
            rgb(5 8 13 / 69%) 38%,
            rgb(5 8 13 / 70%) 72%,
            rgb(5 8 13) 100%);
}

.banner-tone-deep {
    background-color: var(--deep-navy);
}

.banner-tone-char {
    background: var(--charcoal) url("../images/backgrounds/manuscript-rules-wide.svg") center / cover no-repeat;
}

.banner-main-sec .row {
    min-height: clamp(460px, 56vh, 680px);
}

.banner-main-content {
    padding-bottom: var(--space-5);
    position: relative;
    z-index: 2;
}

.banner-main-content .lead-text {
    color: var(--text-on-dark);
    margin-bottom: var(--space-3);
}

.banner-main-art {
    align-self: flex-end;
    line-height: 0;
}

.banner-main-art img {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}

.banner-layout-reverse .banner-main-art img {
    margin-left: 0;
    margin-right: auto;
}

.banner-breadcrumb {
    font-size: .92rem;
    color: var(--text-on-dark);
    margin-bottom: var(--space-3);
}

.banner-breadcrumb a {
    text-decoration: none;
    border-bottom: 1px solid var(--line-dark);
}

.banner-breadcrumb a:hover {
    color: var(--soft-gold);
}

.banner-home .row {
    min-height: clamp(560px, 78vh, 820px);
}

.banner-home .banner-main-art img {
    max-width: 720px;
}

.banner-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    font-size: .95rem;
    color: var(--text-on-dark);
}

.banner-trust-list li {
    position: relative;
    padding-left: 1.1rem;
}

.banner-trust-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 6px;
    height: 6px;
    background: var(--antique-gold);
    transform: rotate(45deg);
}


.sec2_inner {
    overflow: hidden;
    background: var(--antique-gold);

}

.sec2_track {
    display: flex;
    width: max-content;
    animation: sec2_scroll 45s linear infinite;
    animation-direction: reverse;
    /* same right-to-left-of-origin direction as your rtl slider */
}

.sec2_group {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec2_group li {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 26px 40px 26px 0;
    color: var(--black-color);
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sec2_group li::after {
    content: "*";
    color: var(--primary-color);
    font-size: 44px;
    line-height: 1;
    transform: translateY(8px);
}

@keyframes sec2_scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .sec2_group li {
        font-size: 15px;
        gap: 24px;
        padding-right: 24px;
    }

    .sec2_track {
        animation-duration: 30s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sec2_track {
        animation: none;
    }
}


.new-books-sec {
    padding: 90px 0;
    background: var(--warm-ivory);
}

.new-books-sec .heading-two {
    text-align: center;
    margin-bottom: 60px;
}

.genre-shelf {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0 0 40px;
    list-style: none;
}

.genre-item:nth-child(even) {
    margin-top: 40px;
}

.genre-item a {
    display: block;
    color: var(--black-color);
    text-decoration: none;
}

.genre-item img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.genre-no {
    display: block;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--antique-gold);
    color: var(--antique-gold);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.genre-name {
    display: block;
    font-size: 18px;
    transition: color 0.3s ease;
}

.genre-item a:hover img,
.genre-item a:focus-visible img {
    transform: translateY(-10px);
    box-shadow: 0 24px 36px -16px rgba(0, 0, 0, 0.45);
}

.genre-item a:hover .genre-name,
.genre-item a:focus-visible .genre-name {
    color: var(--primary-color);
}

.genre-item a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 6px;
}

@media (max-width: 991px) {
    .genre-shelf {
        grid-template-columns: repeat(3, 1fr);
    }

    .genre-item:nth-child(even) {
        margin-top: 0;
    }

    .genre-item:nth-child(3n + 2) {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .new-books-sec {
        padding: 60px 0;
    }

    .genre-shelf {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .genre-item:nth-child(3n + 2) {
        margin-top: 0;
    }

    .genre-item:nth-child(even) {
        margin-top: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .genre-item img,
    .genre-name {
        transition: none;
    }
}



/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--midnight-navy);
    border-bottom: 1px solid var(--line-dark);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: var(--space-3);
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo img {
    width: 190px;
    height: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-list>li>a,
.mega-toggle {
    display: block;
    padding: .55rem .85rem;
    color: #fff;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: .97rem;
    font-weight: 500;
    position: relative;
}

.nav-list>li>a::after,
.mega-toggle::after {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .25rem;
    height: 1px;
    background: var(--soft-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav-list>li>a:hover::after,
.nav-list>li>a[aria-current="page"]::after,
.has-mega:hover .mega-toggle::after,
.has-mega.is-open .mega-toggle::after {
    transform: scaleX(1);
}

.mega-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.mega-toggle svg {
    transition: transform .25s var(--ease);
}

.has-mega.is-open .mega-toggle svg {
    transform: rotate(180deg);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-dark);
    width: 46px;
    height: 46px;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.nav-toggle i {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #fff;
    transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle i:nth-of-type(1) {
    top: 15px;
}

.nav-toggle i:nth-of-type(2) {
    top: 22px;
}

.nav-toggle i:nth-of-type(3) {
    top: 29px;
}

.nav-toggle[aria-expanded="true"] i:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i:nth-of-type(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] i:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mega menu */
.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--deep-navy);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: var(--space-4) 0 var(--space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.has-mega.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.mega-col h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--soft-gold);
    margin: 0 0 .6rem;
}

.mega-col ul+h3 {
    margin-top: 1.4rem;
}

.mega-col a {
    display: block;
    padding: .22rem 0;
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: .95rem;
}

.mega-col a:hover {
    color: #fff;
    padding-left: .35rem;
    transition: padding .2s;
}

.mega-foot {
    margin: var(--space-3) 0 0;
    padding-top: var(--space-2);
    border-top: 1px solid var(--line-dark);
}

.mega-foot a {
    color: var(--soft-gold);
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Consultation band + footer ---------- */
.consult-sec {
    background: var(--deep-navy) url("../images/backgrounds/spire-lines-wide.svg") center / cover;
    color: #fff;
}

.consult-card {
    background: var(--warm-ivory);
    color: var(--charcoal);
    padding: var(--space-4);
    border-top: 3px solid var(--antique-gold);
}

.consult-card address {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line-light);
    color: var(--text-muted);
    font-size: .95rem;
}

.site-footer {
    background: #0A111D;
    color: var(--text-on-dark);
    padding: var(--space-5) 0 0;
    font-size: .97rem;
}

.footer-brand img {
    width: 200px;
    margin-bottom: var(--space-2);
}

.footer-brand p {
    max-width: 24em;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--soft-gold);
    margin: 0 0 var(--space-2);
}

.footer-col li {
    margin-bottom: .35rem;
}

.footer-col a {
    text-decoration: none;
}

.footer-col a:hover {
        color: var(--soft-gold);
}

.footer-base {
    margin-top: var(--space-5);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    font-size: .9rem;
}

.footer-base p {
    margin: 0;
}

.chat-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--antique-gold);
    color: var(--midnight-navy);
    padding: .8rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
    transition: transform .25s var(--ease);
}

.chat-fab:hover {
    transform: translateY(-3px);
}

.chat-fab svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

/* Container padding matches the widest row gutter (g-5) so rows never poke past the viewport edge */
.container {
    --gutter-x: 3rem;
}