:root {
    --ink: #0a0d11;
    --ink-soft: #11161d;
    --surface: #171d24;
    --surface-light: #1d242c;
    --paper: #f2f0e9;
    --text: #f7f5ef;
    --muted: #a6adb5;
    --line: rgba(255, 255, 255, 0.13);
    --line-dark: rgba(10, 13, 17, 0.18);
    --accent: #ff6038;
    --accent-soft: #ffb09b;
    --cyan: #42d4ed;
    --green: #62d6b6;
    --amber: #f3b95e;
    --red: #ff7a82;
    --radius: 4px;
    --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

body.admin-body,
body.login-body { background: #0c1117; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    border-bottom: 1px solid #dfe3e6;
    background: #fff;
    color: var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    line-height: 1;
}

.brand__logo {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.brand__mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 0.74rem;
}

.brand__text { font-size: 0.95rem; }
.brand__text small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    padding: 10px 13px;
    color: #4f5963;
    font-size: 0.9rem;
    transition: color 160ms ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.site-nav .nav-pill {
    margin-left: 10px;
    border: 1px solid var(--ink);
    color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--ink);
}
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: 4.2rem; line-height: 0.98; }
h2 { margin-bottom: 18px; font-size: 2.55rem; line-height: 1.08; }
h3 { margin-bottom: 10px; font-size: 1.18rem; }

.eyebrow,
.section-index {
    margin: 0 0 18px;
    color: var(--accent-soft);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    align-content: center;
    padding: 100px 0 96px;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 9, 13, 0.98) 0%, rgba(6, 9, 13, 0.86) 40%, rgba(6, 9, 13, 0.18) 76%, rgba(6, 9, 13, 0.3) 100%);
    content: "";
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__content { margin-bottom: 92px; }
.hero__content h1 { max-width: 760px; font-size: 4.8rem; font-weight: 800; }
.hero__content h1 em {
    color: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.hero__lead,
.muted {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}
.hero__lead { max-width: 610px; color: #d5d8db; }
.hero__actions,
.detail-actions,
.center-action {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 32px;
}

.hero__proof {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.26);
}
.hero__proof span {
    padding: 24px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.26);
    color: #dadddf;
    font-size: 0.86rem;
}
.hero__proof span:first-child { padding-left: 0; }
.hero__proof span:last-child { border-right: 0; }

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
    line-height: 1.1;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--accent); color: #140805; }
