/* TED Consulting UI Kit — site components.
   Carrega em cima de colors_and_type.css.
   Prefixo "ted-" para isolar de outros sistemas. */

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

/* =================================================================
   NAV
   ================================================================= */
.ted-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 32px;
  background: rgba(237, 234, 229, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-mid);
}
.ted-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--petroleo);
  flex-shrink: 0;
  text-decoration: none;
}
.ted-nav-mark { width: 28px; height: 28px; display: block; }
.ted-nav-logo em { color: var(--ambar); font-style: italic; font-weight: 600; }

.ted-nav-links { display: flex; gap: 4px; flex: 1; }
.ted-nav-links a {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none;
  padding: 0 14px; height: 64px;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.ted-nav-links a:hover,
.ted-nav-links a.is-active { color: var(--petroleo); border-bottom-color: var(--ambar); }

/* =================================================================
   BUTTONS (kit-prefixed)
   ================================================================= */
.ted-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap;
  transition:
    background var(--d-base) var(--ease-out),
    color var(--d-base) var(--ease-out),
    border-color var(--d-base) var(--ease-out),
    box-shadow var(--d-base) var(--ease-out),
    transform var(--d-fast) var(--ease-out);
}
.ted-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ted-btn-primary  { background: var(--petroleo); color: var(--offwhite); box-shadow: var(--shadow-sm); }
.ted-btn-primary:hover:not(:disabled) { background: var(--petroleo-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ted-btn-cta      { background: var(--ambar); color: #fff; box-shadow: var(--shadow-sm); }
.ted-btn-cta:hover:not(:disabled) { background: var(--ambar-hover); box-shadow: var(--shadow-amb); transform: translateY(-1px); }
.ted-btn-secondary{ background: transparent; color: var(--petroleo); border: 1.5px solid var(--petroleo); }
.ted-btn-secondary:hover { background: var(--petroleo-08); }
.ted-btn-ghost    { background: transparent; color: var(--fg-2); border: 1.5px solid var(--border-mid); }
.ted-btn-ghost:hover { background: var(--grafite-08); color: var(--fg-1); border-color: var(--border-strong); }
.ted-btn-inv-sec  { background: transparent; color: var(--offwhite); border: 1.5px solid rgba(245,243,239,0.45); }
.ted-btn-inv-sec:hover { background: rgba(245,243,239,0.10); border-color: rgba(245,243,239,0.7); }
.ted-btn-sm { padding: 7px 14px; font-size: 12px; }
.ted-btn-lg { padding: 13px 26px; font-size: 14.5px; }

/* =================================================================
   HERO
   ================================================================= */
.ted-hero {
  position: relative;
  background: var(--petroleo);
  color: var(--offwhite);
  padding: 96px 0 88px;
  overflow: hidden;
}
.ted-hero-bgnum {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 460px;
  line-height: 0.9;
  color: rgba(245, 243, 239, 0.04);
  letter-spacing: -0.05em;
  user-select: none; pointer-events: none;
}
.ted-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; position: relative; }
.ted-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ambar);
  border: 1px solid rgba(200, 146, 42, 0.45);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 32px;
}
.ted-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ambar); display: inline-block; }
.ted-hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 84px;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--offwhite);
  margin: 0 0 28px;
  max-width: 880px;
}
.ted-hero-title em { color: var(--ambar); font-style: italic; font-weight: 700; }
.ted-hero-sub {
  max-width: 540px;
  font-size: 17px; line-height: 1.6;
  color: rgba(245, 243, 239, 0.65);
  margin: 0 0 36px;
}
.ted-hero-actions { display: flex; gap: 12px; margin-bottom: 64px; }
.ted-hero-meta { display: flex; gap: 56px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid rgba(245,243,239,0.12); max-width: 880px; }
.ted-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.ted-hero-meta-label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,243,239,0.45); }
.ted-hero-meta-value { font-size: 14px; font-weight: 600; color: var(--offwhite); }

/* =================================================================
   SECTION HELPERS
   ================================================================= */
