:root {
    --bg: #080e1b;
    --surface: #101a2d;
    --surface-2: #131f34;
    --text: #f5f7fb;
    --muted: #9aa7bd;
    --border: rgba(255,255,255,.09);
    --accent: #ff6b0a;
    --accent-soft: rgba(255,107,10,.12);
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.narrow { max-width: 850px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(8,14,27,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(255,107,10,.23);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.menu-button {
    display: none;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(255,107,10,.18);
}

.button-small {
    min-height: 42px;
    padding: 0 17px;
    font-size: 14px;
}

.button-ghost {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
}

.button-disabled {
    background: rgba(255,255,255,.08);
    color: var(--muted);
    box-shadow: none;
    cursor: default;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -170px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,10,.18), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 76px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    margin-bottom: 12px;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1,
.page-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin-bottom: 24px;
}

.hero h1 span { color: var(--accent); }

.hero-copy,
.page-hero p,
.section-lead {
    color: var(--muted);
    font-size: 18px;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.microcopy {
    margin-top: 18px;
    color: #7f8ca2;
    font-size: 13px;
    max-width: 650px;
}

.hero-card,
.card,
.cta-panel,
.notice {
    background:
        linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,0)),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.hero-card {
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.hero-card-top,
.estimate,
.mini-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-card-top {
    color: var(--muted);
    font-size: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.status-dot {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 9px;
    border-radius: 999px;
}

.estimate {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
}

.estimate span { color: var(--muted); }
.estimate strong { font-size: 28px; letter-spacing: -.03em; }

.mini-list {
    border-top: 1px solid var(--border);
}

.mini-list > div {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: #c7d0df;
}

.mini-list b { color: var(--accent); }

.section { padding: 88px 0; }

.section-alt {
    background: rgba(255,255,255,.015);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    max-width: 800px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin-bottom: 16px;
}

.cards {
    display: grid;
    gap: 18px;
    margin-top: 36px;
}

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card { padding: 24px; }

.card h2,
.card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
}

.icon-box {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.steps {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.step > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    font-weight: 900;
    margin-bottom: 18px;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }

.split-card {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: stretch;
}

.cta-panel {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.cta-panel strong {
    font-size: 24px;
    margin-bottom: 7px;
}

.cta-panel p { color: var(--muted); }

.notice {
    padding: 30px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 42px;
    align-items: center;
}

.notice h2 { margin-bottom: 0; }
.notice p { color: var(--muted); margin-bottom: 0; }

.page-hero {
    padding: 86px 0 58px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 70% -20%, rgba(255,107,10,.12), transparent 45%);
}

.page-hero h1 {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 18px;
}

.legal-content {
    color: #c4cede;
}

.legal-content h2 {
    color: var(--text);
    font-size: 24px;
    line-height: 1.25;
    margin-top: 42px;
    margin-bottom: 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content li { margin-bottom: 8px; }
.legal-content a { color: #ff9654; }

.service-card h2 { font-size: 19px; }

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

.contact-card { padding: 30px; }
.contact-card h2 { font-size: 25px; }
.contact-card .button { margin-top: 14px; }

.legal-note {
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--accent-soft);
    border: 1px solid rgba(255,107,10,.20);
    border-radius: 14px;
    color: #ffd3b5;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 58px 0 28px;
    background: #070c17;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 44px;
}

.footer-brand { margin-bottom: 16px; }
.footer-title { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.footer-links li { margin: 7px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.muted { color: var(--muted); max-width: 420px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: #78869b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .hero { padding-top: 74px; }
    .hero-grid,
    .split-card,
    .notice { grid-template-columns: 1fr; }
    .cards-4,
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }

    .menu-button { display: inline-flex; }
    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 12px;
        background: #0c1424;
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0,0,0,.35);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 10px; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .hero { padding: 58px 0 60px; }
    .section { padding: 64px 0; }
    .cards-4,
    .cards-3,
    .steps,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .footer-bottom { flex-direction: column; }
}


/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 24px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,0)),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.testimonial-card p {
    color: #c7d0df;
    font-size: 15px;
    flex: 1;
}

.stars {
    color: var(--accent);
    letter-spacing: .08em;
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.testimonial-person .avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

.testimonial-person strong,
.testimonial-person small {
    display: block;
}

.testimonial-person small {
    color: var(--muted);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .testimonials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .testimonials { grid-template-columns: 1fr; }
}


/* WhatsApp */
.whatsapp-main-button {
    background: #25D366;
    color: #06150b;
    box-shadow: 0 12px 34px rgba(37, 211, 102, .22);
}

.whatsapp-main-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.hero-actions-whatsapp-first .whatsapp-main-button {
    min-height: 58px;
    padding-left: 28px;
    padding-right: 28px;
    font-size: 16px;
}

.whatsapp-contact-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 42px;
    border-radius: 26px;
    border: 1px solid rgba(37, 211, 102, .26);
    background:
        radial-gradient(circle at 92% 10%, rgba(37, 211, 102, .18), transparent 38%),
        linear-gradient(145deg, rgba(37, 211, 102, .08), rgba(255,255,255,.01)),
        var(--surface);
}

.whatsapp-contact-content {
    max-width: 760px;
}

.whatsapp-contact-card h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin-bottom: 12px;
}

.whatsapp-contact-card p {
    color: var(--muted);
    max-width: 690px;
    font-size: 17px;
}

.whatsapp-eyebrow {
    color: #50e483;
}

.whatsapp-contact-button {
    min-height: 62px;
    padding: 0 30px;
    font-size: 17px;
    margin-top: 10px;
}

.whatsapp-number {
    display: block;
    margin-top: 12px;
    color: #9dddb4;
}

.contact-grid-secondary {
    margin-top: 0;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 17px 0 10px;
    border-radius: 999px;
    background: #25D366;
    color: #06150b;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
}

.whatsapp-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.90);
    color: #11863a;
    font-size: 11px;
    font-weight: 950;
}

