/* CSS Custom Properties */
:root {
    --navy: #1d4673;
    --navy-light: #265b96;
    --gold: #c9963b;
    --gold-dark: #b8872f;
    --gray-bg: #f5f7fa;
    --gray-border: #e0e0e0;
    --gray-border-light: #e8e8e8;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-pill: 999px;
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Book Antiqua", Palatino, "Palatino Linotype", Georgia, serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text);
    font-size: 17px;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin-bottom: 1.2em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h2 {
    color: var(--navy);
    margin: 2em 0 0.75em;
    font-size: clamp(22px, 3vw, 30px);
}

h3 {
    color: var(--navy);
    margin: 1.5em 0 0.5em;
}

ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.6em;
    line-height: 1.6;
}

/* Links */
a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--navy-light);
}

a:focus-visible {
    outline: 2px solid var(--navy-light);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-danger {
    color: red;
}

/* Inline SVG Icons */
.icon-svg {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    transition: opacity 0.2s;
}

.icon-svg-sm {
    width: 18px;
    height: 18px;
}

/* Logo */
.logo-link {
    display: block;
    text-align: center;
    padding: 10px 0;
}

.logo {
    max-width: 400px;
    height: auto;
}

/* Fixed Header */
.fixed-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-border-light);
}

/* Container */
.container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 90%;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--white);
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--navy);
    font-size: clamp(16px, 1.5vw, 18px);
    white-space: nowrap;
}

nav a:hover {
    color: var(--navy-light);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link.active {
    font-weight: bold;
    padding-bottom: 4px;
    border-bottom: 3px solid var(--navy);
}

.phone-number a {
    font-size: 16px;
    text-decoration: none;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-media {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-media a {
    display: flex;
    align-items: center;
    color: var(--navy);
    transition: opacity 0.2s;
}

.social-media a:hover {
    opacity: 0.7;
}

.social-media a img {
    margin: 0;
}

/* Services Sub-Nav (Pill Style) */
.services-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    flex-wrap: wrap;
    background-color: var(--gray-bg);
    border-top: 1px solid var(--gray-border-light);
    border-bottom: 1px solid var(--gray-border-light);
}

.services-nav a {
    font-size: clamp(14px, 1.5vw, 16px);
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--gray-border);
    background: var(--white);
    color: var(--navy);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.services-nav a:hover,
.services-nav a.active {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Content */
.content {
    width: 90%;
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 0;
    overflow: visible;
}

/* Hero Section (Homepage) */
.hero {
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: clamp(26px, 4vw, 42px);
    margin: 0 0 16px;
    color: var(--white);
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Page Hero (Interior Pages) */
.page-hero {
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.page-hero h1 {
    font-size: clamp(24px, 3.5vw, 38px);
    margin: 0 0 8px;
    color: var(--white);
}

.page-hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    margin: 4px;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* Stats Strip */
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 20px;
    background: var(--gray-bg);
    text-align: center;
    flex-wrap: wrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--navy);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Credential Line (below stats strip) */
.credential-line {
    text-align: center;
    padding: 12px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border-light);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.credential-line span {
    color: var(--navy);
    font-weight: 600;
}

/* Testimonials Section */
.testimonials-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--gray-bg);
    padding: 48px 20px;
}

.testimonials-section h2 {
    text-align: center;
    margin-top: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.testimonial-card blockquote {
    margin: 0 0 12px;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.testimonial-card cite {
    font-style: normal;
    font-weight: bold;
    color: var(--navy);
    font-size: 14px;
}

/* Service Cards Grid — Full-Bleed Wrapper */
.services-grid-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 2em auto;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: var(--text);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}

.service-card h3 {
    margin-top: 0;
    color: var(--navy);
}

.service-card p {
    margin-bottom: 0;
    font-size: 15px;
}

/* CTA Block */
.cta-block {
    background-color: var(--gray-bg);
    border-radius: var(--radius);
    padding: 40px;
    margin: 3em 0 1em;
    text-align: center;
}

.cta-block h2 {
    margin-top: 0;
}

/* Industries Grid (About Page) */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}

.industry-item {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--gray-border-light);
}

/* Portal Steps */
.steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 48px;
    margin-bottom: 1em;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Login Card */
.login-card {
    background: var(--gray-bg);
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 2em 0;
}

.login-card h2 {
    margin: 0 0 12px;
}

.login-card p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--navy);
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Footer */
.site-footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 48px 20px 24px;
    margin-top: 48px;
}

.site-footer a {
    color: #b8cce4;
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer .social-media a {
    color: #b8cce4;
}

.site-footer .social-media a:hover {
    color: var(--white);
    opacity: 1;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--gold);
    margin-top: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.site-footer .social-media {
    gap: 14px;
}

.site-footer .social-media .icon-svg {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 32px;
    padding-top: 16px;
    font-size: 14px;
    opacity: 0.7;
}

/* Service Sections — Alternating Backgrounds */
.service-section {
    margin-bottom: 0;
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-border);
}

.service-section:last-child {
    border-bottom: none;
}

.service-section:nth-child(even) {
    background: var(--gray-bg);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 20px);
    padding-right: calc(50vw - 50% + 20px);
    border-bottom: none;
}

/* Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
}

/* Desktop Layout (default) */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        gap: 30px;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .logo {
        max-width: 90%;
    }

    .hamburger {
        display: block;
    }

    nav {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
        background-color: var(--white);
        border-top: 1px solid var(--gray-border-light);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-link {
        font-size: 18px;
    }

    .social-media {
        margin-top: 15px;
        justify-content: center;
    }

    .services-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .content {
        width: 95%;
    }

    .hero {
        padding: 40px 20px;
    }

    .page-hero {
        padding: 30px 20px;
    }

    .stats-strip {
        gap: 24px;
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col .social-media {
        justify-content: center;
    }

    .cta-block {
        padding: 24px;
    }

    /* Mobile sticky CTA bar */
    .mobile-cta-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--gold);
        text-align: center;
        padding: 12px;
        z-index: 999;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    }

    .mobile-cta-bar a {
        color: var(--white);
        font-weight: bold;
        font-size: 18px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    body {
        padding-bottom: 52px;
    }
}
