/* ============================================
   PLUMBER ALLEN - MAIN STYLESHEET
   Version: 1.0
   PRD Version: 2026-02-06
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Brand Colors)
   Per PRD: primary_dark_blue, accent_light_blue, 
   neutral_white, secondary_gray
   ============================================ */
:root {
    /* Brand Colors */
    --primary-dark-blue: #1B313F;
    --accent-light-blue: #22A1D9;
    --neutral-white: #FFFFFF;
    --secondary-gray: #F8F8F8;
    
    /* Extended Palette */
    --accent-light-blue-dark: #1a8ac0;
    --accent-light-blue-light: #4db5e3;
    --text-dark: #1B313F;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-heading: 'Roboto Slab', 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;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 200ms ease-out;
    --transition-slow: 300ms ease-out;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Header Height */
    --header-height: 80px;
    --header-height-scrolled: 64px;
}

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

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

/* 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(--neutral-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-light-blue);
    outline-offset: 2px;
}

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

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

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

/* ============================================
   BUTTONS
   Per PRD: Primary CTA uses accent_light_blue
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* MICRO-INTERACTION: CTA button hover scale-up 1.05x and color shift */
.btn-primary {
    background-color: var(--accent-light-blue);
    color: var(--neutral-white);
    border-color: var(--accent-light-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-light-blue-dark);
    border-color: var(--accent-light-blue-dark);
    transform: scale(1.05);
    color: var(--neutral-white);
}

/* MICRO-INTERACTION: Border glow on focus */
.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(34, 161, 217, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-light-blue);
    border-color: var(--accent-light-blue);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--accent-light-blue);
    color: var(--neutral-white);
    transform: scale(1.05);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER / NAVIGATION
   Per PRD: Clean minimalist header with logo on left
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--neutral-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

/* MICRO-INTERACTION: Header scroll shrink */
.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header.scrolled .header-container {
    height: var(--header-height-scrolled);
}

.header.scrolled .logo {
    max-height: 40px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    transition: height var(--transition-normal);
}

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

.logo {
    max-height: 50px;
    width: auto;
    transition: max-height var(--transition-normal);
}

.logo-desktop {
    display: none;
}

.logo-mobile {
    display: block;
    max-height: 40px;
}

@media (min-width: 768px) {
    .logo-desktop {
        display: block;
    }
    .logo-mobile {
        display: none;
    }
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--primary-dark-blue);
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

/* MICRO-INTERACTION: Nav link underline animation from center */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-light-blue);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

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

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-light-blue);
}

/* MICRO-INTERACTION: Animated phone icon pulse */
.phone-icon-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-light-blue);
    color: var(--neutral-white);
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 161, 217, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 161, 217, 0);
    }
}

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

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 101;
}

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

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark-blue);
    transition: all var(--transition-normal);
    margin: 3px 0;
}

/* MICRO-INTERACTION: Hamburger transforms to X */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background-color: var(--neutral-white);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
    overflow-y: auto;
}

/* MICRO-INTERACTION: Mobile menu slides in from right */
.nav-mobile.open {
    right: 0;
}

.nav-list-mobile {
    list-style: none;
    padding: var(--space-xl);
}

.nav-link-mobile {
    display: block;
    padding: var(--space-md) 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-dark-blue);
    border-bottom: 1px solid var(--border-color);
}

.nav-link-mobile:hover,
.nav-link-mobile:focus {
    color: var(--accent-light-blue);
}

.nav-mobile-cta {
    margin-top: var(--space-xl);
}

.btn-mobile-call {
    width: 100%;
}

/* ============================================
   HERO SECTION
   Per PRD: Dominant high-quality professional image
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* MICRO-INTERACTION: Subtle parallax scrolling effect */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 49, 63, 0.7) 0%,
        rgba(27, 49, 63, 0.8) 50%,
        rgba(27, 49, 63, 0.9) 100%
    );
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    color: var(--neutral-white);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    color: var(--neutral-white);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.375rem;
    }
}

.hero-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--neutral-white);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    background-color: rgba(34, 161, 217, 0.2);
    border-radius: var(--radius-md);
}

