/* ============================================================
   PREZO.PSI — DESIGN SYSTEM
   Tokens, Base, Typography, Components
   ============================================================ */

/* ── Fontes self-hosted (ADR-039) ── */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-garamond-600-italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/dm-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ── Tokens ── */
:root {
  /* Colors */
  --c-terracota:       #C4694F;
  --c-terracota-text:  #A8442E;
  --c-creme:           #F5F0E8;
  --c-carvao:          #2C2C2C;
  --c-salvia:          #7A9E7E;
  --c-areia:           #E2D5C3;
  --c-creme-80:        rgba(245,240,232,0.8);

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --t-display: clamp(2.5rem, 6vw, 4.5rem);
  --t-h1:      clamp(2rem,   4vw, 3rem);
  --t-h2:      clamp(1.6rem, 3vw, 2.25rem);
  --t-h3:      clamp(1.25rem,2vw, 1.5rem);
  --t-lg:      1.125rem;
  --t-base:    1rem;
  --t-sm:      0.875rem;
  --t-xs:      0.75rem;

  /* Line heights */
  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-base:   1.6;
  --lh-loose:  1.8;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 1.75rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(44,44,44,0.07);
  --sh-md:  0 4px 16px rgba(44,44,44,0.10);
  --sh-lg:  0 12px 40px rgba(44,44,44,0.14);
  --sh-xl:  0 24px 60px rgba(44,44,44,0.18);

  /* Transitions */
  --tr-fast: 150ms ease-in-out;
  --tr-base: 300ms ease-in-out;
  --tr-slow: 500ms ease-in-out;

  /* Layout */
  --max-w: 1120px;
  --max-w-text: 680px;
}

