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

:root {
    --primary: #c8e600;
    --primary-dark: #a5c200;
    --primary-light: #e6ff4d;
    --secondary: #1565c0;
    --text: #1a1a1a;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #0a0a0a;
    --border: #e8e8e8;
    --success: #2e7d32;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* HEADER */
.header {
    background: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

main {
    margin-top: 56px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.6rem;
    background: var(--primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 1;
    min-width: 0;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-dark);
    color: #ffffff;
}

.lang-nav {
    border: 2px solid var(--bg-dark);
    min-width: 42px;
    justify-content: center;
}

.lang-nav:hover {
    background: var(--bg-dark);
    color: #ffffff;
}

.phone-nav {
    background: var(--primary);
    color: var(--bg-dark) !important;
    font-weight: 700;
}

.phone-nav:hover {
    background: var(--primary-dark);
    color: var(--bg-dark) !important;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.open .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: var(--bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    color: #ffffff;
    flex-shrink: 0;
}

/* HERO */
.hero {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(0,0,0,0.08);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero .btn-primary {
    background: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
}

.hero .btn-primary:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.hero .btn-outline {
    background: transparent;
    border: 2px solid var(--bg-dark);
    color: var(--bg-dark);
}

.hero .btn-outline:hover {
    background: var(--bg-dark);
    color: #ffffff;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--text);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: #ffffff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* SECTIONS */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 56px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -1px;
}

.services, .why-us, .locations {
    padding: 100px 0;
}

.services {
    background: var(--bg);
}

.why-us {
    background: var(--bg-light);
}

.locations {
    background: var(--bg);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--primary);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--primary);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* LOCATIONS */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.location-link {
    display: block;
    padding: 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.location-link:hover {
    background: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
}

/* LEAD FORM */
.lead-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.lead-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}

.lead-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.lead-benefits {
    list-style: none;
}

.lead-benefits li {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.lead-form {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text);
}

.form-success {
    background: #e8f5e9;
    border: 1px solid var(--success);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.form-success h3 {
    color: var(--success);
    margin-bottom: 8px;
}

/* CTA */
.cta-section {
    background: var(--bg-dark);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.7;
}

.cta-section .btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* PAGE HERO */
.page-hero {
    background: var(--bg-light);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* SERVICE DETAIL */
.services-detail {
    padding: 80px 0;
}

[id] {
    scroll-margin-top: 100px;
}

.service-detail-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.service-detail-header {
    background: var(--bg-dark);
    color: white;
    padding: 24px 28px;
}

.service-detail-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-detail-body {
    padding: 28px;
}

.service-desc {
    font-size: 1.05rem;
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.7;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.feature-item {
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* LOCATIONS DETAIL */
.locations-detail {
    padding: 80px 0;
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.location-item {
    display: block;
    padding: 24px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s;
}

.location-item:hover {
    border-color: var(--bg-dark);
    box-shadow: var(--shadow);
}

.location-item h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.location-item p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* CONTENT SECTION */
.content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
}

/* LEGAL CONTENT */
.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    margin-bottom: 8px;
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: #aaaaaa;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* FLOATING CALL BUTTON */
.floating-call {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 16px;
    background: var(--bg-dark);
    color: var(--primary);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.floating-call:hover {
    background: #222;
    color: var(--primary-light);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

@media (prefers-reduced-motion: reduce) {
    .floating-call { animation: none !important; }
}

/* HTMX */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .floating-call {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        font-size: 1.3rem;
        width: 32px;
        height: 32px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 12px;
        z-index: 999;
        gap: 4px;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
    }

    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        max-height: none;
        background: var(--bg-light);
        border-radius: var(--radius-sm);
    }

    .nav-dropdown-content a {
        padding-left: 32px;
    }

    .header-inner {
        height: auto;
        min-height: 56px;
        flex-wrap: nowrap;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

    .services, .why-us, .locations, .lead-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section .btn-primary {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .lead-info h2 {
        font-size: 1.8rem;
    }

    .lead-form {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .lead-info h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .floating-call {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}
