/* ==========================================================================
   Luminara Holiday Lights - Theme based on brand door hanger
   Navy + gold palette, Playfair Display (headings) + Poppins (body)
   ========================================================================== */

:root {
    --color-navy-darkest: #0a1730;
    --color-navy-dark: #0d1f42;
    --color-navy: #14295c;
    --color-navy-light: #1f3a75;
    --color-gold: #c9a24a;
    --color-gold-light: #e0c17d;
    --color-cream: #f5f1e6;
    --color-white: #ffffff;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

    --max-width: 1200px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-cream);
    background-color: var(--color-navy-darkest);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: var(--color-gold);
    color: var(--color-navy-darkest);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-navy-darkest);
    border-bottom: 1px solid rgba(201, 162, 74, 0.3);
}

header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    position: relative;
}

.nav-logo img {
    height: 48px;
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

header nav a {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-cream);
    transition: color 0.2s ease;
    position: relative;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.25s ease;
}

header nav a:hover,
header nav a:focus-visible {
    color: var(--color-gold-light);
}

header nav a:hover::after,
header nav a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-gold-light);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    header nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        background: var(--color-navy-darkest);
        border-bottom: 1px solid rgba(201, 162, 74, 0.3);
        padding: 1.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    header nav ul.is-open {
        max-height: 400px;
        opacity: 1;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 41, 92, 0.25) 50%, rgba(10, 23, 48, 0.85) 80%, var(--color-navy-darkest) 100%),
        url("../media/images/indexherobackground.webp") center center / cover no-repeat;
    min-height: 87vh;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--color-gold);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.45rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid var(--color-gold);
    border-radius: 30px;
    white-space: nowrap;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero-highlight {
    color: var(--color-gold-light);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-cream);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.25rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-navy-darkest);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    border: 1px solid rgba(245, 241, 230, 0.4);
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(201, 162, 74, 0.35);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    will-change: transform;
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    box-shadow: 0 6px 24px rgba(201, 162, 74, 0.5);
    transform: translateY(-3px);
}

.hero-cta:hover svg,
.hero-cta:focus-visible svg {
    transform: translateX(4px);
}

.hero-cta:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   Floating Message
   ========================================================================== */

.floating-message {
    overflow: hidden;
    white-space: nowrap;
    background: var(--color-navy-dark);
    border-bottom: 1px solid rgba(201, 162, 74, 0.3);
    padding: 0.50rem 0;
}

.floating-message-content {
    display: inline-block;
    padding-left: 100%;
    animation: float-across 30s linear infinite;
}

.floating-message-content p {
    display: inline-block;
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .floating-message-content p {
        font-size: 0.85rem;
    }
}

@keyframes float-across {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.brand-highlight {
    color: var(--color-gold-light);
    font-style: italic;
}

.phone-lights span {
    display: inline-block;
    font-weight: 700;
    animation: twinkle 1.4s ease-in-out infinite;
}

.phone-lights span:nth-child(4n+1) {
    color: #ff4d4d;
    animation-delay: 0s;
}

.phone-lights span:nth-child(4n+2) {
    color: #4caf50;
    animation-delay: 0.2s;
}

.phone-lights span:nth-child(4n+3) {
    color: var(--color-gold-light);
    animation-delay: 0.4s;
}

.phone-lights span:nth-child(4n+4) {
    color: #4d9bff;
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.55;
        filter: brightness(1.4);
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-gold-light);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--color-cream);
    opacity: 0.85;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-navy-dark);
    border: 1px solid rgba(201, 162, 74, 0.25);
    border-radius: 10px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 162, 74, 0.12);
    color: var(--color-gold-light);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-cream);
    opacity: 0.85;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    background:
        linear-gradient(rgba(10, 23, 48, 0.45), rgba(10, 23, 48, 0.45)),
        url("../media/images/contactbackground.webp") center center / cover no-repeat;
    border-top: 2px solid var(--color-gold);
    padding: 3.5rem 0.5rem;
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-form {
    max-width: 440px;
    margin: 0 auto;
    background: rgba(20, 41, 92, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(224, 193, 125, 0.35);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .contact-form {
        background: rgba(20, 41, 92, 0.55);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--color-gold-light);
    margin-bottom: 0.3rem;
}

.contact-form label:not(:first-child) {
    margin-top: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-cream);
    background: rgba(10, 23, 48, 0.4);
    border: 1px solid rgba(201, 162, 74, 0.35);
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.2);
}

.contact-form button {
    align-self: center;
    margin-top: 1.25rem;
    padding: 0.6rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-navy-darkest);
    background: var(--color-gold);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2rem;
}

.form-status.success {
    color: #6fcf7e;
}

.form-status.error {
    color: #ff6b6b;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-navy-darkest);
    border-top: 2px solid var(--color-gold);
    padding: 3rem 1.5rem 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-cream);
    opacity: 0.8;
    max-width: 320px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--color-gold-light);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero-content .trust-badge {
    display: flex;
    width: fit-content;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    background: rgba(10, 23, 48, 0.55);
    border: 1px solid rgba(201, 162, 74, 0.3);
    border-radius: 30px;
}

.footer-social {
    display: flex;
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 74, 0.35);
    color: var(--color-gold-light);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background: var(--color-gold);
    color: var(--color-navy-darkest);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 0.9rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--color-cream);
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-gold-light);
    opacity: 1;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--color-cream);
    opacity: 0.85;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(201, 162, 74, 0.25);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-cream);
    opacity: 0.65;
}
