/*  ************************************HEADER***************************  */
/* STARLETLIGHT HEADER SYSTEM */
:root {
    --navy: #000040;
    --powder-blue: #B0E0E6;
    --sunshine-gold: #FFD700;
    --white: #FFFFFF;
}

.main-header {
    background-color: var(--navy);
    padding: 1.5rem 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(176, 224, 230, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Nav Link Styling */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--powder-blue);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* The Animated Light Beam Underline */
.light-beam {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sunshine-gold);
    box-shadow: 0 0 10px var(--sunshine-gold);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover States: "Powering On" */
.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-link:hover .light-beam {
    width: 100%;
}

/* Active Bloom Effect */
.nav-link:active {
    transform: scale(0.98);
}

/* Premium Button for Request Quote */
.contact-btn {
    border: 1px solid var(--sunshine-gold);
    padding: 0.7rem 1.5rem !important;
    border-radius: 4px;
    color: var(--sunshine-gold);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--sunshine-gold);
    color: var(--navy) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/*  ************************************HEADER***************************  */

/*  ************************************HERO SECTION***************************  */
.hero-showroom {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(0, 0, 64, 0.8) 0%,
            rgba(0, 0, 64, 0.2) 100%);
}

/* Typography & Animations */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.reveal-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    animation: text-reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.highlight {
    color: var(--sunshine-gold);
    animation-delay: 0.3s;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-gold {
    background: var(--sunshine-gold);
    color: var(--navy);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    backdrop-filter: blur(5px);
    border-radius: 4px;
    transition: all 0.3s ease;
}

@keyframes text-reveal {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll Mouse Icon */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--sunshine-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouse-scroll 2s infinite;
}

@keyframes mouse-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/*  ************************************HERO SECTION***************************  */

/*  ************************************BODY***************************  */
/* STARLETLIGHT.COM CORE DESIGN TOKENS */
:root {
    /* Brand Colors */
    --navy: #000040;
    --powder-blue: #B0E0E6;
    --sunshine-gold: #FFD700;
    --white: #FFFFFF;
    --matte-black: #1A1A1A;

    /* ADA Accessibility: Minimum Contrast Ratios */
    --text-primary: var(--white);
    --text-secondary: var(--powder-blue);
    --bg-main: var(--navy);

    /* Typography Scale */
    --fs-h1: clamp(2.5rem, 5vw, 4rem);
    /* Responsive Header */
    --fs-body: 1.125rem;
    /* Large enough for easy reading */
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.gold-accent {
    color: var(--sunshine-gold);
    border-bottom: 2px solid var(--sunshine-gold);
}

/* PRODUCT GRID STYLING */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(176, 224, 230, 0.2);
    /* Powder Blue Border */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--sunshine-gold);
}

.product-media img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--sunshine-gold);
    color: var(--navy);
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--white);
}

/* Screen Reader Only for Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* VISUALIZER STYLING */
.visualizer-stage {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--powder-blue);
    border-radius: 15px;
    overflow: hidden;
}

.preview-window {
    position: relative;
    line-height: 0;
    transition: filter 0.5s ease-in-out;
}

/* Light States using CSS Sepia and Hue-Rotate to simulate Kelvins */
.state-2700k {
    filter: sepia(0.6) saturate(1.4) contrast(1.1);
}

.state-3000k {
    filter: sepia(0.3) saturate(1.2);
}

.state-3500k {
    filter: sepia(0.1) brightness(1.05);
}

.state-4000k {
    filter: brightness(1.1) contrast(1.05);
}

.state-5000k {
    filter: saturate(0.8) brightness(1.2) hue-rotate(-10deg);
}

/* Selector Buttons */
.selector-switch {
    display: flex;
    justify-content: center;
    background: var(--matte-black);
    padding: 1rem;
    gap: 10px;
}

.cct-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--powder-blue);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cct-btn.active {
    background: var(--sunshine-gold);
    color: var(--navy);
    border-color: var(--sunshine-gold);
}

/* *************************************BODY************************************* */
.quote-section {
    padding: 8rem 2rem;
    background: var(--navy);
    color: var(--white);
}

.quote-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(176, 224, 230, 0.3);
    color: var(--white);
    font-size: 1rem;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--powder-blue);
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Floating Label Logic */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--sunshine-gold);
}

.input-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--sunshine-gold);
    box-shadow: 0 0 10px var(--sunshine-gold);
    transition: 0.4s ease all;
}

.input-group input:focus~.line,
.input-group textarea:focus~.line {
    width: 100%;
}

/* Submit Button Animation */
.btn-submit {
    position: relative;
    background: transparent;
    border: 1px solid var(--sunshine-gold);
    color: var(--sunshine-gold);
    padding: 1rem 3rem;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--sunshine-gold);
    color: var(--navy);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* *************************************BODY************************************* */

/* *************************************ABOUT US************************************* */
/* ABOUT PAGE SPECIFICS */
.about-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--navy), #000020);
    text-align: center;
}

