/* FILE-MAP:
purpose: >
  Single stylesheet for the Ezon institutional site (PT and EN). Brand tokens
  from design-impl-brand (Ezon Partners, dark theme), layout for the home
  sections, legal pages, header, footer and the cookie consent banner/dialog.
plain: >
  The look of every page on ezon.com.br and ezonpartners.com.
depends_on:
  - path: ./fonts/sora.woff2
    uses: [Sora variable font]
  - path: ./fonts/montserrat.woff2
    uses: [Montserrat variable font]
used_by:
  - ../../site/pt/*.html
  - ../../site/en/*.html
touches:
  db_tables: []
  env: []
  config_files: []
  cache_keys: []
effects: []
invariants:
  - edit only shared/assets/site.css, then run scripts/sync-shared.sh
  - colours come from ~/AI/Projects/ezon/design-impl-brand/brands/ezon-partners.yml (dark palette)
  - body text keeps WCAG AA contrast on --bg; gradient text only on decorative elements
  - renders correctly at 375 and 1280 viewports, no horizontal scroll
category: frontend-style
END-FILE-MAP */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1a1a1a;            /* Deep Space */
  --bg-chrome: #131313;     /* header and footer band */
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #f5f3f0;          /* Starlight */
  --text-body: rgba(245, 243, 240, 0.8);
  --text-muted: #9b9b9b;
  --accent: #4ecdc4;        /* Pulsar Teal */
  --link: #5bd6cd;
  --on-accent: #1a1a1a;
  --signature: #084b47;     /* Umbra Teal */
  --grad-teal: linear-gradient(45deg, #4ecdc4 0%, #113f3c 100%);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 12px;
  --enter: 260ms cubic-bezier(0.05, 0.7, 0.1, 1);
  --snap: 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { color: var(--text); font-weight: 600; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 15px/1.2 var(--font-body);
  letter-spacing: 0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--snap), border-color var(--snap), color var(--snap);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--link); color: var(--on-accent); }
.btn-secondary { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.2); color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; color: #fff; }
.brand svg { display: block; height: 24px; width: auto; aspect-ratio: 1103.46 / 251.4; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a, .lang {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover, .lang:hover { color: var(--text); }
.lang {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
@media (min-width: 820px) {
  .nav { display: flex; }
  .lang { margin-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--border-soft); }
@media (min-width: 820px) { .section { padding-block: 104px; } }

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.section h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.8px; }
.section-lead { max-width: 60ch; margin-top: 16px; font-size: 17px; }
@media (min-width: 820px) { .section h2 { font-size: 40px; letter-spacing: -1px; } }

/* ---------- Hero ---------- */
.hero {
  padding-block: 88px 80px;
  background: radial-gradient(70% 60% at 85% 0%, rgba(78, 205, 196, 0.14) 0%, rgba(78, 205, 196, 0) 70%);
}
.hero h1 { max-width: 16ch; font-size: 40px; line-height: 1.08; letter-spacing: -1.5px; }
.hero .accent { color: var(--accent); }
.hero .lead { max-width: 56ch; margin-top: 24px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (min-width: 820px) {
  .hero { padding-block: 128px 120px; }
  .hero h1 { font-size: 68px; letter-spacing: -2.4px; }
  .hero .lead { font-size: 20px; }
}

/* ---------- Delivery showcase video ---------- */
.showcase { margin: 40px 0 0; }
.showcase-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Services ---------- */
.cards { display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-num { color: var(--accent); font: 600 13px/1 var(--font-head); letter-spacing: 0.5px; }
.card h3 { margin-top: 18px; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.3px; }
.card p { margin-top: 10px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- DEEP method (vertical on mobile, horizontal on desktop) ---------- */
.deep { position: relative; display: grid; gap: 36px; margin: 48px 0 0; padding: 0; list-style: none; }
.deep::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 31px;
  width: 2px;
  background: rgba(78, 205, 196, 0.25);
}
.deep-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; align-content: start; }
.deep-letter {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--bg);
  border: 1px solid rgba(78, 205, 196, 0.35);
  border-radius: 50%;
  font: 800 30px/1 var(--font-head);
}
.deep-letter span {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: brightness(1.35);
}
.deep-num { color: var(--text-muted); font: 600 13px/1 var(--font-head); letter-spacing: 0.5px; }
.deep-step h3 { margin-top: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.deep-step p:last-child { margin-top: 8px; }
@media (min-width: 900px) {
  .deep { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  /* from the first circle's centre to the last one's: one column minus the circle radius */
  .deep::before { top: 31px; bottom: auto; left: 32px; right: calc((100% - 3 * 28px) / 4 - 32px); width: auto; height: 2px; }
  .deep-step { grid-template-columns: 1fr; gap: 24px; }
  .deep-letter { width: 64px; height: 64px; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 32px; margin-top: 40px; }
.founder {
  padding: 28px;
  background: var(--signature);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #f5f3f0;
}
.founder h3 { font-size: 21px; font-weight: 600; }
.founder .role { margin-top: 4px; color: #adbebc; font-size: 14px; font-weight: 500; }
.founder p:last-child { margin-top: 16px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.contact-list .card { display: flex; flex-direction: column; gap: 6px; }
.contact-label { color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.contact-value { color: var(--text); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
a.contact-value { color: var(--link); }
a.contact-value:hover { color: var(--text); }
@media (min-width: 820px) { .contact-list { grid-template-columns: 1fr 1fr 1.3fr; gap: 20px; } }

/* ---------- Legal pages ---------- */
.legal { padding-block: 64px 96px; }
.legal-head { max-width: 72ch; padding-bottom: 32px; border-bottom: 1px solid var(--border-soft); }
.legal h1 { font-size: 34px; line-height: 1.12; letter-spacing: -1px; }
.updated { margin-top: 12px; color: var(--text-muted); font-size: 14px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 48px; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.prose h3 { margin-top: 28px; font-size: 18px; font-weight: 600; }
.prose p, .prose ul, .prose ol, .prose .table-scroll { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.prose th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--text); }
@media (min-width: 820px) { .legal h1 { font-size: 48px; letter-spacing: -1.5px; } }

/* ---------- 404 ---------- */
.not-found { padding-block: 120px; }
.not-found h1 { font-size: 40px; letter-spacing: -1.2px; }
.not-found p { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 40px; background: var(--bg-chrome); border-top: 1px solid var(--border-soft); font-size: 14px; }
.footer-inner { display: grid; gap: 28px; }
.footer-logo { display: inline-flex; color: #fff; }
.footer-logo svg { display: block; height: 40px; width: auto; aspect-ratio: 1103.46 / 369.99; }
.footer-legal p + p { margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .link-button {
  color: var(--text-body);
  font: 500 14px/1.6 var(--font-body);
  text-decoration: underline;
  text-decoration-color: rgba(245, 243, 240, 0.3);
}
.link-button { padding: 0; background: none; border: 0; cursor: pointer; }
.footer-links a:hover, .link-button:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 80;
  max-width: 760px;
  margin-inline: auto;
  padding: 20px;
  background: #222;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  font-size: 14px;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent-actions .btn { flex: 1 1 auto; min-height: 44px; font-size: 14px; }
@media (min-width: 640px) { .consent-actions .btn { flex: 0 0 auto; } }

.consent-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 28px;
  background: #222;
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.consent-dialog::backdrop { background: rgba(10, 10, 10, 0.75); }
.consent-dialog h2 { font-size: 22px; font-weight: 600; }
.consent-dialog > form > p { margin-top: 10px; font-size: 14px; }
.consent-dialog fieldset { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; border: 0; }
.toggle {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.toggle input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.toggle strong { display: block; }
