/* =========================================================
   CARMELLO ARQUITETURA — Site
   Componentes de layout construídos sobre tokens.css
   ========================================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

a { color: inherit; }
ul { list-style: none; }

/* ---- Header / Navegação ---- */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--space-4) var(--container-pad) 0;
  background: linear-gradient(var(--bg-canvas) 55%, transparent);
}

nav.header {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-abismo);
  box-shadow: var(--shadow-md);
}

.logo-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark img { display: block; }

.nav-links {
  display: flex;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-nevoa);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--color-bruma); }
.nav-links a.active { color: var(--color-bruma); border-bottom-color: currentColor; }

.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  text-decoration: none;
  background: var(--color-bruma);
  color: var(--color-abismo);
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease-standard);
}
.nav-cta:hover { background: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--color-bruma); border-radius: 2px; }

/* ---- Botões ---- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn-primary { background: var(--color-abismo); color: var(--color-bruma); }
.btn-primary:hover { background: #0f1a1f; }
.btn-secondary { background: transparent; color: var(--color-abismo); border: 1.5px solid var(--color-abismo); }
.btn-secondary:hover { background: var(--color-abismo); color: var(--color-bruma); }
.btn-ghost { background: transparent; color: var(--color-ardosia); padding-left: 4px; padding-right: 4px; border-radius: var(--radius-sm); }
.btn-ghost:hover { color: var(--color-abismo); }
.btn-inverse { background: var(--color-bruma); color: var(--color-abismo); }
.btn-inverse:hover { background: #fff; }
.btn-outline-inverse { background: transparent; color: var(--color-bruma); border: 1.5px solid var(--color-nevoa); }
.btn-outline-inverse:hover { background: rgba(207,214,211,0.1); }

.btn.lg { padding: 18px 36px; font-size: var(--text-base); }
.btn.sm { padding: 10px 20px; font-size: var(--text-xs); }

/* ---- Ritmo de seção ---- */
section { padding: var(--space-20) 0; }
section.tight { padding: var(--space-12) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}
.on-inverse .eyebrow { color: var(--text-on-inverse-muted); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin: 0;
  white-space: nowrap;
}
.section-head .line { flex: 1; height: 1px; background: var(--border-subtle); }
.section-head .aside-link { flex-shrink: 0; }

.pullquote { display: flex; gap: var(--space-6); align-items: flex-start; max-width: 780px; }
.pullquote .rule { width: 3px; align-self: stretch; background: var(--color-ardosia); border-radius: 2px; flex-shrink: 0; min-height: 60px; }
.pullquote p { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); line-height: var(--leading-snug); margin: 0; color: var(--text-primary); }
.on-inverse .pullquote .rule { background: var(--color-nevoa); }
.on-inverse .pullquote p { color: var(--text-on-inverse); }

