/* ============================================================
   ADAPTIVE INSIGHTS SOLUTIONS
   CARD-BASED RESPONSIVE WEBSITE
   ============================================================ */


/* ============================================================
   1. BRAND VARIABLES
   ============================================================ */

:root {
    --ais-navy: #34445b;
    --ais-navy-dark: #26364a;
    --ais-blue: #0f4761;

    --ais-teal: #58aaa3;
    --ais-teal-dark: #388e87;
    --ais-mint: #8fc8bd;

    --ais-background: #f5faf9;
    --ais-surface: #ffffff;
    --ais-surface-soft: #eef7f5;

    --ais-text: #273445;
    --ais-muted: #637184;
    --ais-border: #dce8e5;

    --shadow-soft:
        0 10px 28px rgba(38, 54, 74, 0.08);

    --shadow-card:
        0 6px 20px rgba(38, 54, 74, 0.07);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;

    --content-width: 1180px;
}


/* ============================================================
   2. RESET AND BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: var(--ais-background);
    color: var(--ais-text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--ais-teal-dark);
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--ais-mint);
    outline-offset: 3px;
}


/* ============================================================
   3. COMMON LAYOUT
   ============================================================ */

.section-shell {
    width:
        min(
            calc(100% - 48px),
            var(--content-width)
        );

    margin-left: auto;
    margin-right: auto;
}

.content-section {
    padding-top: 70px;
    padding-bottom: 20px;
}

.section-heading,
.section-introduction {
    max-width: 100%;
    margin-bottom: 27px;
}

.section-heading h2,
.section-introduction h2 {
    color: var(--ais-navy);

    font-size:
        clamp(
            22px,
            3.2vw,
            34px
        );

    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-heading > p:not(.eyebrow),
.section-introduction > p:not(.eyebrow) {
    color: var(--ais-muted);
    font-size: 16px;
    max-width: none;
}

.eyebrow {
    color: var(--ais-teal-dark);

    font-size: 12px;
    font-weight: 750;

    letter-spacing: 0.16em;
    margin-bottom: 9px;
}

.eyebrow-light {
    color: var(--ais-mint);
}

.content-card {
    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    padding: 32px;
}

.content-card p {
    margin-bottom: 16px;
}

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


/* ============================================================
   4. HEADER
   ============================================================ */

.site-header {
    background:
        rgba(
            255,
            255,
            255,
            0.97
        );

    border-bottom:
        1px solid
        var(--ais-border);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(10px);
}

.nav-container {
    width:
        min(
            calc(100% - 48px),
            var(--content-width)
        );

    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 19px;
    margin-left: auto;
}

.desktop-nav a {
    color: var(--ais-navy);

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--ais-teal-dark);
}

.nav-cta {
    background: var(--ais-teal-dark);
    color: #ffffff;

    border-radius: var(--radius-small);

    padding: 11px 17px;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--ais-navy);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;

    margin-left: auto;

    background: transparent;
    border: none;

    color: var(--ais-navy);
    font-size: 24px;

    cursor: pointer;

    width: 44px;
    height: 44px;
}

.mobile-nav {
    display: none;
}


/* ============================================================
   5. HERO
   ============================================================ */

.hero {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(0, 1.08fr);

    gap: 44px;
    align-items: center;

    padding-top: 29px;
    padding-bottom: 30px;
}

.hero-copy {
    padding: 5px 0;
}

/*
   Reduced by approximately 20% from the former:
   clamp(40px, 5.2vw, 65px)
*/

.hero-copy h1 {
    color: var(--ais-navy);

    font-size:
        clamp(
            32px,
            4.16vw,
            52px
        );

    line-height: 1.02;
    letter-spacing: -0.04em;

    margin-bottom: 22px;
}

.hero-description {
    color: var(--ais-text);

    max-width: 560px;

    font-size: 17px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 25px;
    margin-top: 26px;
}

.hero-image-panel {
    height: 336px;

    position: relative;
    overflow: hidden;

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);

    background: var(--ais-navy);
}

.hero-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 80%;
}


/* ============================================================
   6. BUTTONS AND LINKS
   ============================================================ */

.button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-small);

    padding: 11px 19px;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button-primary {
    background: var(--ais-teal-dark);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--ais-navy);
    transform: translateY(-1px);
}

.text-link,
.card-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--ais-teal-dark);
    font-weight: 700;
}

.text-link:hover,
.card-link:hover {
    color: var(--ais-navy);
}


/* ============================================================
   7. PRIMARY SERVICES
   ============================================================ */

.services {
    padding-top: 22px;
    padding-bottom: 30px;
}

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;

    align-items: stretch;
}

/*
   The former service cards used min-height: 270px.
   These cards use a fixed shared desktop height of 220px.
*/

.service-card {
    height: 220px;

    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    padding: 23px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--ais-mint);
    box-shadow: var(--shadow-soft);
}

.service-icon {
    color: var(--ais-blue);

    font-size: 30px;
    line-height: 1;

    margin-bottom: 14px;
}

.service-card h3 {
    color: var(--ais-navy);

    font-size: 18px;
    line-height: 1.18;

    margin-bottom: 10px;
}

