:root {
    --bg: #f7f1e3;
    --bg-soft: #efe4d0;
    --panel: #ffffff;
    --panel-alt: #f4f7fb;
    --text: #2d2419;
    --text-dark: #2d2419;
    --muted: #7a6b58;
    --primary: #ff7a00;
    --primary-dark: #d96200;
    --border: rgba(93, 70, 40, 0.12);
    --shadow: 0 24px 60px rgba(93, 70, 40, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    line-height: 1.7;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar,
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgb(255 255 255 / 92%);
    border-bottom: 1px solid var(--border);
}

.topbar-inner,
.footer-inner,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-logo {
    height: 78px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-note,
.top-link,
.footer p,
.footer-links,
.hero-text,
.card p,
.benefit-item p,
.contact-box,
.section-head p,
.empty-state,
.lead-card span {
    color: var(--muted);
}

.topbar-actions,
.hero-actions,
.footer-links,
.actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}

.button-outline {
    border: 1px solid rgba(45, 36, 25, 0.18);
    background: transparent;
}

.button-sm {
    min-height: 40px;
    padding: 0 16px;
}

.button-full {
    width: 100%;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.28);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 40px;
    background-image:
        linear-gradient(180deg, rgba(7, 14, 22, 0.64) 0%, rgba(7, 14, 22, 0.74) 100%),
        var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    color: #f8fafc;
}

.hero-grid,
.contact-grid,
.feature-grid,
.admin-layout {
    display: grid;
    gap: 24px;
}

.hero-grid,
.contact-grid,
.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 122, 0, 0.14);
    color: #9a5412;
    font-size: 0.88rem;
    font-weight: 700;
}

.hero h1,
.section-head h2,
.feature-grid h2,
.contact-grid h2,
.login-card h1,
.admin-topbar h1 {
    font-size: clamp(2rem, 4vw, 4.3rem);
    letter-spacing: -0.04em;
}

.hero-text {
    margin-top: 18px;
    max-width: 640px;
    font-size: 1.05rem;
}

.hero .hero-text,
.hero .hero-panel p,
.hero .hero-panel ul,
.hero .stat-card span {
    color: rgba(248, 250, 252, 0.82);
}

.hero .stat-card,
.hero .hero-panel {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero .button-outline {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.hero-actions,
.stats-grid {
    margin-top: 28px;
}

.stats-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card,
.card,
.hero-panel,
.benefit-item,
.contact-box,
.form-shell,
.login-card,
.panel-card,
.lead-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 252, 246, 0.88);
    box-shadow: var(--shadow);
}

.stat-card,
.card,
.benefit-item,
.contact-box,
.lead-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.8rem;
}

.hero-panel,
.form-shell,
.login-card,
.panel-card {
    padding: 28px;
}

.hero-panel ul {
    margin: 18px 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.section {
    padding: 88px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-accent {
    background: linear-gradient(180deg, #f5ead8 0%, #f1e3cc 100%);
}

.section-head {
    max-width: 680px;
    margin-bottom: 28px;
}

.section-head.compact h2,
.panel-side .section-head h2 {
    font-size: 1.5rem;
}

.benefit-list,
.lead-list {
    display: grid;
    gap: 16px;
}

.references-grid,
.gallery-grid {
    display: grid;
    gap: 18px;
}

.references-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reference-card,
.gallery-card,
.map-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 252, 246, 0.88);
    box-shadow: var(--shadow);
}

.reference-card {
    padding: 24px;
}

.reference-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-card {
    overflow: hidden;
    margin: 0;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-card figcaption {
    padding: 16px 18px 18px;
    font-weight: 600;
}

.map-layout {
    display: grid;
    gap: 20px;
}

.map-card {
    overflow: hidden;
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.contact-box {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.service-form,
.admin-form-grid {
    display: grid;
    gap: 16px;
}

.admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-upload-group {
    display: grid;
    gap: 10px;
}

.admin-upload-preview {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(23, 32, 51, 0.1);
    background: #f7f7f7;
}

.admin-upload-preview-hero {
    max-width: 100%;
    height: 220px;
}

.admin-help {
    color: #6a768a;
    font-size: 0.92rem;
    font-weight: 500;
}

label,
.block-title {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(93, 70, 40, 0.16);
    border-radius: 16px;
    background: #fffdf8;
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-body input,
.admin-body select,
.admin-body textarea {
    border-color: rgba(23, 32, 51, 0.12);
    background: #fff;
    color: var(--text-dark);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(255, 122, 0, 0.45);
    outline-offset: 2px;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert-success {
    background: rgba(19, 168, 94, 0.12);
    color: #17653f;
}

.alert-error {
    background: rgba(220, 53, 69, 0.12);
    color: #9f2333;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 38px;
}

.admin-body,
.admin-shell {
    min-height: 100vh;
    background: #eef3f9;
    color: var(--text-dark);
}

.admin-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(460px, 100%);
    background: #fff;
    border-color: rgba(23, 32, 51, 0.08);
}

.back-link {
    display: inline-block;
    margin-top: 14px;
    color: #42526b;
}

.admin-topbar {
    padding-inline: min(32px, 4vw);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(23, 32, 51, 0.08);
}

.admin-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    align-items: start;
    padding: 24px min(32px, 4vw) 40px;
}

.panel-card {
    background: #fff;
    border-color: rgba(23, 32, 51, 0.08);
}

.panel-form,
.panel-side {
    position: sticky;
    top: 104px;
}

.panel-form,
.panel-side {
    max-height: calc(100vh - 132px);
    overflow: auto;
}

.full {
    grid-column: 1 / -1;
}

.block-title {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(23, 32, 51, 0.08);
    color: #42526b;
}

.lead-card {
    background: #f8fbff;
    border-color: rgba(23, 32, 51, 0.06);
}

.lead-card strong,
.lead-card a,
.contact-box a {
    color: var(--text-dark);
}

@media (max-width: 980px) {
    .hero-grid,
    .contact-grid,
    .feature-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .panel-form,
    .panel-side {
        position: static;
        max-height: none;
    }

    .map-card iframe {
        height: 320px;
    }
}

@media (max-width: 720px) {
    .topbar-inner,
    .footer-inner,
    .admin-topbar,
    .topbar-actions,
    .footer-links,
    .hero-actions,
    .actions-row,
    .admin-form-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero,
    .section {
        padding: 52px 0;
    }

    .hero-panel,
    .form-shell,
    .login-card,
    .panel-card {
        padding: 22px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding-inline: 18px;
    }

    .gallery-card img {
        height: 210px;
    }
}
