/* Global overflow fix */
html, body {
    width: 100%;
    max-width: 100%;
}

/* CSS Variables */
:root {
    --color-primary: #04728F;
    --color-primary-dark: #1D3A47;
    --color-primary-light: #e8f4f6;
    --color-accent: #F07569;
    --color-accent-dark: #d85f53;
    --color-text: #2B2A29;
    --color-text-light: #666666;
    --color-background: #FEFEFE;
    --color-section-alt: #f8f9fa;
    --color-border: #e5e5e5;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --nav-height: 80px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.page-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-accent {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Section Styling */
section {
    padding: 100px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

.section-cta .cta-text {
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.4s ease;
}

.nav-logo .logo-icon {
    position: absolute;
    left: 0;
    height: 36px;
    width: auto;
    opacity: 0;
}

.nav.scrolled .nav-logo .logo-full {
    opacity: 0;
}

.nav.scrolled .nav-logo .logo-icon {
    opacity: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu .btn.btn-primary {
    color: white;
}

.nav-menu .btn.btn-primary:hover {
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO SECTION (v2 additions)
   =========================== */

.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Availability badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #1e6e38;
    background: #e6f4ec;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid #b8dfc5;
}

.availability-dot {
    width: 7px;
    height: 7px;
    background: #2a9d5c;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
    word-wrap: break-word;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

/* Hero stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
    margin: 0 28px;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}


.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero image — teal offset shadow */
.hero-image {
    display: flex;
    justify-content: center;
}

.headshot {
    max-width: 350px;
    border-radius: 16px;
    box-shadow: 18px 18px 0 var(--color-primary-light);
}

.headshot-placeholder {
    width: 350px;
    max-width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-section-alt) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.2rem;
    border: 2px dashed var(--color-border);
}

/* ===========================
   TRUST BAR
   =========================== */

.trust-bar {
    padding: 28px 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-section-alt);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(4, 114, 143, 0.07);
}

.trust-badge svg {
    flex-shrink: 0;
}

/* ===========================
   SERVICES (v2 timeline)
   =========================== */

.services {
    background-color: var(--color-section-alt);
}

.services-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.timeline-step {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(4, 114, 143, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.timeline-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(4, 114, 143, 0.14);
}

.step-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    filter: saturate(2) brightness(0.88);
}

.step-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.timeline-step h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.timeline-step p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-photo {
    max-width: 360px;
    border-radius: 16px;
}

.about-photo-placeholder {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-section-alt) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.2rem;
    border: 2px dashed var(--color-border);
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-text .btn {
    margin-top: 12px;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */

.testimonials {
    background-color: var(--color-section-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
}

.testimonial-info strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.client-logos {
    text-align: center;
}

.client-logos-title {
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-placeholder {
    width: 120px;
    height: 48px;
    background-color: white;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

/* ===========================
   FAQ SECTION
   =========================== */

.faq .section-title {
    margin-bottom: 48px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    font-family: var(--font-family);
}

.faq-question span {
    flex: 1;
    word-wrap: break-word;
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact {
    background-color: var(--color-section-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(4, 114, 143, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    padding-top: 20px;
}

.contact-info-item {
    margin-bottom: 32px;
}

.contact-info-item h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.contact-info-item a,
.contact-info-item p {
    font-size: 1.1rem;
    color: var(--color-text);
}

.contact-info-item a:hover {
    color: var(--color-primary);
}

/* ===========================
   FOOTER (v2 additions)
   =========================== */

.footer {
    background-color: var(--color-text);
    color: white;
    padding: 60px 0 30px;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-descriptor {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.footer-contact {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: white;
}

.footer-linkedin {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   FORM STATES
   =========================== */

.contact-form.submitting .btn {
    opacity: 0.7;
    pointer-events: none;
}

.contact-form .success-message,
.contact-form .error-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: none;
}

.contact-form .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form .success-message.show,
.contact-form .error-message.show {
    display: block;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .services-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-content {
        gap: 40px;
    }

    .contact-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        width: 100%;
    }

    .nav-logo {
        height: 28px;
    }

    .nav-logo img {
        height: 28px;
    }

    .nav-logo .logo-icon {
        height: 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu .btn {
        margin-top: 16px;
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 60px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-text {
        order: 0;
    }

    .hero-image {
        order: 1;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .headshot {
        max-width: 260px;
        box-shadow: 12px 12px 0 var(--color-primary-light);
    }

    .hero-description {
        max-width: none;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Hero stats on mobile */
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
    }

    .hero-stat {
        align-items: center;
        flex: 0 0 auto;
        min-width: 80px;
    }

    .hero-stat-divider {
        margin: 0 20px;
    }

    /* Availability badge center on mobile */
    .availability-badge {
        display: inline-flex;
    }

    /* Trust bar */
    .trust-bar-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .trust-badges {
        justify-content: center;
        gap: 8px;
    }

    .trust-badge {
        font-size: 0.82rem;
        padding: 6px 12px;
        white-space: nowrap;
    }

    .services-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-step {
        padding: 28px 24px;
    }

    .step-number {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image {
        order: 0;
        display: flex;
        justify-content: center;
    }

    .about-photo-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-photo {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-text {
        order: 1;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        order: 1;
        text-align: center;
    }

    .contact-form {
        padding: 20px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px 0;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        align-items: center;
    }

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

    .logos-grid {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .btn-lg {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-stats {
        gap: 0;
    }

    .hero-stat-divider {
        margin: 0 14px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .timeline-step {
        padding: 20px;
    }

    .contact-form {
        padding: 16px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .headshot {
        max-width: 220px;
    }

    .about-photo {
        max-width: 220px;
    }
}
