/* ============================================================
   Passo de Estrada Tech — design system
   Palette derived from the logo: olive #5D6755, taupe #8D8271, cream #F3EEE2
   Type: Zilla Slab (headings) + Figtree (body)
   ============================================================ */

:root {
  --cream:        #F3EEE2; /* page background */
  --cream-card:   #FBF8F1; /* card surface */
  --cream-icon:   #EAE3D2; /* icon chips / tech tags */
  --cream-edge:   #E7E0CF; /* soft borders, badges, decorative circle */
  --border:       #E2DAC9; /* hairline dividers */
  --border-outln: #C8BEA6; /* outline-button border */

  --ink:          #22271F; /* headings, footer bg */
  --olive:        #5D6755; /* brand accent, data band */
  --olive-deep:   #3C4633; /* dark sections */
  --olive-link:   #4E5A44; /* links, primary buttons */
  --olive-link-h: #2F3826;
  --taupe:        #8D8271; /* eyebrow labels */

  --text:         #22271F;
  --text-muted:   #53564A;
  --text-soft:    #63665A;
  --text-nav:     #4B4E44;

  /* on dark surfaces */
  --d-head:       #F5F0E3;
  --d-body:       #E8E2D2;
  --d-soft:       #C3BDAC;
  --d-eyebrow:    #B6A98F;

  --serif: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --sans:  'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --pad:  28px;
  --radius-card: 16px;
  --radius-band: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--olive-link); text-decoration: none; }
a:hover { color: var(--olive-link-h); }
::selection { background: var(--olive); color: var(--cream); }

img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); }

@keyframes riseUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  font-family: var(--serif); color: var(--taupe); font-weight: 600;
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; border-radius: 999px; border: none;
  cursor: pointer; text-align: center; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn-primary { background: var(--olive-link); color: var(--cream); }
