@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #f97316;
    --accent: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

/* Button Styles */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: #ea6a1e;
    box-shadow: var(--shadow-lg);
}

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

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

.hero .btn-outline,
.page-header .btn-outline,
.cta-section .btn-outline {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}

.hero .btn-outline:hover,
.page-header .btn-outline:hover,
.cta-section .btn-outline:hover {
    background: #ffffff !important;
    color: #1e40af !important;
}

/* Header Styles */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    sticky: top;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark);
}

.header-left img {
    height: 70px;
    width: 70px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-text span {
    color: var(--gray-600);
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1001;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 1.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* Footer Styles */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-left img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.footer-left span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--white);
}

.footer-inner p {
    margin: 0;
    font-size: 0.875rem;
    flex-grow: 1;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-300);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Tool Banner */
.tool-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-left: 5px solid var(--secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
    color: var(--white);
}

.tool-banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.tool-banner-content {
    flex-grow: 1;
}

.tool-banner-content h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.tool-banner-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tool-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-banner .btn-primary {
    white-space: nowrap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 2rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card a {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Customer Logos */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
}

.customer-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.customer-logo:hover {
    transform: scale(1.05);
}

.customer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

/* Content Sections */
.content-section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.content-section ul {
    list-style: none;
    margin-left: 0;
}

.content-section ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.content-section ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tool-banner {
        flex-direction: column;
        text-align: center;
    }

    .tool-banner-icon {
        font-size: 2rem;
    }

    .tool-tags {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .customer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--gray-100);
        margin-top: 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-600);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Grid (Two columns) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Alt Background */
.alt-bg {
    background: var(--gray-100);
    padding: 3rem 2rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.alt-bg > h2,
.alt-bg > .steps-grid,
.alt-bg > .features-grid,
.alt-bg > .service-list,
.alt-bg > .content-grid,
.alt-bg > p {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1.5rem auto 0;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Service List */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-list-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.service-list-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-list-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin: 3rem 0 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Services Primary (Featured Service) */
.services-primary {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.service-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.service-featured-content {
    padding: 2.5rem 2rem;
}

.label-featured {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.benefit-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--gray-700);
}

.benefit-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* All Services Grid */
.services-all {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.services-all h2 {
    margin-bottom: 1.5rem;
}

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card-full {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-card-full:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card-full img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.card-link:hover {
    color: var(--primary-dark);
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Content With Image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-with-image img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Mapping Cards */
.mapping-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.mapping-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.mapping-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Misconception Grid */
.misconception-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.misconception-card {
    background: var(--white);
    border-left: 4px solid var(--danger);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.standard-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.standard-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.use-case-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.use-case-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Header & Hamburger Menu --- */
    .header {
        flex-direction: row !important;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        justify-content: space-between;
    }

    .header-left {
        order: 1;
    }

    .header-left img {
        height: 50px;
        width: 50px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.8rem;
    }

    .menu-toggle {
        order: 2;
        display: flex;
    }

    nav {
        order: 3;
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--gray-200);
        margin-top: 0.75rem;
    }

    nav.open {
        display: flex;
    }

    nav > a,
    nav > .nav-dropdown > a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-100);
        color: var(--gray-700);
        font-weight: 500;
    }

    nav > a.nav-cta {
        margin: 0.75rem 0 0.5rem;
        text-align: center;
        border-bottom: none;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--gray-50);
        margin-top: 0;
        padding: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .nav-dropdown > a::after {
        content: ' ▾';
        font-size: 0.75rem;
    }

    /* --- Hero Section --- */
    .hero {
        padding: 2.5rem 1rem !important;
    }

    .hero h1 {
        font-size: 1.75rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Override inline grid-template-columns for hero */
    .hero > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hero .btn-primary,
    .hero .btn-outline {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
        text-align: center;
    }

    /* --- About Section (Thorsten + Text) --- */
    .container > div[style*="grid-template-columns: 250px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- Page Header --- */
    .page-header {
        padding: 2.5rem 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* --- Service Featured (image + text) --- */
    .service-featured {
        grid-template-columns: 1fr !important;
    }

    .service-featured img {
        min-height: 200px;
    }

    .service-featured-content {
        padding: 1.5rem 1rem;
    }

    /* --- Content With Image --- */
    .content-with-image {
        grid-template-columns: 1fr !important;
    }

    /* --- All named grids → single column --- */
    .steps-grid,
    .features-grid,
    .services-grid-full,
    .checklist-grid,
    .pricing-grid,
    .mapping-cards,
    .misconception-grid,
    .standards-grid,
    .use-cases-grid,
    .comparison-grid,
    .service-list {
        grid-template-columns: 1fr !important;
    }

    /* --- Content Grid --- */
    .content-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }

    /* --- Generic inline grid override (catches remaining inline grids) --- */
    [style*="grid-template-columns: repeat"],
    [style*="grid-template-columns:repeat"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* --- Tool Banner --- */
    .tool-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .tool-banner-icon {
        font-size: 2rem;
    }

    .tool-tags {
        justify-content: center;
    }

    .tool-banner .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* --- CTA Section --- */
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section .btn-primary,
    .cta-section .btn-secondary,
    .cta-section .btn-outline {
        display: block;
        width: 100%;
        margin: 0.5rem auto !important;
        max-width: 300px;
    }

    /* --- Footer --- */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
        font-size: 0.8rem;
    }

    .footer-links {
        justify-content: center;
    }

    /* --- Customer Grid --- */
    .customer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .customer-logo {
        height: 70px;
    }

    /* --- Cards --- */
    .card {
        padding: 1.5rem;
    }

    /* --- Content Sections --- */
    .content-section {
        padding: 2rem 1rem;
    }

    /* --- Section padding --- */
    .section {
        padding: 2.5rem 1rem;
    }

    /* --- Services Primary / All --- */
    .services-primary,
    .services-all {
        padding: 0 1rem;
    }

    /* --- Contact form inline grid --- */
    div[style*="display: grid"][style*="gap: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- Badges section flex --- */
    div[style*="display: flex"][style*="gap: 3rem"] {
        gap: 1.5rem !important;
    }

    /* --- YouTube embeds --- */
    .content-section div[style*="max-width: 800px"] {
        max-width: 100% !important;
    }

    /* --- Typography tightening --- */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.15rem !important; }

    /* --- Images in hero --- */
    .hero img {
        max-height: 300px;
        object-fit: cover;
    }
}
