/* ========================================
   Kaufman's Heating & Air Conditioning
   Inspired by: One Hour, Service Experts, John C. Flood
   Brand: Red #D42427, Blue #1E6ABF, Black #1a1a1a
   ======================================== */

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

:root {
    --red: #D42427;
    --red-dark: #B01E20;
    --red-light: #FFF1F0;
    --blue: #1E6ABF;
    --blue-dark: #17528F;
    --blue-light: #E8F1FB;
    --blue-lighter: #F0F7FF;
    --navy: #0F2B4C;
    --navy-light: #1A3A5C;
    --black: #1a1a1a;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
    --shadow-blue: 0 8px 30px rgba(30,106,191,.25);
    --shadow-red: 0 8px 30px rgba(212,36,39,.2);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: .25s ease;
    --transition-slow: .4s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.15;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red { color: var(--red); }
.text-blue { color: var(--blue); }

/* Scroll-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    padding: 8px 0;
    border-bottom: 3px solid var(--red);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar-phone {
    font-weight: 700;
    color: var(--white) !important;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-phone::before {
    content: '📞';
    font-size: .8rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo .logo-img {
    height: 90px;
    min-height: 90px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    font-style: italic;
    line-height: 1.1;
}

.logo-tagline {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.2;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--blue);
    border-radius: 3px;
    transform: scaleX(0);
    transition: transform var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

.nav-cta {
    margin-left: 16px;
    font-size: .9rem;
    white-space: nowrap;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--gray-900);
    border-radius: 3px;
    transition: all .3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: .95rem;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: .01em;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(30,106,191,.3);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(30,106,191,.4);
    transform: translateY(-2px);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a4a7a 100%);
    color: var(--white);
    padding: 100px 0 120px;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Diagonal bottom edge */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Decorative circles */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,106,191,.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg-accent {
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,36,39,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    max-width: 650px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(255,255,255,.9);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.hero h1 .highlight {
    color: var(--white);
    position: relative;
    display: inline;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--red);
    border-radius: 3px;
    opacity: .7;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.hero-stat-label {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
}

/* ========================================
   Page Hero (sub-pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 70px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.75);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 90px 0;
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Accent line under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 4px;
    margin: 16px auto 0;
}

/* ========================================
   Services Grid (homepage)
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--blue-dark));
    transform: scaleX(0);
    transition: transform .35s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-emergency {
    background: linear-gradient(135deg, var(--red-light), var(--white));
    border-color: rgba(212,36,39,.2);
}

.service-card-emergency::before {
    background: linear-gradient(90deg, var(--red), var(--red-dark));
}

.service-card-emergency:hover {
    border-color: transparent;
}

.service-icon {
    margin-bottom: 20px;
    color: var(--blue);
    display: flex;
    justify-content: center;
}

.service-icon-bg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .35s ease;
}

.service-card:hover .service-icon-bg {
    background: var(--blue);
    transform: scale(1.1);
}

.service-card:hover .service-icon-bg svg {
    stroke: var(--white);
}

.service-card-emergency .service-icon-bg {
    background: var(--red-light);
}

.service-card-emergency:hover .service-icon-bg {
    background: var(--red);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: .95rem;
    margin-bottom: 18px;
    color: var(--gray-600);
    line-height: 1.6;
}

.service-link {
    font-weight: 700;
    font-size: .9rem;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .25s ease;
}

.service-link:hover {
    gap: 8px;
}

.service-card-emergency .service-link {
    color: var(--red);
}

/* ========================================
   Service Detail (services page)
   ======================================== */
.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-detail-text h2 {
    font-size: 1.85rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.service-detail-text h2::after {
    display: none;
}

.service-detail-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

.service-list li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: .95rem;
    color: var(--gray-700);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background: var(--blue-light);
    border-radius: 50%;
}

.service-list li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 11px;
    color: var(--blue);
    font-weight: 800;
    font-size: .75rem;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--blue-lighter), var(--blue-light));
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 40px;
    border: 2px dashed var(--gray-400);
    color: var(--gray-600);
    font-size: .9rem;
    font-weight: 600;
}

.placeholder-image.large {
    padding: 100px 40px;
}

/* ========================================
   Why Choose Us
   ======================================== */
.why-us {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-title::after {
    background: linear-gradient(90deg, var(--red), rgba(255,255,255,.5));
}

.why-us .section-subtitle {
    color: rgba(255,255,255,.6);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 10px;
}

.why-item {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    transition: all .35s ease;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.why-item:hover {
    background: rgba(255,255,255,.08);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.15);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.why-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.why-item p {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content .hero-actions {
    justify-content: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-content h2::after {
    display: none;
}

.cta-content p {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.cta-section .btn-primary:hover {
    background: rgba(255,255,255,.95);
    color: var(--blue-dark);
}

.cta-section .btn-outline {
    border-color: rgba(255,255,255,.5);
}

/* ========================================
   Contact CTA (homepage)
   ======================================== */
.contact-cta {
    background: var(--gray-100);
}

.contact-cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-cta-text h2 {
    font-size: 1.85rem;
    margin-bottom: 10px;
}

.contact-cta-text h2::after {
    display: none;
}

.contact-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* ========================================
   About Page
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.85rem;
    margin-bottom: 20px;
}

.about-text h2::after {
    display: none;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.value-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all .35s ease;
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2 {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.contact-form-wrapper h2::after {
    display: none;
}

.contact-form-wrapper > p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--gray-900);
    transition: all var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30,106,191,.1);
}

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

.form-submit {
    align-self: flex-start;
}

/* Contact Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.contact-info-phone {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
}

.contact-info-card address {
    font-style: normal;
    color: var(--gray-700);
    line-height: 1.7;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue);
}

/* Map */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Service Areas
   ======================================== */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.area-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--blue);
    transform: scaleY(0);
    transition: transform .35s ease;
    transform-origin: bottom;
}

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

.area-card:hover::before {
    transform: scaleY(1);
}

.area-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
}

