/* ===================================
   Team Nature Plumbing - Brand Styles
   Colors: #31a24a (Green) | #4168b2 (Blue) | #FFFFFF (White)
   =================================== */

/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Brand Colors */
    --brand-green: #3a72bc;
    --brand-green-dark: #2d5a96;
    --brand-green-light: #5a8ed0;
    --brand-blue: #3a72bc;
    --brand-blue-dark: #2d5a96;
    --brand-blue-light: #5a8ed0;
    
    /* Functional Colors */
    --primary: var(--brand-blue);
    --secondary: var(--brand-blue);
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --light-gray: #E8EDF2;
    --mid-gray: #94A3B8;
    --dark-gray: #475569;
    --near-black: #13401d;
    
    /* Trust & Emergency Colors */
    --emergency: #DC2626;
    --emergency-dark: #B91C1C;
    --trust-badge: var(--brand-blue);
    
    /* Gradients */
    --gradient-brand: var(--brand-blue);
    --gradient-brand-reverse: var(--brand-blue);
    --gradient-hero: rgba(58, 114, 188, 0.92);
    --gradient-dark: var(--near-black);
    --gradient-subtle: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 40px -10px rgba(58, 114, 188, 0.3);
    --shadow-green: 0 10px 40px -10px rgba(58, 114, 188, 0.3);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--near-black);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Scroll offset for fixed header */
section {
    scroll-margin-top: 90px;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--brand-green);
}

.btn-call {
    background: var(--brand-blue);
    color: var(--white);
    border-color: var(--brand-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(58, 114, 188, 0.7); }
    70% { box-shadow: 0 0 0 25px rgba(58, 114, 188, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 114, 188, 0); }
}

.btn-call:hover {
    background: var(--white);
    color: var(--brand-blue);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-green {
    background: transparent;
    color: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-outline-green:hover {
    background: var(--brand-green);
    color: var(--white);
}

.btn-outline-blue {
    background: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-outline-blue:hover {
    background: var(--brand-blue);
    color: var(--white);
}

.btn-emergency {
    background: var(--emergency);
    color: var(--white);
    border-color: var(--emergency);
    font-weight: 700;
}

.btn-emergency:hover {
    background: var(--emergency-dark);
    border-color: var(--emergency-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 10px;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-transition: var(--transition);
    -moz-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

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

.header-top {
    background: var(--near-black);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.header-link:hover {
    opacity: 1;
    color: var(--brand-green-light);
}

.header-link .icon {
    width: 16px;
    height: 16px;
}

.navbar {
    height: 90px;
    min-height: 90px;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    border-bottom: 1px solid var(--light-gray);
    padding: 0;
    background: transparent;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    height: 100%;
    padding: 0;
}

.logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 90px;
    padding: 0;
    margin: 0;
    overflow: visible;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    padding: 0;
    margin: 0;
    transform: scaleX(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 16px 24px;
    font-size: 18px;
    /* Removed margin-top so logo stays in place */
    font-weight: 500;
    color: var(--brand-blue);
    border-radius: 6px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue);
    background: rgba(58, 114, 188, 0.08);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    align-self: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--near-black);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 160px 0 100px;
    background-image: url('../images/leak2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(45, 90, 150, 0.9) 0%, rgba(90, 142, 208, 0.7) 100%);
}

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

.hero-content {
    max-width: 720px;
    margin-right: -20px;
    margin-left: auto;
    margin-top: 120px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInFromBelow 0.8s ease forwards;
    animation-delay: 0.2s;
}

@keyframes slideInFromBelow {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content * {
    text-align: right !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.2);
    text-align: center !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 560px;
    text-align: center !important;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    left: -100px;
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    color: var(--white);
    width: 100%;
    justify-content: flex-start;
}

.trust-item .icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.trust-item span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: var(--section-padding) 0;
}

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

.section-label {
    display: inline-block;
    color: var(--brand-green);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title span {
    color: var(--brand-green);
}

.section-subtitle {
    font-size: 18px;
    color: var(--mid-gray);
}

/* ===================================
   About Us Section
   =================================== */
.about {
    padding: 0;
    padding-top: 80px;
    background: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.about-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: 60% center;
    display: block;
    opacity: 0.7;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature .icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: var(--brand-green);
    stroke-width: 2;
}

.about-feature h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 8px;
}

.about-feature p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--mid-gray);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-text p {
        font-size: 16px;
    }
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--gradient-subtle);
}

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

.service-card {
    position: relative;
    background: var(--white);
    padding: 40px 32px;
    padding-top: 100px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--brand-blue);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(58, 114, 188, 0.15);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}


.service-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--brand-green);
    display: block;
    margin: auto;
}

.service-title {
    font-size: 20px;
    padding-top: 16px;
    margin-bottom: 12px;
    color: var(--near-black);
}

