/**
 * Plumbing Prosper - Main Stylesheet
 * ===================================
 * Brand-focused, mobile-first CSS following the PRD specifications.
 * Uses Lora for headings and Roboto for body text.
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Brand Colors)
   ======================================== */
:root {
    /* Brand Colors - as per PRD */
    --primary-blue: #0056b3;       /* Primary CTAs, key accents */
    --secondary-blue: #003366;     /* Main headings, logo text */
    --text-dark: #333333;          /* Body text */
    --background-light: #f8f9fa;   /* Light section backgrounds */
    
    /* Extended Palette */
    --primary-blue-dark: #004494;  /* Darker blue for hover states */
    --primary-blue-light: #1a6fc7; /* Lighter blue for accents */
    --white: #ffffff;
    --off-white: #fafbfc;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --overlay-dark: rgba(0, 51, 102, 0.75);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Transitions - respects prefers-reduced-motion */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

a:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

address {
    font-style: normal;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-blue);
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

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

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   LOGO STYLING (PRD: use_existing_logo)
   ======================================== */
.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-blue);
    line-height: 1;
}

/* ========================================
   BUTTONS & CTAs
   ======================================== */
/* Primary CTA - Micro-interaction: Embossed effect on hover/click */
.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 
        background-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

/* MICRO-INTERACTION: CTA embossed/lifted effect */
.btn-embossed {
    box-shadow: 
        0 4px 6px rgba(0, 86, 179, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-embossed:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 86, 179, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn-embossed:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 86, 179, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.primary-cta:focus-visible {
    outline: 3px solid var(--primary-blue-light);
    outline-offset: 2px;
}

/* Secondary CTA */
.secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--white);
    border-radius: var(--radius-md);
    transition: 
        background-color var(--transition-base),
        color var(--transition-base);
}

.secondary-cta:hover {
    background-color: var(--white);
    color: var(--secondary-blue);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link .logo-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* Desktop Navigation */
.nav-links {
    display: none;
    gap: var(--space-xl);
}

@media (min-width: 993px) {
    .nav-links {
        display: flex;
    }
}

/* MICRO-INTERACTION: Nav link underline reveal on hover */
.nav-link {
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--space-sm) 0;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

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

.nav-link[tabindex] {
    /* Ensure keyboard accessibility */
}

/* Mobile Phone CTA in header */
.mobile-phone-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.mobile-phone-cta .phone-number {
    display: none;
}

@media (min-width: 480px) {
    .mobile-phone-cta .phone-number {
        display: inline;
    }
}

@media (min-width: 993px) {
    .mobile-phone-cta {
        display: none;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

@media (min-width: 993px) {
    .hamburger-menu {
        display: none;
    }
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
    transition: 
        transform var(--transition-slow),
        opacity var(--transition-fast);
}

/* MICRO-INTERACTION: Hamburger to X transformation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl);
    transition: right var(--transition-slow) ease-in-out;
    overflow-y: auto;
    z-index: 999;
}

/* MICRO-INTERACTION: Mobile menu slide in from right */
.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-md);
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-200);
    transition: 
        color var(--transition-fast),
        padding-left var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--primary-blue);
    padding-left: var(--space-lg);
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    justify-content: center;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(70px + var(--space-2xl)) var(--container-padding) var(--space-2xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* MICRO-INTERACTION: Subtle gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 51, 102, 0.85) 0%,
        rgba(0, 86, 179, 0.75) 50%,
        rgba(0, 51, 102, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    color: var(--white);
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 480px) {
    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* MICRO-INTERACTION: Service card lift effect on hover */
.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image-wrapper {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.service-content {
    padding: var(--space-lg);
}

/* MICRO-INTERACTION: Service icon bounce on card hover */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    color: var(--primary-blue);
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.service-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.services-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ========================================
   ABOUT US SECTION
   ======================================== */
.about-section {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: auto;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

.about-features {
    margin-bottom: var(--space-xl);
}

/* Custom bullet points with plumbing-themed icons */
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--primary-blue);
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-section {
    padding: var(--space-4xl) 0;
    background-color: var(--background-light);
}

/* MICRO-DETAIL: Subtle textured background */
.textured-bg {
    position: relative;
    background-color: var(--background-light);
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(0, 86, 179, 0.03) 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, rgba(0, 51, 102, 0.02) 2%, transparent 0%);
    background-size: 100px 100px;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.process-icon-wrapper {
    margin: var(--space-lg) auto var(--space-md);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background-color: var(--background-light);
}

.process-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.process-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-slow) ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .testimonial-card {
        flex: 0 0 33.333%;
    }
}

