/* CataniaCasa.com - Premium AI Design System */
:root {
    --primary-bg: #0A0E14;
    --secondary-bg: #141C26;
    --accent-cyan: #00F2FF;
    --accent-cyan-glow: rgba(0, 242, 255, 0.3);
    --accent-blue: #0072FF;
    --text-main: #E0E6ED;
    --text-muted: #94A3B8;
    --success-green: #00C896;
    --glass-bg: rgba(20, 28, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-obsidian: linear-gradient(135deg, #0A0E14 0%, #1A2433 100%);
    --gradient-cyan: linear-gradient(90deg, #00F2FF 0%, #0072FF 100%);
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-gradient {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--gradient-cyan);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.6);
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Specific Sections */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(0, 114, 255, 0.15), transparent);
}

.hero-content {
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* AI Valuator Input */
.valuator-card {
    padding: 2rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.valuator-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem;
    outline: none;
}

/* Slider Section */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}

.slider-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: inset(0 50% 0 0);
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: ew-resize;
    display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 0 30px var(--accent-cyan-glow);
    z-index: 10;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: -500px; bottom: -500px;
    left: 50%;
    width: 2px;
    background: var(--accent-cyan);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    pointer-events: none;
}

/* ── Transformation Section (Pain → Solution) ── */
.transformation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
═══════════════════════════════════════════════ */

/* Hamburger menu button (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 20, 0.97);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-nav-overlay a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.mobile-nav-overlay a:hover {
    color: var(--accent-cyan);
}

/* ── Tablet (max 900px) ── */
@media (max-width: 900px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero {
        height: auto;
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: 7rem !important;
    }

    .hero > div {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero h1,
    .hero-content h1 {
        font-size: 2.4rem !important;
        line-height: 1.15 !important;
    }
}

/* ── Smartphone (max 600px) ── */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* Header */
    header.container {
        padding: 1rem !important;
    }

    .nav-toggle {
        display: flex;
    }

    header > nav > a.btn {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 100dvh;
        padding-top: 6.5rem !important;
        padding-bottom: 2rem !important;
        align-items: flex-start;
    }

    .hero > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .transformation-grid > div:first-child {
        text-align: center;
    }

    .hero-content {
        text-align: center !important;
    }

    /* Pain badge: wrap gracefully */
    .hero-tag {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
        letter-spacing: 0.5px !important;
        text-align: center;
        white-space: normal;
        line-height: 1.5;
    }

    /* H1 */
    .hero h1,
    .hero-content h1 {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }

    /* CTA button: full width on mobile */
    .btn-wizard-cta {
        display: block !important;
        width: 100% !important;
        padding: 1.1rem 1rem !important;
        font-size: 1rem !important;
        text-align: center !important;
    }

    /* Section headings */
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    /* Ecosystem cards */
    .ecosystem-card {
        padding: 2rem 1.25rem !important;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem 1.25rem !important;
    }

    /* Stat numbers */
    .stat-number {
        font-size: 2.2rem !important;
    }

    /* Footer */
    footer.container {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* ── Visual Proof Banner (New) ── */
.visual-proof-container {
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
    padding: 0 1rem;
}

.visual-proof-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--glass-bg);
}

.visual-proof-banner:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 50px 100px -20px rgba(0, 242, 255, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.visual-proof-banner img {
    transition: transform 0.8s ease;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.visual-proof-banner:hover img {
    transform: scale(1.05);
}

.visual-proof-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(10, 14, 20, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* ──────────────────────────────────────────────────────────
   NEW SECTIONS: COMPARISON, STEPS, EXCLUSIVITY, FAQ
   ────────────────────────────────────────────────────────── */

/* 1. Comparison Table */
.comparison-container {
    margin-top: 4rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.15rem 0.75rem; /* Small spacing for vertical separation feel */
    min-width: 600px;
}

.comparison-table tr {
    transition: all 0.3s ease;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

.comparison-table th {
    padding: 2rem 1.5rem;
    text-align: left;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    background: rgba(20, 28, 38, 0.8);
    border-bottom: 2px solid var(--glass-border);
}

.comparison-table th:first-child { border-radius: 12px 0 0 12px; }
.comparison-table th:last-child { border-radius: 0 12px 12px 0; }

.comparison-table td {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Vertical Separation — Glass Lines */
.comparison-table td:not(:last-child), 
.comparison-table th:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* First Column: Labels (Darker ground) */
.comparison-table tr td:first-child {
    background: rgba(10, 14, 20, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 0 0 12px;
    font-weight: 600;
    color: white;
}

/* Second Column: Competitor (Sobriety) */
.comparison-table tr td:nth-child(2) {
    background: rgba(255, 255, 255, 0.015);
}

/* Third Column: CataniaCasa.com (Premium Highlight) */
.comparison-table td.cataniacasa-col, 
.comparison-table th.cataniacasa-col {
    background: rgba(0, 242, 255, 0.08) !important;
    border-color: rgba(0, 242, 255, 0.3) !important;
    color: var(--accent-cyan) !important;
    font-weight: 700;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.comparison-table td.cataniacasa-col {
    box-shadow: inset 0 0 30px rgba(0, 242, 255, 0.08);
}

.comparison-table tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05); /* Match with other borders */
    border-radius: 0 12px 12px 0;
}

/* Brand Column Glow for rows */
.comparison-table tr:hover td.cataniacasa-col {
    background: rgba(0, 242, 255, 0.12) !important;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.1);
}

/* Contact Form Styles */
.contact-form-section {
    position: relative;
    overflow: hidden;
}

.btn-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 242, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.final-cta-section {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
}

.btn-whatsapp-premium {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-whatsapp-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.5);
    background: #22c35e;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-status {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.status-success {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-submit {
    width: 100%;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 2. Step Cards (Protocol) - Already partially defined but cleanup */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    margin-top: 4rem;
}

.step-card {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 24px;
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: var(--gradient-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.4);
}

.step-card h3 {
    margin: 1rem 0;
    color: white;
}

/* 3. Qualification Section (Who We Work With) */
.exclusivity-section {
    background: linear-gradient(180deg, var(--primary-bg) 0%, rgba(0, 114, 255, 0.05) 100%);
    border-radius: 32px;
    padding: 5rem 2rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin: 6rem 0;
    position: relative;
    overflow: hidden;
}

.exclusivity-content {
    max-width: 850px;
    margin: 0 auto;
}

.qualification-list {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.qualification-item:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.2);
    transform: translateX(10px);
}

.qualification-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.qualification-text {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
}

/* 4. FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.faq-card {
    padding: 2rem;
    border-radius: 20px;
}

.faq-card h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Responsive Table Fix */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table td, 
    .comparison-table th {
        padding: 1rem;
        font-size: 0.85rem;
    }
}
