/* Website styles: base rules followed by responsive overrides. */
:root {
    --primary: #1c2530;
    --accent: #e87b25;
    --light: #f4f5f7;
    --white: #ffffff;
    --text: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

header {
    background-color: #000000;
    color: white;
    padding: 15px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 3px solid var(--accent);
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

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

#home {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("images/Three_9x8_PineTop.jpg");
    color: white;
    text-align: center;
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home p {
    font-size: 20px;
    margin-bottom: 30px;
}

#home a {
    display: inline-block;
    background-color: var(--accent);
    color: #1c2530;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

#home a:hover {
    background-color: #ff9a4d;
}

section {
    padding: 70px 8%;
    text-align: center;
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

#services, #about {
    background-color: var(--light);
}

#contact {
    background-color: var(--primary);
    color: white;
}

#contact p {
    margin: 10px 0;
}

footer {
    background-color: #111820;
    color: #cccccc;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 35px auto 0;
}

.service-card {
    background-color: white;
    padding: 0;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
    color: var(--primary);
}

#about p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
}

#contact a {
    color: var(--accent);
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 35px auto 0;
}

.gallery-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-card h3 {
    padding: 18px;
    font-size: 18px;
    color: var(--primary);
}

.service-content {
    padding: 30px;
}

.service-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.service-button:hover {
    background-color: #ff9a4d;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #222;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-call {
    background-color: var(--accent);
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.floating-facebook {
    background-color: #1877f2;
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.floating-call:hover {
    background-color: #ff9a4d;
}

#why-us {
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 35px auto 0;
}

.why-card {
    background-color: var(--light);
    padding: 30px 20px;
    border-radius: 8px;
    border-bottom: 4px solid var(--accent);
}

.why-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

#faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 850px;
    margin: 35px auto 0;
    text-align: left;
}

.faq-container details {
    background-color: var(--light);
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 4px solid var(--accent);
}

.faq-container summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
}

.faq-container details p {
    padding: 0 20px 20px;
}

.faq-container details[open] summary {
    color: #a64b0c;
}

.faq-container a {
    color: #a64b0c;
    overflow-wrap: anywhere;
}

#home h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 15px;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 15px;
    }

    #home {
        padding: 80px 20px;
        min-height: 420px;
    }

    section {
        padding: 50px 20px;
    }

    .brand img {
        width: 220px;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .slideshow {
        height: 250px;
    }

    .service-content {
        padding: 25px 20px;
    }

    .floating-buttons {
        right: 15px;
        bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .floating-call {
        padding: 12px 20px;
    }

    nav a {
        font-size: 14px;
        padding: 8px 4px;
    }

    #contact a {
        overflow-wrap: anywhere;
    }

    footer {
        padding-bottom: 90px;
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .why-card {
        padding: 20px 12px;
    }

    .why-card h3 {
        font-size: 17px;
    }

    .faq-container summary {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .slide {
        transition: none;
    }

    .gallery-card {
        transition: none;
    }

    .gallery-card:hover {
        transform: none;
    }
}

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