/* ==========================================================================
   FLYWITHPEGGS.COM — Unified Stylesheet
   Altidor Wellness LLC / flywithpeggs
   Brand Color Palette Guide Applied
   ========================================================================== */

/* ==========================================================================
   1. BRAND PALETTE & CSS VARIABLES
   ========================================================================== */
:root {
    /* --- Core Brand Colors --- */
    --royal:        #5D3FD3;  /* Primary: headings, CTAs, main UI */
    --bright-yellow:#FFC000;  /* Action accents, highlight buttons, "Book Time" */
    --teal:         #00BCD4;  /* Tech features, secondary buttons, AI sections */

    /* --- Secondary Colors --- */
    --sage:         #9CAF88;  /* Wellness section headers, health content */
    --coral:        #FF6B6B;  /* Travel adventure highlights, energy */
    --gold-premium: #D4AF37;  /* Premium travel packages, luxury accents */

    /* --- Supporting Colors --- */
    --navy:         #1A1A3E;  /* Body text, borders, structural elements */
    --blush:        #FFB3BA;  /* Subtle hover states, delicate accents */
    --lavender-bg:  #F0E6FF;  /* Background cards, subtle section dividers */
    --cream:        #F5F5F5;  /* Main backgrounds */

    /* --- Service-Specific Backgrounds --- */
    --bg-ai:        #F0E6FF;  /* AI Consulting sections */
    --bg-wellness:  #E8F5E9;  /* Wellness sections */
    --bg-travel:    #FFF5E6;  /* Travel sections */

    /* --- Semantic Aliases (backward compat) --- */
    --velvet:       #4A00E0;  /* Darker purple shade for hover states */
    --amethyst:     #9966CC;  /* Lighter purple accent */
    --gold:         #FFC000;  /* Maps to bright-yellow for legacy refs */
    --text-light:   #F8F8FF;
    --text-dark:    #1A1A3E;  /* Now navy for better readability */
    --card-bg:      #F0E6FF;  /* Lavender cards */
    --header-bg:    #1A1A3E;  /* Deep navy header */
    --page-bg:      #F5F5F5;  /* Off-white/cream */
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--page-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}

header.header-scrolled {
    background-color: rgba(26, 26, 62, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    color: var(--bright-yellow);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

header nav a,
header nav button {
    color: var(--amethyst);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 200ms ease, background-color 200ms ease;
}

header nav a:hover,
header nav button:hover {
    color: var(--bright-yellow);
}

header nav a.active,
header nav button.active {
    color: var(--bright-yellow);
    font-weight: 600;
}

/* Dropdown menu */
.dropdown-menu {
    transition: opacity 200ms ease, transform 200ms ease;
    /* The pt-2 padding acts as an invisible hover bridge between button and panel */
}

.dropdown-wrap {
    /* Ensure the wrapper is tall enough so mouseleave doesn't fire in the gap */
    position: relative;
}

/* Contact page (and shared) utility classes */
.dropdown-surface {
    background-color: var(--header-bg);
    border: 1px solid rgba(153, 102, 204, 0.2);
}

.text-amethyst {
    color: var(--amethyst);
}

.mobile-menu-bg {
    background-color: var(--header-bg);
}

.mobile-menu-section-title {
    color: var(--amethyst);
}

.hero-subtitle {
    color: var(--velvet);
}

.section-page-bg {
    background-color: var(--page-bg);
}

.heading-royal {
    color: var(--royal);
}

.icon-velvet {
    color: var(--velvet);
}

.link-royal {
    color: var(--royal);
}

.brand-logo-gold {
    color: var(--gold);
}

/* Mobile menu */
#mobile-menu a {
    color: var(--amethyst);
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: background-color 200ms ease, color 200ms ease;
}

#mobile-menu a:hover {
    background-color: var(--royal);
    color: var(--bright-yellow);
}

#mobile-menu a.active {
    background-color: var(--royal);
    color: var(--bright-yellow);
    font-weight: 600;
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
footer {
    background-color: var(--header-bg);
    color: var(--text-light);
}

footer a {
    color: var(--amethyst);
    transition: color 200ms ease;
}

footer a:hover {
    color: var(--bright-yellow);
}

footer .brand-name {
    color: var(--text-light);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    display: inline-block;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97);
}

/* Primary: Purple bg + Yellow text */
.btn-primary {
    background-color: var(--royal);
    color: var(--bright-yellow);
}

.btn-primary:hover {
    background-color: var(--velvet);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.35);
}

