/* ============================================================
   Aurora HVAC Services - LIGHT THEME Design System
   Primary: Deep Blue (#1E40AF) + Electric Orange (#F97316)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Outfit:wght@700;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --bg: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary: #1E40AF;
    --primary-dark: #1E3A8A;
    --accent: #F97316;
    --accent-dark: #EA580C;
    --text: #0F172A;
    --text-muted: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(30, 64, 175, 0.12);
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(30, 64, 175, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, -3%);
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

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

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.section-padding {
    padding: 100px 0;
}

/* --- Grid System --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

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

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

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

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

@media (max-width: 600px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- Glassmorphism (Light) --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(30, 64, 175, 0.25);
    box-shadow: 0 12px 48px rgba(30, 64, 175, 0.1);
    transform: translateY(-4px);
}

/* --- 3D Card Hover --- */
.card-3d {
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.12);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Header (Light) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.08);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

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

header img {
    height: 45px;
    width: auto;
}

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

.nav-menu a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-size: 1.4rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }

    header .btn-primary {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30, 64, 175, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
    z-index: 0;
}

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

.hero h1 span {
    color: var(--accent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.15);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* --- Trust Grid --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.trust-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
details.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

details.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    transition: var(--transition);
    color: var(--text);
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary i {
    color: var(--accent);
    font-size: 0.9rem;
    transition: transform 0.3s;
}

details.faq-item[open] summary i {
    transform: rotate(90deg);
}

details.faq-item[open] summary {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(30, 64, 175, 0.03);
}

details.faq-item .faq-body {
    padding: 20px 24px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- Mobile CTA Banner --- */
#mobile-cta-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    padding: 14px 20px;
    text-align: center;
}

#mobile-cta-banner a {
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 992px) {
    #mobile-cta-banner {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }
}

/* --- Footer (Light) --- */
footer {
    background: #0F172A;
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    padding: 50px 0;
    color: #CBD5E1;
}

footer h4 {
    color: var(--accent);
}

footer p,
footer a {
    color: #94A3B8;
}

footer a:hover {
    color: #F1F5F9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

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

footer h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

footer p,
footer a {
    font-size: 0.9rem;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Selection --- */
::selection {
    background: var(--primary);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}