.service-card p {
    color: var(--ais-muted);

    font-size: 14px;
    line-height: 1.45;

    margin-bottom: 12px;
    max-width: 280px;
}

.service-card .card-link {
    margin-top: auto;
    font-size: 14px;
}


/* ============================================================
   8. MOUNTAIN BANNER
   ============================================================ */

.brand-mountain-banner {
    width: 100%;
    height: 105px;

    background-image:
        url("images/ais-mountain-footer.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;

    border-top:
        1px solid
        var(--ais-border);

    border-bottom:
        1px solid
        var(--ais-border);
}


/* ============================================================
   9. VISION CALLOUT
   ============================================================ */

.vision-callout {
    border-left:
        4px solid
        var(--ais-teal);

    background: var(--ais-surface-soft);

    margin-top: 26px;
    padding: 18px 20px;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vision-callout strong {
    color: var(--ais-navy);
}


/* ============================================================
   10. CLIENT PROFILES
   ============================================================ */

.profile-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}

.profile-card {
    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    padding: 27px;
}

.profile-card h3 {
    color: var(--ais-navy);

    font-size: 18px;
    margin-bottom: 9px;
}

.profile-card p {
    color: var(--ais-muted);
}


/* ============================================================
   11. CONSULTING METHOD
   ============================================================ */

.method-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}

.method-card {
    position: relative;

    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    padding: 28px;
}

.method-number {
    display: block;

    color: var(--ais-mint);

    font-size: 34px;
    font-weight: 800;
    line-height: 1;

    margin-bottom: 15px;
}

.method-card h3 {
    color: var(--ais-navy);

    font-size: 18px;
    margin-bottom: 9px;
}

.method-card p {
    color: var(--ais-muted);
}


/* ============================================================
   12. EXPERIENCE
   ============================================================ */

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-left:
        5px solid
        var(--ais-teal);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    padding: 28px 30px;
}

.timeline-date {
    color: var(--ais-teal-dark);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.timeline-item h3 {
    color: var(--ais-navy);

    font-size: 19px;
    margin-bottom: 2px;
}

.timeline-organization {
    color: var(--ais-muted);

    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-item ul {
    margin-left: 20px;
}

.timeline-item li {
    margin-bottom: 6px;
}


/* ============================================================
   13. EDUCATION AND CREDENTIALS
   ============================================================ */

.credential-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;
}

.credential-card {
    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    padding: 27px;
}

.credential-card > i {
    color: var(--ais-teal-dark);

    font-size: 27px;
    margin-bottom: 15px;
}

.credential-card h3 {
    color: var(--ais-navy);

    font-size: 18px;
    margin-bottom: 7px;
}

.credential-card p {
    color: var(--ais-muted);
}


/* ============================================================
   14. FAQ
   ============================================================ */

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--ais-surface);

    border:
        1px solid
        var(--ais-border);

    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);

    overflow: hidden;
}

.faq-item summary {
    color: var(--ais-navy);

    cursor: pointer;
    list-style: none;

    font-size: 17px;
    font-weight: 700;

    padding: 19px 55px 19px 22px;

    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    color: var(--ais-teal-dark);

    position: absolute;
    right: 22px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 25px;
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    color: var(--ais-muted);

    border-top:
        1px solid
        var(--ais-border);

    padding: 18px 22px 22px;
}


/* ============================================================
   15. CONTACT
   ============================================================ */

.contact-section {
    margin-top: 70px;

    background: var(--ais-navy-dark);
    color: #ffffff;

    padding: 60px 0;
}

.contact-inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(280px, 0.7fr);

    align-items: center;
    gap: 50px;
}

.contact-inner h2 {
    max-width: 700px;

    font-size:
        clamp(
            25px,
            3.2vw,
            37px
        );

    line-height: 1.15;
    letter-spacing: -0.02em;

    margin-bottom: 16px;
}

.contact-inner p:not(.eyebrow) {
    color: #dbe8e6;
    max-width: 650px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 12px;
}

.button-light {
    background: var(--ais-teal);
    color: var(--ais-navy-dark);
}

.button-light:hover {
    background: #ffffff;
}

.button-outline-light {
    color: #ffffff;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.7
        );
}

.button-outline-light:hover {
    background: #ffffff;
    color: var(--ais-navy);
}


/* ============================================================
   16. FOOTER
   ============================================================ */

.site-footer {
    background: #ffffff;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        0.7fr;

    gap: 50px;

    padding-top: 45px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--ais-muted);
}

.footer-contact,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact strong {
    color: var(--ais-navy);
}

.footer-contact a,
.footer-links a {
    color: var(--ais-muted);
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--ais-teal-dark);
}

.copyright {
    border-top:
        1px solid
        var(--ais-border);

    color: var(--ais-muted);

    text-align: center;
    font-size: 13px;

    padding: 18px 20px;
}


/* ============================================================
   17. TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .desktop-nav {
        gap: 13px;
    }

    .desktop-nav a {
        font-size: 12px;
    }

    .hero {
        gap: 30px;
    }

    .hero-image-panel {
        height: 310px;
    }

}


/* ============================================================
   18. MOBILE NAVIGATION AND TABLET LAYOUT
   ============================================================ */

