/* ==========================================================================
   White Nest — Custom Styles
   Typography, hover interactions, and micro-animations layered on top of
   the existing Tailwind utility classes. Nothing here removes or overrides
   layout — it only adds polish.
   ========================================================================== */

/* --------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.white-nest-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #1a1a1a;
}
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}

/* Gentle text-shadow to give headings a touch more depth */
h1.text-transparent,
span.text-transparent {
    filter: drop-shadow(0 1px 1px rgba(188, 156, 108, 0.15));
}

/* --------------------------------------------------------------------
   Selection & Scrollbar
   -------------------------------------------------------------------- */
::selection {
    background-color: rgba(188, 156, 108, 0.25);
    color: #171717;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f5f4f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #bc9c6c, #a38356);
    border-radius: 999px;
    border: 2px solid #f5f4f1;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a6d43;
}
html {
    scrollbar-width: thin;
    scrollbar-color: #bc9c6c #f5f4f1;
}

/* --------------------------------------------------------------------
   Global smooth-scroll & focus states
   -------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #bc9c6c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------
   Buttons — subtle lift + shine sweep on hover
   -------------------------------------------------------------------- */
.bg-neutral-900,
.bg-\[\#bc9c6c\],
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.bg-neutral-900:hover,
.bg-\[\#bc9c6c\]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px rgba(188, 156, 108, 0.45);
}

.bg-neutral-900::before,
.bg-\[\#bc9c6c\]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.bg-neutral-900:hover::before,
.bg-\[\#bc9c6c\]:hover::before {
    left: 125%;
}

/* Outlined / bordered buttons (e.g. Login) */
.border-neutral-200 {
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
a.border-neutral-200:hover,
button.border-neutral-200:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(188, 156, 108, 0.35);
}

/* --------------------------------------------------------------------
   Nav links — animated underline
   -------------------------------------------------------------------- */
header nav a,
header a.hover\:text-\[\#bc9c6c\] {
    position: relative;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #bc9c6c;
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* --------------------------------------------------------------------
   Cards — lift + glow on hover
   -------------------------------------------------------------------- */
.rounded-xl,
.rounded-2xl,
.rounded-3xl {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease;
}

.border.border-neutral-200\/60:hover,
.border.border-neutral-200:not(.wcu-card):not(.faq-item):hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -18px rgba(23, 23, 23, 0.18);
}

/* Keep form/utility containers calm — undo the lift for elements that
   shouldn't visually "float" (inputs, alerts, static info panels) */
input.rounded-xl:hover,
textarea.rounded-xl:hover,
select.rounded-xl:hover,
.bg-red-50:hover,
.bg-emerald-50:hover {
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------
   Images — soft zoom on hover within overflow-hidden containers
   -------------------------------------------------------------------- */
.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.overflow-hidden:hover img {
    transform: scale(1.06);
}

/* Poster / promotional banner gets its own gentle glow frame */
img[alt*="White Nest"][src*="poster"] {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
img[alt*="White Nest"][src*="poster"]:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 25px 45px -20px rgba(188, 156, 108, 0.4);
}

/* --------------------------------------------------------------------
   Icon micro-interaction
   -------------------------------------------------------------------- */
[data-lucide] {
    transition: transform 0.3s ease, color 0.3s ease;
}

.group:hover [data-lucide],
a:hover > [data-lucide],
button:hover [data-lucide] {
    transform: scale(1.12) rotate(-2deg);
}

/* --------------------------------------------------------------------
   Gold accent glow (kept + extended from the original inline style)
   -------------------------------------------------------------------- */
.gold-glow {
    box-shadow: 0 0 20px rgba(188, 156, 108, 0.15);
}

.gold-glow:hover {
    box-shadow: 0 0 32px rgba(188, 156, 108, 0.28);
}

/* --------------------------------------------------------------------
   Entrance animations
   -------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

section {
    animation: fadeInUp 0.5s ease-out both;
}

/* --------------------------------------------------------------------
   Badge / pill hover pulse (offer banners, tags)
   -------------------------------------------------------------------- */
.rounded-full {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rounded-full:hover {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------
   Respect users who prefer 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;
    }
}

/* ==========================================================================
   Section: Why Choose Us
   ========================================================================== */
.wcu-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s ease,
                background-color 0.4s ease;
}

/* Animated gradient top border that sweeps in on hover */
.wcu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #bc9c6c, #e8cf9f, #bc9c6c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft glow that fades in behind the card */
.wcu-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(188, 156, 108, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.wcu-card:hover {
    transform: translateY(-8px);
    border-color: rgba(188, 156, 108, 0.4);
    background-color: #ffffff;
    box-shadow: 0 24px 40px -20px rgba(23, 23, 23, 0.18);
}

.wcu-card:hover::before {
    transform: scaleX(1);
}

.wcu-card:hover::after {
    opacity: 1;
}

.wcu-icon {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.35s ease,
                color 0.35s ease;
}

.wcu-card:hover .wcu-icon {
    transform: scale(1.12) rotate(-6deg);
    background-color: #bc9c6c;
    color: #101827;
}

/* ==========================================================================
   Section: How It Works
   ========================================================================== */

/* Connecting timeline line behind the numbered stages (desktop only) */
.hiw-track {
    position: relative;
}

@media (min-width: 768px) {
    .hiw-track::before {
        content: "";
        position: absolute;
        top: 20px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: repeating-linear-gradient(
            90deg,
            rgba(188, 156, 108, 0.4) 0,
            rgba(188, 156, 108, 0.4) 8px,
            transparent 8px,
            transparent 16px
        );
        z-index: 0;
    }
}

.hiw-step {
    transition: transform 0.35s ease;
}

.hiw-step:hover {
    transform: translateY(-4px);
}

.hiw-number {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}

/* Pulsing ring around each stage number, staggered per-step */
.hiw-number::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 9999px;
    border: 1.5px solid rgba(188, 156, 108, 0.5);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hiw-step:hover .hiw-number {
    transform: scale(1.12);
    box-shadow: 0 8px 18px -6px rgba(188, 156, 108, 0.55);
}

.hiw-step:hover .hiw-number::after {
    opacity: 1;
    transform: scale(1);
}

.hiw-step h4 {
    transition: color 0.3s ease;
}

.hiw-step:hover h4 {
    color: #8a6d43;
}

/* ==========================================================================
   Section: FAQs
   ========================================================================== */
.faq-item {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(188, 156, 108, 0.45);
    box-shadow: 0 10px 24px -16px rgba(23, 23, 23, 0.16);
}

/* Highlight the item while it's expanded */
.faq-item:has(.faq-panel:not(.hidden)) {
    background-color: #ffffff;
    border-color: #bc9c6c;
    box-shadow: 0 14px 28px -18px rgba(188, 156, 108, 0.35);
}

.faq-trigger {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.faq-trigger:hover {
    color: #8a6d43;
}

.faq-chevron {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.faq-item:has(.faq-panel:not(.hidden)) .faq-chevron {
    color: #101827;
}

/* Smoothly fade the panel content in as it opens */
.faq-panel {
    animation: fadeInUp 0.3s ease both;
}

/* ═══════════════════════════════════════════════════════════════
   LEAD CAPTURE POPUP
   ═══════════════════════════════════════════════════════════════ */

.wn-popup-overlay {
    /* Hidden by default -- popup.js sets display:flex via inline style to open */
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s ease;
}
.wn-popup-overlay.wn-visible {
    opacity: 1;
}

.wn-popup-card {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    transform: translateY(28px) scale(.97);
    transition: transform .38s cubic-bezier(.34,1.56,.64,1);
    padding: 0 0 28px;
}
.wn-popup-overlay.wn-visible .wn-popup-card {
    transform: translateY(0) scale(1);
}

.wn-popup-top-strip {
    height: 6px;
    background: linear-gradient(90deg, #000 0%, #bc9c6c 100%);
}

.wn-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    z-index: 2;
}
.wn-popup-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.wn-popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000, #bc9c6c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 22px auto 14px;
    box-shadow: 0 6px 20px rgba(188,156,108,.35);
}

.wn-popup-title {
    font-size: 20px;
    font-weight: 800;
    color: #101010;
    text-align: center;
    padding: 0 28px;
    line-height: 1.3;
    margin-bottom: 8px;
}
.wn-popup-sub {
    font-size: 13.5px;
    color: #888;
    text-align: center;
    padding: 0 28px;
    line-height: 1.7;
    margin-bottom: 22px;
}

#wn-popup-form {
    padding: 0 28px;
}
.wn-popup-field {
    margin-bottom: 16px;
}
.wn-popup-field label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #444;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.wn-req { color: #e74c3c; margin-left: 2px; }

.wn-popup-input-wrap {
    position: relative;
}
.wn-popup-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    pointer-events: none;
    transition: color .2s ease;
}
.wn-popup-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    color: #222;
    background: #fafafa;
    transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.wn-popup-input-wrap input:focus {
    outline: none;
    border-color: #bc9c6c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(188,156,108,.16);
}
.wn-popup-input-wrap input:focus + .wn-popup-input-icon,
.wn-popup-input-wrap:focus-within .wn-popup-input-icon {
    color: #bc9c6c;
}
.wn-popup-input-wrap input.wn-err-input {
    border-color: #e74c3c;
}
.wn-popup-err {
    display: block;
    font-size: 11.5px;
    color: #e74c3c;
    margin-top: 5px;
    min-height: 15px;
}

.wn-popup-success {
    background: #faf3e0;
    border: 1.5px solid #bc9c6c;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    font-size: 13.5px;
    color: #1a1a1a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wn-popup-submit {
    width: calc(100% - 56px);
    margin: 0 28px;
    padding: 13px 0;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s ease, transform .2s ease;
}
.wn-popup-submit:hover:not(:disabled) {
    background: #bc9c6c;
    color: #000;
}
.wn-popup-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.wn-popup-privacy {
    text-align: center;
    font-size: 10.5px;
    color: #aaa;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wn-spin {
    animation: wn-spin-anim 0.8s linear infinite;
}
@keyframes wn-spin-anim {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .wn-popup-title { font-size: 18px; }
    .wn-popup-sub, #wn-popup-form, .wn-popup-submit { padding-left: 20px; padding-right: 20px; }
    .wn-popup-submit { width: calc(100% - 40px); margin: 0 20px; }
}
#header-logo img {
    height: 100px;   /* adjust freely */
    width: auto;
}
#footer-logo img {
    height: 130px;
    width: 210px;
}
@media (min-width: 640px) {
    #footer-logo img {
        height: 110px;
    }
}
@keyframes wn-blink-highlight {
    0%, 100% {
        background-color: rgba(245, 158, 11, 0.35);
        color: #92400e;
    }
    50% {
        background-color: rgba(245, 158, 11, 0.05);
        color: inherit;
    }
}

.promo-blink {
    padding: 0 4px;
    border-radius: 4px;
    animation: wn-blink-highlight 1.2s ease-in-out infinite;
}