.testimonial-content {
    background-color: var(--background-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    min-height: 200px;
}

.testimonial-stars {
    display: flex;
    gap: var(--space-xs);
    color: #fbbf24;
    margin-bottom: var(--space-md);
}

.testimonial-quote {
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-blue);
}

.testimonial-name {
    display: block;
    font-weight: 600;
    color: var(--secondary-blue);
    font-style: normal;
}

.testimonial-location {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    transition: 
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

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

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: var(--primary-blue);
}

.carousel-pause {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.carousel-pause .play-icon.hidden {
    display: none;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--space-4xl) 0;
    background-color: var(--background-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.contact-intro {
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.contact-item strong {
    display: block;
    color: var(--secondary-blue);
    margin-bottom: var(--space-xs);
}

.contact-item a {
    color: var(--text-dark);
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row-three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--secondary-blue);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.required {
    color: #dc2626;
}

/* MICRO-INTERACTION: Input field focus highlight */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
    display: none;
}

.error-message.show {
    display: block;
}

.form-submit {
    width: 100%;
    margin-top: var(--space-md);
}

.form-success {
    text-align: center;
    padding: var(--space-3xl);
}

.form-success svg {
    color: #22c55e;
    margin: 0 auto var(--space-lg);
}

.form-success h3 {
    color: #22c55e;
    margin-bottom: var(--space-md);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-section {
    padding: var(--space-4xl) 0;
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* MICRO-INTERACTION: Blog card hover lift and shadow */
.blog-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image-link {
    display: block;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--space-lg);
}

.blog-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.blog-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.blog-title a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--primary-blue);
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.blog-link {
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-link::after {
    content: '\2192';
    transition: transform var(--transition-fast);
}

.blog-link:hover::after {
    transform: translateX(4px);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.cta-banner-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-banner-text {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
}

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

.cta-banner-btn:hover {
    background-color: var(--off-white);
    color: var(--primary-blue);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-md);
    display: block;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-heading {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-address p {
    margin-bottom: var(--space-sm);
}

.footer-address a {
    color: var(--white);
    opacity: 0.9;
}

.footer-address a:hover {
    opacity: 1;
    color: var(--primary-blue-light);
}

.footer-hours p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}

/* MICRO-INTERACTION: Social icon hover effect */
.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: 
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1);
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-service-area {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
/* MICRO-INTERACTION: Fade-in on scroll animation */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.services-grid [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.15s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.2s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.3s; }
.services-grid [data-animate]:nth-child(7) { transition-delay: 0.35s; }

.process-grid [data-animate]:nth-child(1) { transition-delay: 0.1s; }
.process-grid [data-animate]:nth-child(2) { transition-delay: 0.2s; }
.process-grid [data-animate]:nth-child(3) { transition-delay: 0.3s; }
.process-grid [data-animate]:nth-child(4) { transition-delay: 0.4s; }

.blog-grid [data-animate]:nth-child(1) { transition-delay: 0.1s; }
.blog-grid [data-animate]:nth-child(2) { transition-delay: 0.2s; }
.blog-grid [data-animate]:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
/* Focus visible styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0044cc;
        --secondary-blue: #002255;
    }
    
    .primary-cta {
        border: 2px solid var(--white);
    }
}
