/* Design tokens */
:root {
    --background-color: #202123;
    --surface-color: #343541;
    --section-background: #40414f;
    --text-color: #d1d5db;
    --muted-text-color: #b8bdc7;
    --header-text-color: #ffffff;
    --accent-color: #f6a83b;
    --accent-dark: #c27a20;
    --accent-hover: #9a5f18;
    --border-color: rgba(255, 255, 255, 0.16);
    --shadow-color: rgba(0, 0, 0, 0.24);
    --content-width: 860px;
    --radius: 8px;
    --page-gutter: 20px;
    --section-padding: 40px;
    --section-gap: 24px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Courier New", monospace;
    line-height: 1.6;
    text-align: left;
    animation: fadeInBody 0.8s ease-in-out;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--header-text-color);
}

a:hover,
a:focus-visible {
    color: var(--accent-color);
}

button,
input,
textarea {
    font: inherit;
}

main {
    padding: var(--section-gap) var(--page-gutter) 48px;
}

h1,
h2,
h3 {
    color: var(--header-text-color);
    line-height: 1.2;
}

h2 {
    margin-bottom: 16px;
    font-size: 1.65rem;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

p + p {
    margin-top: 12px;
}

/* Shared layout */
section,
.page-panel {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto var(--section-gap);
    padding: var(--section-padding);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--section-background);
    box-shadow: 0 14px 36px var(--shadow-color);
    scroll-margin-top: 110px;
    opacity: 0;
    animation: slideInLeft 0.8s ease-in-out forwards;
}

main > section:last-child,
main > .page-panel:last-child {
    margin-bottom: 0;
}

.page-panel {
    text-align: center;
}

.page-panel h1 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.page-panel .cta-row {
    justify-content: center;
}

.legal-panel {
    text-align: left;
}

.legal-panel h1,
.legal-panel .eyebrow {
    text-align: center;
}

/* Header and hero */
header {
    color: var(--header-text-color);
    text-align: center;
    animation: slideInTop 0.8s ease-in-out;
}

.site-hero {
    display: flex;
    min-height: 660px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.site-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 19, 23, 0.96) 0%, rgba(18, 19, 23, 0.82) 45%, rgba(18, 19, 23, 0.42) 100%),
        linear-gradient(180deg, rgba(18, 19, 23, 0.34) 0%, rgba(18, 19, 23, 0.88) 100%);
}

.hero-photo {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: -2;
    object-fit: cover;
    object-position: center;
}

.hero-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px var(--page-gutter) 32px;
}

.brand-mark {
    width: 42vw;
    max-width: 220px;
    height: auto;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.48));
}

.site-hero h1 {
    margin-bottom: 10px;
    font-size: 2.35rem;
}

.eyebrow {
    margin-bottom: 8px;
    color: #f2f4f8;
    font-weight: 700;
}

.hero-lede {
    max-width: 680px;
    margin: 0 auto;
    color: #e5e7eb;
    font-size: 1.1rem;
}

.page-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(20, 22, 28, 0.96);
}

.page-header-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 18px var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--header-text-color);
    font-weight: 700;
    text-decoration: none;
}

.brand-link img {
    width: 54px;
    height: 54px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

/* Navigation */
nav {
    width: 100%;
    padding: 14px var(--page-gutter);
    border-top: 1px solid var(--border-color);
    background: rgba(20, 22, 28, 0.86);
    backdrop-filter: blur(14px);
    z-index: 1000;
}

.page-header nav {
    width: auto;
    padding: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--header-text-color);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

/* Buttons and badges */
.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid rgba(246, 168, 59, 0.54);
    border-radius: 999px;
    background: rgba(246, 168, 59, 0.18);
    color: #ffe4b8;
    font-size: 0.8rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.header-cta {
    justify-content: center;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background-color: var(--accent-dark);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(18, 19, 23, 0.24);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Services */
#services {
    text-align: left;
}

.service {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.service:first-of-type {
    padding-top: 8px;
}

.service:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.service-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    object-fit: cover;
}

.service p {
    color: #ccc;
}

/* Business hours */
.hours-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    color: var(--text-color);
}

.hours-table th,
.hours-table td {
    padding: 12px 14px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.45);
    text-align: left;
}

.hours-table th {
    color: var(--header-text-color);
    font-weight: 700;
}

.hours-table tr:last-child td {
    border-bottom: 0;
}

.hours-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Contact form */
.contact-note {
    margin-top: 10px;
}

.privacy-note {
    margin-top: 8px;
    color: var(--muted-text-color);
    font-size: 0.95rem;
}

.contact-link,
footer a {
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.contact-form label {
    color: var(--header-text-color);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    background-color: #f8fafc;
    color: #111827;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: 2px solid rgba(246, 168, 59, 0.32);
    outline-offset: 2px;
}

.form-honeypot {
    width: 1px;
    height: 1px;
    position: absolute;
    left: -10000px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* FAQ */
#faq {
    text-align: left;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.faq-item + .faq-item {
    margin-top: 12px;
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border: 0;
    background: none;
    color: var(--header-text-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
    outline: none;
}

.faq-question::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--header-text-color);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    color: #ccc;
    text-align: left;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.active .faq-answer {
    max-height: 360px;
    padding: 0 16px 16px;
}

/* Footer */
footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter) 28px;
    color: var(--header-text-color);
    text-align: center;
    opacity: 0;
    animation: slideInRight 0.8s ease-in-out forwards;
}

footer p + p {
    margin-top: 6px;
}

/* Animations */
@keyframes fadeInBody {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(32px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive layout */
@media screen and (max-width: 768px) {
    :root {
        --page-gutter: 16px;
        --section-padding: 24px;
        --section-gap: 16px;
    }

    .site-hero {
        min-height: 610px;
    }

    .hero-inner {
        padding: 34px var(--page-gutter) 24px;
    }

    .brand-mark {
        width: min(78vw, 210px);
    }

    .site-hero h1 {
        font-size: 1.65rem;
    }

    .hero-lede {
        font-size: 1rem;
    }

    .page-header-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .service {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 0;
    }

    .service-photo {
        aspect-ratio: 16 / 9;
    }

    .hours-table th,
    .hours-table td {
        padding: 10px 8px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h2 {
        font-size: 1.4rem;
    }

    .site-hero {
        min-height: 560px;
    }

    .site-hero h1 {
        font-size: 1.35rem;
    }

    .badge {
        margin-top: 6px;
        margin-left: 0;
    }

    .cta-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .faq-question {
        padding: 13px 14px;
    }
}

@media (max-width: 600px) {
    section,
    .page-panel {
        scroll-margin-top: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    section,
    .page-panel,
    footer {
        opacity: 1;
        transform: none;
    }
}