.service-description {
    font-size: 15px;
    color: var(--mid-gray);
    line-height: 1.6;
}

/* ===================================
   Water Leak Detection Section
   =================================== */
.leak-detection {
    padding: var(--section-padding) 0;
    background: #c5e1f5;
}

.leak-detection-content {
    margin-top: 60px;
}

.leak-intro {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.leak-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Detection Methods */
.detection-methods {
    margin-bottom: 80px;
}

.methods-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--near-black);
    text-align: center;
    margin-bottom: 50px;
}

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

.method-card {
    position: relative;
    background: var(--white);
    padding: 40px 32px;
    padding-top: 100px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--brand-blue);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(58, 114, 188, 0.15);
}

.method-icon {
    width: 72px;
    height: 72px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    margin-bottom: 0;
}

.method-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--brand-blue);
}

.method-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 15px;
}

.method-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* Benefits Section */
.why-choose-leak {
    margin-bottom: 80px;
}

.benefits-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--near-black);
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    stroke: var(--brand-blue);
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* When to Call Section */
.when-to-call {
    background: var(--white);
    padding: 60px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.when-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--near-black);
    text-align: center;
    margin-bottom: 40px;
}

.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.sign-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sign-icon {
    width: 32px;
    height: 32px;
    stroke: var(--brand-blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.sign-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.cta-leak {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}

.cta-leak p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Features / Stats Section
   =================================== */
.features {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--near-black);
    color: white;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(58, 114, 188, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(58, 114, 188, 0.15) 0%, transparent 50%);
}

.features .container {
    position: relative;
    z-index: 2;
}

.features-wrapper {
    display: grid;
    grid-template-columns: auto repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.features-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.features-icon img {
    width: auto;
    height: 280px;
    object-fit: contain;
}

.features-grid {
    display: contents;
}

.feature {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 8px;
}

.feature-title {
    font-size: 20px;
    color: white;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 15px;
    color: white;
}

/* ===================================
   Areas Section
   =================================== */
.areas {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
}

.area-card {
    background: var(--off-white);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    max-width: 400px;
    width: 100%;
}

.area-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.area-card:nth-child(1) .area-title { color: var(--brand-green); }
.area-card:nth-child(2) .area-title { color: var(--brand-green); }
.area-card:nth-child(3) .area-title { 
    color: var(--brand-green);
}

.area-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-icon {
    width: 24px;
    height: 24px;
    stroke: var(--brand-green);
    flex-shrink: 0;
}

.area-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.area-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--dark-gray);
}

.area-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.area-card:nth-child(2) .area-list li::before {
    background: var(--brand-green);
}

.area-card:nth-child(3) .area-list li::before {
    background: var(--brand-green);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #c5e1f5;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-blue);
    transition: var(--transition);
}

.faq-question:hover {
    background: #b0d4ed;
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke: var(--brand-green);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../images/leak1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--brand-green);
    border-radius: 12px;
    stroke: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 17px;
    color: var(--near-black);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--brand-green);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--near-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    background: var(--off-white);
    color: var(--near-black);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(58, 114, 188, 0.1);
}

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

.form-group 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='%23475569' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--brand-blue-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-section:first-child {
    padding-right: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-section > p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--brand-green);
}

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

.footer-links a {
    font-size: 15px;
    color: var(--mid-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-green);
    padding-left: 6px;
}

.footer-emergency {
    font-size: 15px;
    color: var(--mid-gray);
}

.footer-emergency strong {
    display: block;
    color: var(--brand-blue-light);
    margin-bottom: 4px;
}

.footer-emergency a {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-top: 8px;
}

.footer-emergency a:hover {
    color: var(--brand-green);
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--brand-blue-light);
}

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