/* Accent: Bright Yellow bg + navy text */
.btn-accent {
    background-color: var(--bright-yellow);
    color: var(--navy);
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    background-color: #e6ac00;
    box-shadow: 0 8px 25px rgba(255, 192, 0, 0.35);
}

/* Secondary: Teal bg + white text */
.btn-secondary {
    background-color: var(--teal);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #00a5bb;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

/* Wellness: Sage Green bg + white text */
.btn-wellness {
    background-color: var(--sage);
    color: #fff;
}

.btn-wellness:hover {
    background-color: #8a9e76;
    box-shadow: 0 8px 25px rgba(156, 175, 136, 0.3);
}

/* Travel: Coral bg + white text */
.btn-travel {
    background-color: var(--coral);
    color: #fff;
}

.btn-travel:hover {
    background-color: #e85c5c;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Outline: Purple border + purple text */
.btn-outline {
    border: 2px solid var(--royal);
    color: var(--royal);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--royal);
    color: var(--text-light);
}

.btn-outline-white {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
}

.btn-outline-white:hover {
    background-color: var(--text-light);
    color: var(--royal);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   6. SECTION TITLES & LAYOUT HELPERS
   ========================================================================== */
.section-title {
    color: var(--royal);
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.75rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--royal);
    opacity: 0.75;
}

.page-header-bg {
    background-color: var(--lavender-bg);
}

/* Service-specific section backgrounds */
.bg-ai       { background-color: var(--bg-ai); }
.bg-wellness { background-color: var(--bg-wellness); }
.bg-travel   { background-color: var(--bg-travel); }

/* ==========================================================================
   6B. TRAVEL ARCHITECT SECTION
   ========================================================================== */
#travel-architect {
    background: linear-gradient(135deg, rgba(93, 63, 211, 0.06) 0%, rgba(0, 188, 212, 0.06) 100%);
}

#travel-architect h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--royal);
    text-align: center;
    margin-bottom: 1rem;
}

#travel-architect .bio-intro {
    max-width: 48rem;
    margin: 0 auto 2.25rem;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--velvet);
}

#travel-architect .expertise-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    #travel-architect .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#travel-architect .expertise-card {
    background-color: #fff;
    border: 1px solid rgba(93, 63, 211, 0.12);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px -14px rgba(26, 26, 62, 0.45);
}

#travel-architect .expertise-card h3 {
    color: var(--royal);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#travel-architect .expertise-card p {
    color: var(--text-dark);
    line-height: 1.65;
}

#travel-architect .cta-block {
    text-align: center;
}

/* ==========================================================================
   7. CARDS (General)
   ========================================================================== */
.card {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2);
    transform: translateY(-0.25rem);
}

/* ==========================================================================
   8. BLOG STYLES
   ========================================================================== */
.blog-card {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    overflow: hidden;
    transition: box-shadow 300ms ease, transform 300ms ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2);
    transform: translateY(-0.25rem);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card h2 a {
    color: var(--text-dark);
}

.blog-card h2 a:hover {
    color: var(--royal);
}

.blog-card-meta {
    color: var(--amethyst);
}

.blog-card-read-more {
    color: var(--teal);
}

.blog-card-read-more:hover {
    color: var(--royal);
}

/* Category filter buttons */
.category-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid var(--amethyst);
    color: var(--royal);
    background-color: transparent;
    cursor: pointer;
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

.category-button:hover,
.category-button.active {
    background-color: var(--royal);
    color: var(--text-light);
    border-color: var(--royal);
}

/* ==========================================================================
   9. NEWS STYLES
   ========================================================================== */
.news-item {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transition: box-shadow 300ms ease;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
    }
}

.news-item:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   10. PROSE / ARTICLE TYPOGRAPHY
   ========================================================================== */
.prose h2,
.prose h3 {
    color: var(--royal);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

.prose a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
}

.prose a:hover {
    color: var(--royal);
}

.prose img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   11. MEET THE TEAM STYLES
   ========================================================================== */
.agent-card {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    overflow: hidden;
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.agent-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2);
    transform: translateY(-0.25rem);
}

.agent-card .agent-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.agent-card .agent-body {
    padding: 1.5rem;
}

.agent-card .agent-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--royal);
    margin-bottom: 0.25rem;
}

