/* ===== Base page styles ===== */
body {
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 50px;
}

* {
    box-sizing: border-box;
}

/* Fixed, viewport-sized background layer.
   Kept separate from body so it doesn't zoom/shift when page height
   changes (e.g. accordion items expanding). */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%),
        url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Semi-transparent tint that scrolls WITH content, sits above bg-layer */
.content-overlay {
    background-color: rgba(13, 13, 13, 0.6);
}

/* ===== Headings & base text ===== */
h1 {
    color: #ff7a00;
    font-size: 3em;
}

p {
    color: #cccccc;
    font-size: 1.2em;
}

/* ===== Nav bar (pill style) ===== */
nav {
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    padding: 12px 30px;
    display: inline-block;
    border-radius: 50px;
    margin: 10px auto;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

nav a:visited {
    color: #ffffff;
}

nav a:hover {
    background-color: #ff7a00;
    color: #0d0d0d;
}

/* ===== Header: logo / title / inspection badge ===== */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 40px 5px 40px;
}

/* Logo and badge are both 800x800 square images now,
   so matching max-height (or max-width) keeps them symmetrical */
.logo {
    max-height: 215px;
    height: auto;
    justify-self: start;
}

.header-center {
    text-align: center;
}

.header-center h1 {
    font-size: 5em;
    margin: 0 0 5px 0;
}

.subtitle {
    color: #cccccc;
    font-size: 2em;
    margin: 0 0 10px 0;
}

.inspection-badge {
    max-height: 215px;
    height: auto;
    justify-self: end;
}

/* ===== Contact Us section ===== */
#contact {
    text-align: center;
    padding: 60px 20px;
}

#contact h2 {
    color: #ff7a00;
    font-size: 2em;
    margin-bottom: 20px;
}

#contact p {
    display: block;
    width: fit-content;
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    margin: 6px auto;
}

#contact a {
    color: #ffffff;
    text-decoration: none;
}

#contact a:hover {
    color: #ff7a00;
}

#contact h3 {
    color: #ff7a00;
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ===== Appointment request form ===== */
.appointment-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
}

.appointment-form input,
.appointment-form textarea {
    resize: none;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background-color: #0d0d0d;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 1em;
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
    color: #888888;
}

.appointment-form button {
    background-color: #ff7a00;
    color: #0d0d0d;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s ease;
}

.appointment-form button:hover {
    background-color: #ffffff;
}

.appointment-form label {
    color: #ff7a00;
    font-weight: bold;
    text-align: left;
    margin-bottom: -8px;
}

.appointment-form input[type="date"],
.appointment-form input[type="time"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}

.contact-preference legend {
    color: #ff7a00;
    font-weight: bold;
    padding: 0 8px;
    font-size: 1em;
    margin-bottom: 4px;
    margin-left: 0px;
}

label[for="preferred_date"],
label[for="preferred_time"] {
    margin-left: 25px;
}

.contact-preference {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.contact-preference legend {
    color: #ff7a00;
    font-weight: bold;
    padding: 0 8px;
}

.contact-preference label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    margin: 8px 0;
    cursor: pointer;
}

.contact-preference input[type="radio"] {
    width: auto;
    accent-color: #ff7a00;
}

/* ===== Hours section ===== */
#hours {
    text-align: center;
    padding: 60px 20px;
}

#hours h2 {
    color: #ff7a00;
    font-size: 2em;
    margin-bottom: 20px;
}

#hours p {
    color: #cccccc;
    font-size: 1.1em;
    display: block;
    width: fit-content;
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
    padding: 8px 20px;
    border-radius: 20px;
    margin: 6px auto;
}

.closed {
    color: #ff3b3b;
    font-weight: bold;
}

/* ===== About Us section ===== */
#about {
    text-align: center;
    padding: 60px 20px;
}

#about h2 {
    color: #ff7a00;
    font-size: 2em;
    margin-bottom: 20px;
}

#about p {
    color: #cccccc;
    font-size: 1.1em;
    max-width: 700px;
    display: block;
    width: fit-content;
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
    padding: 15px 25px;
    border-radius: 20px;
    margin: 6px auto;
}

/* ===== Services & Pricing (accordion) ===== */
.accordion {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
}

.accordion-item summary {
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: " +";
    color: #ff7a00;
}

.accordion-item[open] summary::after {
    content: " −";
}

.accordion-item p {
    color: #cccccc;
    font-size: 1em;
    margin-top: 10px;
}

.accordion-item a {
    color: #ff7a00;
}

#services h2 {
    color: #ff7a00;
    font-size: 2em;
    margin-bottom: 40px;
}

.pricing-disclaimer {
    font-size: 0.9em;
    color: #999999;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

/* ===== Home section ===== */
#home {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home h2 {
    color: #ff7a00;
    font-size: 2em;
    margin-bottom: 20px;
}

.home-box {
    max-width: 700px;
    background-color: #1a1a1a;
    border: 2px solid #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
    padding: 20px 25px;
    border-radius: 20px;
}

#home p {
    color: #cccccc;
    font-size: 1.1em;
    margin: 10px 0;
}

.under-construction {
    color: #ffcc00 !important;
    font-weight: bold;
}

/* ===== Footer ===== */
footer {
    padding: 20px;
    text-align: center;
}

footer p {
    font-size: 0.85em;
    color: #888888;
}

/* ===== Back-to-top floating button ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 100px;
    background-color: #ff7a00;
    color: #0d0d0d;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
    z-index: 200;
}

.back-to-top:hover {
    background-color: #ffffff;
}

/* Offsets anchor-link landing position so sections don't land flush at
   the very top of the viewport when jumped to via nav */
section {
    scroll-margin-top: 20vh;
}

/* ===== Mobile styles ===== */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    body {
        padding: 10px;
    }

    .content-overlay {
        width: 100%;
    }

    .site-header {
        padding: 10px 5px;
        grid-template-columns: auto 1fr auto;
    }

    .logo {
        max-width: 60px;
        height: auto;
    }

    .header-center h1 {
        font-size: 1.1em;
        margin: 0;
    }

    .subtitle {
        font-size: 0.65em;
        margin: 0;
    }

    .inspection-badge {
        max-width: 60px;
        height: auto;
    }

    nav {
        padding: 6px 8px;
    }

    nav ul {
        gap: 6px;
    }

    nav a {
        font-size: 0.6em;
        padding: 4px 6px;
    }

    .back-to-top {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.75em;
    }
}