/* ============================================================
   OSWALDO SABATO ENGENHARIA — Global Stylesheet
   Design: Clean / Apple-inspired / Light
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f5f7;
  --bg-dark:     #1d1d1f;
  --text-primary:   #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light:     #ffffff;
  --accent:      #214b75;
  --accent-hover:#183a5c;
  --accent-light:rgba(33, 75, 117, 0.08);
  --border:      rgba(0, 0, 0, 0.1);
  --border-light:rgba(0, 0, 0, 0.06);
  --shadow-sm:   0 1px 6px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.10);
  --radius:      12px;
  --radius-sm:   8px;
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; }
p  { font-size: 17px; color: var(--text-secondary); line-height: 1.7; font-weight: 400; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 100px 0; }

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--ease);
}
.nav-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-logo-img { height: 44px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(33,75,117,0.15);
  padding: 7px 16px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: all; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 10px 0;
  letter-spacing: -0.5px;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-cta {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 14px 32px;
  border-radius: 30px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  padding: 13px 26px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(33,75,117,0.3); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-light); }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(33,75,117,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(33,75,117,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero h1 { max-width: 760px; margin: 0 auto 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.hero-trust-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  opacity: 0.7;
}
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.trust-badge svg { flex-shrink: 0; }

/* ── SERVICES GRID ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { color: var(--accent); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 20px; }
.service-card .service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 20px;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 20px;
  transition: gap 0.2s;
}
.service-card:hover .card-link { gap: 8px; }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; }

/* ── ABOUT STRIP ─────────────────────────────────────────── */
.about-strip {
  background: var(--bg-alt);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-credentials {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.credential-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}
.credential-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.credential-item span { font-size: 13px; color: var(--text-secondary); }
.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ── STATS ───────────────────────────────────────────────── */
.stats-section { background: var(--bg-dark); padding: 80px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ── PROCESS ─────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 44px; right: -12px;
  width: 24px; height: 1px;
  background: var(--border);
}
.process-step:last-child::after { display: none; }
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1.5px solid rgba(33,75,117,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 14px; }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 36px; font-size: 17px; }
.cta-band-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: 140px 0 80px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.page-header .breadcrumb a { color: var(--accent); }
.page-header .breadcrumb a:hover { text-decoration: underline; }
.page-header h1 { margin-bottom: 16px; }
.page-header .lead { max-width: 560px; margin: 0 auto; }
.page-header { text-align: center; }
.page-header .breadcrumb { justify-content: center; display: flex; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.footer-brand-desc { font-size: 13px; line-height: 1.6; }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.footer-copy { color: rgba(255,255,255,0.35); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-socials a:hover { color: rgba(255,255,255,0.8); }

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-info { width: 100%; }
.contact-info h3 { margin-bottom: 12px; }
.contact-info p { margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(33,75,117,0.1); }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.contact-item-value { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(33,75,117,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.bio-section { background: var(--bg); }
.bio-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: start; }
.bio-content h2 { margin-bottom: 24px; }
.bio-content p { margin-bottom: 20px; }
.bio-photo {
  position: sticky;
  top: 80px;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.bio-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.highlight-box {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.highlight-box p { color: var(--text-primary); font-size: 16px; font-weight: 500; margin: 0; }
.timeline { margin-top: 48px; }
.timeline-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 24px; }
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px; top: 20px;
  width: 1px; bottom: 0;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.timeline-year { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.timeline-desc { font-size: 14px; color: var(--text-secondary); }

/* ── SERVICES PAGE ───────────────────────────────────────── */
.services-detail { display: flex; flex-direction: column; gap: 100px; }
.service-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.service-section.reverse { direction: rtl; }
.service-section.reverse > * { direction: ltr; }
.service-section h2 { margin-bottom: 16px; }
.service-section p { margin-bottom: 16px; }
.service-deliverables { margin-top: 28px; }
.service-deliverables-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 14px; }
.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}
.deliverable-item:last-child { border-bottom: none; }
.deliverable-check { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.service-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.code-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-alt);
}
.service-visual {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 36px;
  position: sticky;
  top: 80px;
}
.service-visual-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.service-visual-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.service-visual-item:last-child { border-bottom: none; }
.service-visual-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { aspect-ratio: 16/9; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > *:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { position: static; aspect-ratio: 4/3; }
  .service-section { grid-template-columns: 1fr; }
  .service-section.reverse { direction: ltr; }
  .service-visual { position: static; }
}

@media (max-width: 768px) {
  :root { }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  section { padding: 72px 0; }
  h1 { letter-spacing: -1px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-top: 100px; padding-bottom: 72px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .trust-badges { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}
