/* PILLAR EMPRESARIAL — Site V3
   Identidade: Galeria Arquitetural (Branco + Preto + Prata)
   Light mode padrão + Dark mode com toggle (localStorage: pillar-theme)
*/

/* ========== VARIÁVEIS ========== */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #000000;
  --ink-soft: #0a0a0a;
  --silver: #6b7280;
  --silver-strong: #4b5563;
  --silver-light: #9ca3af;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-strong: rgba(0, 0, 0, 0.18);
  --mute: #6b7280;
  --form-border: rgba(0, 0, 0, 0.2);
  --cta-bg: #000000;
  --cta-text: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --ink: #ffffff;
  --ink-soft: #f5f5f5;
  --silver: #9ca3af;
  --silver-strong: #d1d5db;
  --silver-light: #6b7280;
  --rule: rgba(255, 255, 255, 0.1);
  --rule-strong: rgba(255, 255, 255, 0.2);
  --mute: #9ca3af;
  --form-border: rgba(255, 255, 255, 0.2);
  --cta-bg: #ffffff;
  --cta-text: #000000;
}

:root {
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --tr: cubic-bezier(0.65, 0, 0.35, 1);
  --silver-grad: linear-gradient(to right, var(--silver-light), var(--silver-strong));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--tr), color 0.4s var(--tr);
}

/* ========== HEADER / NAV ========== */
nav#nav {
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: background 0.4s var(--tr), border-color 0.4s var(--tr);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  height: 36px;
  width: auto;
  color: var(--ink);
}
.logo-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.logo-text em {
  font-style: italic;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}
.nav-menu a:hover { opacity: 0.6; }
.nav-menu a.cta {
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--ink);
  transition: all 0.3s;
}
.nav-menu a.cta:hover {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule-strong);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  transition: all 0.3s var(--tr);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--ink);
  transform: rotate(15deg);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ========== EYEBROW / SECTION TITLES ========== */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--ink);
}
.eyebrow.center { justify-content: center; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 800px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: 0.05em;
  background-image: var(--silver-grad);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--mute);
  max-width: 640px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

/* ========== HERO ========== */
.hero {
  padding: 7rem 3rem 10rem;
  position: relative;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--rule) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 1100px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: 0.08em;
  background-image: var(--silver-grad);
  background-size: 100% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--mute);
  line-height: 1.7;
  margin-bottom: 4rem;
  max-width: 640px;
}
.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 1.1rem 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  font-family: var(--sans);
}
.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}
.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  max-width: 900px;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.hero-stat-lbl {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.6;
}

/* ========== SECTION BLOCK ========== */
.section {
  padding: 7rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.section.alt {
  background: var(--bg-alt);
}
.section-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* ========== 2 DOORS (home) ========== */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
  background: var(--bg);
}
.door {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s var(--tr);
  position: relative;
}
.door:hover { background: var(--bg-alt); }
.door-tag {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--silver-strong);
  margin-bottom: 1.5rem;
  display: block;
}
.door h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.door p {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.door-cta {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========== VERTICALS (home) ========== */
.verticals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.vertical {
  padding: 2.5rem;
  border: 1px solid var(--rule-strong);
  transition: border-color 0.3s;
}
.vertical:hover { border-color: var(--ink); }
.vertical-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--silver-strong);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vertical h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.vertical h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: 0.05em;
  background-image: var(--silver-grad);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.vertical p {
  color: var(--mute);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.vertical ul {
  list-style: none;
}
.vertical ul li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.vertical ul li::before {
  content: '→';
  color: var(--silver-strong);
}

/* ========== 6 SERVIÇOS ========== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
  background: var(--bg);
}
.servico {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  transition: background 0.3s;
}
.servico:hover { background: var(--bg-alt); }
.servico-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--silver-strong);
  margin-bottom: 1.25rem;
  display: block;
}
.servico h4 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.servico p {
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== QUOTE ========== */
.quote-block {
  padding: 7rem 3rem;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.quote-inner {
  max-width: 900px;
  margin: 0 auto;
}
.quote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
}
.quote em {
  color: var(--ink);
  padding-bottom: 0.05em;
  background-image: var(--silver-grad);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.quote-attr {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

/* ========== PROGRAMA PARCERIA ========== */
.parceria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 3rem 0 3rem;
}
.parceria-item {
  padding: 2rem;
  border: 1px solid var(--rule-strong);
}
.parceria-num {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--silver-strong);
  margin-bottom: 1rem;
}
.parceria-item h5 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.parceria-item p {
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== CONTACT SECTION ========== */
.contact-block {
  padding: 7rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.contact-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.contact-info h2 em {
  font-style: italic;
  color: var(--ink);
  padding-bottom: 0.05em;
  background-image: var(--silver-grad);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.contact-info > p {
  color: var(--mute);
  line-height: 1.7;
  margin-bottom: 3rem;
}
.contact-channels {
  list-style: none;
}
.contact-channels li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.contact-channels li:last-child {
  border-bottom: 1px solid var(--rule);
}
.channel-info h6 {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.channel-info p {
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.5;
}
.channel-action {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ink);
  flex-shrink: 0;
}

/* ========== FORMULÁRIO ========== */
.contact-form, .contact-form-page {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  padding: 2.75rem 2.5rem;
  transition: all 0.4s var(--tr);
}
.contact-form:hover, .contact-form-page:hover {
  border-color: var(--ink);
}
.form-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.form-toggle button {
  flex: 1;
  padding: 0.9rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  transition: all 0.3s;
}
.form-toggle button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.section-eyebrow-inline {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}
.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--form-border);
  padding: 0.75rem 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-bottom-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 15px) center, calc(100% - 10px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.form-submit {
  background: var(--cta-bg);
  color: var(--cta-text);
  border: none;
  padding: 1.2rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--tr);
  margin-top: 1rem;
  font-family: var(--sans);
  width: 100%;
}
.form-submit:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg);
  padding: 5rem 3rem 2rem;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  max-width: 400px;
}
.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-brand p {
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col h6 {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col ul li a {
  color: var(--mute);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.1em;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 3rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.breadcrumb a {
  color: var(--mute);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--ink); }

/* ========== PAGE HEADER (interno) ========== */
.page-hero {
  padding: 5rem 3rem 6rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.page-hero-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  max-width: 900px;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: 0.08em;
  background-image: var(--silver-grad);
  background-size: 100% 2.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.page-hero-sub {
  font-size: 1.15rem;
  color: var(--mute);
  line-height: 1.7;
  max-width: 650px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  nav#nav { padding: 1.25rem 1.5rem; flex-wrap: wrap; gap: 1rem; }
  .nav-menu { display: none; }
  .hero, .section, .quote-block, .contact-block, .page-hero { padding: 4rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 5rem; }
  .doors, .verticals, .servicos-grid, .parceria-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-channels li { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 568px) {
  .contact-form, .contact-form-page { padding: 2rem 1.5rem; }
}
