/* ================= Tokens ================= */
:root {
  --bg: #fbfbf9;
  --bg-alt: #f2f4f1;
  --surface: #ffffff;
  --text: #101615;
  --muted: #4a5856;
  --border: #e1e6e3;
  --accent: #0d7a6f;
  --accent-hover: #0a655c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f2ef;
  --accent-text: #0b6b61;
  --wa: #177a40;
  --wa-hover: #12663a;
  --shadow-sm: 0 1px 2px rgba(16, 22, 21, .05), 0 1px 1px rgba(16, 22, 21, .03);
  --shadow: 0 10px 30px -12px rgba(16, 22, 21, .18), 0 2px 6px rgba(16, 22, 21, .04);
  --shadow-lg: 0 30px 60px -20px rgba(16, 22, 21, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f0e; --bg-alt: #0f1514; --surface: #141b1a; --text: #e8eeec; --muted: #a2b1ad;
    --border: #25302e; --accent: #3ad1bb; --accent-hover: #5fdcc9; --accent-ink: #032420;
    --accent-soft: #12302b; --accent-text: #5fdcc9; --wa: #25d366; --wa-hover: #3ee07a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f0e; --bg-alt: #0f1514; --surface: #141b1a; --text: #e8eeec; --muted: #a2b1ad;
  --border: #25302e; --accent: #3ad1bb; --accent-hover: #5fdcc9; --accent-ink: #032420;
  --accent-soft: #12302b; --accent-text: #5fdcc9; --wa: #25d366; --wa-hover: #3ee07a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 750; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink);
  padding: 12px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.container-narrow { max-width: 820px; }
@media (min-width: 600px) { .container { padding-inline: 24px; } }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 18px; height: 18px; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: .975rem;
  text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.025rem; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .925rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-whatsapp { background: var(--wa); color: #fff; }
:root[data-theme="dark"] .btn-whatsapp { color: #062b14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-whatsapp { color: #062b14; } }
.btn-whatsapp:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) { .btn-row .btn { flex: 1 1 100%; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* ================= Header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; min-height: 44px; min-width: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s;
}
.nav-list a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

@media (max-width: 899px) {
  .nav { margin-left: 0; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 4px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-list a:not(.btn) { display: flex; min-height: 48px; font-size: 1.05rem; color: var(--text); }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-cta-mobile .btn { width: 100%; min-height: 52px; }
  .menu-open .nav-list { visibility: visible; opacity: 1; transform: none; }
  .menu-btn path { transition: transform .2s, opacity .2s; transform-origin: center; }
  .menu-open .menu-btn .m1 { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-btn .m2 { opacity: 0; }
  .menu-open .menu-btn .m3 { transform: translateY(-5px) rotate(-45deg); }
}

/* ================= Sections ================= */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.075rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--accent-text);
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.icon-tile {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text); flex: none;
}

/* ================= Hero ================= */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: min(720px, 90vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--muted); max-width: 40ch; }
.hero .btn-row { margin-top: 32px; }
.hero-meta { margin-top: 24px; color: var(--muted); font-size: .925rem; }

.frame { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.hero-visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; padding: 0 0 12% 10%; }
.hero-visual .frame { box-shadow: var(--shadow-lg); }
.hero-visual .frame-back { position: absolute; right: 12%; top: 18%; width: 78%; transform: rotate(-3deg); opacity: .9; }
.hero-visual .frame-front { position: relative; z-index: 1; width: 90%; margin-left: auto; margin-top: 18%; }
@media (max-width: 959px) { .hero-visual { max-width: 480px; } }

/* ================= Trust ================= */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-block: 20px; font-weight: 650; text-align: center; }
.trust-list li { display: inline-flex; align-items: center; gap: 10px; }
.trust-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ================= Services ================= */
.service { padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.service h3 { margin-top: 20px; font-size: 1.2rem; }
.service p { margin-top: 8px; color: var(--muted); }

/* ================= Work ================= */
.work-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.project { display: flex; flex-direction: column; overflow: hidden; }
.project > .frame { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.project .frame img { transition: transform .5s ease; }
.project:hover .frame img { transform: scale(1.02); }
.shot-placeholder { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--muted); background: var(--bg-alt); font-weight: 600; }
.project-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; flex: 1; }
@media (min-width: 600px) { .project-body { padding: 28px; } }
.project-type { color: var(--accent-text); font-weight: 700; font-size: .85rem; }
.project h3 { font-size: 1.45rem; margin-top: -6px; }
.project-desc { color: var(--muted); }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checks .ico { width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; stroke-width: 2.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .825rem; font-weight: 600; color: var(--muted); }
.project-note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 12px; }
.project-link { align-self: flex-start; margin-top: auto; }
.project-link svg { width: 18px; height: 18px; }

/* ================= Process ================= */
.process { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .process { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step-num {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 18px; font-size: 1.15rem; }
.step p { margin-top: 6px; color: var(--muted); }

/* ================= Team ================= */
.team-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin-inline: auto; } }
@media (min-width: 900px) {
  #team .section-head { text-align: center; margin-inline: auto; }
}
.member { overflow: hidden; display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--accent) 30%, var(--bg-alt)));
}
.photo-fallback span { font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; color: var(--accent-text); letter-spacing: -0.04em; }
.member-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
@media (min-width: 600px) { .member-body { padding: 28px; } }
.member h3 { font-size: 1.5rem; }
.member-role { color: var(--accent-text); font-weight: 700; margin-top: -8px; }
.member-body > p:not(.member-role):not(.member-edu) { color: var(--muted); }
.member-edu { font-size: .925rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--border); }
.member .btn { align-self: flex-start; margin-top: auto; }