.btn-primary:hover { background: var(--olive-link-h); color: var(--cream); }
.btn-outline { background: transparent; color: var(--olive-deep); border: 1.5px solid var(--border-outln); }
.btn-outline:hover { background: var(--cream-edge); color: var(--olive-deep); }
.btn-cream { background: #F1ECDE; color: var(--olive-deep); }
.btn-cream:hover { background: #fff; color: var(--olive-deep); }
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn-md { font-size: 15px; padding: 12px 22px; }
.btn-sm { font-size: 15px; padding: 10px 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 226, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; background: none; border: none; cursor: pointer; padding: 0; }
.brand img { height: 38px; width: auto; display: block; }
.brand .tech {
  font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink);
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a, .nav button { color: var(--text-nav); font-weight: 500; font-size: 15px;
  background: none; border: none; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button:hover { color: var(--olive-link-h); }
.nav .btn { color: var(--cream); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; color: var(--ink); }
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 64px; }
.hero-copy { animation: riseUp .6s ease both; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-edge); color: var(--olive); font-weight: 600;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 { font-weight: 700; font-size: 56px; line-height: 1.04; letter-spacing: -0.02em; margin: 22px 0 20px; }
.hero p { font-size: 19px; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { padding: 15px 28px; font-size: 16px; }
.hero-actions .btn-outline { padding: 15px 26px; }
.hero-media { position: relative; }
.hero-media .blob { position: absolute; inset: -18px -18px auto auto; width: 130px; height: 130px;
  background: var(--cream-edge); border-radius: 50%; z-index: 0; }
.hero-frame { position: relative; z-index: 1; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(60, 70, 51, 0.4); aspect-ratio: 4 / 5; background: var(--cream-edge); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Section scaffolding ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-weight: 700; font-size: 38px; line-height: 1.1; letter-spacing: -0.015em; margin-top: 10px; }

/* ---------- Solutions grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--cream-card); border: 1px solid var(--cream-edge); border-radius: var(--radius-card);
  padding: 28px; transition: border-color .18s ease, transform .18s ease; }
.card:hover { border-color: var(--olive); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cream-icon);
  display: flex; align-items: center; justify-content: center; color: var(--olive-link); margin-bottom: 18px; }
.card h3 { font-weight: 600; font-size: 21px; margin-bottom: 6px; }
.card p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- Process (dark) ---------- */
.process { background: var(--olive-deep); color: #EDE7D8; margin-top: 24px; }
.process .container { padding-top: 76px; padding-bottom: 76px; }
.process .section-head { max-width: 620px; margin-bottom: 48px; }
.process .eyebrow { color: var(--d-eyebrow); }
.process h2 { color: var(--d-head); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.step { padding: 0 14px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--taupe); font-weight: 600; margin-bottom: 12px; }
.step h3 { font-weight: 600; font-size: 19px; color: var(--d-head); margin-bottom: 6px; }
.step p { color: var(--d-soft); font-size: 14px; }

/* ---------- Platforms ---------- */
.platforms { text-align: center; padding-top: 72px; padding-bottom: 40px; }
.platforms h2 { font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.015em;
  margin: 10px auto 8px; max-width: 680px; }
.platforms .lede { color: var(--text-soft); font-size: 16px; max-width: 560px; margin: 0 auto 40px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 920px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--cream-card);
  border: 1px solid var(--cream-edge); border-radius: 12px; padding: 14px 20px;
  font-weight: 600; font-size: 16px; color: var(--olive-deep); }
.chip .mono { width: 26px; height: 26px; border-radius: 7px; background: var(--olive); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.chip .mono.alt { background: var(--taupe); font-size: 12px; }

/* ---------- Data-use band ---------- */
.band { padding: 64px 0; }
.data-band { background: var(--olive); color: #F1ECDE; border-radius: var(--radius-band);
  padding: 56px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.data-band .eyebrow { color: #CFC7B2; }
.data-band h2 { font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: -0.015em;
  margin-top: 12px; color: #FCF9F0; }
.data-band p { font-size: 17.5px; color: var(--d-body); }
.data-band p + p { margin-top: 20px; }
.data-band .btn { margin-top: 24px; font-size: 15px; padding: 12px 22px; }

/* ---------- Tech tags ---------- */
.tech-section { padding-top: 48px; padding-bottom: 8px; }
.tech-section .section-head { margin-bottom: 30px; }
.tech-section h2 { font-size: 32px; }
.tag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tag { background: var(--cream-icon); border-radius: 12px; padding: 20px 22px;
  font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--olive-deep); }

/* ---------- About ---------- */
.about { padding-top: 72px; padding-bottom: 72px; }
.about-card { background: var(--cream-card); border: 1px solid var(--cream-edge); border-radius: var(--radius-band);
  padding: 56px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.about-card img { height: 60px; width: auto; margin-bottom: 20px; }
.about-card .eyebrow { display: block; }
.about-card p { font-size: 20px; color: var(--olive-deep); line-height: 1.5; }
.about-card p.small { font-size: 17px; color: var(--text-soft); margin-top: 18px; }
.about-card strong { color: var(--ink); }
.about-card p.small strong { color: var(--olive-deep); }

/* ---------- Compliance preview / cards ---------- */
.compliance-preview { padding: 8px 0 24px; }
.compliance-preview .section-head { margin-bottom: 30px; }
.compliance-preview h2 { font-size: 32px; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card { text-align: left; display: block; background: var(--cream-card); border: 1px solid var(--cream-edge);
  border-radius: 14px; padding: 22px; cursor: pointer; font-family: inherit; transition: border-color .18s ease, transform .18s ease; }
.link-card:hover { border-color: var(--olive); transform: translateY(-2px); }
.link-card h3 { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.link-card p { color: var(--text-soft); font-size: 14.5px; }
.link-card.dark { background: var(--olive-deep); border-color: var(--olive-deep); }
.link-card.dark h3 { color: var(--d-head); }
.link-card.dark p { color: var(--d-soft); }

/* ---------- Contact ---------- */
.contact { padding: 64px 0 88px; }
.contact-band { background: var(--olive-deep); border-radius: var(--radius-band); padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-band h2 { font-weight: 700; font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; color: var(--d-head); }
.contact-band .lede { font-size: 17px; color: var(--d-soft); margin: 16px 0 30px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info .row { display: flex; align-items: flex-start; gap: 12px; color: var(--d-body); font-size: 15.5px; }
.contact-info .label { color: var(--taupe); flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: #4A5540; border: 1px solid var(--olive); border-radius: 10px; padding: 14px 16px;
  color: var(--d-head); font-family: inherit; font-size: 15px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 116px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #A9B29B; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #7C8A6C; outline-offset: 0; }
.contact-form button { background: #F1ECDE; color: var(--olive-deep); font-weight: 700; font-size: 16px;
  padding: 15px; border-radius: 999px; border: none; cursor: pointer; font-family: inherit; }
.contact-form button:hover { background: #fff; }
.form-note { color: #CFE0B8; font-size: 14px; text-align: center; }
.form-note[hidden] { display: none; }

/* ---------- Interior pages (meta / compliance) ---------- */
.page { padding: 56px 0 88px; }
.page-narrow { max-width: 900px; margin: 0 auto; }
.page-narrow-sm { max-width: 860px; margin: 0 auto; }
.back-link { background: none; border: none; color: var(--taupe); font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: inherit; margin-bottom: 24px; display: inline-block; }
.back-link:hover { color: var(--olive-deep); }
.page h1 { font-weight: 700; font-size: 44px; line-height: 1.06; letter-spacing: -0.02em; margin: 18px 0 12px; }
.page .lede { font-size: 18px; color: var(--text-muted); max-width: 640px; }
.rule { height: 1px; background: var(--border); margin: 36px 0; }

.meta-badge { display: inline-block; background: var(--cream-edge); color: var(--olive); font-weight: 600;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.meta-blocks { display: flex; flex-direction: column; gap: 34px; }
.meta-blocks h2 { font-weight: 600; font-size: 24px; margin-bottom: 8px; }
.meta-blocks p { font-size: 16.5px; color: var(--text-muted); }
.req-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req-link { background: var(--cream-card); border: 1px solid var(--cream-edge); border-radius: 12px;
  padding: 16px 18px; display: block; }
.req-link:hover { border-color: var(--olive); }
.req-link .k { color: var(--taupe); font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; display: block; margin-bottom: 2px; }
.req-link .v { color: var(--olive-deep); font-weight: 600; font-size: 15px; }

/* compliance policy cards */
.policy-list { display: flex; flex-direction: column; gap: 14px; margin: 40px 0; }
.policy { background: var(--cream-card); border: 1px solid var(--cream-edge); border-radius: var(--radius-card);
  padding: 30px 34px; scroll-margin-top: 90px; }
.policy h2 { font-weight: 600; font-size: 26px; margin-bottom: 10px; }
.policy p { font-size: 16.5px; color: var(--text-muted); }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 12px 0 0 20px; color: var(--text-muted); font-size: 16.5px; }
.policy li { margin-bottom: 6px; }
.cta-band { background: var(--olive-deep); border-radius: var(--radius-card); padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h3 { font-weight: 600; font-size: 20px; color: var(--d-head); }
.cta-band p { color: var(--d-soft); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B8BAAE; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 40px; }
.site-footer img { height: 44px; width: auto; filter: brightness(0) invert(1) opacity(0.9); margin-bottom: 14px; }
.site-footer .about-text { font-size: 14.5px; max-width: 320px; color: #9A9C90; }
.site-footer h4 { font-weight: 600; font-size: 15px; color: #EDE7D8; margin-bottom: 14px; letter-spacing: 0.04em; }
.site-footer .col-links { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.site-footer .col-links a, .site-footer .col-links button { color: #B8BAAE; background: none; border: none;
  text-align: left; cursor: pointer; font-family: inherit; font-size: 14.5px; padding: 0; }
.site-footer .col-links a:hover, .site-footer .col-links button:hover { color: #EDE7D8; }
.site-footer .contact-col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: #9A9C90; }
.site-footer .contact-col a { color: #B8BAAE; }
.site-footer .bar { border-top: 1px solid #343A2D; }
.site-footer .bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: #7E8074; }
.site-footer .bar a { color: #7E8074; }
.site-footer .bar a:hover { color: #B8BAAE; }
.site-footer .bar .legal { display: flex; gap: 20px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .step, .step:first-child, .step:last-child { padding: 0; }
  .tag-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 12px var(--pad) 18px; box-shadow: 0 18px 30px -20px rgba(60,70,51,0.4); }
  .nav.open { display: flex; }
  .nav a, .nav button { padding: 10px 4px; font-size: 16px; }
  .nav .btn { justify-content: center; padding: 12px 20px; margin-top: 4px; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { position: relative; }

  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .hero-media { max-width: 440px; }
  .hero h1 { font-size: 42px; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .data-band, .about-card, .contact-band { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .req-links { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .page h1 { font-size: 36px; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section-head h2, .contact-band h2 { font-size: 30px; }
  .data-band, .about-card, .contact-band, .policy { padding: 30px 24px; }
  .platforms h2, .tech-section h2, .compliance-preview h2 { font-size: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
