/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    /* Brand Colors */
    --brand: #004a4e;
    --accent: #aff0da;

    /* Text Colors */
    --text: #222222;
    --muted: #6B7280;

    /* Background Colors */
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;

    /* Design System */
    --gradient-hero: linear-gradient(135deg, #0F172A, #1E293B);
    --shadow-soft: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    --radius: 12px;
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {*/
/*    :root {*/
/*        --bg: #0F172A;*/
/*        --bg-alt: #1E293B;*/
/*        --text: #F8FAFC;*/
/*        --muted: #6B7280;*/
/*    }*/
/*}*/

/* Base Elements */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition-smooth);
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 5rem;
    width: 5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--brand);
}

.nav-link.active {
    color: var(--brand);
}

.cta-button {
    background: var(--accent);
    color: var(--brand);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-family);
}

.cta-button:hover {
    background: var(--brand);
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--brand);
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--brand);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-accent {
    background: var(--accent);
    color: var(--brand);
}

.btn-accent:hover {
    background: var(--brand);
    color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 4xl;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--accent);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 3xl;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 3xl;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services {
    background: #F8FAFC;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted);
    line-height: 1.6;
}

/* Expertise Section */
.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.expertise-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.expertise-text .section-description {
    text-align: left;
    margin-bottom: 2rem;
}

.highlights {
    margin-bottom: 2rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--accent);
    color: var(--brand);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-alt);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--bg-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon {
    font-size: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--accent);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--brand);
}

.hours-note {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Form Styles */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text);
}

/* CTA Section */
.cta {
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 2xl;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--brand);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 5rem;
    width: 5rem;
    /* filter: brightness(0) invert(1); */
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-brand-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--brand);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: #059669;
}

.toast.error {
    background: #DC2626;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertise-text .section-title,
    .expertise-text .section-description {
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .service-card,
    .info-card,
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.nav.mobile-active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.footer-contact>a {
    text-decoration: none;
}

/* Team */
.team {
    background: var(--bg);
}

.team-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    padding-bottom: 1rem;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-photo {
    width: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 0.875rem;
    filter: grayscale(100%) contrast(1.05);
    transition: filter .4s ease-in-out;
}

.team-card:hover .team-photo {
    filter: none;
}

.team-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.team-role {
    color: var(--muted);
    margin: 0.25rem 0 0.75rem;
}

.team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--brand);
    background: color-mix(in srgb, var(--accent) 40%, white);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.team-link:hover {
    background: var(--brand);
    color: var(--accent);
}

.team-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Case Study */
.case-study {
    background: var(--bg-alt);
}

.cs-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.cs-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 2rem;
}

.cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.cs-chip {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand);
    background: color-mix(in srgb, var(--accent) 50%, white);
    padding: .35rem .6rem;
    border-radius: 999px;
}

.cs-title {
    font-size: 1.125rem;
    color: var(--brand);
    margin: 1.25rem 0 .5rem;
}

.cs-list {
    padding-left: 1.05rem;
    color: var(--text);
}

.cs-list li {
    margin: .35rem 0;
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: 1rem 0 1.25rem;
}

.cs-stat {
    background: var(--bg-alt);
    border-radius: var(--radius);
    text-align: center;
    padding: .9rem .5rem;
}

.cs-num {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--brand);
    line-height: 1;
}

.cs-label {
    font-size: .85rem;
    color: var(--muted);
}

.cs-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.cs-testimonial {
    background: var(--bg-alt);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 1rem 1rem 1rem 1.25rem;
    display: grid;
    gap: .5rem;
}

.cs-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    /* keep B/W for consistency */
}

.cs-testimonial blockquote {
    color: var(--text);
    font-style: italic;
}

.cs-testimonial figcaption {
    color: var(--muted);
    font-size: .9rem;
}

.cs-image {
    width: 100%;
    border-radius: var(--radius);
    /* object-fit: cover;
  aspect-ratio: 4/3; */
    box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 1024px) {
    .cs-grid {
        grid-template-columns: 1fr;
    }

    .cs-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        gap: 1.25rem;
    }

    .cs-card {
        padding: 1.25rem;
    }
}


/* Testimonials */
.testimonials {
    background: linear-gradient(to bottom, #F8FAFC 0%, #ffffff 100%);
    padding: 4rem 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    /* make card stretch */
    height: 100%;
    /* ensures equal height */
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
}

.testimonial-text::before {
    content: "“";
    font-size: 2rem;
    color: var(--brand);
    position: absolute;
    left: -0.4rem;
    top: -0.6rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
}

.testimonial-name {
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-role {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Swiper */
.testimonial-swiper {
    padding-bottom: 3rem;
}

.swiper-pagination-bullet {
    background: var(--muted);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--brand);
    opacity: 1;
}

.testimonial-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    /* forces equal height */
}

.testimonial-swiper .swiper-slide {
    display: flex;
    /* allow card to stretch */
    height: auto !important;
}