.gold-glow {
    color: var(--sunshine-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 10rem 5%;
    align-items: center;
}

.eyebrow {
    color: var(--powder-blue);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* IMAGE STACK ANIMATION */
.image-stack {
    position: relative;
    padding: 20px;
}

.img-main {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--navy), 21px 21px 0px var(--powder-blue);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--sunshine-gold);
    color: var(--navy);
    padding: 2rem;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 4px;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* STATS SECTION */
.operational-scale {
    background: #f4f4f4;
    padding: 6rem 0;
    display: flex;
    justify-content: space-around;
    color: var(--navy);
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    color: var(--navy);
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #666;
}

/* *************************************ABOUT US************************************* */

/* *************************************WARRANTY************************************* */
/* WARRANTY MATRIX FOUNDATION */
.warranty-matrix {
    padding: 10rem 2rem;
    background-color: var(--navy);
    color: var(--white);
    overflow: hidden;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
}

.warranty-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(176, 224, 230, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Graphic Presentation */
.warranty-visual {
    height: 300px;
    position: relative;
    margin-bottom: 2rem;
    perspective: 1000px;
    border-radius: 8px;
    overflow: hidden;
}

.img-warranty {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.warranty-card:hover .img-warranty {
    transform: scale(1.05) translateZ(20px);
}

/* Card Differentiation (Color Psychology) */
.gold-protect h3,
.gold-protect .coverage {
    color: var(--sunshine-gold);
}

.blue-protect h3,
.blue-protect .coverage {
    color: var(--powder-blue);
}

.coverage {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* THE HOVER "POWER LINE" ANIMATION */
.warranty-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    /* Defines line thickness */
    background: linear-gradient(90deg, var(--sunshine-gold), #fff, var(--sunshine-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Unique color for the blue card's line */
.blue-protect::after {
    background: linear-gradient(90deg, var(--powder-blue), #fff, var(--powder-blue));
}

.warranty-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.warranty-card:hover::after {
    opacity: 1;
    animation: beam-trace 2s linear infinite;
}

@keyframes beam-trace {
    0% {
        clip-path: inset(0 0 98% 0);
    }

    25% {
        clip-path: inset(0 0 0 98%);
    }

    50% {
        clip-path: inset(98% 0 0 0);
    }

    75% {
        clip-path: inset(0 98% 0 0);
    }

    100% {
        clip-path: inset(0 0 98% 0);
    }
}

/* Buttons (Mechanical Active State) */
.btn-warranty-details {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.btn-warranty-details:active {
    transform: scale(0.98);
}

/* *************************************WARRANTY************************************* */

/* *************************************SPEC SHEETS AND IES FILES************************************* */
.data-vault {
    padding: 100px 5%;
    background: #000025;
    /* Slightly lighter navy for depth */
}

.vault-header {
    text-align: center;
    margin-bottom: 60px;
}

.vault-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--powder-blue);
    color: var(--powder-blue);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--sunshine-gold);
    color: var(--navy);
    border-color: var(--sunshine-gold);
}

/* THE DATA CARDS */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.data-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(176, 224, 230, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s var(--transition-smooth);
}

.data-card:hover {
    transform: translateY(-10px);
    border-color: var(--sunshine-gold);
}

/* THE POLAR CURVE GHOST */
.polar-bg {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    background: url('assets/polar-curve-icon.svg') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    filter: invert(1);
    transition: all 0.6s ease;
}

.data-card:hover .polar-bg {
    opacity: 0.3;
    transform: scale(1.2) rotate(15deg);
    filter: sepia(1) saturate(5) hue-rotate(10deg);
    /* Turns it Gold */
}

.series-tag {
    color: var(--sunshine-gold);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.dl-link {
    display: block;
    margin-top: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    border-left: 2px solid var(--powder-blue);
    padding-left: 15px;
    transition: border-color 0.3s;
}

.dl-link:hover {
    border-color: var(--sunshine-gold);
}

/* *************************************SPEC SHEETS AND IES FILES************************************* */

/* *************************************FOOTER************************************* */

.site-footer {
    background-color: #000020;
    /* Deepest Navy */
    color: var(--powder-blue);
    padding: 80px 0 0 0;
    position: relative;
    font-size: 0.9rem;
}

/* The Animated Top Border "Power Line" */
.footer-circuit-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sunshine-gold), transparent);
    background-size: 200% 100%;
    animation: pulse-line 6s linear infinite;
}

@keyframes pulse-line {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 0 20px 60px 20px;
}

.footer-col h4 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a,
.footer-link {
    color: var(--powder-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--sunshine-gold);
    padding-left: 5px;
    /* Subtle "Shift" animation */
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(176, 224, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.social-icon:hover {
    border-color: var(--sunshine-gold);
    box-shadow: 0 0 10px var(--sunshine-gold);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(176, 224, 230, 0.05);
    padding: 30px 20px;
    background-color: #000015;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    font-size: 0.75rem;
}

.legal-links a {
    margin-left: 20px;
    color: var(--powder-blue);
    text-decoration: none;
}

/* *************************************FOOTER************************************* */
/* Secure contact form honeypot: invisible to people, visible to bots. */
.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Same-domain form result page used by the no-JavaScript contact workflow. */
.form-result-page {
    min-height: 100vh;
    margin: 0;
    background: #000040;
    color: #ffffff;
}

.form-result-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.form-result-card {
    width: min(100%, 44rem);
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid rgba(176, 224, 230, 0.35);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
    text-align: center;
}

.form-result-card h1 {
    margin: 0.5rem 0 1rem;
    color: #ffd700;
}

.form-result-eyebrow,
.form-result-reference {
    color: #b0e0e6;
}

.form-result-link {
    display: inline-flex;
    margin-top: 1.5rem;
    text-decoration: none;
}
