/* =============================================================================
   Agency Footer — Global Theme Styles
   1-1 conversion of Footer.tsx (Tailwind → plain CSS)
   Loaded on every page via functions.php
   ============================================================================= */

/* --------------------------------------------------------------------------
   Footer wrapper — relative bg-[#050505] text-white overflow-hidden
   pt-20 md:pt-32 pb-8 md:pb-12
   -------------------------------------------------------------------------- */
.agency-footer {
    position: relative;
    background-color: #050505;
    color: #ffffff;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
    z-index: 1;
}

/* Oversized "AGENCY" watermark — absolute -bottom-10 -right-10 opacity-5 */
.agency-footer__watermark {
    position: absolute;
    bottom: -0.5rem;
    right: -1rem;
    font-family: "Syne", ui-sans-serif, system-ui, sans-serif;
    font-size: 25vw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    color: #ffffff;
    white-space: nowrap;
}

/* Container — max-w-7xl mx-auto px-6 relative z-10 */
.agency-footer__container {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Top grid — grid grid-cols-1 lg:grid-cols-2 gap-12 md:gap-20 mb-16 md:mb-32
   -------------------------------------------------------------------------- */
.agency-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   Cards — bg-[#0a0a0a] rounded-3xl border border-white/10 shadow-2xl
   -------------------------------------------------------------------------- */
.agency-footer__card {
    background: #0a0a0a;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.50);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

/* Decorative blobs inside cards */
.agency-footer__card-glow {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    pointer-events: none;
}

.agency-footer__card-glow--orange-tr {
    top: 0;
    right: 0;
    background: rgba(255, 78, 0, 0.10);
    filter: blur(80px);
}

.agency-footer__card-glow--blue-bl {
    bottom: 0;
    left: 0;
    background: rgba(59, 130, 246, 0.10);
    filter: blur(80px);
}

/* ---- Form Card ---- */
.agency-footer__card-heading {
    font-family: "Syne", ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 10;
}

.agency-footer__card-sub {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.875rem;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 10;
}

/* Success banner */
.agency-footer__success {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.20);
    color: #4ade80;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.agency-footer__success[hidden] {
    display: none !important;
}

/* Form fields */
.agency-footer__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.agency-footer__field {
    position: relative;
}

/* Line-style inputs — bg-transparent text-lg py-3 border-b border-white/20 */
.agency-footer__input {
    width: 100%;
    background: transparent;
    color: #ffffff;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.agency-footer__input::placeholder {
    color: rgba(255, 255, 255, 0.20);
}

.agency-footer__input:focus {
    border-bottom-color: #FF4E00;
}

.agency-footer__input--error {
    border-bottom-color: #ef4444 !important;
}

.agency-footer__input--textarea {
    resize: none;
}

/* Validation error text */
.agency-footer__error {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: #ef4444;
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.agency-footer__error[hidden] {
    display: none !important;
}

/* Submit button — w-full bg-white text-black py-4 rounded-full font-bold uppercase */
.agency-footer__submit {
    width: 100%;
    background: #ffffff;
    color: #000000;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.10);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.agency-footer__submit:hover {
    background: #FF4E00;
    color: #ffffff;
    box-shadow: 0 0 40px rgba(255, 78, 0, 0.40);
}

.agency-footer__submit:disabled {
    opacity: 0.70;
    cursor: not-allowed;
}

.agency-footer__submit-loading[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Right column
   -------------------------------------------------------------------------- */
.agency-footer__right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Book a Call card */
.agency-footer__card--book {
    transition: border-color 0.5s ease;
}

.agency-footer__card--book:hover {
    border-color: rgba(255, 78, 0, 0.50);
}

.agency-footer__book-heading {
    font-family: "Syne", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 10;
}

.agency-footer__book-sub {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 10;
}

.agency-footer__book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 10;
}

.agency-footer__book-btn:hover {
    background: #FF4E00;
    border-color: #FF4E00;
    color: #ffffff;
}

/* Info grid — grid grid-cols-2 gap-8 */
.agency-footer__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.agency-footer__info-label {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.50);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.agency-footer__info-value {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Socials list */
.agency-footer__socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agency-footer__social-link {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.agency-footer__social-link:hover {
    color: #FF4E00;
}

/* Animated underline: w-0 → w-full on hover */
.agency-footer__social-underline {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #FF4E00;
    transition: width 0.3s ease;
    display: block;
}

.agency-footer__social-link:hover .agency-footer__social-underline {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Bottom bar — flex justify-between items-center pt-8 border-t text-sm text-white/40 font-mono
   -------------------------------------------------------------------------- */
.agency-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.40);
}

.agency-footer__copy {
    margin: 0;
}

.agency-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.agency-footer__legal-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agency-footer__legal-link:hover {
    color: #ffffff;
}

/* =============================================================================
   Back to Top Button
   fixed bottom-6 right-6 md:bottom-10 md:right-10 z-50 p-3 md:p-4
   bg-[#FF4E00] text-white rounded-full
   initial: opacity:0, y:20, scale:0.8  → visible: opacity:1, y:0, scale:1
   ============================================================================= */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    padding: 0.75rem;
    background: #FF4E00;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 78, 0, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease,
        opacity 0.3s ease, transform 0.3s ease;

    /* Hidden initial state (matches initial={{ opacity:0, y:20, scale:0.8 }}) */
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

/* .back-to-top--visible class added/removed by JS */
.back-to-top--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top[hidden] {
    display: none !important;
}

.back-to-top:hover {
    background: #ffffff;
    color: #000000;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (min-width: 48rem) {
    .agency-footer {
        padding-top: 8rem;
        padding-bottom: 3rem;
    }

    .agency-footer__card {
        padding: 3rem;
    }

    .agency-footer__grid {
        margin-bottom: 8rem;
    }

    .agency-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .agency-footer__input {
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 2.5rem;
        right: 2.5rem;
        padding: 1rem;
    }
}

@media (min-width: 64rem) {
    .agency-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .agency-footer__right {
        padding-left: 2.5rem;
    }
}

/* =============================================================================
   Scroll Progress Bar
   absolute top-0 left-0 right-0 h-1 bg-[#FF4E00] origin-left z-50
   JS sets transform: scaleX(ratio) on scroll
   ============================================================================= */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* 1px is original, 3px is more visible — matches h-1 = 4px */
    background-color: #FF4E00;
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}


/* =============================================================================
   FORMINATOR FORM #85 — Footer contact form overrides
   Matches the existing agency-footer form look:
   - Transparent inputs, border-bottom only
   - White text, white/20 placeholder
   - Orange focus ring on bottom border
   - White pill submit → orange on hover
   ============================================================================= */

/* Container reset — strip any Forminator box/padding */
#forminator-module-85 {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Field wrappers — consistent spacing */
#forminator-module-85 .forminator-field {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Hide Forminator labels if you want placeholder-only (like the original) */
#forminator-module-85 .forminator-label {
    display: none !important;
}

/* Inputs + textarea — line-style, transparent bg */
#forminator-module-85 input[type="text"],
#forminator-module-85 input[type="email"],
#forminator-module-85 input[type="url"],
#forminator-module-85 input[type="tel"],
#forminator-module-85 textarea,
#forminator-module-85 .forminator-input,
#forminator-module-85 .forminator-textarea {
    width: 100% !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 1.125rem !important;
    padding: 0.75rem 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Placeholder */
#forminator-module-85 input::placeholder,
#forminator-module-85 textarea::placeholder {
    color: rgba(255, 255, 255, 0.20) !important;
}

/* Focus — orange bottom border */
#forminator-module-85 input:focus,
#forminator-module-85 textarea:focus {
    border-bottom-color: #FF4E00 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Textarea specific */
#forminator-module-85 textarea {
    resize: none !important;
    min-height: 80px !important;
}