.whatsapp-float-text {
    font-size: 14px;
}

@media (max-width: 640px) {
    .whatsapp-contact-card {
        padding: 28px 20px;
    }

    .whatsapp-contact-button {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        min-height: 52px;
    }
}


/* Firebase Hosting / Admin */
.admin-shell { min-height: 100vh; padding: 64px 0; }
.admin-panel { max-width: 980px; margin: 0 auto; }
.admin-topbar { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:22px; }
.admin-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.admin-card { background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:24px; }
.admin-card h1,.admin-card h2 { margin-bottom:10px; }
.admin-form { display:grid; gap:12px; }
.admin-form label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:700; }
.admin-form input,.admin-form textarea,.admin-form select { width:100%; border:1px solid var(--border); background:#0b1425; color:var(--text); border-radius:12px; padding:12px 13px; font:inherit; }
.admin-form textarea { min-height:120px; resize:vertical; }
.admin-actions { display:flex; gap:10px; flex-wrap:wrap; }
.admin-list { display:grid; gap:12px; }
.admin-item { padding:16px; border:1px solid var(--border); border-radius:16px; background:rgba(255,255,255,.018); }
.admin-item-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.admin-item small { color:var(--muted); display:block; }
.admin-item p { color:#c7d0df; margin:9px 0 12px; }
.admin-badge { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:800; background:var(--accent-soft); color:var(--accent); }
.admin-badge.off { background:rgba(255,255,255,.07); color:var(--muted); }
.admin-message { margin:12px 0 0; padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.04); color:var(--muted); font-size:13px; display:none; }
.admin-message.show { display:block; }
.admin-message.error { color:#ffd0d0; background:rgba(255,0,0,.08); }
.admin-message.success { color:#c9ffdc; background:rgba(37,211,102,.08); }
.button-danger { background:#c73737; box-shadow:none; }
.button-secondary { background:rgba(255,255,255,.08); box-shadow:none; color:var(--text); }
.hidden { display:none !important; }
.firebase-config-warning { margin-bottom:18px; padding:14px 16px; border:1px solid rgba(255,107,10,.25); border-radius:14px; background:var(--accent-soft); color:#ffd3b5; }
@media(max-width:760px){ .admin-grid{grid-template-columns:1fr}.admin-topbar{align-items:flex-start;flex-direction:column} }
