/* ==========================================================================
   NWBC Premium GSAP UI - Brand Variables & Setup
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-blue: #9cb4c5;
    --warm-grey: #c8c8c0;
    --off-white: #f5f2ef;
    --sage-green: #b7ba9d;

    /* Text Colors */
    --text-dark: #1a1c1d;
    --text-muted: #5b6266;

    /* Typography */
    --font-heading: 'Nohemi', sans-serif;
    --font-body: 'Arimo', sans-serif;

    /* Layout */
    --container-width: 1400px;
    --container-padding: 2.5rem;
    --border-radius: 12px;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Premium Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: rgba(183, 186, 157, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sage-green);
}

/* Base Body - Hide generic cursor for custom cursor on desktop */
body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {

    body,
    a,
    button,
    input {
        cursor: none !important;
    }
}

body.loading {
    overflow: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Cinematic Preloader
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.preloader-overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--off-white);
}

.preloader-left {
    left: 0;
}

.preloader-right {
    right: 0;
}

.preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-logo {
    height: 120px;
    max-width: 80vw;
    object-fit: contain;
    opacity: 0;
}

.loading-bar-container {
    width: 150px;
    height: 2px;
    background: rgba(156, 180, 197, 0.2);
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-blue);
}

/* ==========================================================================
   Custom Follower Cursor
   ========================================================================== */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-dark);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 28, 29, 0.4);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-text {
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    opacity: 0;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

/* Cursor Hover States */
.cursor-outline.hover-state {
    width: 64px;
    height: 64px;
    background-color: rgba(156, 180, 197, 0.1);
    border-color: rgba(156, 180, 197, 0);
}

.cursor-outline.video-state {
    width: 90px;
    height: 90px;
    background-color: rgba(26, 28, 29, 0.9);
    border-color: transparent;
    backdrop-filter: blur(4px);
}

.cursor-text.visible {
    opacity: 1;
}

@media (min-width: 1024px) {

    body,
    a,
    button,
    input {
        cursor: none !important;
    }
}

@media (min-width: 1200px) {

    body,
    .site-wrapper {
        min-height: 100vh;
    }
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-text {
        display: none !important;
    }
}

/* ==========================================================================
   Noise Overlay
   ========================================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.site-wrapper,
#smooth-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.5rem, 3vh, 2.5rem) var(--container-padding);
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    /* Restored document flow to prevent layout crashing! */
    z-index: 100;
    /* GSAP opacity setup */
    opacity: 0;
}

.brand-logo {
    height: clamp(50px, 10vh, 120px);
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-outline {
    border: 1px solid rgba(26, 28, 29, 0.2);
    color: var(--text-dark);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
}

.btn-primary:active {
    transform: scale(0.96);
}

/* ==========================================================================
   Hero Section & SplitText
   ========================================================================== */

.main-content {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    /* Indestructible clearance below header */
}

.hero-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 5vh, 4rem) var(--container-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

/* Text Content */
.hero-text-content {
    position: relative;
    z-index: 2;
    padding-left: clamp(0rem, 2vw, 4rem);
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(183, 186, 157, 0.2);
    color: #7b7d66;
    /* Darker sage for better readability on off-white */
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    opacity: 0;
    /* GSAP setup */
}

/* SplitType styles - prepare container for line-by-line animations */
.hero-title {
    font-size: clamp(2.2rem, min(4.8vw, 8vh), 5.5rem);
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
    color: var(--text-dark);
    /* Essential for SplitType mask effects */
    line-height: 1.05;
}

.hero-title .line {
    overflow: hidden;
    /* masks the characters rising up */
    padding-bottom: 0.1em;
    /* prevents font descenders from getting clipped */
}

.accent-text {
    color: var(--primary-blue);
}

.hero-description {
    font-size: clamp(1rem, min(1.2vw, 2.5vh), 1.125rem);
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: clamp(1.5rem, 5vh, 3rem);
    opacity: 0;
}

/* Notify Form */
.notify-form-wrapper {
    max-width: 420px;
    opacity: 0;
}

.input-group {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.input-group:focus-within {
    background: white;
    box-shadow: 0 15px 50px rgba(156, 180, 197, 0.15);
    transform: translateY(-2px);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    color: var(--text-dark);
}

.input-group input::placeholder {
    color: #a0a0a0;
}

/* Monogram */
.monogram-accent {
    position: absolute;
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(14rem, 25vw, 35rem);
    font-weight: 700;
    color: rgba(200, 200, 192, 0.35);
    /* Elegant faint watermark intensity */
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Premium Video Parallax Container
   ========================================================================== */

.hero-visual-content {
    display: flex;
    justify-content: center;
    position: relative;
    height: 100%;
    transform: translateY(-10vh);
}

.video-showcase {
    position: relative;
    width: 100%;
    max-width: min(480px, 48vh);
    /* Adapts scale so it mostly fits without scrolling */
    margin-top: auto;
    margin-bottom: auto;
    /* initial state for prep GSAP scale */
    opacity: 0;
}

.video-container {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--warm-grey);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Slight scale prep for parallax/entrance */
}

/* Floating Card */
.floating-card {
    position: absolute;
    bottom: 10%;
    left: -12%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 1.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    font-family: var(--font-heading);
    font-weight: 500;
    z-index: 10;
    opacity: 0;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--sage-green);
    border-radius: 50%;
}

.pattern-pulse {
    animation: simple-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes simple-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ==========================================================================
   Floating WhatsApp Contact
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: clamp(1.25rem, 3vh, 2rem);
    right: clamp(1.25rem, 3vw, 2rem);
    z-index: 9500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem 0.7rem 0.7rem;
    background: #25D366;
    color: white;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.45), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.whatsapp-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.whatsapp-label {
    white-space: nowrap;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid #25D366;
    animation: whatsapp-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        padding: 0.55rem 1rem 0.55rem 0.55rem;
        font-size: 0.85rem;
        gap: 0.6rem;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* ==========================================================================
   Responsive Setup
   ========================================================================== */

@media (max-width: 1024px) {
    .site-wrapper {
        overflow-x: hidden;
    }

    .header {
        justify-content: center;
    }

    /* Prevent horizontal scroll jumping */
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        gap: 3rem;
        min-height: auto;
    }

    .hero-text-content {
        padding-left: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 4.5rem);
    }

    .floating-card {
        left: 50%;
        bottom: -20px;
        transform: translateX(-50%) !important;
        /* Overrides GSAP floating slightly on mobile */
    }

    .video-showcase {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1.5rem;
    }

    .header {
        padding-top: 1.5rem;
    }

    .hero-section {
        padding-top: 6rem;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .monogram-accent {
        font-size: 15rem;
        bottom: -5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .input-group {
        flex-direction: column;
        border-radius: 16px;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 1rem;
        padding: 0;
    }

    /* Completely suppress the global unified wrapper focus effect on mobile */
    .input-group:focus-within {
        background: transparent;
        box-shadow: none;
        transform: translateY(0);
    }

    .input-group input {
        width: 100%;
        background: white;
        border-radius: 50px;
        padding: 1.2rem 1.5rem;
        text-align: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
        transition: var(--transition-smooth);
    }

    /* Apply the focus effect ONLY to the isolated input field instead */
    .input-group input:focus {
        box-shadow: 0 15px 50px rgba(156, 180, 197, 0.2);
        transform: translateY(-2px);
    }

    .btn-primary {
        width: 100%;
        padding: 1.2rem;
    }

    .video-showcase {
        max-width: 90%;
    }

    .floating-card {
        padding: 1rem 1.2rem;
        font-size: 0.85rem;
        bottom: -15px;
    }
}