.agent-card .agent-role {
    font-size: 0.875rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.agent-card .agent-signature {
    font-style: italic;
    color: var(--amethyst);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.agent-card .agent-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.agent-card .agent-strengths {
    list-style: none;
    padding: 0;
}

.agent-card .agent-strengths li {
    font-size: 0.85rem;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.agent-card .agent-strengths li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    color: var(--bright-yellow);
}

/* Small agent cards */
.agent-card-small .agent-image {
    height: 12rem;
}

.agent-card-small .agent-body {
    padding: 1.25rem;
}

/* ==========================================================================
   12. FAVORITES / AFFILIATE STYLES
   ========================================================================== */
.fav-card {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    overflow: hidden;
    transition: box-shadow 300ms ease, transform 300ms ease;
    display: flex;
    flex-direction: column;
}

.fav-card:hover {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.2);
    transform: translateY(-0.25rem);
}

.fav-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fav-card .fav-category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background-color: var(--royal);
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    background-color: var(--lavender-bg);
    border-left: 4px solid var(--bright-yellow);
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    color: var(--amethyst);
    border-radius: 0 0.5rem 0.5rem 0;
}

/* ==========================================================================
   13. AI CONSULTING STYLES
   ========================================================================== */
.service-feature {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 300ms ease, transform 300ms ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07);
}

.service-feature:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    transform: translateY(-0.125rem);
}

.service-feature .feature-icon {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.service-feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--royal);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   14. HERO BACKGROUNDS
   ========================================================================== */
.hero-bg {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 50%, var(--amethyst) 100%);
}

.hero-bg-travel {
    background: linear-gradient(135deg, var(--coral) 0%, #e85c5c 50%, var(--gold-premium) 100%);
}

.hero-bg-wellness {
    background: linear-gradient(135deg, var(--sage) 0%, #7a9a66 50%, #5a8a46 100%);
}

.hero-bg-ai {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 40%, var(--teal) 100%);
}

.hero-bg-team {
    background: linear-gradient(135deg, var(--royal) 0%, var(--amethyst) 50%, var(--teal) 100%);
}

.hero-bg-news {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
}

/* ==========================================================================
   15. ACCESSIBILITY
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--bright-yellow);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
@keyframes shine {
    0% { transform: translateX(-100%) skewX(-25deg); }
    100% { transform: translateX(100%) skewX(-25deg); }
}

.brand-logo:hover::after,
.btn-accent:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 1.2s ease;
}

/* Scroll-triggered fade-in */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 120ms; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 240ms; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 360ms; }

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float {
    animation: float 4s ease-in-out infinite;
}

.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }

/* Pulse ring for CTA */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 192, 0, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 192, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 192, 0, 0); }
}

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* Hero gradient shimmer */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-landing {
    background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 30%, var(--teal) 60%, var(--amethyst) 100%);
    background-size: 300% 300%;
    animation: gradient-shift 12s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Hero floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
}

/* Typing cursor */
#typing-text::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--bright-yellow);
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Service card icon circle */
.icon-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.2);
}

/* Stat card */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--royal);
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

/* Testimonial card */
.testimonial-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    border-left: 4px solid var(--bright-yellow);
}

.testimonial-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--amethyst);
    opacity: 0.2;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

/* Coming soon badge */
.badge-coming-soon {
    display: inline-block;
    background-color: var(--bright-yellow);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ==========================================================================
   17. FORM STYLES
   ========================================================================== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #ddd;
    background-color: #fff;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-input:focus {
    border-color: var(--royal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.15);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--royal);
    font-size: 0.9rem;
}

/* ==========================================================================
   18. PARTNER LOGO GRID
   ========================================================================== */
.partner-logo-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07);
    transition: box-shadow 300ms ease;
}

.partner-logo-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.partner-logo-card img {
    max-height: 6rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ==========================================================================
   19. MARQUEE / SCROLLING TEXT
   ========================================================================== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ==========================================================================
   20. RESPONSIVE HELPERS
   ========================================================================== */
/* Fix for fixed header spacing — applied globally */
main {
    padding-top: 5rem;
}

/* ==========================================================================
   21. SERVICE-SPECIFIC GRADIENTS
   ========================================================================== */
/* Purple-to-Lavender: Hero sections & primary CTAs */
.gradient-primary {
    background: linear-gradient(135deg, var(--royal) 0%, var(--lavender-bg) 100%);
}

/* Yellow-to-Amber: Featured content blocks */
.gradient-featured {
    background: linear-gradient(135deg, var(--bright-yellow) 0%, #FF9800 100%);
}

/* Teal-to-Cyan: Tech/AI feature cards */
.gradient-ai {
    background: linear-gradient(135deg, var(--teal) 0%, #00E5FF 100%);
}

/* Green-to-Light Green: Wellness content cards */
.gradient-wellness {
    background: linear-gradient(135deg, var(--sage) 0%, #C8E6C9 100%);
}

/* Coral-to-warm: Travel content */
.gradient-travel {
    background: linear-gradient(135deg, var(--coral) 0%, var(--gold-premium) 100%);
}

/* ==========================================================================
   22. OPENBOT CHAT WIDGET
   ========================================================================== */
#openbot-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Floating Action Button */
#openbot-fab {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal) 0%, var(--velvet) 100%);
    color: var(--bright-yellow);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(93, 63, 211, 0.4);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

#openbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(93, 63, 211, 0.5);
}

#openbot-fab.openbot-fab-hidden {
    display: none;
}

/* Chat Panel */
#openbot-panel {
    width: 370px;
    max-width: calc(100vw - 2rem);
    height: 540px;
    max-height: calc(100vh - 6rem);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: opacity 200ms ease, transform 200ms ease;
}

#openbot-panel.openbot-hidden {
    display: none;
}

