/* ============================================================
   Global Styles — Luken Services LLC
   Font: Rubik (Google Fonts)
   ============================================================ */

:root {
    --gold: #d4af37;
    --gold-dark: #b8941f;
    --gold-light: #f4e4a6;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1e1e1e;
    --dark-4: #2a2a2a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --off-white: #f8f8f6;
    --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ensure Rubik cascades to all elements — overrides Bootstrap's sans-serif reset */
*, *::before, *::after {
    font-family: inherit;
}

/* Media never forces horizontal scroll on small screens */
img, svg, video, canvas {
    max-width: 100%;
}
img, video {
    height: auto;
}

h1, h2, h3, h4, h5, h6,
p, a, span, button, input, textarea, select, label, li {
    font-family: var(--font);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* ============================================================
   Logo
   ============================================================ */

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .logo:hover { transform: translateY(-2px); }

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark-4);
    position: relative;
    transition: color 0.25s ease;
    padding: 4px 0;
    white-space: nowrap;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--gold-dark), var(--gold));
        border-radius: 2px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:hover,
    .nav-link.active { color: var(--gold-dark); }

    .nav-link:hover::after,
    .nav-link.active::after { width: 100%; }

.nav-link--insurance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gold-dark) !important;
    font-weight: 700 !important;
}
.nav-link--insurance svg { opacity: 0.8; }

.nav-cta { margin-left: auto; }

.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    white-space: nowrap;
}

    .nav-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    }

/* ============================================================
   Buttons
   ============================================================ */

/* Shared "gold primary CTA" look — one formula for every primary button on
   the site. .btn-hero-primary, .submit-btn and .ins-btn-primary used to
   redeclare this same gradient/radius/shadow independently; now each page
   only overrides padding/font-size where its density genuinely differs. */
.btn-primary,
.btn-secondary,
.btn-hero-primary,
.submit-btn,
.ins-btn-primary {
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary,
.btn-hero-primary,
.submit-btn,
.ins-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

    .btn-primary:hover,
    .btn-hero-primary:hover,
    .submit-btn:hover:not(:disabled),
    .ins-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(212, 175, 55, 0.45);
    }

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--gold);
        transform: translateY(-3px);
    }

.btn-primary.large,
.btn-secondary.large { padding: 18px 42px; font-size: 17px; }

/* Page-specific density overrides — same shared look, different size */
.btn-hero-primary,
.ins-btn-primary { padding: 15px 32px; font-size: 14.5px; }
.submit-btn { width: 100%; }

/* ============================================================
   Section Utilities
   ============================================================ */

.section-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-dark);
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -1px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font);
}

.footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
    gap: 50px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--dark);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    }

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.55);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.25s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .footer-links a::before {
        content: '';
        width: 6px;
        height: 1px;
        background: var(--gold);
        display: inline-block;
        transition: width 0.25s ease;
    }

    .footer-links a:hover {
        color: var(--gold-light);
    }

    .footer-links a:hover::before { width: 12px; }

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

    .footer-contact-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

    .footer-contact-list svg {
        color: var(--gold);
        flex-shrink: 0;
    }

    .footer-contact-list a {
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        transition: color 0.25s ease;
    }

    .footer-contact-list a:hover { color: var(--gold-light); }

.footer-hours {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .footer-hours p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
    }

    .footer-hours strong { color: rgba(255, 255, 255, 0.8); }

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

    .footer-bottom-inner p { font-size: 13px; }

.footer-legal { color: rgba(255, 255, 255, 0.35); }

/* ============================================================
   Scroll-reveal Animation Utilities
   ============================================================ */

/* JS-driven reveal animations.
   CSS fallback: if is-visible is never added (JS slow/blocked),
   the element forces itself visible after 2.5 s so content is never lost. */
[data-animate] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    animation: animFallback 0s 2.5s forwards;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }

[data-animate-left] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    animation: animFallback 0s 2.5s forwards;
}

[data-animate-left].is-visible {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

@keyframes animFallback {
    to { opacity: 1; transform: none; }
}

/* ============================================================
   Form Status (shared between pages)
   ============================================================ */

.status-message {
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Focus visibility
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Blazor's <FocusOnNavigate> sets tabindex="-1" on the page <h1> and
   focuses it on every route change for screen readers — that's a
   programmatic a11y anchor, not a user-interactive control, so it
   shouldn't show a visible ring on every page load. */
h1[tabindex="-1"]:focus-visible {
    outline: none;
}

/* ============================================================
   Route-change fade — class is (re)triggered from animations.js
   on the 'blazor:navigated' event, since Blazor patches the DOM
   in place rather than replacing <article> on navigation.
   ============================================================ */

.page-fade-in {
    animation: pageFadeIn 0.25s ease both;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

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

    [data-animate],
    [data-animate-left] {
        opacity: 1;
        transform: none;
    }

    main > article {
        animation: none;
    }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-tagline { max-width: 100%; }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .logo-text  { font-size: 16px; }
    .logo-img   { height: 34px; }
}
