/* ============================================================
   SIMPLE SOLUTIONS — Case Study Page
   Brand palette:
     Navy:   #1C3D6E  (headings, nav bg, footer, pullquote bg)
     Orange: #F5A623  (CTA buttons, eyebrow, icons, accents)
     Dark Orange: #E8891A (hover states)
     White:  #FFFFFF
     Light bg: #F7F9FC  (at-a-glance, CTA section)
     Body text: #3A3A3A
     Muted text: #6B7280
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #3A3A3A;
    background: #fff;
    line-height: 1.7;
}

/* ===== UTILITY ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-cta {
    background: #F5A623;
    color: #fff;
    border-color: #F5A623;
}

.btn-cta:hover {
    background: #E8891A;
    border-color: #E8891A;
}

.btn-ghost {
    background: transparent;
    color: #1C3D6E;
    border-color: #1C3D6E;
}

.btn-ghost:hover {
    background: #1C3D6E;
    color: #fff;
}

:root {
    --blue: #054A8A;
    --text: #21324a;
    --muted: #6b7a90;
    --border: #e6ebf3;
    --accent: #F79320;
    --soft: #fff3e6;
    --shadow: 0 10px 24px rgba(0,0,0,.05);
}

/* =====================
   GLOBAL TOKENS
===================== */
:root {
    --ss-navy: #054A8A;
    --ss-gold: #F79320;
    --ss-bg: #f7fafc;
    --ss-text: #1f2937;
    --ss-muted: #6b7280;
    --ss-card: #ffffff;
    --ss-border: #e6edf5;
    --ss-shadow: 0 10px 22px rgba(16,24,40,.08);
    --ss-radius: 16px;
}

/* Containers */
.site-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 16px;
    margin: 0 auto;
}

.site-container--narrow {
    max-width: 900px;
}

/* Reusable title */
.section-title {
    text-align: center;
    font-weight: 800;
    color: var(--blue);
    font-size: 28px;
    margin: 0 0 22px;
    letter-spacing: -0.02em;
}

/* Reusable button */
.btn-outline {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: #f4f4f4;
    font-weight: 700;
    font-size: 14px;
}

/* =========================
   NAVBAR
========================= */
.ss-navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(22,59,115,.10);
    padding: .9rem 0;
}

.ss-logo {
    height: 60px !important;
    width: auto !important;
    display: block !important;
}

.ss-navbar .nav-link {
    font-weight: 700;
    color: var(--ss-navy);
    opacity: .92;
    padding: .5rem .85rem;
}

.ss-navbar .nav-link:hover {
    opacity: 1;
}

.ss-btn-quote {
    background: var(--ss-gold) !important;
    color: #ffffff !important;
    font-weight: 800;
    border-radius: 10px;
    padding: .65rem 1.15rem;
    border: none;
    box-shadow: 0 10px 18px rgba(215,154,56,.18);
    text-decoration: none;
}

.ss-btn-quote:hover {
    background: #054A8A;
    color: #fff !important;
}

.ss-nav-toggle {
    border: 1px solid rgba(22,59,115,.18);
    border-radius: 10px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    background: url("../images/Tourner Houser Hero Image.jpg") top center/cover no-repeat;
}

/* Subtle background texture effect */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(245,166,35,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 100, 170, 0.8) 45%, rgba(29, 100, 170, 0.8) 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 7rem 2rem 2rem;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
    transition: color 0.15s;
}

.back-link:hover {
    color: #fff;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #F5A623;
    margin-bottom: 0.65rem;
}

.hero-title {
    font-size: clamp(1.65rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    max-width: 680px;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-meta {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   Simple Solutions — Case Study Page Styles
   Colors:
     --navy:   #1C3D6E
     --orange: #F5A623
     --orange-dark: #E8891A
     --white:  #FFFFFF
     --bg-light: #F7F9FC
     --text:   #3A3A3A
     --muted:  #6B7280
     --border: #E5E9EF
   ============================================================ */
/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    color: #3A3A3A;
    background: #ffffff;
    line-height: 1.7;
}

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

ul {
    list-style: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: #F5A623;
    color: #ffffff;
    border-color: #F5A623;
}

.btn-primary:hover {
    background: #E8891A;
    border-color: #E8891A;
}

.btn-secondary {
    background: transparent;
    color: #1C3D6E;
    border-color: #1C3D6E;
}

.btn-secondary:hover {
    background: #1C3D6E;
    color: #ffffff;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #E5E9EF;
    padding: 0 2rem;
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1C3D6E;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3A3A3A;
    border-radius: 4px;
    transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: #1C3D6E;
}

.navbar .btn {
    flex-shrink: 0;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1C3D6E;

    /* fallback if no image */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to right,
    rgba(50, 90, 151, 0.81) 45%,
    rgba(28, 61, 110, 0.55) 100%
  );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 2rem 3.5rem;
}

.back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    transition: color 0.15s;
}

