/*
 * Hero AI Simulation Styles
 * This is the primary stylesheet for the Hero section (layout, grid, badges, statuses).
 * Keep CTA button color definitions centralized in css/styles.min.css.
 */
/* Hero AI Simulation Styles */
.hero-ai-simulation {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Hero Query Box */
.hero-query-box {
    background: white;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.hero-query-box .query-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-query-box .query-text {
    font-size: 1rem;
    color: #333;
    flex: 1;
}

/* Hero Results Grid */
.hero-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Hero Result Boxes */
.hero-result-box {
    border-radius: 12px;
    padding: 20px;
    border: 2px solid;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-result-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Red Box (Competitor) */
.hero-result-fail {
    background: #ffe5e5;
    border-color: #ff6b6b;
    color: #cc0000;
}

.hero-result-fail .result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Hero Green Box (Success) */
.hero-result-success {
    background: linear-gradient(135deg, #e5ffe9 0%, #f0fff4 100%);
    border-color: #51cf66;
    color: #007a33;
    position: relative;
}

.hero-result-success.highlighted {
    box-shadow: 0 0 0 3px rgba(81, 207, 102, 0.4), 0 8px 24px rgba(81, 207, 102, 0.15);
    transform: scale(1.02);
}

.hero-result-success .result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1rem;
}

/* Hero ChatGPT Response */
.hero-chatgpt-response {
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-chatgpt-response p {
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-hotel-list {
    list-style: none;
    margin-bottom: 16px;
}

.hero-hotel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-hotel-item .hotel-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-hotel-item .hotel-name {
    flex: 1;
    font-weight: 500;
}

/* Hero Your Hotel Styling */
.hero-your-hotel {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.25) 0%, rgba(81, 207, 102, 0.15) 100%);
    border: 2px solid #51cf66;
    font-weight: 700;
    position: relative;
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.2);
}

.hero-recommendation-badge {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.3);
    box-shadow: 0 2px 8px rgba(81, 207, 102, 0.3);
    margin-left: 8px;
}

.hero-recommendation-badge.bounce-in {
    animation: hero-badge-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes hero-badge-bounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Faded competitors in success column */
.hero-competitor-faded {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.3);
}

.hero-competitor-faded .hotel-name {
    color: #666;
}

/* Hero Status Messages */
.hero-status-message {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 12px;
    line-height: 1.4;
}

.hero-status-error {
    background: rgba(204, 0, 0, 0.12);
    color: #cc0000;
    border: 1px solid rgba(204, 0, 0, 0.2);
}

.hero-status-success {
    background: rgba(0, 122, 51, 0.12);
    color: #007a33;
    border: 1px solid rgba(0, 122, 51, 0.2);
}

/* Desktop Optimizations for Hero Results */
@media screen and (min-width: 769px) {
    .hero-result-success {
        padding: 24px;
    }
    
    .hero-result-success .result-header {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero-chatgpt-response {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-hotel-item {
        padding: 10px 14px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .hero-your-hotel {
        padding: 12px 16px;
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .hero-your-hotel .hotel-icon {
        font-size: 1rem;
        flex-shrink: 0;
        order: 1;
    }
    
    .hero-your-hotel .hotel-name {
        font-size: 0.95rem;
        color: #007a33;
        font-weight: 700;
        order: 2;
        flex: 0 0 auto;
    }
    
    .hero-your-hotel .hero-recommendation-badge {
        order: 3;
        flex-basis: 100%;
        margin-left: 24px; /* Align with text after icon */
        width: fit-content;
        font-size: 0.8rem;
        padding: 5px 12px;
        border-radius: 16px;
        margin-top: 4px;
    }
    
    .hero-status-success {
        font-size: 0.9rem;
        padding: 12px 16px;
        margin-top: 16px;
        font-weight: 700;
    }
    
    .hero-competitor-faded {
        opacity: 0.5;
    }
}

/* Mobile Responsive for Hero - Mobile First Approach */
@media screen and (max-width: 768px) {
    /* Hero Layout Mobile - Text above, simulation below */
    .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center;
        padding: 0;
    }
    
    .hero-content {
        order: 1;
        width: 100%;
        margin-bottom: 16px;
    }
    
    .hero-content h1 {
        font-size: clamp(26px, 7vw, 32px) !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        text-align: center;
        max-width: 100%;
    }
    
    /* CTA always visible and prominent on mobile */
    .hero-content .cta-primary {
        width: 100% !important;
        padding: 18px 24px !important;
        font-size: 16px !important;
        margin-bottom: 12px !important;
        display: block !important;
        text-align: center !important;
        /* unified CTA colors via variables */
        background-color: var(--color-primary) !important;
        border: 2px solid var(--color-primary) !important;
        box-shadow: 0 4px 20px rgba(0, 114, 206, 0.4) !important;
    }
    
    .hero-content .cta-primary:hover {
        background-color: var(--color-primary-light) !important;
        border-color: var(--color-primary-light) !important;
        transform: translateY(-1px) !important;
    }
    
    .cta-payoff {
        font-size: 13px !important;
        margin-top: 8px !important;
        color: #666 !important;
        line-height: 1.4;
    }
    
    .hero-visual {
        order: 2;
        width: 100%;
        margin-top: 0;
    }
    
    /* AI Simulation optimized for mobile readability */
    .hero-ai-simulation {
        padding: 16px !important;
        margin: 0 auto;
        max-width: 100%;
        border-radius: 12px;
    }
    
    /* Single column grid for better mobile readability */
    .hero-results-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .hero-query-box {
        padding: 14px 16px !important;
        font-size: 15px !important;
        margin-bottom: 20px;
    }
    
    .hero-result-box {
        padding: 16px !important;
        font-size: 14px !important;
        border-radius: 10px;
    }
    
    .hero-chatgpt-response p {
        font-size: 14px !important;
        margin-bottom: 12px !important;
        font-weight: 500;
    }
    
    .hero-hotel-item {
        padding: 8px 12px !important;
        margin-bottom: 6px !important;
        font-size: 14px;
    }
    
    .hero-status-message {
        font-size: 13px !important;
        padding: 8px 12px !important;
        font-weight: 500;
    }
    
    /* Reduce padding and optimize spacing */
    .hero {
        padding: 60px 0 40px !important;
        min-height: auto !important;
    }
    
    /* Ensure hero CTA is always visible on first scroll */
    .hero .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-ai-simulation {
        padding: 12px !important;
        margin: 0;
    }
    
    .hero-content h1 {
        font-size: clamp(24px, 8vw, 28px) !important;
        line-height: 1.3 !important;
    }
    
    .hero-content p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    
    .hero-query-box {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    .hero-result-box {
        padding: 14px !important;
        font-size: 13px !important;
    }
    
    .hero-hotel-item {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
}

/* Accessibility for Hero */
@media (prefers-reduced-motion: reduce) {
    .hero-result-box {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .hero-recommendation-badge {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }
}

/* High contrast mode support for Hero */
@media (prefers-contrast: high) {
    .hero-result-fail {
        border-width: 3px;
    }
    
    .hero-result-success {
        border-width: 3px;
    }
}

/* CTA Buttons Group Styling */
.cta-buttons-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cta-buttons-group .btn-base {
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA visuals (spacing/shape only) – colors come from styles.min.css */
.cta-buttons-group .cta-primary {
    font-weight: 600;
}

/* Secondary CTA colors handled globally; keep layout tweaks only */


/* Mobile CTA Enhancements */
@media screen and (max-width: 768px) {
    .cta-primary,
    .hero-content .cta-primary {
        padding: 18px 24px !important;
        font-size: 16px !important;
        font-weight: 600;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .cta-buttons-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons-group .btn-base {
        width: 100%;
        min-width: auto;
    }
}

/* Form improvements */
.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted, #666);
    margin-top: 12px;
    font-style: italic;
}

.error-message {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Lazy loading and performance improvements */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus states for accessibility */
.btn-base:focus,
.cta-primary:focus,
.cta-secondary:focus {
    outline: 2px solid var(--color-accent, #00F0FF);
}

/* Calendly CTA Section Styles */
.calendly-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.calendly-cta-box {
    background: var(--color-bg-light, #ffffff);
    border-radius: var(--radius-lg, 16px);
    padding: 40px 32px;
    box-shadow: var(--shadow-card, 0 8px 24px rgba(0, 114, 206, 0.12));
    border: 1px solid var(--color-border, #e2e8f0);
}

.calendly-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--color-text, #1a1a1a);
}

.calendly-description strong {
    color: var(--color-primary, #0072CE);
    font-weight: 600;
}

.calendly-reassurance {
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-muted, #718096);
    line-height: 1.5;
}

.calendly-reassurance p {
    margin-bottom: 8px;
}

.calendly-info {
    font-style: italic;
    opacity: 0.8;
    font-size: 14px;
    color: var(--color-text-muted, #718096);
    line-height: 1.5;
    margin-top: 8px;
}


/* Accessibility for Hero */
.hero-ai-simulation:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

textarea:focus {
    outline: 2px solid var(--color-primary, #007bff);
    outline-offset: 1px;
    border-color: var(--color-primary, #007bff);
}

/* Global Responsive Design - Mobile First */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    /* Typography Mobile */
    h1 {
        font-size: clamp(24px, 6vw, 32px) !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: clamp(20px, 5vw, 28px) !important;
        line-height: 1.4;
    }
    
    h3 {
        font-size: clamp(18px, 4vw, 24px) !important;
        line-height: 1.4;
    }
    
    body, p {
        font-size: 16px !important;
        line-height: 1.6;
    }
    
    .section-subtitle {
        font-size: 16px !important;
    }
    
    /* Container Mobile */
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    /* Section Spacing Mobile */
    .section-spacing {
        padding: 40px 0 !important;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px !important;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-text {
        font-size: 18px !important;
        margin-bottom: 8px;
    }
    
    .stat-description {
        font-size: 14px !important;
        line-height: 1.5;
    }
    
    /* Evidence Section Mobile */
    .evidence-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .evidence-item {
        padding: 16px !important;
        font-size: 14px !important;
    }
    
    /* Calendly CTA Mobile */
    .calendly-cta-box {
        padding: 24px 16px !important;
        margin: 0 16px;
    }
    
    .calendly-description {
        font-size: 16px !important;
        margin-bottom: 24px;
    }
    
    .calendly-reassurance {
        font-size: 13px !important;
        margin-top: 16px;
    }
    
    /* Sticky CTA Mobile - consolidated in styles.min.css */
    
    /* Footer Mobile */
    .site-footer {
        padding: 30px 0 20px !important;
        text-align: center;
    }
    
    .site-footer nav {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .site-footer nav a {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    /* Sticky Header Mobile */
    .sticky-header {
        padding: 12px 0 !important;
    }
    
    .sticky-header .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .sticky-header nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .sticky-header nav a {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 12px;
    }
    
    .section-spacing {
        padding: 30px 0 !important;
    }
    
    h1 {
        font-size: clamp(22px, 7vw, 28px) !important;
    }
    
    .stat-card {
        padding: 16px !important;
    }
    
    .contact-form {
        padding: 20px 12px !important;
    }
    
    .form-input,
    .form-textarea {
        padding: 10px 12px !important;
    }
}
