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

:root {
    --primary: #0A3151;
    --primary-light: #164368;
    --secondary: #2E7EB8;
    --secondary-hover: #26699a;
    --accent: #F1F5F9;
    --slate: #334155;
    --grey: #64748b;
    --light-grey: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--slate);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 126, 184, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 126, 184, 0.5);
}

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

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

/* Sticky Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 49, 81, 0.85), rgba(10, 49, 81, 0.85)), url('../images/clarksville-hvac-tech-indoor.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

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

    .nav-links {
        display: none;
    }

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

/* Sticky CTA Mobile */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 15px;
    font-weight: 800;
    z-index: 9999;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
    }
}

/* Emergency Banner */
.emergency-banner {
    background: #e74c3c;
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sub-Page Specific Layouts */
.page-header {
    background: var(--accent);
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: left;
}

.page-header h1 {
    margin-bottom: 10px;
    font-size: 2.8rem;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 20px;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

.breadcrumbs span {
    color: var(--light-grey);
}

/* Service & Location Detail Modules */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.content-body h2 {
    font-size: 2rem;
    margin-top: 40px;
    color: var(--primary);
}

.content-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--slate);
}

.cta-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid var(--accent);
}

.sidebar-card h3 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.sidebar-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-weight: 500;
}

.sidebar-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
}

/* Feature List */
.feature-list {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary);
}

/* FAQ Accordion for Sub-pages */
.sub-faq {
    background: var(--light-grey);
    padding: 100px 0;
    margin-top: 80px;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 24px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 1.1rem;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--grey);
    line-height: 1.7;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

/* Blog Article Layout */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--accent);
    color: var(--grey);
}

/* Overview Card Styles (Services & Blog) */
.service-card,
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-image img,
.post-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2,
.card-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-content ul {
    margin: 20px 0;
}

.card-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.card-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
}

.post-card .date {
    font-size: 0.85rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.featured-post {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 50px;
}

.featured-post h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.featured-post p {
    color: var(--accent);
    font-size: 1.2rem;
}

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

@media (max-width: 768px) {
    .featured-post {
        grid-column: span 1;
    }
}