@media (max-width: 900px) {

    .desktop-nav,
    .desktop-cta {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav {
        display: none;

        background: #ffffff;

        border-top:
            1px solid
            var(--ais-border);

        padding: 12px 24px 22px;
    }

    .mobile-nav.open {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav a {
        color: var(--ais-navy);

        font-weight: 600;

        padding: 12px 0;

        border-bottom:
            1px solid
            #edf2f1;
    }

    .mobile-nav .mobile-nav-cta {
        background: var(--ais-teal-dark);
        color: #ffffff;

        text-align: center;

        border: none;
        border-radius: var(--radius-small);

        margin-top: 14px;
        padding: 13px 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .hero-description {
        max-width: 650px;
    }

    .hero-image-panel {
        height: 280px;
    }

    .service-grid,
    .profile-grid,
    .method-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .service-card {
        height: 215px;
    }

}


/* ============================================================
   19. PHONE
   ============================================================ */

@media (max-width: 650px) {

    .section-shell {
        width:
            min(
                calc(100% - 32px),
                var(--content-width)
            );
    }

    .nav-container {
        width: calc(100% - 32px);
        min-height: 68px;
    }

    .brand-logo {
        width: 135px;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 24px;

        padding-top: 16px;
        padding-bottom: 22px;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero-copy h1 {
        font-size:
            clamp(
                30px,
                9.6vw,
                40px
            );

        line-height: 1.04;
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;

        margin-top: 23px;
        width: 100%;
    }

    .button-primary {
        width: 100%;
    }

    .hero-image-panel {
        height: 220px;
        border-radius: 12px;
    }

    .hero-image {
        object-position: center 82%;
    }

    .services {
        padding-top: 8px;
        padding-bottom: 24px;
    }

    .service-grid,
    .profile-grid,
    .method-grid,
    .credential-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: auto;
        min-height: 205px;

        padding: 24px 22px;
    }

    .brand-mountain-banner {
        height: 82px;
        background-position: center center;
    }

    .content-section {
        padding-top: 52px;
    }

    .section-heading,
    .section-introduction {
        margin-bottom: 22px;
    }

    .section-heading h2,
    .section-introduction h2 {
        font-size:
            clamp(
                22px,
                7vw,
                28px
            );
    }

    .content-card {
        padding: 24px;
    }

    .timeline-item {
        padding: 24px;
    }

    .faq-item summary {
        font-size: 16px;
    }

    .contact-section {
        margin-top: 55px;
        padding: 48px 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-inner h2 {
        font-size:
            clamp(
                25px,
                8vw,
                32px
            );
    }

    .contact-actions {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 28px;

        padding-top: 36px;
        padding-bottom: 32px;
    }

}


/* ============================================================
   20. VERY SMALL PHONES
   ============================================================ */

@media (max-width: 360px) {

    .section-shell {
        width: calc(100% - 24px);
    }

    .nav-container {
        width: calc(100% - 24px);
    }

    .brand-logo {
        width: 120px;
    }

    .hero-copy h1 {
        font-size: 29px;
    }

    .hero-image-panel {
        height: 200px;
    }

    .brand-mountain-banner {
        height: 72px;
    }

}

/* =====================================================
   PROFESSIONAL RECOMMENDATIONS
   ===================================================== */

.professional-recommendations {
    padding: 80px 20px;
    background-color: #f7f9fb;
}

.recommendations-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section heading */

.recommendations-header {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.recommendations-header .section-eyebrow {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #46647f;
}

.recommendations-header h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: #162d43;
}

.recommendations-intro {
    margin: 0 auto;
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4d5d6c;
}

/* Recommendation grid */

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

/* Individual recommendation */

.recommendation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid #dde5ec;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(22, 45, 67, 0.07);
}

/* Decorative opening quotation mark */

.recommendation-card::before {
    content: "\201C";
    display: block;
    height: 42px;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4rem;
    line-height: 1;
    color: #6b879f;
}

/* Quotation */

.recommendation-card > p {
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.75;
    color: #2f3f4d;
}

/* Attribution */

.recommendation-card footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e5eaef;
}

.recommendation-card footer strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #162d43;
}

.recommendation-card footer span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #657380;
}

/* Subtle interaction */

.recommendation-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(22, 45, 67, 0.11);
}

/* Tablet and mobile */

@media (max-width: 800px) {
    .professional-recommendations {
        padding: 64px 18px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .recommendations-header {
        margin-bottom: 36px;
    }

    .recommendation-card {
        padding: 26px;
    }
}

@media (max-width: 480px) {
    .professional-recommendations {
        padding: 52px 16px;
    }

    .recommendations-header h2 {
        font-size: 1.9rem;
    }

    .recommendations-intro {
        font-size: 1rem;
    }

    .recommendation-card {
        padding: 22px;
        border-radius: 12px;
    }

    .recommendation-card > p {
        font-size: 0.96rem;
        line-height: 1.7;
    }
}
