/* ==========================================================================
   CSS VARIABLES & CORE SETTINGS (Premium Design System)
   ========================================================================== */
:root {
    /* Colors - Lightly adjusted from original for premium feel */
    --color-primary: #083f88;       /* Deeper, more elegant blue */
    --color-primary-hover: #062e63; /* Darker blue for hover states */
    --color-primary-light: rgba(8, 63, 136, 0.08); /* Soft blue background */
    
    --color-text: #2c2c2c;          /* Softer than pure black */
    --color-text-muted: #5a5a5a;    /* For secondary text */
    
    --color-bg: #ffffff;            /* Pure white */
    --color-bg-alt: #f7f9fb;        /* Very subtle cool gray for alternating sections */
    
    --color-border: #e2e8f0;        /* Soft borders */
    --color-border-hover: #cbd5e1;
    
    /* Typography - Manrope (Clean Grotesk) */
    --font-main: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Fluid Typography Scale (using clamp for perfect responsiveness) */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.38vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* 16px - 18px */
    --text-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem); /* 18px - 20px */
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); /* 20px - 24px */
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem); /* 24px - 32px */
    --text-3xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem); /* 28px - 40px */
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem); /* 36px - 56px */
    --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem); /* 44px - 72px */
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Fluid Vertical Spacing */
    --space-section: clamp(4rem, 8vw, 8rem);
    --space-section-half: clamp(2rem, 4vw, 4rem);
    
    /* Layout & Containers */
    --container-max-width: 1200px;
    --container-narrow: 800px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);
    
    /* Radii & Shadows (Subtle, not SaaS-like) */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--text-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--space-section);
}

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

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

.mt-4 { margin-top: var(--space-lg); }
.mt-6 { margin-top: var(--space-xl); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.section-header {
    max-width: var(--container-narrow);
    margin-bottom: var(--space-section-half);
}

.section-header.text-center {
    margin-inline: auto;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

.feather {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px);
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height var(--transition-smooth);
}

.header.scrolled .header-inner {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-highlight {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

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

.btn-nav {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
}

/* Hero Section */
.hero {
    padding-top: calc(80px + var(--space-section-half));
    padding-bottom: var(--space-section-half);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.trust-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.trust-text {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 80%;
    height: 80%;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    z-index: 1;
}

/* Quick Info Strip */
.quick-info {
    padding-block: var(--space-section-half);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.info-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.info-title {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.info-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.phone-link {
    font-weight: 700;
    color: var(--color-text);
}

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

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background-color: var(--color-bg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.service-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.service-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.split-image img {
    border-radius: var(--radius-md);
    width: 100%;
    box-shadow: var(--shadow-subtle);
}

.feature-list {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-list i {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Team Section */
.team-section {
    position: relative;
}

.team-image-wrapper {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.team-image {
    width: 100%;
    height: auto;
    display: block;
}

.quote-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.quote {
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-primary);
    font-style: italic;
    line-height: 1.4;
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.location-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.location-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.location-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.location-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
}

.location-address {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.location-details {
    margin-bottom: var(--space-md);
}

.location-directions {
    margin-top: auto;
    padding: var(--space-sm);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.contact-action {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xl);
    background-color: var(--color-primary-light);
    border-radius: var(--radius-md);
}

.contact-action h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.contact-action p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.contact-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #111827; /* Dark elegant */
    color: #f8fafc;
    padding-top: var(--space-section);
    padding-bottom: var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer .logo-text {
    color: white;
}

.footer .logo-highlight {
    color: #94a3b8; /* Muted for dark bg */
}

.footer-desc {
    color: #94a3b8;
    font-size: var(--text-sm);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #94a3b8;
}

.social-links a:hover {
    color: white;
}

.footer-heading {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li, .footer-links a {
    color: #94a3b8;
    font-size: var(--text-sm);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: var(--text-xs);
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal-delay.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile First Adjustments via Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-indicator {
        justify-content: center;
    }
    
    .quick-info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .split-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px !important; /* Fixed height for mobile */
    }
    
    .mobile-toggle {
        display: block;
        z-index: 101;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-bg);
        padding: var(--space-lg) var(--container-padding);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-smooth);
        border-bottom: 1px solid var(--color-border);
        overflow-y: auto;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: var(--space-lg);
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
