/* 
    Theme: Luxury Stone Shield
    Colors: Forest Green, Emerald, Sandstone, Ivory, Bronze
*/

:root {
    --forest-green: #173D32;
    --deep-emerald: #215B46;
    --sage-green: #829B7B;
    --olive-accent: #A6A66A;
    --warm-sandstone: #D6BE98;
    --natural-beige: #F0E7D8;
    --ivory-white: #FAF8F2;
    --stone-gray: #77766E;
    --charcoal: #292E29;
    --bronze: #B68A55;
    
    --font-heading: 'Georgia', serif; /* Elegant Serif */
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(23, 61, 50, 0.08);
    --shadow-hover: 0 15px 40px rgba(23, 61, 50, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--ivory-white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

p { margin-bottom: 1.2rem; color: var(--stone-gray); }

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

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

.section { padding: 80px 0; }
.bg-light { background-color: var(--natural-beige); }
.bg-dark { background-color: var(--forest-green); color: var(--ivory-white); }
.text-center { text-align: center; }
.text-light h2, .text-light p { color: var(--ivory-white); }
.mt-2 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--deep-emerald);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 91, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--bronze);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--forest-green);
    color: var(--forest-green);
    margin-left: 10px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 248, 242, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--forest-green);
}

.accent-dot { color: var(--bronze); }

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    margin: 0 15px;
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--bronze);
    transition: var(--transition);
}

.nav-link:hover::after { width: 100%; }

.btn-nav {
    background-color: var(--bronze);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    margin-left: 20px;
}

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background-color: var(--forest-green); margin: 5px auto; transition: var(--transition); }

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ivory-white) 0%, var(--natural-beige) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: rgba(182, 138, 85, 0.15);
    color: var(--bronze);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.trust-strip {
    background-color: var(--forest-green);
    color: var(--warm-sandstone);
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.divider { margin: 0 15px; opacity: 0.5; }

/* CSS Only Hero Illustration */
.stone-illustration {
    position: relative;
    height: 400px;
    width: 100%;
}

.layer {
    position: absolute;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.layer-1 {
    width: 80%;
    height: 60%;
    background: linear-gradient(45deg, var(--warm-sandstone), #eaddcf);
    top: 20%;
    left: 10%;
    z-index: 1;
}

.layer-2 {
    width: 60%;
    height: 40%;
    background: linear-gradient(45deg, var(--deep-emerald), var(--forest-green));
    top: 30%;
    left: 20%;
    z-index: 2;
    opacity: 0.9;
}

.layer-3 {
    width: 40%;
    height: 20%;
    background: var(--bronze);
    top: 40%;
    left: 30%;
    z-index: 3;
    opacity: 0.8;
}

.highlight-shape {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--bronze);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 3px solid var(--bronze);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--natural-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--forest-green);
}

.feature-list {
    list-style: none;
    margin-top: 15px;
}

.feature-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--stone-gray);
}

.feature-list li::before {
    content: '•';
    color: var(--bronze);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.check-list li {
    margin-bottom: 10px;
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.check-list li::before {
    content: '✓';
    color: var(--deep-emerald);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-callout {
    background-color: rgba(130, 155, 123, 0.1);
    border-left: 4px solid var(--sage-green);
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* CSS Diagram */
.css-stone-diagram {
    width: 100%;
    height: 300px;
    position: relative;
    perspective: 1000px;
}

.diagram-layer {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: rotateX(10deg);
}

.top { height: 40px; background: var(--bronze); margin-top: 50px; z-index: 3; position: relative;}
.middle { height: 80px; background: var(--warm-sandstone); color: var(--charcoal); z-index: 2; position: relative; top: -10px; width: 82%; }
.bottom { height: 60px; background: var(--stone-gray); z-index: 1; position: relative; top: -20px; width: 84%; }

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

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-number {
    width: 50px;
    height: 50px;
    background-color: var(--bronze);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 20px;
    z-index: 2;
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 2px solid var(--bronze);
}

.timeline-content h3 { color: var(--warm-sandstone); margin-bottom: 0.5rem; }
.timeline-content p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* Cost Table */
.cost-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-soft);
}

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

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

.cost-table tr:hover { background-color: var(--natural-beige); }

/* Showcase Art */
.showcase-card {
    text-align: center;
}

.css-art {
    height: 200px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.patio-art { background: repeating-linear-gradient(45deg, var(--warm-sandstone), var(--warm-sandstone) 10px, #cbb08d 10px, #cbb08d 20px); }
.driveway-art { background: radial-gradient(circle at center, var(--stone-gray), #555); }
.walkway-art { background: linear-gradient(to right, var(--sage-green), var(--deep-emerald)); }

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.comp-col {
    padding: 30px;
    border-radius: 8px;
}

.unsealed { background-color: #f0f0f0; border: 1px solid #ddd; }
.sealed { background-color: rgba(33, 91, 70, 0.05); border: 1px solid var(--deep-emerald); }

.comp-col ul { list-style: none; }
.comp-col li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.unsealed li::before { content: '✕'; color: #999; position: absolute; left: 0; }
.sealed li::before { content: '✓'; color: var(--deep-emerald); position: absolute; left: 0; font-weight: bold; }

.warning-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #ffeeba;
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 { margin-top: 40px; color: var(--forest-green); border-bottom: 2px solid var(--warm-sandstone); padding-bottom: 10px; display: inline-block; }
.article-content h3 { margin-top: 25px; color: var(--deep-emerald); }
.article-content a { color: var(--bronze); text-decoration: underline; }

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

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

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

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

.faq-answer p { padding-bottom: 15px; color: var(--stone-gray); }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.info-item { margin-bottom: 15px; }
.info-item strong { display: block; color: var(--forest-green); margin-bottom: 5px; }
.info-item a { color: var(--bronze); font-weight: 500; }

.hours-box {
    background-color: var(--natural-beige);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.hours-box ul { list-style: none; }
.hours-box li { display: flex; justify-content: space-between; margin-bottom: 5px; }

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: #e0e0e0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, #ccc 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, #ccc 20px);
}

.pin {
    width: 20px;
    height: 20px;
    background: var(--forest-green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.pulse {
    width: 60px;
    height: 60px;
    background: rgba(23, 61, 50, 0.2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

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

/* Footer */
.footer {
    background-color: var(--forest-green);
    color: var(--ivory-white);
    padding: 60px 0 20px;
}

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

.footer h3 { color: var(--warm-sandstone); }
.footer h4 { color: var(--warm-sandstone); font-size: 1.1rem; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--bronze); }
.footer-map-link { display: inline-block; margin-top: 10px; color: var(--bronze) !important; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--bronze);
    width: 0%;
}

/* Back to Top */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--forest-green);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#backToTop:hover { background-color: var(--bronze); }

/* Reveal Animation Classes */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.active-reveal {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--ivory-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }
    
    .menu-toggle { display: block; }
    
    .hero-content, .split-layout, .contact-grid, .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    
    .hero-visual { display: none; } /* Hide complex CSS art on mobile for speed */
}