/* HEADER */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; height: clamp(64px, 8vh, 80px); display: flex; align-items: center; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-family: var(--font-heading); font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); align-items: center; flex-grow: 1; justify-content: center; }
.nav-links a { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: clamp(0.85rem, 1.5vw, 1rem); font-family: var(--font-heading); color: var(--ink); white-space: nowrap; transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn-sm { padding: 0.75rem 1.25rem; font-size: 0.9rem; border-radius: var(--radius-lg); white-space: nowrap; }

/* BURGER */
.burger { display: none; flex-direction: column; justify-content: space-around; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 10px; z-index: 102; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
.burger.open span:nth-child(1) { transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: var(--surface); z-index: 101; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease-in-out; overflow-y: auto; padding-top: 80px; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-inner { padding: 2rem var(--container-padding); display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 2rem; }
.mobile-nav-links a { display: flex; align-items: center; gap: 1rem; font-size: 1.25rem; font-family: var(--font-heading); font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-nav-links .nav-icon { width: 24px; height: 24px; color: var(--primary); }
.mobile-menu-footer { margin-top: auto; padding-top: 3rem; padding-bottom: 2rem; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; padding: 1rem; backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-dialog { background: var(--surface); width: 100%; max-width: 450px; border-radius: var(--radius-xl); padding: 2rem; position: relative; transform: translateY(20px); transition: transform 0.3s ease; max-height: 90dvh; overflow-y: auto; }
.modal-overlay.active .modal-dialog { transform: translateY(0); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; cursor: pointer; color: var(--faint); padding: 0.5rem; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { color: var(--ink); }

/* TABS */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; background: var(--canvas); padding: 0.25rem; border-radius: var(--radius-lg); }
.tab-btn { flex: 1; padding: 0.75rem; border: none; background: transparent; border-radius: calc(var(--radius-lg) - 4px); font-family: var(--font-body); font-weight: 600; color: var(--faint); cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* FOOTER */
.footer { background: var(--surface-alt); color: #fff; padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--font-heading); color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.trust-badges { display: flex; gap: 1rem; }
.trust-badges span { padding: 0.25rem 0.75rem; background: rgba(255,255,255,0.1); border-radius: var(--radius-full); }

/* RESPONSIVE LOGIC */
@media (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
}

@media (max-width: 1024px) {
    .nav-links, .header-actions .btn-cta { display: none; }
    .burger { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .brand-col { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* FAB / Floating Action Button */
.fab-callback {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 8px 24px rgba(59, 130, 246, 0.2);
    cursor: pointer;
    z-index: 99;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
}
.fab-callback:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: #2563EB;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5), 0 12px 32px rgba(59, 130, 246, 0.3);
}
.fab-callback:active {
    transform: scale(0.95);
}
.fab-callback svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: phone-jiggle 3s infinite ease-in-out;
}

@keyframes phone-jiggle {
    0% { transform: rotate(0deg) scale(1); }
    5% { transform: rotate(-10deg) scale(1.1); }
    10% { transform: rotate(10deg) scale(1.1); }
    15% { transform: rotate(-10deg) scale(1.1); }
    20% { transform: rotate(10deg) scale(1.1); }
    25% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

@media (max-width: 768px) {
    .fab-callback {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        z-index: 99;
    }
    .fab-callback svg {
        width: 24px;
        height: 24px;
    }
}


/* QUIZ COMPONENT */
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s ease; background: var(--surface); }
.quiz-option:hover { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.02); }
.quiz-option input[type="radio"] { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); cursor: pointer; }
.quiz-option span { font-weight: 500; color: var(--ink); font-size: 1rem; }
.quiz-option:has(input:checked) { border-color: var(--primary); background: rgba(239, 68, 68, 0.05); }


@media (max-width: 768px) {
    .quiz-image-side { min-height: 200px !important; }
}
