/*
Theme Name: Sarton Facilities
Theme URI: https://sarton.com.br
Author: Geração Mídia
Author URI: https://geracaomidia.com.br
Description: Tema institucional para SARTON — Soluções em Facilities para Condomínios, Empresas e Instituições. Estilo Neumorphic + Glassmorphism, Light Mode.
Version: 1.0.0
License: Proprietary
Text Domain: sarton-facilities
*/

/* ==========================================================================
   DESIGN TOKENS — Sarton Facilities
   Baseado em Design.md
   ========================================================================== */

:root {
  /* Escala principal (azul-ardósia / cinza metálico) */
  --sarton-50:  #FDFDFE;
  --sarton-100: #EDF2F4;
  --sarton-200: #CDDAE1;
  --sarton-300: #AEC3CD;
  --sarton-400: #8EABBA;
  --sarton-500: #6E94A7;
  --sarton-600: #567A8C;
  --sarton-700: #425F6D;
  --sarton-800: #2F434D; /* Cor principal da marca */
  --sarton-900: #1C272D;

  /* Ouro Sarton — cor de contraste vibrante */
  --sarton-gold: #E28C07;
  --sarton-gold-hover: #D97706;
  --sarton-gold-soft: #FEF3C7;

  /* Sombras neumórficas (sobre fundo --sarton-100) */
  --neu-shadow-dark: #d1d7d9;
  --neu-shadow-light: #ffffff;

  /* Tipografia */
  --font-heading: 'Lora', serif;
  --font-body: 'Kanit', sans-serif;

  /* Raios e espaçamentos padrão */
  --radius-card: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Container */
  --container-max: 1240px;
  --section-padding: clamp(64px, 10vw, 120px);
}

/* ==========================================================================
   RESET BÁSICO
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sarton-900);
  background-color: var(--sarton-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: var(--font-body); cursor: pointer; }

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--sarton-800);
  margin: 0 0 0.5em 0;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
}

p { margin: 0 0 1em 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sarton-gold-hover);
  margin-bottom: 0.75rem;
}

.text-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--sarton-700);
  line-height: 1.7;
}

/* ==========================================================================
   LAYOUT / CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-light { background-color: var(--sarton-50); }
.section-tint { background-color: var(--sarton-100); }

.bg-gradient-sarton {
  background: linear-gradient(135deg, #2F434D 0%, #1C272D 100%);
  color: var(--sarton-50);
}

.bg-gradient-sarton h2,
.bg-gradient-sarton h3 {
  color: var(--sarton-50);
}

.bg-gradient-light {
  background: linear-gradient(180deg, #FDFDFE 0%, #EDF2F4 100%);
}

.text-center { text-align: center; }

.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

/* ==========================================================================
   GRID HELPERS
   ========================================================================== */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NEUMORPHISM — Cards estáticos
   ========================================================================== */

.neu-card {
  background: var(--sarton-100);
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem;
  box-shadow: 8px 8px 16px var(--neu-shadow-dark),
              -8px -8px 16px var(--neu-shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  height: 100%;
}

.neu-card:hover {
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark),
              inset -4px -4px 8px var(--neu-shadow-light);
  transform: translateY(2px);
}

.neu-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--sarton-50);
  box-shadow: 4px 4px 8px var(--neu-shadow-dark),
              -4px -4px 8px var(--neu-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--sarton-gold-hover);
}

.neu-card h3 { margin-bottom: 0.6rem; }

.neu-card p {
  color: var(--sarton-700);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.neu-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sarton-800);
}

.neu-card-link svg { transition: transform 0.2s ease; }
.neu-card:hover .neu-card-link svg { transform: translateX(3px); }

/* ==========================================================================
   GLASSMORPHISM — Header e elementos flutuantes
   ========================================================================== */

.glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(47, 67, 77, 0.08);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 253, 254, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(205, 218, 225, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--sarton-800);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--sarton-gold-hover); }

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--sarton-gold);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sarton-50);
    border-bottom: 1px solid var(--sarton-200);
    padding: 1rem 24px 1.5rem;
  }
  .main-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
  }
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sarton-gold);
  color: var(--sarton-900);
  box-shadow: 0 4px 14px rgba(226, 140, 7, 0.35);
}

.btn-primary:hover {
  background: var(--sarton-gold-hover);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--sarton-800);
  border: 1.5px solid var(--sarton-300);
}

.btn-secondary:hover {
  border-color: var(--sarton-800);
  background: rgba(47, 67, 77, 0.04);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sarton-50);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sarton-gold-soft);
  color: var(--sarton-gold-hover);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero .text-lead { margin-bottom: 1.75rem; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 560px) {
  .hero-proof { grid-template-columns: 1fr; }
}

.hero-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sarton-700);
}

.hero-proof-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--sarton-gold-hover);
}

.hero-visual {
  position: relative;
}

.hero-visual-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 39, 45, 0.18);
  position: relative;
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-float-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  padding: 1.25rem 1.5rem;
  max-width: 240px;
}

@media (max-width: 640px) {
  .hero-float-card { display: none; }
}

/* ==========================================================================
   QUOTE / SOCRÁTICO BLOCK
   ========================================================================== */

.socratic-block {
  position: relative;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  background: var(--sarton-100);
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light);
}

.socratic-block .quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--sarton-gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.socratic-block p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--sarton-800);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   LISTAS DE BENEFÍCIOS / DIFERENCIAIS
   ========================================================================== */

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--sarton-800);
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sarton-gold-hover);
}

/* ==========================================================================
   LOGOS DE CLIENTES (prova social)
   ========================================================================== */

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.client-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease;
}

.client-logos img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   METODOLOGIA — Steps
   ========================================================================== */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--sarton-50);
  border: 1px solid var(--sarton-200);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sarton-800);
  color: var(--sarton-50);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.step-content p { color: var(--sarton-700); margin-bottom: 0; font-size: 0.95rem; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.cta-final {
  border-radius: 32px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.cta-final h2 { max-width: 760px; margin: 0 auto 1rem auto; }

.cta-final .text-lead {
  max-width: 640px;
  margin: 0 auto 2rem auto;
  color: rgba(253, 253, 254, 0.85);
}

.cta-final-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FORMULÁRIO DE CONTATO
   ========================================================================== */

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.contact-form .full-width { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

.form-field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--sarton-800);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--sarton-200);
  background: var(--sarton-50);
  color: var(--sarton-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sarton-500);
  box-shadow: 0 0 0 3px rgba(110, 148, 167, 0.18);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--sarton-800);
  color: var(--sarton-200);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo img { height: 44px; margin-bottom: 1rem; }

.footer-grid p { color: var(--sarton-300); font-size: 0.92rem; }

.footer-col h4 {
  color: var(--sarton-50);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.75rem; }

.footer-col a {
  color: var(--sarton-300);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--sarton-gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  color: var(--sarton-300);
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--sarton-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--sarton-500);
}

/* ==========================================================================
   PÁGINA INTERNA — header simples (Quem Somos, Soluções)
   ========================================================================== */

.page-header {
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}

.page-header .eyebrow { display: block; }

.page-header h1 { margin-bottom: 1rem; }

.page-header .text-lead {
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.fw-600 { font-weight: 600; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