/* ---- Nav dropdown ---- */
.nav-links li { position: relative; }
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-abismo);
  border: 1px solid rgba(207,214,211,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0;
  padding-top: calc(var(--space-2) + 10px);
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.nav-links li:hover .dropdown { display: block; }
.nav-links .dropdown a {
  display: block;
  padding: var(--space-2) var(--space-5);
  white-space: nowrap;
  border-bottom: none;
  color: var(--color-nevoa);
}
.nav-links .dropdown a:hover { color: var(--color-bruma); background: rgba(255,255,255,0.05); }
.nav-links .dropdown a.active { color: var(--color-bruma); }
.nav-link-arrow { font-size: 9px; margin-left: 3px; opacity: .6; vertical-align: middle; }

/* ---- Hero ---- */
.hero {
  background: var(--color-abismo);
  color: var(--text-on-inverse);
  border-radius: var(--radius-xl);
  margin: var(--space-4) var(--container-pad) 0;
  padding: var(--space-24) var(--space-10) var(--space-20);
  background-color: var(--color-abismo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect width='60' height='60' fill='%2319282F'/%3E%3Crect x='8' y='12' width='38' height='6' fill='%23203239'/%3E%3Cpath d='M8 18 V52 H42 C20 52, 8 38, 8 18 Z' fill='%23203239'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.hero-inner { max-width: var(--container-max); margin: 0 auto; }
.hero .eyebrow { color: var(--text-on-inverse-muted); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, var(--text-3xl));
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-6);
  max-width: 780px;
}
.hero p.desc {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  color: var(--text-on-inverse);
  opacity: .85;
  max-width: 620px;
  margin: 0 0 var(--space-10);
}
.hero .actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.hero.hero-sm { padding: var(--space-16) var(--space-10); }
.hero.hero-sm h1 { font-size: clamp(2rem, 4vw, var(--text-2xl)); max-width: 640px; }

/* ---- Hero fotográfico (index2) ---- */
.hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  margin: var(--space-4) var(--container-pad) 0;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-on-inverse);
  background-color: #2a2218;
  background-image:
    linear-gradient(to right, rgba(25,40,47,0.88) 0%, rgba(25,40,47,0.60) 45%, rgba(25,40,47,0.08) 100%),
    url('../banner.jpg');
  background-size: cover;
  background-position: center right;
}
.hero-photo .hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: var(--space-24) var(--space-10) var(--space-20);
}
.hero-photo .eyebrow { color: var(--text-on-inverse-muted); }
.hero-photo h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, var(--text-3xl));
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-6);
  max-width: 680px;
}
.hero-photo p.desc {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  color: var(--text-on-inverse);
  opacity: .85;
  max-width: 560px;
  margin: 0 0 var(--space-10);
}
.hero-photo .actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---- Estatísticas ---- */
.facts-band { margin-top: calc(-1 * var(--space-10)); position: relative; z-index: 2; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-md);
}
.fact b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--text-primary); }
.fact span { font-size: var(--text-xs); color: var(--text-secondary); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.fact + .fact { border-left: 1px solid var(--border-subtle); }

/* ---- Cards de serviço ---- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); }
.service-card { border-radius: var(--radius-lg); padding: var(--space-8); background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.service-num { font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); color: var(--color-nevoa); margin: 0 0 var(--space-4); }
.service-card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.service-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 0; }

/* ---- Cards de projeto ---- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-subtle); transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-thumb { height: 220px; background-size: cover; background-position: center; background-repeat: repeat; }
.project-body { padding: var(--space-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.project-title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; padding: 7px 14px; border-radius: var(--radius-pill); }
.badge-outline { background: transparent; border: 1px solid var(--color-ardosia); color: var(--color-ardosia); }
.badge-solid { background: var(--color-ardosia); color: #fff; }
.badge-soft { background: var(--color-nevoa); color: var(--color-abismo); }
.badge-dark { background: var(--color-abismo); color: var(--color-bruma); }

/* ---- Sobre / Missão / Valores ---- */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.mvv-card { border-radius: var(--radius-lg); padding: var(--space-8); background: var(--bg-canvas); }
.mvv-card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin: 0 0 var(--space-3); color: var(--text-primary); }
.mvv-card p { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); margin: 0; }

.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.value-item { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.value-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-ardosia); margin-top: 8px; flex-shrink: 0; }
.value-item p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.value-item b { color: var(--text-primary); }

/* ---- Depoimento ---- */
.quote-card { background: var(--color-abismo); color: var(--text-on-inverse); border-radius: var(--radius-lg); padding: var(--space-10); max-width: 680px; margin: 0 auto; }
.quote-card p.q { font-family: var(--font-display); font-weight: 300; font-size: var(--text-lg); line-height: var(--leading-snug); margin: 0 0 var(--space-6); }
.quote-card .author { display: flex; align-items: center; gap: var(--space-3); }
.quote-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-ardosia); flex-shrink: 0; }
.quote-card .name { font-size: var(--text-sm); font-weight: 700; margin: 0; }
.quote-card .role { font-size: var(--text-xs); color: var(--text-on-inverse-muted); margin: 0; }