.ted-section { max-width: 1100px; margin: 0 auto; padding: 112px 32px; }
.ted-section-head { margin-bottom: 56px; max-width: 720px; }
.ted-eyebrow {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 14px;
}
.ted-eyebrow.blue { color: var(--azul-ui); }
.ted-section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--petroleo);
  margin: 0 0 20px;
}
.ted-section-title em { color: var(--ambar); font-style: italic; font-weight: 700; }
.ted-section-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 580px;
  margin: 0;
}

/* =================================================================
   SERVICE GRID
   ================================================================= */
.ted-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.ted-service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  transition: box-shadow var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}
.ted-service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ted-service.top-ambar    { border-top: 3px solid var(--ambar); }
.ted-service.top-petroleo { border-top: 3px solid var(--petroleo); }
.ted-service.top-verde    { border-top: 3px solid var(--verde); }
.ted-service-ico {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  margin-bottom: 18px;
}
.ted-service-ico.ico-ambar    { background: var(--ambar-12);    color: var(--ambar); }
.ted-service-ico.ico-petroleo { background: var(--petroleo-12); color: var(--petroleo); }
.ted-service-ico.ico-verde    { background: var(--verde-10);    color: #3d7020; }
.ted-service-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--petroleo);
  margin: 6px 0 10px;
}
.ted-service-body {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--fg-2);
  margin: 0 0 18px;
}
.ted-service-bullets {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.ted-service-bullets li {
  font-size: 13px; color: var(--fg-1);
  padding-left: 18px; position: relative;
}
.ted-service-bullets li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 10px; height: 1px; background: var(--ambar);
}
.ted-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--petroleo);
  text-decoration: none;
  border-bottom: 1px solid var(--ambar);
  padding-bottom: 2px;
  transition: gap var(--d-base) var(--ease-out);
}
.ted-link:hover { gap: 12px; }
.ted-link svg { color: var(--ambar); }

/* =================================================================
   VALUE PROPOSITION (quote section)
   ================================================================= */
.ted-quote {
  background: var(--grafite);
  color: var(--offwhite);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.ted-quote-bgnum {
  position: absolute; right: -30px; top: 40px;
  font-family: var(--f-display); font-weight: 800;
  font-size: 360px; line-height: 0.85;
  color: rgba(200, 146, 42, 0.06);
  letter-spacing: -0.05em;
  user-select: none; pointer-events: none;
}
.ted-quote-eyebrow {
  position: relative;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ambar);
  max-width: 1100px; margin: 0 auto 28px;
}
.ted-quote-phrase {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--offwhite);
}
.ted-quote-phrase em { color: var(--ambar); font-style: italic; font-weight: 700; }
.ted-quote-rule { position: relative; max-width: 1100px; margin: 64px auto 40px; height: 1px; background: rgba(245,243,239,0.16); }
.ted-quote-grid {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.ted-quote-row { display: flex; gap: 16px; align-items: flex-start; }
.ted-quote-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: 32px; color: var(--ambar);
  line-height: 1; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ted-quote-sub {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--offwhite);
  margin: 0 0 6px;
  line-height: 1.3;
}
.ted-quote-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245,243,239,0.62);
  margin: 0;
}

/* =================================================================
   STATS
   ================================================================= */
.ted-stats {
  max-width: 1100px; margin: 0 auto;
  padding: 112px 32px;
}
.ted-stats-head { margin-bottom: 48px; }
.ted-stats-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: 44px; line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--petroleo);
  margin: 14px 0 0;
}
.ted-stats-title em { color: var(--ambar); font-style: italic; font-weight: 700; }
.ted-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.ted-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.ted-stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--fg-2);
}
.ted-stat-value {
  font-family: var(--f-display); font-weight: 800;
  font-size: 56px; line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--petroleo);
}
.ted-stats-note {
  margin-top: 28px;
  font-size: 12px; color: var(--fg-3);
  max-width: 580px; line-height: 1.6;
}

/* =================================================================
   BADGES (kit)
   ================================================================= */