.back-link:hover {
    color: #ffffff;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5A623;
    margin-bottom: 0.65rem;
}

.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    max-width: 660px;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ===== AT A GLANCE ===== */
.glance {
    background: #F7F9FC;
    padding: 3.5rem 2rem;
    text-align: center;
}

.glance-label {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F5A623;
    margin-bottom: 2rem;
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.glance-card {
    background: #ffffff;
    border: 1px solid #E5E9EF;
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.glance-card:hover {
    box-shadow: 0 4px 16px rgba(28, 61, 110, 0.1);
}

.glance-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.9rem;
}

.glance-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1C3D6E;
    margin-bottom: 0.5rem;
}

.glance-body {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
}

/* ===== ARTICLE SECTIONS ===== */
.article-section {
    padding: 3.5rem 2rem;
    border-bottom: 1px solid #E5E9EF;
}

.article-section:last-of-type {
    border-bottom: none;
}

.article-inner {
    max-width: 780px;
    margin: 0 auto;
}

.article-heading {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: #1C3D6E;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.article-section p {
    font-size: 0.975rem;
    color: #3A3A3A;
    margin-bottom: 1rem;
}

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

.article-section strong {
    font-weight: 700;
    color: #1C3D6E;
}

.article-list {
    margin: 1rem 0 1.25rem 0;
    padding: 0;
    list-style: none;
}

.article-list li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.45rem;
    font-size: 0.975rem;
    color: #3A3A3A;
}

.article-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #F5A623;
    font-weight: 700;
}

.article-closing {
    font-size: 0.975rem;
}

/* ===== PULL QUOTE ===== */
.pullquote-section {
    background: #1C3D6E;
    padding: 3rem 2rem;
}

.pullquote-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    width: 36px;
    height: auto;
    margin-left: auto;
    margin-bottom: auto;
}

.quote-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.quote-cite {
    display: block;
    font-size: 0.82rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: #F7F9FC;
    border-top: 1px solid #E5E9EF;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #1C3D6E;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.cta-sub {
    font-size: 0.94rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.cta-buttons {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: #1C3D6E;
    color: #ffffff;
    padding: 1.5rem 2rem;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .glance-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar .btn {
        margin-left: auto;
    }

    .hero-content {
        padding: 2rem 1.25rem 2.5rem;
    }

    .glance {
        padding: 2.5rem 1.25rem;
    }

    .article-section {
        padding: 2.5rem 1.25rem;
    }

    .pullquote-section {
        padding: 2.25rem 1.25rem;
    }

    .pullquote-inner {
        text-align: left;
    }

    .quote-icon {
        margin-left: 0;
    }

    .cta-section {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        text-align: center;
    }
}

/* =========================
   FOOTER (TIGHTER HEIGHT)
========================= */
.ss-footer {
    background: #1f4f88;
    color: #ffffff;
    font-family: "Arimo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 1rem 0 0;
    text-align: left;

    /* was 4.25rem */
}

/* inner layout */
.ss-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0rem;
    justify-items: start;

    /* was 3rem bottom */
    display: grid;
    grid-template-columns: 1.2fr 1px 1.4fr 1px 1fr;
    gap: 1.5rem;

    /* was 3rem */
    align-items: start;
}

.ss-footer-col {
    min-width: 0;
}

.ss-footer-divider {
    width: 1px;
    background: rgba(255,255,255,.25);
    height: 100%;
}

/* BRAND BLOCK */
.ss-footer-brandblock {
    display: flex;
    gap: .85rem;
    align-items: center;
    margin-bottom: .65rem;

    /* was .9rem */
}

.ss-footer-brandblock--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;

    /* was .85rem */
}

.ss-footer-brandblock--row {
    flex-direction: row;
    align-items: center;
}

.ss-footer-logo {
    width: 100px;

    /* was 80px */
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Brand name */
.ss-footer-title {
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #ffffff;

    /* was 3.1rem */
    line-height: 1.05;
    margin: 0;
    letter-spacing: .4px;
}

/* tagline */
.ss-footer-tagline {
    color: #f0a13e;
    font-size: 1.05rem;

    /* was 1.25rem */
    margin: 0 0 1.4rem 0;

    /* was 2rem */
}

/* contact items */
.ss-footer-contact p {
    display: flex;
    align-items: start;
    gap: .85rem;
    margin: 0 0 .95rem 0;
    justify-items: start;

    /* was 1.2rem */
    font-size: 1.05rem;

    /* was 1.25rem */
}

.ss-footer-icon {
    width: 22px;

    /* was 26px */
    height: 22px;
    object-fit: contain;
    display: block;
}

.ss-footer a {
    color: #ffffff;
    text-decoration: none;
}

.ss-footer a:hover {
    text-decoration: underline;
}

/* headings */
.ss-footer-heading {
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 900;
    color: #f0a13e;
    letter-spacing: .6px;
    margin: 0 0 1.05rem 0;

    /* was 1.5rem */
    font-size: 1.55rem;

    /* was 2rem */
    text-transform: uppercase;
}

/* links columns */
.ss-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;

    /* was 2.5rem */
}

