/* 
    Theme: Premium Forest & Gold 
    Business: Timely Home Inspection, LLC
*/

:root {
    --forest-green: #123C32;
    --emerald-green: #245C48;
    --dark-green: #0B2923;
    --antique-gold: #D6A65C;
    --warm-ivory: #F5F1E8;
    --soft-cream: #EAE3D5;
    --earth-brown: #70513C;
    --pure-white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-ivory);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--forest-green);
}

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

p { margin-bottom: 1rem; }

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

ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.bg-white { background-color: var(--pure-white); }
.bg-cream { background-color: var(--soft-cream); }
.bg-ivory { background-color: var(--warm-ivory); }
.bg-dark { background-color: var(--dark-green); color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--antique-gold);
    color: var(--dark-green);
}

.btn-gold:hover {
    background-color: #c4954d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 166, 92, 0.4);
}

.btn-outline {
    border-color: var(--antique-gold);
    color: var(--antique-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--antique-gold);
    color: var(--dark-green);
}

.full-width { width: 100%; }

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 60, 50, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--antique-gold);
    letter-spacing: 0.5px;
}

.desktop-nav a {
    color: var(--pure-white);
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.95rem;
}

.desktop-nav a:hover { color: var(--antique-gold); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--antique-gold);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--dark-green);
    padding: 20px;
    text-align: center;
}

.mobile-menu a {
    display: block;
    color: var(--pure-white);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--dark-green) 100%);
    color: var(--pure-white);
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.05;
    background-image: radial-gradient(var(--antique-gold) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

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

.badge {
    display: inline-block;
    background: rgba(214, 166, 92, 0.2);
    color: var(--antique-gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid var(--antique-gold);
}

.hero-section h1 {
    color: var(--pure-white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--soft-cream);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.trust-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.icon-box { font-size: 1.5rem; }

/* Stats Section */
.stats-section {
    background: var(--pure-white);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    color: var(--antique-gold);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--forest-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Services Grid */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--antique-gold);
    margin: 15px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--pure-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--antique-gold);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--soft-cream);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
}

/* CSS Icons (Abstract Shapes) */
.css-icon-termite::after { content: '🐜'; font-size: 24px; position: absolute; top: 10px; left: 13px; }
.css-icon-bug::after { content: '🪲'; font-size: 24px; position: absolute; top: 10px; left: 13px; }
.css-icon-house::after { content: '🏠'; font-size: 24px; position: absolute; top: 10px; left: 13px; }
.css-icon-clipboard::after { content: '📋'; font-size: 24px; position: absolute; top: 10px; left: 13px; }
.css-icon-search::after { content: '🔍'; font-size: 24px; position: absolute; top: 10px; left: 13px; }
.css-icon-handshake::after { content: '🤝'; font-size: 24px; position: absolute; top: 10px; left: 13px; }

.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card ul { margin-top: 15px; padding-left: 20px; }
.service-card li { list-style-type: disc; margin-bottom: 5px; color: #555; font-size: 0.9rem; }

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--soft-cream);
    top: 0;
    bottom: 0;
    left: 20px; /* Mobile alignment */
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-bottom: 30px;
}

.timeline-number {
    position: absolute;
    width: 40px;
    height: 40px;
    right: auto;
    left: 0; /* Mobile alignment */
    background-color: var(--antique-gold);
    color: var(--dark-green);
    border-radius: 50%;
    z-index: 10;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    box-shadow: 0 0 0 4px var(--soft-cream);
}

.timeline-content {
    padding: 20px;
    background: var(--pure-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--emerald-green);
}

/* Article Styling */
.article-container {
    max-width: 800px;
    background: var(--pure-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.article-header h2 { font-size: 2.2rem; color: var(--forest-green); }
.article-meta { color: #888; font-size: 0.9rem; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.article-body h3 { color: var(--emerald-green); margin-top: 30px; font-size: 1.4rem; }
.article-body ul, .article-body ol { margin-left: 20px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--emerald-green); font-weight: 600; text-decoration: underline; }

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: var(--soft-cream);
    border-radius: var(--radius-md);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--forest-green);
    color: var(--antique-gold);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Comparison Table */
.table-responsive { overflow-x: auto; }
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pure-white);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: var(--forest-green);
    color: var(--pure-white);
}

.comparison-table tr:nth-child(even) { background-color: #f9f9f9; }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border-bottom: 1px solid #ddd; }

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest-green);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--antique-gold);
}

.faq-question.active::after { content: '-'; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}

.faq-answer p { padding-bottom: 20px; color: #555; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--pure-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--soft-cream);
}

.stars { color: var(--antique-gold); margin-bottom: 15px; letter-spacing: 2px; }
.author { margin-top: 15px; font-weight: 700; color: var(--forest-green); font-size: 0.9rem; }

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 { color: var(--pure-white); }
.info-item { margin-bottom: 15px; font-size: 1.1rem; }

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form h3 { color: var(--antique-gold); margin-bottom: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: #ccc; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: var(--pure-white);
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--antique-gold);
}

/* Footer */
footer {
    background: #081d19;
    color: #aaa;
    padding-top: 60px;
    border-top: 4px solid var(--antique-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: var(--pure-white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--antique-gold); }

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

/* Utilities */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--antique-gold);
    color: var(--dark-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--antique-gold);
    width: 0%;
    z-index: 1001;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

/* Responsive Media Queries */
@media (min-width: 768px) {
    .timeline::after { left: 50%; }
    .timeline-item { width: 50%; }
    .timeline-item:nth-child(odd) { left: 0; }
    .timeline-item:nth-child(even) { left: 50%; }
    .timeline-number { left: 50%; transform: translateX(-50%); }
    .timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 4px solid var(--emerald-green); }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .mobile-menu.active { display: block; }
    .hero-section h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; }
    .timeline-number { left: 0; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(even) .timeline-content { border-left: 4px solid var(--emerald-green); border-right: none; }
}