/*
Theme Name: AGL Coming Soon
Theme URI: https://advancedgrowlights.com
Author: Advanced Grow Lights
Description: Coming Soon page for Advanced Grow Lights directory
Version: 1.0
*/

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

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

body {
    background-color: #0d0d1a;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes prismPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(123, 47, 255, 0.55))
                drop-shadow(0 0 22px rgba(57, 255, 20, 0.18));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(123, 47, 255, 0.9))
                drop-shadow(0 0 42px rgba(57, 255, 20, 0.38));
    }
}

@keyframes spectrumShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== MAIN WRAPPER ===== */
.agl-wrapper {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

/* ===== LOGO AREA ===== */
.agl-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.agl-prism-svg {
    width: 260px;
    height: 150px;
    animation: prismPulse 3.2s ease-in-out infinite;
    overflow: visible;
}

.agl-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.agl-letters {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1;
}

.agl-full-name {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: #39ff14;
    text-transform: uppercase;
}

/* ===== HERO ===== */
.agl-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 740px;
}

.agl-hero h1 {
    font-size: clamp(1.55rem, 4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.agl-hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    max-width: 580px;
}

.spectrum-line {
    width: 340px;
    max-width: 90vw;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        #1a00ff 0%,
        #3d00cc 15%,
        #7b2fff 40%,
        #cc1a66 70%,
        #ff2200 100%,
        #7b2fff 130%,
        #1a00ff 160%
    );
    background-size: 300% 100%;
    animation: spectrumShift 6s ease-in-out infinite;
    margin-top: 4px;
}

/* ===== FEATURE TEASERS ===== */
.agl-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .agl-features {
        flex-direction: row;
        gap: 18px;
    }
}

.agl-feature-card {
    flex: 1;
    background: #111127;
    border: 1px solid rgba(123, 47, 255, 0.32);
    border-radius: 4px;
    padding: 30px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    transition: border-color 0.28s ease, background 0.28s ease;
}

.agl-feature-card:hover {
    border-color: rgba(57, 255, 20, 0.48);
    background: #131330;
}

.agl-feature-icon {
    width: 44px;
    height: 44px;
    color: #7b2fff;
    flex-shrink: 0;
}

.agl-feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.agl-feature-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.62;
}

/* ===== EMAIL CAPTURE SECTION ===== */
.agl-signup {
    text-align: center;
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.agl-signup-label {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.agl-signup-sublabel {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

/* ===== WPFORMS OVERRIDES ===== */
.wpforms-container {
    width: 100%;
}

/* Form: flex row on desktop */
.wpforms-form {
    width: 100%;
}

.wpforms-form .wpforms-field-container {
    margin: 0;
    padding: 0;
}

.wpforms-form .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
}

/* Inputs */
.wpforms-form .wpforms-field input,
.wpforms-form .wpforms-field input[type="email"],
.wpforms-form .wpforms-field input[type="text"] {
    background: #1a1a2e !important;
    border: 1px solid #7b2fff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    -webkit-appearance: none !important;
}

.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field input[type="email"]:focus,
.wpforms-form .wpforms-field input[type="text"]:focus {
    border-color: #39ff14 !important;
    box-shadow: none !important;
    outline: none !important;
}

.wpforms-form .wpforms-field input::placeholder {
    color: rgba(255, 255, 255, 0.32) !important;
}

/* Hide field label — we use our own copy above the form */
.wpforms-form label,
.wpforms-form .wpforms-field-label {
    display: none !important;
}

/* Submit button — mobile default (full width, stacked) */
.wpforms-form .wpforms-submit-container {
    padding: 0 !important;
    margin-top: 8px !important;
    text-align: center !important;
}

.wpforms-form .wpforms-submit,
.wpforms-form button[type="submit"] {
    background: #39ff14 !important;
    color: #0d0d1a !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 13px 28px !important;
    cursor: pointer !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    transition: background 0.18s ease !important;
    width: 100% !important;
    line-height: 1 !important;
}

.wpforms-form .wpforms-submit:hover,
.wpforms-form button[type="submit"]:hover {
    background: #5bff32 !important;
}

/* Desktop: input + button welded into one bar */
@media (min-width: 600px) {
    .wpforms-form {
        display: flex;
        gap: 0;
        align-items: stretch;
    }

    .wpforms-form .wpforms-field-container {
        flex: 1;
    }

    /* Input: flush right corners where button joins */
    .wpforms-form .wpforms-field input,
    .wpforms-form .wpforms-field input[type="email"] {
        border-radius: 4px 0 0 4px !important;
        border-right: none !important;
        height: 100% !important;
    }

    /* Button container: flush left, stretches to match input height */
    .wpforms-form .wpforms-submit-container {
        flex: 0 0 auto;
        margin-top: 0 !important;
        display: flex !important;
        align-items: stretch !important;
    }

    /* Button: flush left corners, full height */
    .wpforms-form .wpforms-submit,
    .wpforms-form button[type="submit"] {
        width: auto !important;
        white-space: nowrap;
        border-radius: 0 4px 4px 0 !important;
        height: 100% !important;
        padding: 0 28px !important;
    }
}

/* Confirmation & error messages */
.wpforms-confirmation-container-full,
.wpforms-error-container {
    background: #1a1a2e !important;
    border: 1px solid #7b2fff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-family: 'Space Grotesk', sans-serif !important;
    padding: 16px 20px !important;
}

/* Validation error text */
.wpforms-form .wpforms-field-error,
.wpforms-form label.wpforms-error {
    color: #ff4444 !important;
    font-size: 0.8rem !important;
    margin-top: 4px !important;
}

/* ===== FOOTER ===== */
.agl-footer {
    width: 100%;
    margin-top: auto;
    padding: 0 24px 32px;
}

.agl-footer-spectrum {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #1a00ff 0%, #7b2fff 50%, #ff2200 100%);
    margin-bottom: 24px;
    border-radius: 1px;
}

.agl-footer p {
    text-align: center;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.05em;
}