/* ── Selection ── */
::selection        { background: #C4694F; color: #2C2C2C; }
::-webkit-selection{ background: #C4694F; color: #2C2C2C; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); font-size: var(--t-base); color: var(--c-carvao); background: var(--c-creme); line-height: var(--lh-base); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--f-body); border: none; background: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Container ── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--sp-6); }
.container--text { max-width: var(--max-w-text); margin-inline: auto; padding-inline: var(--sp-6); }

/* ── Typography ── */
.t-display { font-family: var(--f-display); font-size: var(--t-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; }
.t-h1      { font-family: var(--f-display); font-size: var(--t-h1);      font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.01em; }
.t-h2      { font-family: var(--f-display); font-size: var(--t-h2);      font-weight: 600; line-height: var(--lh-snug); }
.t-h3      { font-family: var(--f-body);    font-size: var(--t-h3);      font-weight: 500; line-height: var(--lh-snug); }
.t-lg      { font-size: var(--t-lg); line-height: var(--lh-loose); }
.t-base    { font-size: var(--t-base); line-height: var(--lh-base); }
.t-sm      { font-size: var(--t-sm); }
.t-xs      { font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }

/* ── Color utilities ── */
.bg-creme    { background-color: var(--c-creme); }
.bg-carvao   { background-color: var(--c-carvao); }
.bg-terracota{ background-color: var(--c-terracota); }
.bg-areia    { background-color: var(--c-areia); }
.text-creme  { color: var(--c-creme); }
.text-carvao { color: var(--c-carvao); }
.text-terracota { color: var(--c-terracota-text); }

/* ── Sections ── */
.section { padding-block: var(--sp-24); }
.section--lg { padding-block: var(--sp-32); }
.section--sm { padding-block: var(--sp-16); }

/* ── Logo Mark ── */
.logo { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 2px; }
.logo__main { color: var(--c-carvao); }
.logo__suffix { font-size: 0.85em; font-weight: 400; color: var(--c-terracota-text); }
.logo--light .logo__main { color: var(--c-creme); }
.logo--light .logo__suffix { color: var(--c-areia); }
.logo--lg { font-size: 2.25rem; }
.logo--sm { font-size: 1.125rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-8); border-radius: var(--r-full); font-family: var(--f-body); font-size: var(--t-base); font-weight: 500; line-height: 1; transition: all var(--tr-base); white-space: nowrap; }
.btn--primary { background: var(--c-carvao); color: var(--c-creme); }
.btn--primary:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--secondary { background: transparent; color: var(--c-carvao); border: 1.5px solid var(--c-carvao); }
.btn--secondary:hover { background: var(--c-carvao); color: var(--c-creme); }
.btn--terracota { background: var(--c-terracota); color: var(--c-creme); }
.btn--terracota:hover { background: var(--c-terracota-text); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; color: var(--c-creme); border: 1.5px solid rgba(245,240,232,0.4); }
.btn--ghost:hover { border-color: var(--c-creme); background: rgba(245,240,232,0.1); }
.btn--lg { padding: var(--sp-4) var(--sp-10); font-size: var(--t-lg); }
.btn--sm { padding: var(--sp-2) var(--sp-6); font-size: var(--t-sm); }

/* ── Cards ── */
.card { background: white; border-radius: var(--r-xl); padding: var(--sp-8); box-shadow: var(--sh-sm); transition: box-shadow var(--tr-base), transform var(--tr-base); }
.card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.card--creme { background: var(--c-creme); }
.card--areia { background: var(--c-areia); }
.card--terracota { background: var(--c-terracota); color: var(--c-creme); }
.card--dark { background: var(--c-carvao); color: var(--c-creme); }
.card--bordered { background: transparent; border: 1.5px solid var(--c-areia); box-shadow: none; }

/* ── Divider ── */
.divider { height: 1px; background: var(--c-areia); border: none; }
.divider--sm { width: 60px; height: 2px; background: var(--c-terracota); border: none; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full); font-size: var(--t-xs); font-weight: 500; }
.badge--terracota { background: rgba(196,105,79,0.12); color: var(--c-terracota-text); }
.badge--salvia    { background: rgba(122,158,126,0.15); color: #4a7a50; }
.badge--carvao    { background: rgba(44,44,44,0.08); color: var(--c-carvao); }

/* ── Form elements ── */
.input { width: 100%; padding: var(--sp-3) var(--sp-4); border: 1.5px solid var(--c-areia); border-radius: var(--r-md); font-family: var(--f-body); font-size: var(--t-base); background: white; color: var(--c-carvao); transition: border-color var(--tr-fast), box-shadow var(--tr-fast); outline: none; }
.input:focus { border-color: var(--c-terracota); box-shadow: 0 0 0 3px rgba(196,105,79,0.15); }
.input::placeholder { color: rgba(44,44,44,0.35); }
.label { display: block; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--sp-2); color: var(--c-carvao); }

/* ── Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: var(--sp-4) 0; transition: background var(--tr-base), box-shadow var(--tr-base); }
.nav.scrolled { background: var(--c-creme-80); backdrop-filter: blur(12px); box-shadow: var(--sh-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: var(--sp-8); }
.nav__link { font-size: var(--t-sm); font-weight: 500; color: var(--c-carvao); transition: color var(--tr-fast); }
.nav__link:hover { color: var(--c-terracota-text); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Flex helpers ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ── Spacing helpers ── */
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

/* ── Text alignment ── */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── Checklist items ── */
.checklist { display: flex; flex-direction: column; gap: var(--sp-3); }
.checklist__item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.checklist__icon { width: 20px; height: 20px; border-radius: 50%; background: var(--c-terracota); color: var(--c-creme); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 11px; }
.checklist__icon--no { background: var(--c-areia); color: var(--c-carvao); }

/* ── Quote ── */
.blockquote { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 600; font-style: italic; line-height: var(--lh-snug); }

/* ── Step indicator ── */
.step { display: flex; align-items: flex-start; gap: var(--sp-4); }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--c-terracota); color: var(--c-creme); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 1.125rem; font-weight: 600; flex-shrink: 0; }