/* ---- Banner de CTA ---- */
.cta-banner { text-align: center; background: var(--bg-surface); border-radius: var(--radius-xl); padding: var(--space-16) var(--space-10); }
.cta-banner h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); margin: 0 0 var(--space-6); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-banner .actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ---- Campos de formulário ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-secondary); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 300; color: var(--text-primary);
  background: var(--bg-surface); border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 14px 16px; outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-nevoa); font-weight: 300; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-nevoa); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--color-ardosia); box-shadow: var(--focus-ring); }
.field textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23425B60'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.submit-row { grid-column: 1 / -1; margin-top: var(--space-2); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.form-note { font-size: var(--text-xs); color: var(--text-secondary); }
.form-success {
  display: none; grid-column: 1 / -1; padding: var(--space-5) var(--space-6);
  background: var(--bg-canvas); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text-primary);
}
.form-success.visible { display: block; }

/* ---- Contato: layout de duas colunas ---- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-10); align-items: start; }
.contact-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-8); }
.contact-aside { display: flex; flex-direction: column; gap: var(--space-5); }

.contact-row { display: flex; gap: var(--space-4); background: var(--color-abismo); padding: var(--space-8) var(--space-6); border-radius: var(--radius-lg); }
.contact-btn { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); flex: 1; text-decoration: none; }
.contact-btn .icon { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--color-nevoa); display: flex; align-items: center; justify-content: center; color: var(--color-bruma); transition: background var(--duration-fast), color var(--duration-fast); }
.contact-btn:hover .icon { background: var(--color-bruma); color: var(--color-abismo); }
.contact-btn span { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-bruma); font-weight: 300; text-align: center; }

.credential-card { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-6); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.credential-card .mark { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-canvas); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.credential-card .mark svg { width: 20px; height: 20px; }
.credential-card p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-normal); }
.credential-card b { display: block; font-family: var(--font-display); font-size: var(--text-base); font-weight: 500; color: var(--text-primary); }
.credential-card span { color: var(--text-secondary); }

/* ---- Rodapé ---- */
footer.site-footer { background: var(--color-abismo); color: var(--text-on-inverse); border-radius: var(--radius-lg); margin: 0 var(--container-pad); padding: var(--space-16) var(--space-10) var(--space-8); }
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-inverse); }
.footer-brand .logo-mark { color: var(--color-bruma); margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); font-weight: 300; color: var(--text-on-inverse-muted); line-height: var(--leading-relaxed); max-width: 260px; margin: 0; }
.footer-col h4 { font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-on-inverse-muted); margin: 0 0 var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; }
.footer-col a { color: var(--text-on-inverse); text-decoration: none; font-size: var(--text-sm); font-weight: 300; }
.footer-col a:hover { color: var(--color-nevoa); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-6); font-size: var(--text-xs); color: var(--text-on-inverse-muted); }
.footer-bottom .social { display: flex; gap: var(--space-4); }
.footer-bottom .social a { color: var(--text-on-inverse-muted); text-decoration: none; }
.footer-bottom .social a:hover { color: var(--color-bruma); }

/* ---- Responsivo ---- */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  nav.header.open .nav-links {
    display: flex; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: var(--space-4); background: var(--color-abismo);
    padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    z-index: 10;
  }
  nav.header { position: relative; flex-wrap: wrap; }
  nav.header.open .nav-cta { display: inline-flex; order: 3; flex-basis: 100%; justify-content: center; margin-top: var(--space-2); }

  .hero { padding: var(--space-16) var(--space-6); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact + .fact { border-left: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--space-8); }
  .form-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  section { padding: var(--space-12) 0; }
  .section-head { flex-wrap: wrap; }
  .section-head .line { display: none; }
}