/* ================= Why ================= */
.why-grid { display: grid; gap: 28px 32px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why { display: flex; gap: 16px; align-items: flex-start; }
.why h3 { font-size: 1.1rem; margin-top: 2px; }
.why p { margin-top: 6px; color: var(--muted); }

/* ================= FAQ ================= */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
  padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--accent-text); transform: translate(-50%, -50%); transition: transform .2s;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 20px 20px; color: var(--muted); }

/* ================= Contact ================= */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact-intro h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.contact-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.contact-buttons .btn { max-width: 100%; }
.contact-buttons .btn span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .contact-buttons .btn { width: 100%; } }
.contact-note { margin-top: 24px; color: var(--muted); font-size: .925rem; }

.form { padding: 24px; display: grid; gap: 18px; }
@media (min-width: 600px) { .form { padding: 32px; } }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 650; font-size: .925rem; }
.req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889591' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field [aria-invalid="true"] { border-color: #d14343; }
.field-error { color: #c23434; font-size: .85rem; font-weight: 600; min-height: 0; }
:root[data-theme="dark"] .field-error { color: #ff8a8a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error { color: #ff8a8a; } }
.field-error:empty { display: none; }
.form-hint { font-size: .85rem; color: var(--muted); text-align: center; }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-line { margin-top: 12px; color: var(--muted); max-width: 36ch; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--text);
  font-weight: 550; overflow-wrap: anywhere;
}
.footer-links a:hover { color: var(--accent-text); }
.footer-bottom { margin-top: 40px; padding-block: 24px calc(24px + 72px); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
@media (min-width: 600px) { .footer-bottom { padding-bottom: 24px; } }

/* ================= Floating WhatsApp ================= */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(18, 140, 70, .6);
  transition: transform .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
@media (min-width: 600px) { .wa-float { right: 24px; bottom: 24px; } }

/* ================= Reveal animation ================= */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================= 404 ================= */
.notfound { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound-code { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--accent-text); }
.notfound h1 { margin-top: 12px; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem); }
.notfound p:not(.notfound-code) { margin: 14px auto 0; color: var(--muted); max-width: 42ch; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }
