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

:root {
    /* Colors */
    --primary-red: #d32f2f;
    --primary-blue: #1976d2;
    --dark-blue: #0d47a1;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #ffffff;

    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto Condensed', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-bottom: 70px; /* Space for mobile sticky footer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-radius: 5px;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

.btn-header {
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.btn-hero {
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.btn-service {
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.btn-cta {
    background-color: var(--white);
    color: var(--primary-red);
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
    border: 3px solid var(--white);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Pulse animation for CTA buttons */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

/* ==========================================
   HEADER - STICKY
   ========================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Navigation */
.nav {
    display: none; /* Hidden on mobile by default */
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-dark);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-fast);
}

/* Hide header CTA button on mobile */
.btn-header {
    display: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(25, 118, 210, 0.75) 100%);
    z-index: 1;
}

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

.hero-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.section-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: var(--spacing-md);
}

.service-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

.service-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* ==========================================
   WHY US SECTION
   ========================================== */
.why-us {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.why-us-image img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.why-us-list li {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    font-size: 1.1rem;
}

.why-us-list .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-us-list strong {
    color: var(--primary-blue);
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

.footer-column p,
.footer-column li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-column a {
    color: var(--white);
    transition: color var(--transition-fast);
}

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

.footer-logo {
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.footer-phone {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-sm);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ==========================================
   MOBILE STICKY FOOTER
   ========================================== */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 0;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-btn {
    flex: 1;
    padding: 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: var(--white);
    border: none;
}

.mobile-btn-call {
    background-color: var(--primary-red);
}

.mobile-btn-map {
    background-color: var(--primary-blue);
}

.mobile-btn:active {
    opacity: 0.8;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays for sequential elements */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ==========================================
   RESPONSIVE - TABLET & DESKTOP
   ========================================== */
@media (min-width: 768px) {
    /* Header adjustments */
    .nav {
        display: block;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .btn-header {
        display: inline-block;
    }

    /* Hide mobile sticky footer on larger screens */
    .mobile-sticky-footer {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Why Us section */
    .why-us-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero section */
    .hero-title {
        font-size: 3rem;
    }

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

    /* Section title */
    .section-title {
        font-size: 2.5rem;
    }

    /* CTA title */
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 700px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }
}
