:root {
    --primary: #1B2D4F;
    --primary-dark: #0F1B33;
    --accent: #E8A020;
    --accent-light: #F5A623;
    --accent-hover: #D4901A;
    --text-dark: #1a1a1a;
    --text-muted: #5a6270;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1B2D4F;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-accent:hover { background: var(--accent-hover); color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}
.btn-outline-light:hover { background: var(--text-light); color: var(--primary); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(27, 45, 79, 0.97);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600 !important;
    color: var(--accent) !important;
}
.nav-cta { padding: 10px 24px; font-size: 0.85rem; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: var(--primary-dark);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/hero.webp') center center / cover no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 22, 40, 0.65);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-stats {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 36px;
    font-weight: 500;
}
.hero-sub {
    margin-top: 16px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Trust Badges */
.trust-badges {
    padding: 48px 0;
    background: var(--bg-white);
    border-bottom: 1px solid #eee;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.badge-item h3 {
    font-size: 1rem;
    margin: 12px 0 4px;
    color: var(--primary);
}
.badge-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
}
.section-title-light { color: var(--text-light); }
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-align: center;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-icon {
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Why Us */
.why-us {
    padding: 80px 0;
    background: var(--bg-dark);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.why-card {
    text-align: center;
    padding: 24px 16px;
}
.why-icon { margin-bottom: 16px; }
.why-card h3 {
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.why-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}
.stars { margin-bottom: 14px; }
.star { color: var(--accent); font-size: 1.2rem; }
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 18px;
    font-style: italic;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* Service Area */
.service-area {
    padding: 64px 0;
    background: var(--primary);
    text-align: center;
}
.area-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 16px;
}
.city-tag {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
}
.area-note {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    background: var(--bg-white);
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    text-align: left;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-chevron {
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer a { color: var(--accent); font-weight: 600; }

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
    color: var(--text-light);
}
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-content p {
    opacity: 0.85;
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-sub {
    margin-top: 20px;
    opacity: 0.5;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    background: #0a1628;
    color: rgba(255,255,255,0.7);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ==================== CHAT WIDGET ==================== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,160,32,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(232,160,32,0.5); }
.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chat-header {
    background: var(--primary);
    color: var(--text-light);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
}
.chat-header-name { font-weight: 700; font-size: 0.95rem; }
.chat-header-status { font-size: 0.75rem; opacity: 0.7; }
.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
    padding: 0 4px;
    line-height: 1;
}
.chat-close:hover { opacity: 1; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.chat-msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: msgIn 0.25s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg.sarah {
    background: #f0f1f4;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: var(--accent);
    color: var(--primary-dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-msg-time {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 4px;
}
.chat-msg.sarah .chat-msg-time { text-align: left; }
.chat-msg.user .chat-msg-time { text-align: right; }
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}
.typing-dot {
    width: 8px;
    height: 8px;
    background: #b0b4ba;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}
.chat-input-bar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    gap: 8px;
    flex-shrink: 0;
}
.chat-input-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color var(--transition);
}
.chat-input-bar input:focus { border-color: var(--accent); }
.chat-input-bar button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.chat-input-bar button:hover { background: var(--accent-hover); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(27,45,79,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    .nav-links.active { display: flex; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .badges-grid { grid-template-columns: 1fr; gap: 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .hero-content { padding: 100px 16px 60px; }
    .hero h1 { font-size: 2rem; }

    .chat-panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 72px;
        right: -8px;
        border-radius: 12px;
    }
}
