/* ============================================================
   TOKENS — Roseli Diegues Design System
   ============================================================ */
:root {
  /* Brand core */
  --petrol-900: #0C2A31;
  --petrol-800: #103740;
  --petrol-700: #144552;
  --petrol-600: #1C5666;
  --petrol-500: #2A6E80;
  --petrol-100: #DCE8EB;
  --petrol-050: #EEF4F5;

  --emerald-700: #245A4E;
  --emerald-600: #2F6B5E;
  --emerald-500: #3E8474;
  --emerald-100: #DDEBE7;

  --gold-600: #B58E4B;
  --gold-500: #C6A667;
  --gold-300: #E4D3AC;
  --gold-100: #F3EAD6;

  /* Warm neutrals */
  --ivory: #F6F2EA;
  --sand-100: #EFE9DD;
  --white: #FFFFFF;
  --gray-100: #E7E3DB;
  --gray-200: #D3CEC4;
  --gray-400: #A29C90;
  --gray-600: #6B665D;
  --gray-800: #3A362F;

  /* Semantic status */
  --success: #2F6B5E;
  --warning: #C08A2E;
  --danger: #A6462F;
  --info: #2A6E80;

  /* Semantic aliases */
  --brand: var(--petrol-700);
  --brand-strong: var(--petrol-900);
  --brand-soft: var(--petrol-050);
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --positive: var(--emerald-600);

  --bg-page: var(--ivory);
  --bg-elevated: var(--white);
  --bg-inset: var(--sand-100);
  --bg-brand: var(--petrol-700);

  --surface-card: var(--white);
  --surface-border: var(--gray-100);

  --text-strong: var(--petrol-900);
  --text-body: var(--gray-800);
  --text-muted: var(--gray-600);
  --text-faint: var(--gray-400);
  --text-on-brand: #EAF1F2;
  --text-on-brand-muted: #A9C2C6;

  --border-hairline: var(--gray-100);
  --border-strong: var(--gray-200);
  --border-brand: var(--petrol-600);

  --link: var(--petrol-600);
  --link-hover: var(--petrol-800);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.5rem, 6vw, 5rem);
  --fs-h1: 3rem;
  --fs-h2: clamp(1.9rem, 4vw, 2.25rem);
  --fs-h3: 1.625rem;
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.05rem, 2vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-eyebrow: 0.75rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --ls-tight: -0.02em;
  --ls-eyebrow: 0.18em;
  --feat-figures: "tnum" 1, "lnum" 1;

  /* Spacing & layout */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  /* Effects */
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px;
  --radius-lg: 18px; --radius-xl: 28px; --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(12, 42, 49, 0.06);
  --shadow-sm: 0 2px 8px rgba(12, 42, 49, 0.07);
  --shadow-md: 0 10px 28px rgba(12, 42, 49, 0.09);
  --shadow-lg: 0 24px 60px rgba(12, 42, 49, 0.12);
  --shadow-gold: 0 8px 24px rgba(181, 142, 75, 0.22);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 420ms;

  --focus-ring: 0 0 0 3px rgba(42, 110, 128, 0.35);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--text-on-brand);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.skip-link:focus { left: 0; }

/* ============================================================
   COMPONENTES — SectionLabel
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px;
  background: currentColor; opacity: 0.6;
}
.eyebrow--no-rule::before { display: none; }
.eyebrow--on-brand { color: var(--accent); }

/* Headings */
.h-display, .h-section {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.h-display { font-size: var(--fs-display); line-height: 1.02; }
.h-section { font-size: var(--fs-h2); line-height: 1.12; margin-top: 0.9rem; }
.h-section--on-brand { color: var(--text-on-brand); }

.lead {
  font-size: var(--fs-lead); line-height: 1.65;
  color: var(--text-muted); margin: 1.4rem 0 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  line-height: 1; letter-spacing: 0.01em;
  border-radius: var(--radius-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  padding: 0.75rem 1.5rem; font-size: 0.9375rem;
  transition: transform var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn--primary { background: var(--brand); color: var(--text-on-brand); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { color: var(--text-on-brand); }
.btn--accent { background: var(--accent); color: var(--petrol-900); border-color: var(--accent); box-shadow: var(--shadow-gold); }
.btn--accent:hover { color: var(--petrol-900); }
.btn--secondary { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn--secondary:hover { color: var(--brand); }
.btn--ghost-on-brand { background: transparent; color: var(--text-on-brand); border-color: var(--petrol-500); }
.btn--ghost-on-brand:hover { color: var(--text-on-brand); }

/* Card */
.card {
  border-radius: var(--radius-lg); padding: var(--sp-6);
  background: var(--surface-card); color: var(--text-body);
  border: 1px solid var(--surface-border); box-shadow: var(--shadow-sm);
}
.card--brand {
  background: var(--bg-brand); color: var(--text-on-brand);
  border-color: var(--petrol-600); box-shadow: var(--shadow-md);
}
.card--xl { border-radius: var(--radius-xl); }

/* StatCard */
.stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: var(--fw-semibold); line-height: 1;
  letter-spacing: var(--ls-tight);
  font-feature-settings: var(--feat-figures);
  color: var(--brand);
}
.stat__suffix { font-size: 0.5em; font-weight: var(--fw-medium); margin-left: 0.15em; }
.stat__label { font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--text-muted); }
.stat--on-brand .stat__value { color: var(--accent); }
.stat--on-brand .stat__label { color: var(--text-on-brand-muted); }

/* ServiceCard */
.service {
  display: flex; flex-direction: column; gap: 0.85rem;
  background: var(--surface-card); border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service__num {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  background: var(--petrol-050); color: var(--brand);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--fw-semibold);
  font-feature-settings: var(--feat-figures);
}
.service__title {
  margin: 0; font-family: var(--font-display); font-size: var(--fs-h4);
  font-weight: var(--fw-semibold); color: var(--text-strong); line-height: var(--lh-snug);
}
.service__desc { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text-muted); }

/* ChecklistItem */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: var(--fs-body); line-height: var(--lh-normal);
  color: var(--text-body); padding: 0.35rem 0;
}
.checklist li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23F3EAD6'/%3E%3Cpath d='M7.5 12.2l3 3 6-6.4' stroke='%23B58E4B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.checklist--on-brand li { color: var(--text-on-brand); }
.checklist--on-brand li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='rgba(198,166,103,0.22)'/%3E%3Cpath d='M7.5 12.2l3 3 6-6.4' stroke='%23C6A667' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* Divider com ornamento */
.divider { display: flex; align-items: center; gap: 1rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-hairline); }
.divider__gem { width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); }

