/* 
   Aveir Technology Style System
   Theme: Cyber Secure & Medical IT Compliance (Obsidian, Cyan, Emerald Accents)
*/

:root {
    --primary-color: #0f172a;       /* Obsidian Navy (Slate 900) */
    --primary-dark: #090d16;        /* Deep Obsidian */
    --secondary-color: #334155;     /* Slate 700 */
    --accent-color: #0ea5e9;        /* Cyber Cyan / Tech Blue */
    --accent-green: #10b981;        /* Compliance Emerald Green */
    --bg-light: #f8fafc;            /* Ice White (Slate 50) */
    --bg-card: #ffffff;
    --text-main: #475569;           /* Medium Slate Grey */
    --text-light: #64748b;          /* Light Slate Grey */
    --text-dark: #0f172a;
    --border-color: #e2e8f0;        /* Light Grey (Slate 200) */
    --border-active: #cbd5e1;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    transition: all var(--transition-speed) var(--transition-ease);
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.primary-btn:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 24px auto 0 auto;
    border-radius: 2px;
}

.divider.align-left {
    margin-left: 0;
}

/* Top Contact Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 12px 0;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #cbd5e1;
}

.bar-item a:hover {
    color: var(--accent-color);
}

.bar-item svg {
    color: var(--accent-color);
}

/* Pulse animation for SOC active indicator */
.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Header & Logo */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -0.03em;
}

.logo-main .accent-dot {
    color: var(--accent-color);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-light);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a:not(.cta-btn) {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    position: relative;
    padding: 6px 0;
}

.main-nav a:not(.cta-btn):hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle .line {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 520px;
    max-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    color: #ffffff;
}

.hero-bg-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-left, .hero-bg-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.hero-bg-left {
    clip-path: inset(0 50% 0 0);
    transform: translateX(-100%);
}

.hero-bg-right {
    clip-path: inset(0 0 0 50%);
    transform: translateX(100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.65) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 620px;
    color: #cbd5e1;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-content .badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 6px 14px;
    margin-bottom: 24px;
    font-weight: 700;
    border-radius: 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Services Segmented Cards */
.services-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    transition: all 0.3s var(--transition-ease);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    border-color: var(--border-active);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.card-icon-box.pink {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.card-icon-box.blue {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
}

.card-icon-box.green {
    background-color: rgba(71, 85, 105, 0.1);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-highlight {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card p:not(.card-highlight) {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-action {
    margin-top: auto;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--accent-color);
}

.cta-link:hover {
    color: var(--text-dark);
}

/* HIPAA Compliance risk assessment calculator */
.compliance-section {
    background-color: #f1f5f9;
}

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

.compliance-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.compliance-text p {
    margin-bottom: 20px;
}

.compliance-text p.lead-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.audit-bullets {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.compliance-calculator-card {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 15px 40px rgba(9, 13, 22, 0.3);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-header {
    margin-bottom: 28px;
}

.step-counter {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.calculator-question-body h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 28px;
    line-height: 1.4;
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-opt-btn {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #ffffff;
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.calc-opt-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.calc-result-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.calc-result-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 30px;
    margin-bottom: 24px;
}

.calc-result-badge.high-risk {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.calc-result-badge.med-risk {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.calc-result-badge.low-risk {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.calc-result-body p {
    color: #cbd5e1;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background-color: var(--bg-card);
}

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

.about-image-wrapper {
    position: relative;
}

.about-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.photo-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 160px;
    height: 160px;
    border-bottom: 4px solid var(--accent-color);
    border-left: 4px solid var(--accent-color);
    z-index: 1;
}

.about-content span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p.lead-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.stat-mini-item h4 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat-mini-item p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Client Support Console */
.support-section {
    background-color: #fafaf9;
}

.support-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-console-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    transition: all 0.3s ease;
}

.support-console-card.highlighted {
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.05);
}

.console-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(71, 85, 105, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    color: var(--accent-color);
}

.support-console-card.highlighted .console-icon {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent-color);
}

.support-console-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.support-console-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.console-btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 10px 20px;
}

/* Visit & Contact Section */
.visit-section {
    background-color: #f1f5f9;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.visit-details h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.office-address {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.5;
}

.contact-form-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #ffffff;
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
}

.form-feedback {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    display: none;
    padding: 10px;
}

.form-feedback.success {
    display: block;
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-feedback.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.map-container-box {
    display: flex;
    flex-direction: column;
}

.map-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    margin-top: auto;
}

.office-map {
    height: 480px;
    width: 100%;
    border-radius: 4px;
}

.map-overlay-details {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1000;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 80px 0 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.footer-brand .footer-logo .accent-dot {
    color: var(--accent-color);
}

.footer-brand .footer-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-color);
    display: block;
    margin-top: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links h4, .footer-legal h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-legal p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-legal strong {
    color: #cbd5e1;
}

.footer-legal .copyright {
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
}

/* Split Entry Slide Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.hero-bg-left.animate-entry {
    animation: slideInLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-bg-right.animate-entry {
    animation: slideInRight 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Content Fade-In */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .badge,
.hero-content h1,
.hero-content p,
.hero-content .hero-actions {
    opacity: 0;
}

.hero-content.animate-content .badge {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.hero-content.animate-content h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.hero-content.animate-content p {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

.hero-content.animate-content .hero-actions {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.0s;
}

/* Drifting Hero BG Animation */
@keyframes heroDrift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.04) translate(-0.8%, -0.8%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero-bg-left.drift, .hero-bg-right.drift {
    animation: heroDrift 22s ease-in-out infinite;
}

/* Grayscale tiles for map */
.leaflet-tile {
    filter: grayscale(100%) invert(8%) contrast(90%);
}

/* Scroll Reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Layouts */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-grid, .compliance-grid, .visit-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .services-grid, .support-options-grid {
        grid-template-columns: 1fr;
    }
    .about-photo {
        height: 360px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-legal {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .top-bar {
        display: none;
    }
    .header-container {
        height: 70px;
    }
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.4s var(--transition-ease);
        z-index: 99;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .main-nav.active {
        transform: translateX(0);
    }
    .main-nav a:not(.cta-btn) {
        font-size: 1rem;
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active .line:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hero {
        height: 70vh;
        min-height: 460px;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .compliance-calculator-card {
        padding: 24px;
    }
    .contact-form-box {
        padding: 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal {
        grid-column: span 1;
    }
}