.area-card p {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   Emergency Banner
   ======================================== */
.emergency-banner {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    border-radius: 50%;
}

.emergency-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.emergency-content {
    position: relative;
    z-index: 1;
}

.emergency-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.emergency-content h2::after {
    display: none;
}

.emergency-content p {
    color: rgba(255,255,255,.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.emergency-banner .btn-primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.emergency-banner .btn-primary:hover {
    background: rgba(255,255,255,.95);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    padding: 70px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-name {
    font-size: 1.4rem;
    color: var(--white);
    display: block;
}

.footer-logo .logo-tagline {
    font-size: .72rem;
    display: block;
}

.footer-about p {
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: rgba(255,255,255,.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--white);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-2px);
}

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

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.footer ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: all var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: rgba(255,255,255,.4);
}

.footer-contact a {
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    text-align: center;
    font-size: .85rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 24px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-text {
        display: none;
    }

    .top-bar-contact {
        width: 100%;
        justify-content: center;
    }

    .logo .logo-img {
        height: 70px;
        min-height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 20px;
        border-top: 1px solid var(--gray-200);
        flex-direction: column;
        align-items: center;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        justify-content: center;
        width: 100%;
    }

    .hero {
        padding: 60px 0 80px;
        min-height: auto;
    }

    .hero::after {
        height: 40px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .page-hero {
        padding: 50px 0 70px;
    }

    .page-hero::after {
        height: 30px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-content,
    .service-detail-content.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }

    .service-detail-content .service-detail-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-cta-grid {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .contact-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-cta-actions .btn {
        justify-content: center;
    }

    .why-us::before,
    .why-us::after {
        height: 30px;
    }

    .why-grid,
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }
}

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

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .logo-name {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========================================
   Dark Mode
   ======================================== */
.dark-mode {
    --white: #121820;
    --gray-100: #1a2230;
    --gray-200: #243040;
    --gray-300: #2e3e50;
    --gray-400: #3d5060;
    --gray-500: #6c8090;
    --gray-600: #9aacbc;
    --gray-700: #b8c8d8;
    --gray-800: #d0dce8;
    --gray-900: #e8eef4;
    --black: #f0f4f8;
    --blue-light: #15253a;
    --blue-lighter: #101e2e;
    --red-light: #2a1618;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.45);
}

/* Header in dark mode */
.dark-mode .header {
    background: #121820;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.dark-mode .nav-toggle span {
    background: var(--gray-800);
}

.dark-mode .nav {
    background: #121820;
    border-top-color: rgba(255,255,255,.06);
}

/* Top bar */
.dark-mode .top-bar {
    background: #080e16;
}

/* Logo — swap light/dark versions */
.logo-dark {
    display: none;
}

.dark-mode .logo-light {
    display: none;
}

.dark-mode .logo-dark {
    display: block;
}

/* Service cards */
.dark-mode .service-card {
    background: #1a2230;
    border-color: rgba(255,255,255,.06);
}

.dark-mode .service-card:hover {
    border-color: transparent;
}

.dark-mode .service-card-emergency {
    background: linear-gradient(135deg, #2a1618, #1a2230);
    border-color: rgba(212,36,39,.15);
}

.dark-mode .service-icon-bg {
    background: #15253a;
}

.dark-mode .service-card:hover .service-icon-bg {
    background: var(--blue);
}

.dark-mode .service-card-emergency .service-icon-bg {
    background: #2a1618;
}

.dark-mode .service-card-emergency:hover .service-icon-bg {
    background: var(--red);
}

/* Why-us stays dark in both modes */

/* Value cards & area cards */
.dark-mode .value-card,
.dark-mode .area-card,
.dark-mode .contact-info-card {
    background: #1a2230;
    border-color: rgba(255,255,255,.06);
}

/* Contact CTA */
.dark-mode .contact-cta-grid {
    background: #1a2230;
    border-color: rgba(255,255,255,.06);
}

/* Form inputs */
.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
    background: #1a2230;
    border-color: rgba(255,255,255,.1);
    color: var(--gray-900);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group select:focus,
.dark-mode .form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(30,106,191,.2);
}

/* Placeholder images */
.dark-mode .placeholder-image {
    background: linear-gradient(135deg, #15253a, #1a2230);
    border-color: rgba(255,255,255,.1);
    color: var(--gray-600);
}

/* Footer */
.dark-mode .footer {
    background: #080e16;
}

/* Map iframe */
.dark-mode .map-container iframe {
    filter: invert(.9) hue-rotate(180deg);
}

/* Scroll-in animations in dark mode */
.dark-mode .service-list li::before {
    background: #15253a;
}

/* Force light text on always-dark-bg sections */
.dark-mode .hero {
    color: #f0f4f8;
}

.dark-mode .hero h1,
.dark-mode .hero h1 .highlight {
    color: #f0f4f8;
}

.dark-mode .hero-stat-number {
    color: #f0f4f8;
}

.dark-mode .hero-subtitle {
    color: rgba(255,255,255,.8);
}

.dark-mode .hero-stat-label {
    color: rgba(255,255,255,.6);
}

.dark-mode .page-hero h1 {
    color: #f0f4f8;
}

.dark-mode .page-hero p {
    color: rgba(255,255,255,.75);
}

.dark-mode .why-us,
.dark-mode .why-us .section-title {
    color: #f0f4f8;
}

.dark-mode .why-us .section-subtitle {
    color: rgba(255,255,255,.6);
}

.dark-mode .cta-content h2 {
    color: #f0f4f8;
}

.dark-mode .cta-content p {
    color: rgba(255,255,255,.85);
}

/* Buttons on dark backgrounds */
.dark-mode .btn-primary {
    color: #f0f4f8;
}

.dark-mode .btn-primary:hover {
    color: #f0f4f8;
}

.dark-mode .btn-red {
    color: #f0f4f8;
}

.dark-mode .btn-red:hover {
    color: #f0f4f8;
}

.dark-mode .btn-outline {
    color: #f0f4f8;
    border-color: rgba(255,255,255,.6);
}

.dark-mode .btn-outline:hover {
    background: #f0f4f8;
    color: var(--blue);
    border-color: #f0f4f8;
}

/* CTA section buttons */
.dark-mode .cta-section .btn-primary {
    background: #f0f4f8;
    color: var(--blue);
    border-color: #f0f4f8;
}

.dark-mode .cta-section .btn-primary:hover {
    background: rgba(240,244,248,.9);
    color: var(--blue-dark);
}

.dark-mode .cta-section .btn-outline {
    border-color: rgba(255,255,255,.5);
}

/* Footer text */
.dark-mode .footer-logo .logo-name {
    color: #f0f4f8;
}

.dark-mode .footer h4 {
    color: #f0f4f8;
}

.dark-mode .footer-social a:hover {
    color: #f0f4f8;
}

.dark-mode .footer-links a:hover,
.dark-mode .footer-services a:hover {
    color: #f0f4f8;
}

.dark-mode .footer-contact a:hover {
    color: #f0f4f8;
}

/* Nav links in dark mode */
.dark-mode .nav-link {
    color: var(--gray-800);
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: #f0f4f8;
}

/* Area card titles — navy is invisible on dark cards */
.dark-mode .area-card h3 {
    color: #5ba3e6;
}

/* Service card headings */
.dark-mode .service-card h3 {
    color: var(--gray-900);
}

/* Emergency banner — force light text and button colors */
.dark-mode .emergency-banner {
    background: linear-gradient(135deg, #8b1a1c 0%, #6b1416 100%);
}

.dark-mode .emergency-content h2 {
    color: #f0f4f8;
}

.dark-mode .emergency-content p {
    color: rgba(255,255,255,.9);
}

.dark-mode .emergency-banner .btn-primary {
    background: #f0f4f8;
    color: var(--red);
    border-color: #f0f4f8;
}

.dark-mode .emergency-banner .btn-primary:hover {
    background: rgba(240,244,248,.9);
}

/* Diagonal clip-path shapes — must match dark body bg */
.dark-mode .hero::after,
.dark-mode .page-hero::after {
    background: #121820;
}

.dark-mode .why-us::before,
.dark-mode .why-us::after {
    background: #121820;
}

/* Alt-bg sections */
.dark-mode .alt-bg {
    background: #0f1820;
}

/* Value card headings */
.dark-mode .value-card h3 {
    color: var(--gray-900);
}

/* Service detail headings */
.dark-mode .service-detail-text h2 {
    color: var(--gray-900);
}

/* Contact info card text */
.dark-mode .contact-info-card h3 {
    color: var(--gray-900);
}

/* Section titles and subtitles */
.dark-mode .section-title {
    color: var(--gray-900);
}

/* Service link color */
.dark-mode .service-link {
    color: #5ba3e6;
}

/* btn-outline-dark in dark mode */
.dark-mode .btn-outline-dark {
    color: #5ba3e6;
    border-color: #5ba3e6;
}

.dark-mode .btn-outline-dark:hover {
    background: var(--blue);
    color: #f0f4f8;
    border-color: var(--blue);
}

/* ========================================
   Dark Mode Toggle Button
   ======================================== */
.theme-toggle {
    background: none;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-600);
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

/* Show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun {
    display: none;
}

.dark-mode .theme-toggle .icon-sun {
    display: block;
}

.dark-mode .theme-toggle .icon-moon {
    display: none;
}