.ted-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-pill);
  align-self: flex-start;
}
.ted-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.ted-badge.badge-verde { background: var(--verde-10); color: #2e5810; }
.ted-badge.badge-verde::before { background: var(--verde); }
.ted-badge.badge-ambar { background: var(--ambar-12); color: #6a430a; }
.ted-badge.badge-ambar::before { background: var(--ambar); }
.ted-badge.badge-azul  { background: var(--azul-10); color: #1a4a7c; }
.ted-badge.badge-azul::before { background: var(--azul-ui); }

/* =================================================================
   FORM (modal)
   ================================================================= */
.ted-input-group { display: flex; flex-direction: column; gap: 6px; }
.ted-label { font-size: 12px; font-weight: 600; color: var(--fg-1); }
.ted-input, .ted-select {
  font-family: var(--f-body); font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.ted-input:hover, .ted-select:hover { border-color: rgba(26,58,82,0.30); }
.ted-input:focus, .ted-select:focus {
  border-color: var(--azul-ui);
  box-shadow: 0 0 0 3px rgba(91,155,213,0.20);
}
.ted-input.accent:focus { border-color: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-12); }
.ted-input::placeholder { color: var(--fg-3); }
.ted-select { cursor: pointer; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A60' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

/* =================================================================
   MODAL
   ================================================================= */
.ted-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 58, 82, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 32px;
  animation: ted-fade-in 200ms var(--ease-out) both;
}
@keyframes ted-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ted-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 48px;
  width: 100%; max-width: 580px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: ted-pop-in 320ms var(--ease-out) both;
}
@keyframes ted-pop-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.ted-modal-x {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grafite-08); color: var(--fg-2);
  border: none; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--d-base) var(--ease-out), color var(--d-base) var(--ease-out);
}
.ted-modal-x:hover { background: var(--grafite-14); color: var(--fg-1); }
.ted-modal-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: 38px; line-height: 1.04;
  letter-spacing: -0.025em; color: var(--petroleo);
  margin: 12px 0 14px;
}
.ted-modal-title em { color: var(--ambar); font-style: italic; font-weight: 700; }
.ted-modal-sub { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin: 0 0 28px; max-width: 460px; }
.ted-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.ted-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Alert (used inside modal) */
.ted-alert {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.55;
  margin-bottom: 28px;
}
.ted-alert-icon { flex-shrink: 0; margin-top: 1px; width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.ted-alert-title { font-weight: 700; margin-bottom: 2px; font-size: 13.5px; }
.ted-alert.alert-success { background: var(--verde-10); border-left: 3px solid var(--verde); color: #2e5810; }
.ted-alert.alert-success .ted-alert-icon { color: var(--verde); }

/* =================================================================
   FOOTER
   ================================================================= */
.ted-footer {
  background: var(--grafite);
  color: var(--offwhite);
  padding: 80px 32px 32px;
}
.ted-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.ted-footer-brand { max-width: 320px; }
.ted-footer-logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--offwhite); margin-bottom: 18px;
}
.ted-footer-mark { width: 36px; height: 36px; display: block; }
.ted-footer-logo em { color: var(--ambar); font-style: italic; font-weight: 600; }
.ted-footer-tag { font-size: 13.5px; line-height: 1.65; color: rgba(245,243,239,0.62); margin: 0 0 18px; }
.ted-footer-contact {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; color: rgba(245,243,239,0.55);
  font-family: var(--f-body);
}
.ted-footer-contact span { display: inline-flex; align-items: center; gap: 8px; }
.ted-footer-contact svg { color: var(--ambar); opacity: 0.85; }
.ted-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ted-footer-col a {
  font-size: 13px; color: rgba(245,243,239,0.75); text-decoration: none;
  transition: color var(--d-base) var(--ease-out);
}
.ted-footer-col a:hover { color: var(--ambar); }
.ted-footer-head {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ambar);
  margin-bottom: 18px;
}
.ted-footer-rule { max-width: 1100px; margin: 56px auto 24px; height: 1px; background: rgba(245,243,239,0.10); }
.ted-footer-base {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(245,243,239,0.45);
  font-family: var(--f-mono);
}
