/* --- THE DIVINE BLUEPRINT: CSS --- */

/* --- Foundational Elements & Variables --- */
:root {
    --deep-charcoal: #222831;
    --brushed-steel: #EEEEEE;
    --trust-blue: #00ADB5;
    --warm-amber: #FFC400;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--deep-charcoal);
    color: var(--brushed-steel);
    line-height: 1.6;
    font-size: 16px;
    /* Base font size */
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 6rem 0;
}

/* --- SECTION 1: HERO --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(34, 40, 49, 0.8), rgba(34, 40, 49, 0.8)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 1rem;
    /* Padding for mobile */
}

#hero .sub-headline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-family: var(--font-body);
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background-color: var(--trust-blue);
    color: white;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid var(--trust-blue);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--trust-blue);
}

/* --- SECTION 2: COVENANT --- */
#covenant {
    background-color: var(--brushed-steel);
    color: var(--deep-charcoal);
}

#covenant .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

#covenant h2 {
    margin: 1rem 0;
    color: var(--deep-charcoal);
    font-size: 1.2rem;
}

.icon-amber {
    font-size: 3rem;
    color: var(--warm-amber);
}

/* --- SECTION 3: PILLARS --- */
#pillars {
    background-color: var(--deep-charcoal);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    height: 400px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(34, 40, 49, 0.9) 0%, rgba(34, 40, 49, 0) 50%);
    transition: opacity 0.4s ease;
}

.pillar-card:hover {
    transform: scale(1.03);
}

.pillar-card:hover::before {
    opacity: 0.7;
}

.pillar-content {
    padding: 2rem;
    z-index: 2;
    width: 100%;
}

#pillar-water {
    background-image: url('images/service-water-heater.jpg');
}

#pillar-drain {
    background-image: url('images/service-drain.jpg');
}

#pillar-gas {
    background-image: url('images/service-gas-fire.jpg');
}

/* --- SECTION 4: ORACLE --- */
#oracle {
    background-color: var(--deep-charcoal);
    text-align: center;
}

#oracle .container {
    max-width: 800px;
}

.slider-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    min-height: 250px;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.slide.active {
    display: block;
    position: relative;
    animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#oracle blockquote {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--brushed-steel);
}

#oracle .author {
    font-size: 1rem;
    color: var(--trust-blue);
}

#oracle .stars {
    color: var(--warm-amber);
    margin-top: 0.5rem;
}

.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.slider-btn {
    background: none;
    border: 2px solid var(--trust-blue);
    color: var(--trust-blue);
    font-size: 1rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background-color: var(--trust-blue);
    color: white;
}

.slider-dots {
    display: flex;
    margin: 0 1.5rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active-dot {
    background-color: var(--trust-blue);
}

/* --- SECTION 5: LITANY --- */
#litany {
    background-color: var(--brushed-steel);
    color: var(--deep-charcoal);
}

#litany h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.service-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

#litany ul {
    list-style: none;
}

#litany li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

#litany li i {
    color: var(--trust-blue);
    margin-right: 0.75rem;
}

/* --- SECTION 6: ALTAR --- */
#altar {
    background-color: var(--trust-blue);
    color: white;
    padding: 0;
}

.altar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.altar-info {
    padding: 6rem 4rem;
}

.altar-info h2 {
    color: var(--deep-charcoal);
}

.altar-info p {
    margin-bottom: 1rem;
}

.altar-info .company-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2rem;
}

.altar-info .hours {
    margin: 2rem 0;
}

.cta-button-final {
    display: inline-block;
    background-color: white;
    color: var(--deep-charcoal);
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid white;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button-final:hover {
    background-color: transparent;
    color: white;
}

.altar-map iframe {
    filter: grayscale(100%) invert(90%) contrast(80%);
    height: 100%;
    min-height: 500px;
}

/* --- FOOTER --- */
footer {
    background-color: #1a1f25;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

/*
=================================================================
    RESPONSIVE REFINEMENTS - THE ARCHITECTURE FOR ALL DEVICES
=================================================================
*/

/* --- TABLET & SMALLER DESKTOPS (max-width: 992px) --- */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Stack 3-column layouts */
    #covenant .container,
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        gap: 2rem;
    }

    /* Stack final contact section */
    .altar-layout {
        grid-template-columns: 1fr;
    }

    .altar-map iframe {
        height: 400px;
        min-height: auto;
    }

    .altar-info {
        padding: 4rem 3rem;
        text-align: center;
    }
}

/* --- MOBILE DEVICES (max-width: 768px) --- */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Hero adjustments for mobile */
    #hero {
        height: 90vh;
        /* Avoids issues with mobile browser bars */
        background-attachment: scroll;
        /* Parallax is often jerky on mobile */
    }

    #hero .sub-headline {
        font-size: 1.1rem;
    }

    /* Stack service list */
    .service-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #litany ul:first-child {
        margin-bottom: 2rem;
    }

    /* Testimonial font size */
    #oracle blockquote {
        font-size: 1.4rem;
    }

    /* Final CTA adjustments */
    .altar-info {
        padding: 4rem 1.5rem;
    }

    .altar-info h2 {
        font-size: 1.8rem;
    }

    /* Footer text size */
    footer {
        font-size: 0.8rem;
        padding: 1.5rem 1rem;
    }
}