@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

:root {
    --brand-blue: #8799C5;
    --brand-rust: #C9702E;
    --brand-green: #22c55e;
}

@layer base {
    .material-symbols-outlined {
        font-variation-settings:
            'FILL' 0,
            'wght' 300,
            'GRAD' 0,
            'opsz' 24
    }
}

/* Generic Site Header Architecture */
header.site-header {
    background: #1D242C;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 !important;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsinit-logo-box {
    width: 28px;
    height: 28px;
    background: #22c55e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.whatsinit-logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-style: italic;
}

.wh-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.wh-hero-content {
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wh-tagline {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #64748b;
    /* slate-500 */
    margin-bottom: 24px;
    max-width: 400px;
    font-weight: 500;
}

.wh-hero-image-wrap {
    width: 80%;
    max-width: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 4px solid #ffffff;
    margin-bottom: 32px;
    background: #ffffff;
}

.wh-hero-image-wrap img {
    width: 100%;
    display: block;
}

/* Fix for any vertical gaps */
body,
.container,
.wh-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Custom Modal Styles for Universal Receptionist Widget */
.widget-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(29, 36, 44, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    align-items: center;
    justify-content: center;
}

.widget-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.widget-modal-content {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.widget-modal-overlay.active .widget-modal-content {
    transform: translateY(0) scale(1);
}

.widget-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.widget-modal-close:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* Video Container */
.loom-video-container {
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    width: 100%;
    background: #0f172a;
}

.loom-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Transition out classes */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    position: absolute;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease 0.3s;
}

/* Receptionist Demo Area */
.demo-area {
    display: none;
    padding: 3rem;
    text-align: center;
    min-height: 400px;
}

.demo-area.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* LeadConnector Widget Clickability Fixes */
.hero-widget-wrap, .cta-widget-wrap {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 30;
}

/* Force whatever GHL injects to be full size and clickable */
.hero-widget-wrap > *, .cta-widget-wrap > * {
    width: 100% !important;
    height: 100% !important;
    min-height: 64px !important;
    pointer-events: auto !important;
}

/* Ensure background ornaments don't intercept clicks */
.blur-3xl {
    pointer-events: none !important;
}