.ss-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;

    /* was 1.4rem */
}

.ss-footer-links a {
    font-size: 1.15rem;

    /* was 1.4rem */
    line-height: 1.35;
}

/* CTA */
.ss-footer-cta .ss-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F79320;
    color: #fff;
    font-weight: 900;
    border-radius: 16px;
    padding: .95rem 1.4rem;

    /* was 1.2rem 2rem */
    font-size: 1.15rem;

    /* was 1.35rem */
    margin-top: 1rem;

    /* was 1.25rem */
    box-shadow: 0 14px 22px rgba(0,0,0,.18);
    text-decoration: none;
    width: min(320px, 100%);
    text-align: center;
}

.ss-footer-cta .ss-footer-btn:hover {
    background: #c88722;
    text-decoration: none;
}

/* bottom bar */
.ss-footer-bottom {
    border-top: 2px solid rgba(255,255,255,.20);
    padding: .5rem 2rem;

    /* was 1.8rem */
    text-align: center;
    font-size: 1rem;

    /* was 1.35rem */
    color: rgba(255,255,255,.92);
}

/* responsive */
@media (max-width: 991.98px){
    .ss-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-bottom: 1.5rem;
    }

    .ss-footer-divider {
        display: none;
    }

    .ss-footer-title {
        font-size: 2.1rem;
    }

    .ss-footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Center the grid itself */
    .ss-footer-inner {
        justify-items: center;
        text-align: center;
    }

    /* Brand / logo block */
    .ss-footer-brandblock,
    .ss-footer-brandblock--stack {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Contact rows */
    .ss-footer-contact p {
        justify-content: center;
        text-align: center;
    }

    /* Headings */
    .ss-footer-heading {
        text-align: center;
    }

    /* quick links: keep 2 columns but center them */
    .ss-footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem 1.25rem;
        justify-items: center;

        /* FIX */
        text-align: center;

        /* FIX */
    }

    .ss-footer-links ul {
        text-align: center;

        /* FIX */
        gap: 0.75rem;
    }

    .ss-footer-links a {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    /* CTA section */
    .ss-footer-cta {
        text-align: center;
    }

    .ss-footer-cta .ss-footer-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Fold unfolded / tablets / small laptops: use centered stacked footer */
@media (max-width: 1100px) {
    .ss-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
        justify-items: center;

        /* center the stacked blocks */
        text-align: center;
    }

    .ss-footer-divider {
        display: none;
    }

    .ss-footer-brandblock,
    .ss-footer-brandblock--stack {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .ss-footer-contact p {
        justify-content: center;
        text-align: center;
    }

    /* Keep quick links in 2 columns for wider unfolded screens */
    .ss-footer-links {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem 2rem;
    }

    .ss-footer-links ul {
        text-align: center;
    }

    .ss-footer-cta {
        text-align: center;
    }

    .ss-footer-cta .ss-footer-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============ BREAKPOINTS (start scaling UP at 430px) ============ */
@media (min-width:430px){
    .section-title {
        font-size: 32px;
    }

    .rs-hero__title {
        font-size: 36px;
    }

    .stats__title {
        font-size: 30px;
    }

    .stat__num {
        font-size: 42px;
    }

    .faq-q {
        font-size: 17px;
    }
}

/* 2-column resources on tablet, 3-column on desktop + 3-column stats */
@media (min-width:768px){
    .hr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .stats__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .rs-hero__inner {
        padding: 60px 0;
    }
}

/* Desktop */
@media (min-width:1024px){
    .hr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .rs-hero__title {
        font-size: 46px;
        text-align: left;
    }

    .section-title {
        font-size: 34px;
    }

    .stats__title {
        font-size: 34px;
    }
}

/* =====================
   FORCE BUTTON STYLES
===================== */
.ss-btn-accent {
    background-color: #F79320 !important;
    border-color: #F79320 !important;
    color: #fff !important;
}

.ss-btn-primary {
    background-color: #054A8A !important;
    border-color: #054A8A !important;
    color: #fff !important;
}

.ss-btn-accent:hover {
    background-color: #054A8A !important;
    border-color: ##054A8A !important;
}

.ss-btn-primary:hover {
    background-color: #054A8A !important;
    border-color: #054A8A !important;
}