/* ── Accordion ── */
.accordion { border-top: 1px solid var(--c-areia); }
.accordion__item { border-bottom: 1px solid var(--c-areia); }
.accordion__header { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: var(--sp-6) 0; background: none; font-family: var(--f-body); font-size: var(--t-base); font-weight: 500; color: var(--c-carvao); text-align: left; gap: var(--sp-4); }
.accordion__icon { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--c-areia); display: flex; align-items: center; justify-content: center; transition: transform var(--tr-base), background var(--tr-base); font-size: 16px; line-height: 1; }
.accordion__item.open .accordion__icon { transform: rotate(45deg); background: var(--c-terracota); color: var(--c-creme); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height var(--tr-slow); }
.accordion__body p { padding-bottom: var(--sp-6); color: rgba(44,44,44,0.75); line-height: var(--lh-loose); }

/* ── Tag row ── */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ── Scroll reveal animation ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Color swatch ── */
.swatch { width: 100%; padding-top: 60%; border-radius: var(--r-lg); position: relative; cursor: pointer; transition: transform var(--tr-base); }
.swatch:hover { transform: scale(1.03); }
.swatch__label { margin-top: var(--sp-3); }
.swatch__copy { display: flex; align-items: center; justify-content: space-between; }
.swatch__copied { font-size: var(--t-xs); color: var(--c-salvia); opacity: 0; transition: opacity var(--tr-fast); }
.swatch__copied.show { opacity: 1; }

/* ── Semantic color aliases ── */
:root {
  --color-brand-primary:   var(--c-terracota);
  --color-brand-secondary: var(--c-salvia);
  --color-text-default:    var(--c-carvao);
  --color-text-muted:      rgba(44,44,44,0.55);
  --color-text-inverse:    var(--c-creme);
  --color-bg-canvas:       var(--c-creme);
  --color-bg-surface:      #ffffff;
  --color-bg-subtle:       var(--c-areia);
  --color-border-default:  var(--c-areia);
  --color-border-strong:   rgba(44,44,44,0.25);
}

/* ── Focus states (accessibility) ── */
:focus-visible {
  outline: 2.5px solid var(--c-terracota);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.btn:focus-visible { outline-offset: 4px; }

/* ── Muted text ── */
.text-muted { color: var(--color-text-muted); }

/* ── Pricing card ── */
.pricing-card {
  background: var(--color-bg-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--sh-sm);
  border: 1.5px solid var(--color-border-default);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition: box-shadow var(--tr-base), transform var(--tr-base);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.pricing-card--featured {
  background: var(--c-carvao);
  color: var(--c-creme);
  border-color: transparent;
  box-shadow: var(--sh-lg);
}
.pricing-card--featured:hover { box-shadow: var(--sh-xl); }
.pricing-card__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricing-card--featured .pricing-card__label { color: var(--c-terracota); }
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-terracota);
  color: var(--c-creme);
  font-size: var(--t-xs);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  white-space: nowrap;
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
}
.pricing-card__currency {
  font-family: var(--f-body);
  font-size: var(--t-lg);
  font-weight: 500;
  margin-top: 6px;
}
.pricing-card__amount {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing-card__period {
  font-size: var(--t-sm);
  opacity: 0.6;
}
.pricing-card__value-note {
  font-size: var(--t-sm);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--sp-4));
}
.pricing-card--featured .pricing-card__value-note { color: rgba(245,240,232,0.55); }
.pricing-card__divider { height: 1px; background: var(--color-border-default); }
.pricing-card--featured .pricing-card__divider { background: rgba(245,240,232,0.15); }
.pricing-card__features { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--t-sm);
}
.pricing-card__feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(196,105,79,0.15);
  color: var(--c-terracota-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
}
.pricing-card--featured .pricing-card__feature-icon {
  background: rgba(196,105,79,0.35);
  color: var(--c-terracota);
}

