/*
Theme Name: Santos Administração
Theme URI: https://www.santosadm.com.br/
Author: Santos Administração e Contabilidade
Description: Tema institucional para Santos Administração e Contabilidade. Leve, responsivo e sem dependência de plugins.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: santosadm
*/

:root {
  --navy: #0e2a3f;
  --navy-2: #163a54;
  --teal: #1f7c84;
  --teal-soft: #7fc4c4;
  --mist: #eaf1f2;
  --paper: #fafcfc;
  --ink: #14232e;
  --muted: #4d6170;
  --buoy: #c9252b;
  --line: #cfdcdf;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 100; width: auto; height: auto;
  clip: auto; background: var(--navy); color: #fff; padding: .6rem 1rem;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 4px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--buoy); color: #fff; }
.btn-primary:hover { background: #a11a1f; color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.on-dark .btn-ghost { border-color: #fff; color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--navy); }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 252, 252, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 124px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font: 700 1.55rem/1 var(--font-head); color: var(--navy); letter-spacing: -.02em; }
.brand-sub { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.custom-logo, .brand-logo img { max-height: 110px; width: auto; display: block; }
.brand-logo { display: block; line-height: 0; }

.main-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { border-bottom-color: var(--buoy); color: var(--navy); }
.header-cta { display: none; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); color: var(--navy);
  padding: .5rem .8rem; border-radius: 4px; font: 600 .95rem var(--font-body); cursor: pointer;
}

/* Hero */
.hero { background: var(--mist); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}
.hero-copy { padding-bottom: clamp(2.5rem, 7vw, 5.5rem); }
.hero-copy .lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art { align-self: end; }
.facade { display: block; width: 100%; max-width: 420px; margin-left: auto; }
.facade .win { fill: rgba(255,255,255,.09); }
.facade .win.lit { fill: var(--teal-soft); opacity: 0; animation: light-on .7s ease-out forwards; }
.facade .win.warm { fill: #f2a65a; opacity: 0; animation: light-on .7s ease-out forwards; }
@keyframes light-on { to { opacity: 1; } }

/* Seções */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--mist); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.about-grid blockquote {
  margin: 0; padding-left: 1.25rem; border-left: 4px solid var(--buoy);
  font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.25 var(--font-head); color: var(--navy);
}

/* Áreas de serviço em linhas */
.service-list { border-top: 2px solid var(--navy); }
.service-row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.service-row h3 { margin: 0; font-size: 1.5rem; }
.service-row ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.service-row li { padding: .35rem 0 .35rem 1.1rem; position: relative; break-inside: avoid; }
.service-row li::before {
  content: ""; position: absolute; left: 0; top: 1.05em; width: .5rem; height: 2px; background: var(--teal);
}
.more-link { display: inline-block; margin-top: 1.5rem; font-weight: 600; }

/* Faixa de contato */
.cta-band { background: var(--navy); color: #e6eef2; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band .cta-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; color: #c7d6dd; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Páginas internas */
.page-head { background: var(--mist); padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 .3em; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.entry-content > * { max-width: 72ch; }

.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--mist); }

/* Formulário */
.form-grid { display: grid; gap: 1rem; }
.form-grid label { font-weight: 600; display: block; margin-bottom: .3rem; color: var(--navy); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #9fb4bb;
  border-radius: 4px; background: #fff; color: var(--ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--teal); }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1.1rem; border-radius: 4px; margin-bottom: 1.5rem; font-weight: 600; }
.notice-ok { background: #def2e8; color: #14502f; }
.notice-err { background: #fde6df; color: #7a2410; }

/* Rodapé */
.site-footer { background: var(--navy); color: #c7d6dd; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .7em; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer p { margin-bottom: .5em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .9rem; }

/* Mobile */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .two-col, .service-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .facade { max-width: 240px; margin: 0 auto; }
  .hero-inner { gap: 1rem; }
  .service-row ul { columns: 1; }
  .custom-logo, .brand-logo img { max-height: 72px; }
  .header-inner { min-height: 88px; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .main-nav li a { display: block; padding: .8rem 0; }
}
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .facade .win.lit, .facade .win.warm { animation: none; opacity: 1; }
}