.btn-primary:hover { background: #ff7958; }
.btn-secondary { border-color: #fff; background: #fff; color: var(--ink); }
.btn-secondary:hover { background: transparent; color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.58); }
.btn-danger { border-color: rgba(255, 122, 130, 0.5); background: transparent; color: #ffc7cc; }
.btn-sm { min-height: 38px; padding: 9px 12px; font-size: 0.84rem; }
.text-link,
.card-link { border-bottom: 1px solid currentColor; padding-bottom: 3px; font-weight: 800; }
.text-link { color: #fff; }
.card-link { color: var(--ink); font-size: 0.86rem; }

.section { padding: 104px 0; }
.section-tight { padding-top: 62px; }
.editorial-intro { background: var(--paper); color: var(--ink); }
.editorial-grid {
    display: grid;
    grid-template-columns: 0.34fr 1fr;
    gap: 68px;
    align-items: start;
}
.editorial-intro .section-index { color: #7c4a3c; }
.editorial-copy h2 { max-width: 830px; font-size: 3.3rem; }
.editorial-copy p { max-width: 720px; color: #4c5054; font-size: 1.1rem; line-height: 1.75; }

.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading--row {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}
.section-heading--row h2 { margin-bottom: 0; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 18px;
}
.project-card { overflow: hidden; background: var(--paper); color: var(--ink); }
.project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #10161e;
}
.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}
.project-card:hover .project-card__media img { transform: scale(1.025); }
.project-card__body { padding: 22px; }
.project-card__meta,
.project-card__footer,
.status-row,
.admin-panel__header,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.project-card__meta {
    margin-bottom: 20px;
    color: #64696f;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.project-card h3 { font-size: 1.45rem; }
.project-card p { min-height: 74px; color: #555b60; line-height: 1.55; }
.project-card__footer { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line-dark); }

.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.tech-stack span {
    padding: 6px 8px;
    border: 1px solid var(--line-dark);
    color: #4d5358;
    font-size: 0.72rem;
    font-weight: 700;
}
.project-detail-content .tech-stack span,
.detail-block .tech-stack span { border-color: var(--line); color: #d1d5d8; }
.tech-stack-large span { font-size: 0.88rem; }

.feature-story { background: #101821; }
.feature-story__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 620px; }
.feature-story__image { overflow: hidden; }
.feature-story__image img { width: 100%; height: 100%; object-fit: cover; }
.feature-story__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 72px; }
.feature-story__copy h2 { max-width: 470px; font-size: 3rem; }
.feature-story__copy p:not(.section-index) { max-width: 500px; color: #b4bbc1; line-height: 1.7; }

.process-band { border-top: 1px solid var(--line); }
.process-list { border-top: 1px solid var(--line); }
.process-item {
    display: grid;
    grid-template-columns: 60px 0.45fr 1fr;
    gap: 28px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.process-item span { color: var(--accent-soft); font-size: 0.78rem; font-weight: 800; }
.process-item h3 { margin: 0; font-size: 1.35rem; }
.process-item p { margin: 0; color: var(--muted); line-height: 1.6; }

.final-cta { padding: 76px 0; background: var(--accent); color: #160804; }
.final-cta__inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.final-cta .section-index { color: #6e2615; }
.final-cta h2 { max-width: 720px; margin-bottom: 0; font-size: 3rem; }
.final-cta .btn-primary { border-color: #160804; background: #160804; color: #fff; }

.site-footer { padding: 58px 0; color: var(--muted); background: #06080b; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.7fr 0.7fr; gap: 44px; }
.footer-grid > div:first-child p { max-width: 430px; margin-top: 24px; line-height: 1.65; }
.footer-grid a,
.footer-grid strong { display: block; margin-bottom: 11px; }
.footer-grid strong { color: var(--text); }

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid #86e5ca;
    border-radius: var(--radius);
    background: #0d2a23;
    color: #a8f0dc;
    font-size: 0.72rem;
    font-weight: 800;
}

.page-hero,
.project-detail-hero { position: relative; overflow: hidden; }
.compact-hero { padding: 104px 0 58px; border-bottom: 1px solid var(--line); background: var(--ink-soft); }
.compact-hero h1 { max-width: 900px; font-size: 3.5rem; }

.filters-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filter-btn {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}
.filter-btn.is-active,
.filter-btn:hover { border-color: #fff; color: #fff; }

.search-field span,
label { display: grid; gap: 8px; color: #c2c7cc; font-weight: 700; }
input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    background: #11171d;
    color: var(--text);
}
select option { color: #111; }
input:focus,
select:focus,
textarea:focus { border-color: var(--accent-soft); }

.empty-state { padding: 40px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.empty-state h2 { color: var(--text); }
.empty-state.compact { padding: 24px; }

.project-detail-hero { padding: 78px 0 42px; }
.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 52px;
    align-items: center;
}
.project-gallery { display: grid; gap: 12px; }
.gallery-main { overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-thumbs button { overflow: hidden; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.gallery-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.back-link { display: inline-flex; margin-bottom: 28px; border-bottom: 1px solid currentColor; color: #fff; font-weight: 800; }
.detail-price { display: grid; gap: 4px; margin: 28px 0 18px; }
.detail-price span { color: var(--muted); }
.detail-price strong { font-size: 2rem; }
.status-row { justify-content: flex-start; margin-bottom: 26px; color: var(--muted); }
.status-pill { display: inline-flex; min-height: 26px; align-items: center; padding: 5px 8px; border: 1px solid currentColor; font-size: 0.72rem; font-weight: 800; }
.status-available { color: var(--green); }
.status-progress { color: #9bd5ff; }
.status-sold { color: #ffc7cd; }
.status-quote { color: #ffe0a7; }

.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-block,
.contact-aside,
.payment-result,
.form-card,
.admin-panel,
.admin-cards article,
.login-card { border: 1px solid var(--line); background: var(--ink-soft); }
.detail-block { padding: 30px; }
.feature-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 22px; color: var(--muted); line-height: 1.65; }
.feature-list li::before { position: absolute; top: 0.62em; left: 0; width: 7px; height: 7px; background: var(--accent); content: ""; }

.form-layout,
.payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr); gap: 22px; align-items: start; }
.payment-layout { grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr); }
.form-card,
.contact-aside,
.payment-result { padding: 26px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-card { display: grid; gap: 16px; }
.contact-aside { position: sticky; top: 94px; }
.contact-aside p { color: var(--muted); line-height: 1.65; }

.alert { padding: 12px 14px; border: 1px solid currentColor; font-weight: 700; line-height: 1.45; }
.alert-success { color: #cafff4; background: rgba(98, 214, 182, 0.08); }
.alert-error { color: #ffd9de; background: rgba(255, 122, 130, 0.08); }
.payment-result { display: grid; gap: 18px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-grid div { padding: 14px; border: 1px solid var(--line); }
.result-grid span,
.admin-cards span,
.admin-panel__header span,
.admin-topbar span { color: var(--muted); font-size: 0.82rem; }
.result-grid strong { display: block; margin-top: 6px; }
.pix-box { display: grid; gap: 12px; }
.pix-box img { width: 220px; padding: 10px; background: white; }
.inline-form { display: flex; }

.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 32px; }
.login-card { display: grid; width: min(440px, 100%); gap: 16px; padding: 28px; }
.login-card h1 { font-size: 2rem; }
.admin-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 22px; border-right: 1px solid var(--line); background: #080c11; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 28px; }
.admin-sidebar nav a { padding: 12px; color: var(--muted); }
.admin-sidebar nav a:hover { background: var(--surface); color: #fff; }
.admin-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 60px; }
.admin-topbar { margin-bottom: 22px; }
.admin-topbar h1 { margin-bottom: 0; font-size: 2.1rem; }
.admin-user { padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); }
.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-cards article { padding: 20px; }
.admin-cards strong { display: block; margin-top: 8px; font-size: 2rem; }
.admin-panel { padding: 22px; }
.admin-panel__header { margin-bottom: 18px; }
.admin-panel__header h2 { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
.admin-table td span { display: block; color: var(--muted); font-size: 0.82rem; }
.table-project { display: flex; gap: 12px; align-items: center; }
.table-project img { width: 68px; height: 44px; object-fit: cover; }
.table-actions,
.project-card__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-form { display: grid; gap: 16px; }
.current-thumb { display: grid; gap: 8px; color: var(--muted); }
.current-thumb img { width: 220px; border: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .project-card__media img { transition: none; }
}

@media (max-width: 1080px) {
    .hero__content h1 { font-size: 4rem; }
    .project-grid,
    .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-story__copy { padding: 48px; }
    .project-detail-grid,
    .form-layout,
    .payment-layout { grid-template-columns: 1fr; }
    .contact-aside { position: static; }
}

@media (max-width: 820px) {
    .site-header { padding-inline: 18px; }
    .menu-toggle { display: block; }
    .site-nav {
        position: fixed;
        top: 72px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 12px;
        border: 1px solid #dfe3e6;
        background: #fff;
        box-shadow: 0 16px 36px rgba(10, 13, 17, 0.12);
    }
    .site-nav.is-open { display: grid; }
    .site-nav .nav-pill { margin-left: 0; }
    .hero { min-height: 760px; align-content: end; padding-top: 180px; }
    .hero::before { background: linear-gradient(0deg, rgba(6, 9, 13, 1) 0%, rgba(6, 9, 13, 0.86) 50%, rgba(6, 9, 13, 0.22) 100%); }
    .hero__media img { object-position: 60% center; }
    .hero__content { margin-bottom: 136px; }
    .hero__content h1,
    .compact-hero h1 { font-size: 3.1rem; }
    .hero__proof { grid-template-columns: 1fr; }
    .hero__proof span { padding: 12px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
    .hero__proof span:last-child { border-bottom: 0; }
    .editorial-grid,
    .feature-story__grid,
    .detail-columns,
    .filters-panel,
    .footer-grid,
    .form-grid.two,
    .form-grid.three { grid-template-columns: 1fr; }
    .editorial-grid { gap: 24px; }
    .editorial-copy h2 { font-size: 2.5rem; }
    .feature-story__grid { min-height: auto; }
    .feature-story__image { max-height: 540px; }
    .feature-story__copy { padding: 44px 0 0; }
    .feature-story__copy h2 { font-size: 2.45rem; }
    .process-item { grid-template-columns: 42px 0.45fr 1fr; gap: 16px; }
    .final-cta__inner,
    .section-heading--row,
    .project-card__footer,
    .admin-panel__header,
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .project-card p { min-height: auto; }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-main { width: min(100% - 28px, 1180px); }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, var(--container)); }
    .brand__logo { height: 38px; }
    .hero { min-height: 710px; padding-bottom: 130px; }
    .hero__content { margin-bottom: 90px; }
    .hero__content h1,
    .compact-hero h1 { font-size: 2.55rem; }
    h2 { font-size: 2rem; }
    .hero__lead,
    .muted { font-size: 0.98rem; }
    .hero__actions,
    .detail-actions,
    .project-card__actions,
    .table-actions { width: 100%; }
    .hero__actions .btn { width: 100%; }
    .section { padding: 76px 0; }
    .project-grid,
    .admin-cards { grid-template-columns: 1fr; }
    .project-card__media { aspect-ratio: 16 / 10; }
    .process-item { grid-template-columns: 34px 1fr; }
    .process-item p { grid-column: 2; }
    .final-cta h2 { font-size: 2.25rem; }
    .result-grid { grid-template-columns: 1fr; }
    .whatsapp-float { width: 44px; height: 44px; }
}