/* Submit button — white pill, orange on hover */
#forminator-module-85 .forminator-button,
#forminator-module-85 .forminator-button-submit,
#forminator-module-85 button[type="submit"] {
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 9999px !important;
    border: none !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    margin-top: 1rem !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.10) !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    line-height: 1.5 !important;
}

#forminator-module-85 .forminator-button:hover,
#forminator-module-85 .forminator-button-submit:hover,
#forminator-module-85 button[type="submit"]:hover {
    background: #FF4E00 !important;
    color: #ffffff !important;
    box-shadow: 0 0 40px rgba(255, 78, 0, 0.40) !important;
}

/* Validation errors — red text below field */
#forminator-module-85 .forminator-error-message {
    color: #ef4444 !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Error state — red bottom border */
#forminator-module-85 .forminator-field--error input,
#forminator-module-85 .forminator-field--error textarea,
#forminator-module-85 .forminator-has_error input,
#forminator-module-85 .forminator-has_error textarea {
    border-bottom-color: #ef4444 !important;
}

/* Success message */
#forminator-module-85 .forminator-response-message,
#forminator-module-85 .forminator-success {
    background: transparent !important;
    color: #22c55e !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 1rem 0 !important;
    border: none !important;
    text-align: center !important;
}

/* Strip any Forminator grid/row gaps that add whitespace */
#forminator-module-85 .forminator-row,
#forminator-module-85 .forminator-col {
    padding: 0 !important;
    margin: 0 !important;
}

#forminator-module-85 .forminator-row {
    margin-bottom: 0.25rem !important;
}

#forminator-module-85 .forminator-description {
    display: none;
}

/* Error response list (validation summary) */
#forminator-module-85 .forminator-response-message {
    background: transparent !important;
    border: none !important;
    padding: 0.75rem 0 !important;
}

#forminator-module-85 .forminator-response-message ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#forminator-module-85 .forminator-response-message ul li {
    color: #ef4444 !important;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0 !important;
    margin: 0 !important;
}