.trust-phone {
    color: var(--accent-light-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.trust-phone:hover {
    color: var(--accent-light-blue-light);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

/* ============================================
   SECTION DIVIDER
   Per PRD: Subtle section dividers that fade in on scroll
   ============================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--border-color) 20%,
        var(--border-color) 80%,
        transparent 100%
    );
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.section-divider.visible {
    opacity: 1;
}

/* ============================================
   SERVICES SECTION
   Per PRD: Grid of service cards with icons
   ============================================ */
.services {
    padding: var(--space-3xl) 0;
    background-color: var(--secondary-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

/* MICRO-INTERACTION: Service card lift on hover */
.service-card {
    background-color: var(--neutral-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* MICRO-INTERACTION: Service icon bouncy spring animation on hover */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon,
.service-card:focus .service-icon {
    transform: translateY(-5px);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark-blue);
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Highlight card for emergency */
.service-card-highlight {
    border: 2px solid var(--accent-light-blue);
    background: linear-gradient(135deg, var(--neutral-white) 0%, rgba(34, 161, 217, 0.05) 100%);
}

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

/* ============================================
   ABOUT SECTION
   Per PRD: Two-column layout with image and text
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background-color: var(--neutral-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    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;
    aspect-ratio: 4/3;
    object-fit: cover;
}

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

.about-text {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.about-features {
    list-style: none;
    margin: var(--space-xl) 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-dark);
    font-weight: 500;
}

.about-features svg {
    color: var(--accent-light-blue);
    flex-shrink: 0;
}

/* ============================================
   PROCESS SECTION
   Per PRD: Clear linear stepped visual flow
   ============================================ */
.process {
    padding: var(--space-3xl) 0;
    background-color: var(--secondary-gray);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    list-style: none;
    counter-reset: process-counter;
}

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

/* MICRO-INTERACTION: Process steps fade-in and slide-up on scroll */
.process-step {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--neutral-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
}

.process-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-light-blue);
    color: var(--neutral-white);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
}

.process-title {
    color: var(--primary-dark-blue);
    margin-bottom: var(--space-sm);
}

.process-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

/* ============================================
   TESTIMONIALS SECTION
   Per PRD: Grid of testimonial cards with quote icon
   ============================================ */
.testimonials {
    padding: var(--space-3xl) 0;
    background-color: var(--neutral-white);
}

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

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

.testimonial-card {
    position: relative;
    background-color: var(--secondary-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    padding-top: var(--space-2xl);
    border: none;
    margin: 0;
}

/* MICRO-INTERACTION: Quote mark texture as background overlay */
.testimonial-quote-icon {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.testimonial-quote-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(49%) sepia(89%) saturate(391%) hue-rotate(158deg) brightness(93%) contrast(91%);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-dark-blue);
    font-style: normal;
}

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

/* ============================================
   BLOG PREVIEW SECTION
   Per PRD: Grid of blog preview cards
   ============================================ */
.blog-preview {
    padding: var(--space-3xl) 0;
    background-color: var(--secondary-gray);
}

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

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

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

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

.blog-image-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-image {
    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-title {
    font-size: 1.125rem;
    color: var(--primary-dark-blue);
    margin-bottom: var(--space-sm);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    font-weight: 600;
    color: var(--accent-light-blue);
}

.blog-link:hover {
    color: var(--accent-light-blue-dark);
    text-decoration: underline;
}

/* ============================================
   CONTACT SECTION
   Per PRD: Clean well-aligned form with clear labels
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
    background-color: var(--neutral-white);
}

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

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

.contact-info .section-title {
    text-align: left;
}

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

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

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

.contact-item svg {
    color: var(--accent-light-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.contact-item a,
.contact-item span {
    color: var(--text-muted);
    display: block;
}

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

.emergency-hours {
    color: var(--accent-light-blue) !important;
    font-weight: 500;
}

.contact-form-wrapper {
    background-color: var(--secondary-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

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

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form label {
    font-weight: 500;
    color: var(--primary-dark-blue);
    font-size: 0.9375rem;
}

.required {
    color: #EF4444;
}

/* MICRO-INTERACTION: Input field focus border glow */
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--neutral-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-light-blue);
    box-shadow: 0 0 0 4px rgba(34, 161, 217, 0.15);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.error-message {
    color: #EF4444;
    font-size: 0.8125rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

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

/* ============================================
   FOOTER
   Per PRD: Simple clean layout with dark blue background
   ============================================ */
.footer {
    background-color: var(--primary-dark-blue);
    color: var(--neutral-white);
    padding-top: var(--space-3xl);
}

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

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

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

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

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

/* MICRO-INTERACTION: Footer links color shift on hover */
.footer-links a:hover {
    color: var(--accent-light-blue);
}

.footer-address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-address a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-hours {
    color: rgba(255, 255, 255, 0.8);
}

.emergency-text {
    color: var(--accent-light-blue);
    font-weight: 500;
    margin-top: var(--space-sm);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .hero {
        min-height: calc(100vh - var(--header-height));
        padding-top: calc(var(--header-height) + var(--space-xl));
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