.footer-bottom p {
    font-size: 14px;
    color: var(--mid-gray);
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        max-width: 90%;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-content {
        margin-left: auto;
        margin-right: -20px;
        text-align: right;
        align-items: flex-end;
        margin-top: 40px;
    }
    
    .hero-content * {
        text-align: right !important;
    }
    
    .hero-buttons {
        justify-content: flex-end;
    }
    
    .hero-buttons .btn {
        margin-right: 0;
    }
    
    .hero-trust {
        align-items: flex-end;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .trust-item {
        width: 100%;
        max-width: none;
    }
    
    .trust-item span {
        text-align: right;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features {
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Tablets */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .logo {
        height: 90px;
        top: 0;
    }
    
    .logo img {
        height: 90px;
    }
    
    .features-wrapper {
        grid-template-columns: auto repeat(2, 1fr);
    }
    
    .features-grid {
        display: contents;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 820px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .logo {
        height: 100%;
        padding: 0;
        margin: 0;
        top: 0;
    }
    
    .logo img {
        height: 85px;
    }
    
    .header-top {
        display: none;
    }
    
    .navbar {
        height: 85px;
        min-height: 85px;
        padding: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 8px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .nav-menu .btn-emergency {
        margin-top: 16px;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero-content {
        margin-right: -20px;
        margin-left: auto;
        padding-right: 40px;
        padding-left: 15px;
        max-width: 100%;
        text-align: right;
        align-items: flex-end;
        margin-top: 20px;
    }
    
    .hero-content * {
        text-align: right !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        justify-content: flex-end;
        align-items: flex-end;
        position: relative;
        left: 0;
    }
    
    .hero-buttons .btn {
        width: auto;
        align-self: flex-end;
        margin-right: 0 !important;
        margin-left: auto;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 16px;
        align-items: flex-end;
        width: 100%;
    }
    
    .trust-item {
        width: 100%;
        max-width: none;
    }
    
    .trust-item span {
        text-align: right;
    }
    
    .trust-item .icon {
        flex-shrink: 0;
    }
    
    /* About Section */
    .about-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .about-feature {
        gap: 16px;
    }
    
    .about-feature .icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .about-feature h3 {
        font-size: 18px;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Features Section */
    .features-wrapper {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .features-icon {
        width: 100%;
        max-width: 300px;
    }
    
    .features-icon img {
        height: 200px;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
    }
    
    .feature {
        text-align: center;
    }
    
    /* Areas Section */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-section:first-child {
        padding-right: 0;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid,
    .signs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Header */
    .navbar {
        height: 70px;
        min-height: 70px;
        padding: 0;
    }
    
    .logo {
        height: 100%;
        padding: 0;
        margin: 0;
        top: 0;
    }
    
    .logo img {
        height: 65px;
    }
    
    .nav-menu {
        width: 90%;
        padding: 80px 24px 32px;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }
    
    .hero-trust {
        margin-top: 40px;
        padding-top: 32px;
    }
    
    .trust-item {
        gap: 10px;
    }
    
    .trust-item span {
        font-size: 13px;
    }
    
    /* About */
    .about-text p {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .about-features {
        margin-top: 32px;
        gap: 20px;
    }
    
    .about-feature {
        gap: 14px;
    }
    
    .about-feature .icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .about-feature h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .about-feature p {
        font-size: 14px;
    }
    
    /* Services */
    .service-card {
        padding: 32px 24px;
        padding-top: 80px;
    }
    
    .service-card::before {
        height: 80px;
    }
    
    .service-card .service-icon {
        width: 72px;
        height: 72px;
        top: 14px;
    }
    
    .service-card .service-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    /* Features */
    .feature {
        padding: 32px 24px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    /* Areas */
    .area-card {
        padding: 28px;
    }
    
    .area-name {
        font-size: 18px;
    }
    
    /* FAQ */
    .faq-question {
        padding: 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0;
        font-size: 14px;
        max-height: 0;
        overflow: hidden;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
        max-height: 300px;
    }
    
    /* Contact */
    .contact-grid {
        gap: 32px;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .contact-info-item {
        padding: 20px;
    }
    
    /* Buttons */
    .btn {
        font-size: 15px;
        padding: 12px 24px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-label {
        font-size: 12.5px;
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-link {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding-top: 24px;
        margin-top: 32px;
        font-size: 13px;
    }
}

/* Extra Small Devices (< 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .service-card,
    .method-card {
        padding: 24px 16px;
        padding-top: 70px;
    }
    
    .service-card::before,
    .method-card::before {
        height: 70px;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        margin-top: 40px;
    }
    
    .navbar {
        height: 70px;
        min-height: 70px;
    }
}

/* ===================================
   Animations
   =================================== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .feature,
    .area-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    
    .feature:nth-child(1) { animation-delay: 0.1s; }
    .feature:nth-child(2) { animation-delay: 0.2s; }
    .feature:nth-child(3) { animation-delay: 0.3s; }
    
    .area-card:nth-child(1) { animation-delay: 0.1s; }
    .area-card:nth-child(2) { animation-delay: 0.2s; }
    .area-card:nth-child(3) { animation-delay: 0.3s; }
}

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

/* ===================================
   Mobile Touch Optimizations
   =================================== */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 14px 28px;
    }
    
    .nav-link {
        min-height: 44px;
    }
    
    .faq-question {
        min-height: 56px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .feature:hover,
    .area-card:hover {
        transform: none;
    }
    
    /* Improve tap highlight */
    a, button {
        -webkit-tap-highlight-color: rgba(58, 114, 188, 0.2);
    }
}

/* ===================================
   Accessibility & Motion
   =================================== */
@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;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .hero-buttons,
    .contact-form-wrapper,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--near-black);
    }
}