/* ── Testimonial ── */
.testimonial {
  background: var(--color-bg-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.testimonial--areia { background: var(--c-areia); box-shadow: none; }
.testimonial--dark { background: var(--c-carvao); color: var(--c-creme); }
.testimonial__quote {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-style: italic;
  line-height: var(--lh-snug);
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after  { content: '\201D'; }
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-areia);
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-weight: 600; font-size: var(--t-sm); }
.testimonial__role { font-size: var(--t-xs); color: var(--color-text-muted); margin-top: 2px; }
.testimonial--dark .testimonial__role { color: rgba(245,240,232,0.55); }
.testimonial__stars { display: flex; gap: 2px; color: var(--c-terracota); font-size: 14px; }

/* ── Process / Timeline ── */
.process { display: flex; flex-direction: column; gap: 0; }
.process__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-6);
  position: relative;
}
.process__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--c-areia);
}
.process__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-creme);
  border: 2px solid var(--c-areia);
  color: var(--c-carvao);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  transition: background var(--tr-base), border-color var(--tr-base);
}
.process__item.active .process__num,
.process__item:hover .process__num {
  background: var(--c-terracota);
  border-color: var(--c-terracota);
  color: var(--c-creme);
}
.process__content { padding-bottom: var(--sp-10); }
.process__title { font-weight: 600; font-size: var(--t-lg); margin-bottom: var(--sp-2); }
.process__desc { color: var(--color-text-muted); line-height: var(--lh-loose); font-size: var(--t-sm); }
.process__time {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--t-xs);
  color: var(--c-terracota-text);
  font-weight: 500;
  margin-top: var(--sp-2);
}

/* ── Mobile nav ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-carvao);
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-base);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--c-creme);
  z-index: 99;
  padding-top: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: var(--t-h3); }
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
}

/* ── Form extras: textarea + select ── */
.textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-areia);
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: var(--t-base);
  background: white;
  color: var(--c-carvao);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  outline: none;
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-base);
}
.textarea:focus { border-color: var(--c-terracota); box-shadow: 0 0 0 3px rgba(196,105,79,0.15); }
.textarea::placeholder { color: rgba(44,44,44,0.35); }

.select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-areia);
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: var(--t-base);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232C2C2C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--c-carvao);
  transition: border-color var(--tr-fast);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.select:focus { border-color: var(--c-terracota); box-shadow: 0 0 0 3px rgba(196,105,79,0.15); }

.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.helper-text { font-size: var(--t-xs); color: var(--color-text-muted); }
.error-text  { font-size: var(--t-xs); color: #c0392b; }

/* ── Tag / Pill ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 500;
  background: var(--c-areia);
  color: var(--c-carvao);
  transition: background var(--tr-fast);
}
.pill--terracota { background: rgba(196,105,79,0.12); color: var(--c-terracota-text); }
.pill--salvia    { background: rgba(122,158,126,0.15); color: #4a7a50; }
.pill--outline   { background: transparent; border: 1.5px solid var(--c-areia); }
.pill--outline:hover { background: var(--c-areia); }

/* ── Section heading pattern ── */
.section-heading { max-width: 600px; }
.section-heading .eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-terracota-text);
  margin-bottom: var(--sp-3);
}
.section-heading--center { text-align: center; margin-inline: auto; }

/* ── Print styles ── */
@media print {
  .nav, .btn { display: none; }
  .section { padding-block: var(--sp-8); }
}

/* ============================================================
   COMPONENTES DE DIFERENCIACAO VISUAL
   Adicionados em ATA 014 para sair do padrao de mercado.
   Nao aplicados por padrao: ativar por projeto conforme
   decisoes da sessao de perguntas visuais (Padrao 06, sec 10).
   ============================================================ */

/* ── Keyframes de gradiente animado ──
   Usar em secoes com background: linear-gradient(...)
   background-size: 350% 350% + animation: gradient-drift Xs ease infinite
   Cores do gradiente definidas no site.css de cada projeto. */