/* Header */
#openbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--royal) 0%, var(--velvet) 100%);
    color: var(--text-light);
}

#openbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#openbot-header-info > i {
    font-size: 1.5rem;
}

#openbot-header-name {
    font-weight: 700;
    font-size: 0.95rem;
}

#openbot-header-status {
    font-size: 0.7rem;
    opacity: 0.8;
}

#openbot-header-actions {
    display: flex;
    gap: 0.5rem;
}

#openbot-header-actions button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity 200ms ease;
}

#openbot-header-actions button:hover {
    opacity: 1;
}

/* Agent Picker */
#openbot-agent-picker {
    background-color: var(--lavender-bg);
    border-bottom: 1px solid #e0d4f5;
    padding: 0.75rem;
}

#openbot-agent-picker.openbot-hidden {
    display: none;
}

.openbot-agent-picker-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--amethyst);
    margin-bottom: 0.5rem;
}

#openbot-agent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.openbot-agent-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    border: 1.5px solid var(--amethyst);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

.openbot-agent-option:hover {
    background-color: var(--royal);
    color: var(--text-light);
    border-color: var(--royal);
}

.openbot-agent-option i {
    font-size: 0.8rem;
}

/* Messages Area */
#openbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background-color: #fafafe;
}

.openbot-msg {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: openbot-fade-in 200ms ease;
}

.openbot-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--royal) 0%, var(--velvet) 100%);
    color: var(--text-light);
    border-bottom-right-radius: 0.25rem;
}

.openbot-msg-bot {
    align-self: flex-start;
    background-color: var(--lavender-bg);
    color: var(--text-dark);
    border-bottom-left-radius: 0.25rem;
}

.openbot-msg-error {
    background-color: #fff0f0;
    color: var(--coral);
}

@keyframes openbot-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.openbot-typing {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
}

.openbot-typing span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: var(--amethyst);
    animation: openbot-bounce 1.2s infinite ease-in-out;
}

.openbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.openbot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes openbot-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Input Area */
#openbot-input-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid #eee;
    background-color: #fff;
}

#openbot-input {
    flex: 1;
    border: 1.5px solid #ddd;
    border-radius: 1.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 200ms ease;
    font-family: 'Inter', sans-serif;
}

#openbot-input:focus {
    border-color: var(--royal);
}

#openbot-input:disabled {
    opacity: 0.5;
}

#openbot-send {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--royal) 0%, var(--velvet) 100%);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 200ms ease, opacity 200ms ease;
    flex-shrink: 0;
}

#openbot-send:hover {
    transform: scale(1.08);
}

#openbot-send:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

/* Footer */
#openbot-footer {
    text-align: center;
    font-size: 0.6rem;
    padding: 0.3rem;
    color: var(--amethyst);
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #openbot-container {
        bottom: 0;
        right: 0;
        left: 0;
    }

    #openbot-panel {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 1rem);
        max-height: 100vh;
        border-radius: 1rem 1rem 0 0;
    }

    #openbot-fab {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Consultative UI - J'Son Signature Style */
.consultative-intake {
    background: #1a1a1a;
    border-left: 4px solid #D4AF37; /* Creole Gold Accent */
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    color: #f4f4f4;
}

.consultative-intake h3 {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #D4AF37;
}

.consultative-intake label {
    font-weight: 300;
    color: #cccccc;
}

.consultative-intake select, 
.consultative-intake textarea {
    background: #262626;
    border: 1px solid #404040;
    color: #ffffff;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.consultative-intake select:focus, 
.consultative-intake textarea:focus {
    border-color: #D4AF37;
    outline: none;
}
