:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --sand: #e9e1d3;
  --stone: #d6ccbb;
  --ink: #1c1e1a;
  --ink-2: #3a3d36;
  --muted: #676a61;
  --accent: #c8643b;
  --accent-ink: #a64d28;
  --moss: #4a6542;
  --dark: #1c1e1a;
  --dark-2: #272a24;
  --line: rgba(28, 30, 26, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 30, 26, 0.06), 0 12px 32px -12px rgba(28, 30, 26, 0.18);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 0.98rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--small { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--accent-ink); text-decoration: none; font-size: 0.95rem; }
.link-arrow::after { content: ' →'; transition: margin 0.2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background 0.3s, box-shadow 0.3s; color: #fff; }
.nav.is-solid { background: rgba(245, 241, 234, 0.92); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--font-display); letter-spacing: 0.04em; }
.brand b { color: var(--accent); font-weight: 600; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.9; }
.nav__menu a:not(.btn):hover { opacity: 1; color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: inherit; }
.nav__toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform 0.25s; }
.nav__toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-color: #2a2c27;
  background-image:
    linear-gradient(180deg, rgba(20, 22, 18, 0.35) 0%, rgba(20, 22, 18, 0.55) 55%, rgba(20, 22, 18, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='2'%3E%3Crect x='2' y='2' width='76' height='36' rx='4'/%3E%3Crect x='82' y='2' width='76' height='36' rx='4'/%3E%3Crect x='-38' y='42' width='76' height='36' rx='4'/%3E%3Crect x='42' y='42' width='76' height='36' rx='4'/%3E%3Crect x='122' y='42' width='76' height='36' rx='4'/%3E%3Crect x='2' y='82' width='76' height='36' rx='4'/%3E%3Crect x='82' y='82' width='76' height='36' rx='4'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 80% 10%, #6b4a33 0%, #2a2c27 60%);
  background-size: cover, 160px 120px, cover;
  background-position: center;
  transform: scale(1.04);
}
.hero.has-image .hero__bg { background-size: cover; }
.hero__inner { padding: calc(var(--nav-h) + 80px) 0 72px; max-width: 860px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }
.hero .eyebrow { color: #f0b48f; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; color: rgba(255, 255, 255, 0.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 36px; }
.hero__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li { font-size: 0.85rem; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: rgba(255, 255, 255, 0.85); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--sand); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .eyebrow { color: #f0b48f; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head p:last-child { color: var(--muted); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.3s; }
.service:hover { transform: translateY(-4px); }
.service__media { position: relative; aspect-ratio: 16 / 10; background: var(--stone); }
.service__media--pattern {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='60' viewBox='0 0 80 60'%3E%3Cg fill='none' stroke='%231c1e1a' stroke-opacity='.08' stroke-width='1.5'%3E%3Crect x='1' y='1' width='38' height='18' rx='3'/%3E%3Crect x='41' y='1' width='38' height='18' rx='3'/%3E%3Crect x='-19' y='21' width='38' height='18' rx='3'/%3E%3Crect x='21' y='21' width='38' height='18' rx='3'/%3E%3Crect x='61' y='21' width='38' height='18' rx='3'/%3E%3Crect x='1' y='41' width='38' height='18' rx='3'/%3E%3Crect x='41' y='41' width='38' height='18' rx='3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #e6dccb, #d2c5af);
}
.service__img { width: 100%; height: 100%; object-fit: cover; }
.service__icon { position: absolute; left: 20px; bottom: -22px; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(200, 100, 59, 0.6); }
.service__icon svg { width: 28px; height: 28px; }
.service__body { padding: 38px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service__body p { color: var(--muted); font-size: 0.97rem; flex: 1; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--stone); }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__pattern {
  width: 100%; height: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='90' viewBox='0 0 120 90'%3E%3Cg fill='%23ffffff' fill-opacity='.10'%3E%3Crect x='2' y='2' width='56' height='26' rx='4'/%3E%3Crect x='62' y='2' width='56' height='26' rx='4'/%3E%3Crect x='-28' y='32' width='56' height='26' rx='4'/%3E%3Crect x='32' y='32' width='56' height='26' rx='4'/%3E%3Crect x='92' y='32' width='56' height='26' rx='4'/%3E%3Crect x='2' y='62' width='56' height='26' rx='4'/%3E%3Crect x='62' y='62' width='56' height='26' rx='4'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--moss), #2f4029);
}
.checks { list-style: none; padding: 0; margin: 8px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--moss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Portfolio */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font: 500 0.9rem var(--font-body); cursor: pointer; color: var(--ink-2); }
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.portfolio { columns: 3 300px; column-gap: 20px; }
.work { break-inside: avoid; margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.work[hidden] { display: none; }
.work__open { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.work__open img { width: 100%; height: auto; transition: transform 0.5s; }
.work__open:hover img { transform: scale(1.04); }
.work figcaption { padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 0.95rem; }
.work figcaption span { color: var(--muted); font-size: 0.85rem; }
.portfolio__empty { column-span: all; padding: 48px 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--stone); border-radius: var(--radius); }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid rgba(255, 255, 255, 0.07); }
.step__num { font: 600 2.4rem/1 var(--font-display); color: var(--accent); display: block; margin-bottom: 18px; }
.step p { color: rgba(255, 255, 255, 0.7); margin: 0; font-size: 0.97rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list small { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact__list a { text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--accent-ink); text-decoration: underline; }
.ci { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sand); color: var(--accent-ink); display: grid; place-items: center; }
.ci svg { width: 20px; height: 20px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 36px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius-sm); transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field [aria-invalid='true'] { border-color: #b3261e; }
.form__status { margin: 12px 0 0; font-size: 0.95rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--moss); }
.form__status.is-err { color: #b3261e; }

/* Footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.72); padding: 56px 0 32px; font-size: 0.95rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; margin: 0; font-size: 0.85rem; }

/* WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35); z-index: 40; transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 11, 9, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); color: var(--ink); padding: 8px 16px 20px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.2s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; }
  .nav:has(.is-open) { background: var(--bg); color: var(--ink); }
  .services, .steps, .about, .contact, .footer__inner { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .hero__inner { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