@keyframes gradient-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gradient-drift-alt {
  0%   { background-position: 100% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .paraquem, .cta-final { animation: none !important; background-size: 100% 100% !important; }
}

/* ── Autoridade: barra de numeros abaixo do hero ──
   Opcional por projeto. Perguntar na sessao de decisoes visuais. */
.autoridade {
  padding-block: var(--sp-10);
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-default);
}
.autoridade__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.autoridade__item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.autoridade__item + .autoridade__item {
  border-left: 1px solid var(--color-border-default);
}
.autoridade__num {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--color-brand-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.autoridade__label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 500;
  max-width: 140px;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .autoridade__grid { display: grid; grid-template-columns: 1fr 1fr; }
  .autoridade__item:nth-child(3) { border-left: none; border-top: 1px solid var(--color-border-default); }
  .autoridade__item:nth-child(4) { border-top: 1px solid var(--color-border-default); }
}

/* ── Elemento flutuante sobre foto: card de identidade ──
   Usar como wrapper no elemento pai da foto (.hero__photo-wrap etc.)
   e posicionar .floating-card dentro. */
.photo-wrap { position: relative; }
.floating-card {
  position: absolute;
  bottom: var(--sp-6);
  left: calc(-1 * var(--sp-10));
  background: var(--color-bg-canvas);
  border: 1px solid var(--color-border-default);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-lg);
  z-index: 2;
  min-width: 190px;
}
.floating-card__name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-default);
  line-height: 1.2;
}
.floating-card__sub {
  margin-top: var(--sp-1);
  font-size: var(--t-xs);
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.floating-card__detail {
  margin-top: 2px;
  font-size: var(--t-xs);
  color: var(--color-text-muted);
}
@media (max-width: 720px) {
  .floating-card { left: var(--sp-3); bottom: var(--sp-3); min-width: 160px; }
}

/* ── Elemento flutuante sobre foto: citacao ──
   Fundo na cor de acento do projeto. */
.floating-quote {
  position: absolute;
  top: var(--sp-8);
  right: calc(-1 * var(--sp-8));
  background: var(--color-brand-primary);
  color: var(--color-text-inverse);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  max-width: 200px;
  box-shadow: var(--sh-xl);
  z-index: 2;
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .floating-quote { right: var(--sp-4); top: var(--sp-4); max-width: 160px; font-size: 0.8rem; }
}
@media (max-width: 720px) {
  .floating-quote { display: none; }
}

/* ── Como funciona: layout alternado com numeros grandes ──
   Substitui os 3 cards iguais em grid (.como__steps).
   Usar .como__flow em vez de .como__steps para este layout. */
.como__flow {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin-inline: auto;
  gap: var(--sp-2);
}
.como__step {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: var(--sp-6);
  min-height: 160px;
}
.como__step:nth-child(even) { grid-template-columns: 1fr 180px; }
.como__step:nth-child(even) .como__step__num { order: 2; text-align: right; }
.como__step__num {
  font-family: var(--f-display);
  font-size: clamp(5.5rem, 13vw, 9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-bg-subtle);
  user-select: none;
}
.como__step__card {
  background: var(--color-bg-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-7);
  box-shadow: var(--sh-sm);
}
.como__step__card h3 { font-size: var(--t-base); font-weight: 600; margin-bottom: var(--sp-2); }
.como__step__card p { font-size: var(--t-sm); color: var(--color-text-muted); line-height: var(--lh-loose); }
@media (max-width: 720px) {
  .como__step,
  .como__step:nth-child(even) { grid-template-columns: 80px 1fr; gap: var(--sp-4); min-height: 0; }
  .como__step:nth-child(even) .como__step__num { order: 0; text-align: left; }
  .como__step__num { font-size: clamp(3rem, 16vw, 5rem); align-self: start; padding-top: var(--sp-5); }
}