/* Input */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-body); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: var(--fs-body); color: var(--text-strong);
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; width: 100%;
  outline: none; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--border-brand); box-shadow: var(--focus-ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 242, 234, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav__inner {
  max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display); font-size: 22px; font-weight: var(--fw-semibold);
  color: var(--text-strong); text-decoration: none; line-height: 1.1;
}
.wordmark span {
  display: block; font-family: var(--font-sans); font-size: 10px;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--accent-strong); font-weight: var(--fw-bold); margin-top: 2px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-body);
  text-decoration: none; transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:not(.btn):hover { color: var(--brand); }

.nav__toggle {
  display: none; background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text-strong);
  border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; }
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter);
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { margin-top: 18px; }
.hero .lead { max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__card-title {
  font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }

/* SOBRE */
.about {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border-hairline);
  text-align: center;
}
.about .eyebrow { justify-content: center; }
.about p + p { margin-top: 1.1rem; }

/* SERVIÇOS */
.services__head { max-width: 620px; }
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 44px;
}

/* DIFERENCIAIS */
.diff { background: var(--bg-brand); }
.diff__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
}
.diff__panel-title {
  font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-on-brand-muted);
}
.diff__panel {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--petrol-600);
  border-radius: var(--radius-lg); padding: var(--sp-6); margin-top: 18px;
}

/* CTA */
.cta { background: var(--bg-inset); text-align: center; }
.cta .divider { max-width: 220px; margin: 0 auto 1.6rem; }

/* CONTATO */
.contact__head { text-align: center; margin-bottom: 40px; }
.contact__head .eyebrow { justify-content: center; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__full { grid-column: 1 / -1; }
.form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.form__note {
  grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--text-faint); margin: 0;
}
.contact__direct {
  margin-top: 28px; text-align: center; font-size: var(--fs-sm); color: var(--text-muted);
  line-height: 2;
}
.contact__direct a { font-weight: var(--fw-semibold); text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }

.thanks { text-align: center; padding: 32px 8px; }
.thanks__title { font-family: var(--font-display); font-size: 28px; color: var(--brand); }
.thanks p { color: var(--text-muted); margin-top: 8px; }
[hidden] { display: none !important; }

/* FOOTER */
.footer { background: var(--brand-strong); color: var(--text-on-brand-muted); }
.footer__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer__name { font-family: var(--font-display); font-size: 22px; color: var(--text-on-brand); }
.footer__tag {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 6px; color: var(--accent);
}
.footer__contact { font-size: 14px; text-align: right; line-height: 1.9; }
.footer__contact a { color: var(--text-on-brand-muted); text-decoration: none; }
.footer__contact a:hover { color: var(--accent); }
.footer__copy { color: var(--text-faint); font-size: 12px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--border-hairline);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    box-shadow: var(--shadow-md);
  }
  .nav__links[data-open="false"] { display: none; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
  .nav__links .btn { margin-top: var(--sp-4); }

  .hero__inner { grid-template-columns: 1fr; }
  .diff__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero__stats { gap: 20px; }
  .form { grid-template-columns: 1fr; }
  .form__actions { justify-content: stretch; }
  .form__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__contact { text-align: left; }
  .card { padding: var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   REVEAL ON SCROLL (sutil)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .nav, .hero__actions, .form, .nav__toggle { display: none !important; }
  body { background: #fff; }
}
