/*
 * site.css
 * Northern Lights Epoxy — Main Stylesheet
 * (C) 2026 Northern Lights Epoxy — Intellectual Property of NLE
 * Created by Billy Jack Wiglesworth on 2026-03-28.
 */

/* ============================================================
   CSS VARIABLES — Aurora color palette from logo
   ============================================================ */
:root {
    --night:        #090d1a;   /* deep night sky — page background */
    --night-mid:    #0d1425;   /* slightly lighter dark — section alt bg */
    --mountain:     #111827;   /* dark mountain — cards, nav */
    --aurora-green: #00e676;   /* bright aurora green — primary accent */
    --aurora-teal:  #26c6da;   /* aurora teal/cyan — secondary accent */
    --aurora-blue:  #5c6bc0;   /* aurora blue/purple — tertiary */
    --snow:         #ffffff;   /* white — primary text */
    --snow-dim:     #b0bec5;   /* dimmed white — secondary text */
    --drip:         #111111;   /* epoxy drip black */
    --card-bg:      #131c2e;   /* card backgrounds */
    --border:       rgba(0, 230, 118, 0.15); /* subtle aurora border */

    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body:    'Trebuchet MS', 'Lucida Sans', sans-serif;

    --max-width:    1200px;
    --nav-height:   72px;
    --radius:       6px;
    --transition:   0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--night);
    color: var(--snow);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--aurora-green);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--aurora-teal);
}

/* ============================================================
   UTILITY
   ============================================================ */

/* Aurora gradient text */
.aurora-text {
    background: linear-gradient(90deg, var(--aurora-green), var(--aurora-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-sub {
    color: var(--snow-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-teal));
    color: var(--night);
    font-weight: 700;
    font-family: var(--font-body);
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--night);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--aurora-green);
    color: var(--aurora-green);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: background var(--transition), color var(--transition);
}

.btn-secondary:hover {
    background: var(--aurora-green);
    color: var(--night);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 13, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--snow-dim);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--aurora-green);
}

/* CTA button in nav */
.nav-cta {
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-teal));
    color: var(--night) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700 !important;
}

.nav-cta:hover {
    opacity: 0.85;
    color: var(--night) !important;
}

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--snow);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Deep night sky background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, #0d1f3c 0%, var(--night) 70%);
    z-index: 0;
}

/* Aurora effect — animated gradient bands */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 40% at 20% 20%, rgba(0, 230, 118, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 80% 15%, rgba(38, 198, 218, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 25% at 50% 10%, rgba(92, 107, 192, 0.08) 0%, transparent 60%);
    animation: aurora-shift 12s ease-in-out infinite alternate;
}

@keyframes aurora-shift {
    0%   { opacity: 0.7; transform: scaleX(1)   translateY(0); }
    50%  { opacity: 1;   transform: scaleX(1.05) translateY(-10px); }
    100% { opacity: 0.8; transform: scaleX(0.97) translateY(5px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.hero-title-top {
    color: var(--snow);
    font-size: 0.5em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.8;
}

.hero-title-bottom {
    /* aurora-text applied via class */
    font-size: 1em;
}

.hero-sub {
    color: var(--snow-dim);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll hint arrow */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--aurora-green);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
    padding: 6rem 0;
    background: var(--night-mid);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
    border-color: var(--aurora-green);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--snow);
}

.service-card p {
    color: var(--snow-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
#why-us {
    padding: 6rem 0;
    background: var(--night);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.why-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-weight: 900;
}

.why-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--snow-dim);
    font-size: 0.95rem;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
#gallery {
    padding: 6rem 0;
    background: var(--night-mid);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--snow-dim);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color var(--transition);
}

.gallery-placeholder:hover {
    border-color: var(--aurora-teal);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
    padding: 6rem 0;
    background: var(--night);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--snow-dim);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-logo img {
    width: 200px;
    height: auto;
    opacity: 0.9;
}

/* ============================================================
   QUOTE / CONTACT SECTION
   ============================================================ */
#quote {
    padding: 6rem 0;
    background: var(--night-mid);
}

.quote-success {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid var(--aurora-green);
    color: var(--aurora-green);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-weight: 600;
}

.quote-form {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--snow-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--snow);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(176, 190, 197, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--aurora-green);
}

.form-group select option {
    background: var(--mountain);
}

.btn-submit {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--drip);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 80px;
    height: auto;
    opacity: 0.85;
}

.footer-inner p {
    color: var(--snow-dim);
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--aurora-green) !important;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    /* Nav collapses to hamburger */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--mountain);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    /* About stacks vertically */
    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-logo {
        display: none;
    }

    /* Form rows stack */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Hero padding */
    #hero {
        padding-top: calc(var(--nav-height) + 2rem);
    }
}

/* Quote error message */
.quote-error {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid #ff5252;
    color: #ff5252;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ============================================================
   SECTION HEADING ALIGNMENT FIXES
   ============================================================ */
#services .section-title,
#services .section-sub,
#why-us .section-title,
#gallery .section-title,
#gallery .section-sub,
#about .section-title,
#quote .section-title,
#quote .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Center the quote form within its container */
.quote-form {
    margin: 0 auto;
}

/* AJAX form submission states */
.quote-submitting {
    opacity: 0.6;
    pointer-events: none;
}

.quote-submitting .btn-submit::after {
    content: ' ...';
}