:root {
    --text-primary: #ffffff;
    --text-secondary: #d1d1d1;
    --bg-dark: #050505;
    --accent-color: #FFD700;
    /* Safety Yellow */
    --accent-dark: #ccac00;
}

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

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ffffff;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
    z-index: 200;
}

.skip-link:focus {
    transform: translateY(0);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.panel-header,
.nav-brand {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

/* Nav */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    pointer-events: none;
}

.fixed-nav a,
.fixed-nav .nav-brand {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
}

.nav-brand {
    font-size: 2rem;
    letter-spacing: 2px;
}

.nav-contact {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-contact a {
    transition: color 0.3s;
}

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

/* Background Systems */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg-dark);
}

.bg-image {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0) scale(1);
}

.bg-0 {
    background-image: url('images/hero.jpg');
}

.bg-1 {
    background-image: url('images/dumpster.jpg');
}

.bg-2 {
    background-image: url('images/trailer.jpg');
}

.bg-3 {
    background-image: url('images/pressure-wash.jpg');
}

.bg-4 {
    background-image: url('images/handyman.jpg');
}

.bg-5 {
    background-image: url('images/yard.jpg');
}

.bg-6 {
    background-image: url('images/remodel.jpg');
}

.bg-7 {
    background-image: url('images/outro.jpg');
}

/* Heavy vignette and color grade */
.bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.4) 30%, rgba(5, 5, 5, 0.7) 100%);
}

/* Extra darken for the hero background only */
.bg-0::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.bg-overlay-noise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 10;
}

/* Scroll Sections */
.story-section {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vw 5vw;
}

.story-section.section-0 {
    min-height: 100vh;
}

.story-section.footer-booking {
    min-height: 100vh;
    justify-content: flex-end;
    padding-bottom: 5vh;
}

/* Typeography & Content Blocks */
.text-block {
    will-change: transform, opacity;
}

.text-block.intro {
    text-align: center;
    margin: 0 auto;
    margin-top: 10vh;
}

.hero-logo {
    display: block;
    margin: 0 auto 1rem;
    width: clamp(160px, 24vw, 320px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

h1 {
    font-size: clamp(5rem, 12vw, 12rem);
    line-height: 0.85;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.accent-text {
    color: var(--accent-color);
}

p.subtitle {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 300;
    max-width: 600px;
    margin: 2rem auto;
    color: var(--text-secondary);
}

.scroll-indicator {
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.6;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
}

/* Solid Industrial Panels */
.solid-panel {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    max-width: 600px;
}

.solid-panel.border-accent {
    border-left: 4px solid var(--accent-color);
}

.text-block.right {
    margin-left: auto;
}

.text-block.left {
    margin-right: auto;
}

.panel-header {
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: -0.5rem;
}

h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.feature-list li {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.cta-wrapper {
    margin-top: 2rem;
}

.simulated-link {
    cursor: pointer;
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.2rem;
    transition: color 0.3s;
}

.simulated-link:hover {
    color: var(--accent-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Booking Form UI */
.booking-panel {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid var(--accent-color);
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.booking-panel h2 {
    font-size: 4rem;
    text-align: center;
}

.booking-panel p {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1.25rem;
}

.form-row.payment-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

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

select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

input:focus,
select:focus {
    border-color: var(--accent-color);
}

.pay-btn {
    margin-top: 1rem;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pay-btn:hover {
    background-color: var(--accent-dark);
}

.pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.calendar-panel {
    max-width: 760px;
}

.calendar-embed {
    margin-top: 2rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.blog-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-body h3 {
    font-size: 2rem;
}

.blog-card-body p {
    margin-bottom: 0;
}

.blog-hero {
    min-height: 70vh;
}

.blog-post-panel {
    max-width: 900px;
}

.blog-post-hero img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-post-content h2,
.blog-post-content h3 {
    margin-top: 2rem;
}

.blog-post-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.payment-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.payment-error {
    margin-top: 0.5rem;
    color: #ffcf5a;
    text-align: center;
    min-height: 1.2rem;
}

.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vw;
}

.thank-you-panel {
    max-width: 720px;
}

.thank-you-title {
    text-align: center;
}

.thank-you-copy {
    text-align: center;
    margin-top: 1rem;
}

.thank-you-copy a {
    color: var(--accent-color);
    text-decoration: none;
}

.thank-you-copy a:hover {
    text-decoration: underline;
}

.thank-you-actions {
    text-align: center;
    margin-top: 2rem;
}

.site-footer {
    padding: 4rem 5vw 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(5, 5, 5, 0.9);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-brand {
    font-family: 'Teko', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.75rem;
}

.footer-meta {
    color: var(--text-secondary);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-contact a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

/* Responsive constraints */
@media (max-width: 768px) {
    .fixed-nav {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        text-align: center;
    }

    .nav-contact {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }

    .text-block.intro {
        margin-top: 110px;
    }

    .solid-panel {
        padding: 2rem;
        margin: 0 !important;
    }

    .booking-panel {
        padding: 2rem;
    }

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

    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.5rem;
    }

    .nav-contact {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    h1 {
        letter-spacing: -1px;
    }

    .booking-panel h2 {
        font-size: 3rem;
    }

    .pay-btn {
        font-size: 1.5rem;
    }
}

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

    * {
        animation: none !important;
        transition: none !important;
    }
}
