/* Sistema tipográfico e composição responsiva da Pereira Tecnologia. */
:root {
  --font-ui: "Aptos", "Segoe UI", Arial, sans-serif;
  --type-micro: .625rem;
  --type-caption: .6875rem;
  --type-small: .75rem;
  --type-body: .9375rem;
  --type-reading: 1rem;
  font-family: var(--font-ui);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html, body, button, a { font-family: var(--font-ui); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:root, :root * { font-family: var(--font-ui) !important; }
h1, h2, h3, .hero h1 { font-weight: 650 !important; letter-spacing: -.025em !important; }
.brand-copy strong, .brand-copy small, .eyebrow { letter-spacing: .08em; }
.nav-links a, .button, .nav-cta, .whatsapp-float { font-weight: 600 !important; }

/* Rotina local: o rótulo, relógio e clima formam um bloco alinhado. */
.hero-copy { min-width: 0; }
.hero-meta {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 23px;
}
.city-status {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.eyebrow { font-size: var(--type-caption); font-weight: 700; letter-spacing: .15em; }
.cuiaba-clock,
.cuiaba-weather { min-height: 48px; padding: 7px 12px 7px 8px; border-radius: 10px; }
.cuiaba-clock { gap: 10px; }
.cuiaba-clock-icon,
.cuiaba-weather-icon { width: 32px; height: 32px; border-radius: 8px; }
.cuiaba-clock-reading { gap: 3px; }
.cuiaba-clock-reading strong { font-size: var(--type-small); font-weight: 700; line-height: 1; }
.cuiaba-clock-reading small { font-size: var(--type-micro); letter-spacing: .07em; }
.cuiaba-period { font-size: var(--type-caption); font-weight: 600; }
.cuiaba-weather { max-width: 290px; gap: 10px; }
.cuiaba-weather-icon .icon { width: 19px; height: 19px; }
.cuiaba-weather-copy { gap: 4px; }
.cuiaba-weather-copy strong { font-size: var(--type-small); font-weight: 700; }
.cuiaba-weather-copy small { font-size: var(--type-micro); line-height: 1.3; }

/* Hierarquia dos textos: título forte, corpo confortável e controles legíveis. */
.brand-copy strong { font-size: 14px; font-weight: 800; letter-spacing: .07em; }
.brand-copy small { font-size: var(--type-micro); font-weight: 700; letter-spacing: .17em; }
.nav-links a { font-size: 13px; font-weight: 600; }
.nav-cta { font-size: 13px; font-weight: 700; }
.hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero-lede { max-width: 650px; margin-bottom: 26px; font-size: var(--type-reading); line-height: 1.7; }
.hero-actions .button { min-height: 50px; font-size: 13px; font-weight: 700; }
.hero-proof { gap: 20px; margin-top: 34px; padding-top: 20px; }
.proof-item { font-size: var(--type-small); font-weight: 600; }

/* Os destaques ficam em uma faixa própria; nada mais flutua sobre o cartão. */
.hero-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.visual-halo { inset: 50% auto auto 50%; z-index: 0; transform: translate(-50%, -50%); }
.visual-highlights {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(450px, 100%);
}
.float-chip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1.4;
}
.visual-highlights .float-chip.remote,
.visual-highlights .float-chip.shield { position: static; inset: auto; transform: none; }
.float-chip .icon { width: 19px; height: 19px; }
.console { width: min(450px, 100%); transform: none; }
.console-brand { font-size: var(--type-small); font-weight: 700; letter-spacing: .08em; }
.live { font-size: var(--type-micro); font-weight: 600; }
.console-title { font-size: 19px; font-weight: 700; }
.console-caption { font-size: var(--type-caption); line-height: 1.5; }
.service-row { gap: 12px; }
.service-row > span:nth-child(2) { display: grid; flex: 1; gap: 3px; min-width: 0; }
.service-name { display: block; font-size: var(--type-small); font-weight: 700; line-height: 1.35; }
.service-note { display: block; margin: 0; font-size: var(--type-caption); line-height: 1.45; }
.service-check { flex: none; }
.console-bottom { font-size: var(--type-caption); }
.console-bottom strong { font-size: var(--type-small); font-weight: 700; }

/* O mesmo ritmo tipográfico se mantém do catálogo ao rodapé. */
.button, .whatsapp-float { font-size: 13px; font-weight: 700; }
.trust-item { font-size: var(--type-small); font-weight: 600; }
.heading-aside { font-size: 13px; }
.service-card h3 { font-size: 18px; font-weight: 700; }
.service-card > p { font-size: 13px; }
.service-list li { font-size: var(--type-small); line-height: 1.4; }
.reason-number { font-size: var(--type-caption); font-weight: 700; }
.reason h3 { font-size: 16px; font-weight: 700; }
.reason p, .contract-note { font-size: 13px; }
.contact-copy p { font-size: 15px; }
.contact-phone { font-weight: 800; }
.contact-label { font-size: var(--type-caption); }
.contact-below { font-size: var(--type-small); }
.footer-note { font-size: var(--type-caption); }
.footer-bottom { font-size: var(--type-micro); }
.weather-disclosure { font-size: var(--type-micro); line-height: 1.65; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; padding-block: 58px 66px; }
  .hero-copy { max-width: 800px; }
  .hero h1 { max-width: 790px; font-size: clamp(50px, 6vw, 62px); }
  .hero-visual { width: min(620px, 100%); min-height: auto; margin-inline: auto; padding-block: 4px; }
  .visual-highlights, .console { width: 100%; }
  .whatsapp-float { display: none; }
}

@media (max-width: 760px) {
  .nav-cta { width: 41px; height: 41px; min-height: 41px; padding: 0; font-size: 0; border-radius: 8px; }
  .nav-cta .icon { width: 20px; height: 20px; }
  .hero-grid { gap: 22px; padding-block: 54px 62px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(44px, 8vw, 58px); }
  .hero-visual { width: min(520px, 100%); }
  .visual-highlights { display: none; }
  .hero-proof { gap: 15px; margin-top: 29px; }
  .proof-item { font-size: var(--type-caption); }
  .service-list li { font-size: 11px; }
}

@media (max-width: 430px) {
  .hero-grid { padding-top: 48px; }
  .hero-meta { gap: 10px; margin-bottom: 19px; }
  .city-status { gap: 8px; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 45px); }
  .hero-visual { min-height: auto; padding-block: 0; }
  .visual-highlights { grid-template-columns: 1fr; width: min(360px, 100%); gap: 8px; }
  .float-chip { min-height: 44px; font-size: var(--type-small); }
  .console { width: 100%; padding: 17px; }
  .footer-bottom { gap: 10px; }
  .weather-disclosure { padding-inline: 18px; font-size: 10px; }
}

/* Indicador discreto; apenas o período do dia fica exposto na interface. */
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 22px; }
.day-night-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .8s ease, background-color .8s ease, border-color .8s ease;
}
.day-night-indicator .icon { width: 17px; height: 17px; color: var(--accent); }
.weather-engine-visually-hidden { display: none !important; }
.time-veil {
  position: fixed;
  z-index: 31;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background: rgba(2, 8, 22, var(--night-alpha, 0));
  transition: background-color 35s linear;
}
#rain-canvas { z-index: 32; }

/* Cores diurnas reais, não um simples filtro de luminosidade. */
:root[data-theme="day"] {
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #1f2937;
  --text-muted: #5f6b7a;
  --line: #d9e1e9;
  --accent: #087eae;
  --cyan: #0788b8;
  --aqua: #087eae;
}
:root[data-theme="day"] body { background: var(--page); color: var(--text); transition: background-color .9s ease, color .9s ease; }
:root[data-theme="day"] .site-header { background: rgba(255,255,255,.93); border-color: #dce4ec; box-shadow: 0 3px 18px rgba(30,50,70,.06); }
:root[data-theme="day"] .brand-copy strong,
:root[data-theme="day"] .nav-links a,
:root[data-theme="day"] .footer-brand .brand-copy strong { color: #243447; }
:root[data-theme="day"] .nav-links a:hover,
:root[data-theme="day"] .footer-bottom a:hover { color: var(--accent); }
:root[data-theme="day"] .menu-toggle { background: #f1f5f8; color: #243447; border-color: #d9e1e9; }
:root[data-theme="day"] .hero { background: radial-gradient(ellipse at 78% 45%, rgba(65,157,202,.13), transparent 42%), linear-gradient(115deg,#f6f8fb 12%,#edf4f9 65%,#f4f7fa); border-color: #dce4ec; }
:root[data-theme="day"] .hero::before { opacity: .28; background-image: linear-gradient(rgba(64,125,163,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(64,125,163,.08) 1px,transparent 1px); }
:root[data-theme="day"] .hero::after,
:root[data-theme="day"] .visual-halo { border-color: rgba(8,126,174,.14); }
:root[data-theme="day"] .hero h1 { color: #1d2d3d; }
:root[data-theme="day"] .hero-lede,
:root[data-theme="day"] .proof-item { color: #536273; }
:root[data-theme="day"] .eyebrow { color: #087eae; }
:root[data-theme="day"] .button-quiet { color: #25394b; background: rgba(255,255,255,.66); border-color: #cbd7e2; }
:root[data-theme="day"] .button-quiet:hover { background: #fff; }
:root[data-theme="day"] .console { background: linear-gradient(145deg,#fff,#f3f7fa); border-color: #cedbe5; box-shadow: 0 22px 55px rgba(43,73,99,.13); }
:root[data-theme="day"] .console-title,
:root[data-theme="day"] .service-name { color: #243447; }
:root[data-theme="day"] .console-caption,
:root[data-theme="day"] .service-note,
:root[data-theme="day"] .live,
:root[data-theme="day"] .console-bottom { color: #657486; }
:root[data-theme="day"] .service-row { background: #f7f9fb; border-color: #dce5ed; }
:root[data-theme="day"] .console-top,
:root[data-theme="day"] .console-bottom { border-color: #dce5ed; }
:root[data-theme="day"] .console-bottom strong { color: #304458; }
:root[data-theme="day"] .float-chip { background: #fff; color: #34485c; border-color: #d2dee8; box-shadow: 0 8px 22px rgba(43,73,99,.1); }
:root[data-theme="day"] .trust-strip { background: #edf2f6; border-color: #dce4ec; }
:root[data-theme="day"] .trust-item { color: #435469; }
:root[data-theme="day"] .services-section { background: linear-gradient(180deg,#f7f9fb,#eff3f7 75%,#f6f8fa); }
:root[data-theme="day"] .section-heading p,
:root[data-theme="day"] .heading-aside,
:root[data-theme="day"] .service-card > p,
:root[data-theme="day"] .reason p { color: #59697a; }
:root[data-theme="day"] .service-card { background: linear-gradient(145deg,#fff,#f8fafc); border-color: #dbe3eb; box-shadow: 0 8px 24px rgba(34,55,75,.04); }
:root[data-theme="day"] .service-card h3,
:root[data-theme="day"] .reason h3 { color: #26384a; }
:root[data-theme="day"] .service-list li { background: #f0f4f7; color: #47596b; border-color: #dce4eb; }
:root[data-theme="day"] .approach-section { background: #eef3f7; border-color: #dce4ec; }
:root[data-theme="day"] .reason { border-color: #d9e1e9; }
:root[data-theme="day"] .contract-note { background: #e5f3f8; color: #425668; }
:root[data-theme="day"] .contract-note strong { color: #263c50; }
:root[data-theme="day"] .contact-section { background: radial-gradient(ellipse at 82% 50%,rgba(52,148,192,.12),transparent 40%),#f5f7fa; }
:root[data-theme="day"] .contact-panel { background: linear-gradient(120deg,#fff,#f0f5f8); border-color: #cddbe5; box-shadow: 0 18px 50px rgba(34,55,75,.09); }
:root[data-theme="day"] .contact-copy h2,
:root[data-theme="day"] .contact-phone { color: #243447; }
:root[data-theme="day"] .contact-copy p,
:root[data-theme="day"] .contact-label,
:root[data-theme="day"] .contact-below { color: #5b6b7c; }
:root[data-theme="day"] .site-footer { background: #eaf0f4; border-color: #d8e1e8; }
:root[data-theme="day"] .footer-note { color: #5f6f7e; }
:root[data-theme="day"] .footer-bottom { color: #687786; border-color: #d7e0e7; }
:root[data-theme="day"] .footer-bottom a { color: #43576a; }
:root[data-theme="day"] .nav-links { background: rgba(255,255,255,.98); }
:root[data-theme="day"] .whatsapp-float { box-shadow: 0 9px 24px rgba(20,90,58,.18); }

/* Noite: azul profundo e contraste confortável, acompanhado de ícone lunar. */
:root[data-theme="night"] { color-scheme: dark; }
:root[data-theme="night"] body { transition: background-color .9s ease, color .9s ease; }
:root[data-theme-ready="true"] body,
:root[data-theme-ready="true"] .site-header,
:root[data-theme-ready="true"] .nav-links,
:root[data-theme-ready="true"] .menu-toggle,
:root[data-theme-ready="true"] .button-quiet,
:root[data-theme-ready="true"] .hero,
:root[data-theme-ready="true"] .console,
:root[data-theme-ready="true"] .service-row,
:root[data-theme-ready="true"] .float-chip,
:root[data-theme-ready="true"] .trust-strip,
:root[data-theme-ready="true"] .services-section,
:root[data-theme-ready="true"] .service-card,
:root[data-theme-ready="true"] .service-list li,
:root[data-theme-ready="true"] .approach-section,
:root[data-theme-ready="true"] .reason,
:root[data-theme-ready="true"] .contract-note,
:root[data-theme-ready="true"] .contact-section,
:root[data-theme-ready="true"] .contact-panel,
:root[data-theme-ready="true"] .site-footer {
  transition: background 2700s linear, color 2700s linear, border-color 2700s linear, box-shadow 2700s linear;
}
:root[data-theme-ready="true"] .hero h1,
:root[data-theme-ready="true"] .hero-lede,
:root[data-theme-ready="true"] .proof-item,
:root[data-theme-ready="true"] .trust-item,
:root[data-theme-ready="true"] .brand-copy strong,
:root[data-theme-ready="true"] .brand-copy small,
:root[data-theme-ready="true"] .eyebrow,
:root[data-theme-ready="true"] .nav-links a,
:root[data-theme-ready="true"] .console-title,
:root[data-theme-ready="true"] .console-caption,
:root[data-theme-ready="true"] .service-name,
:root[data-theme-ready="true"] .service-note,
:root[data-theme-ready="true"] .console-bottom,
:root[data-theme-ready="true"] .section-heading h2,
:root[data-theme-ready="true"] .section-heading p,
:root[data-theme-ready="true"] .heading-aside,
:root[data-theme-ready="true"] .service-card h3,
:root[data-theme-ready="true"] .service-card > p,
:root[data-theme-ready="true"] .service-list li,
:root[data-theme-ready="true"] .reason h3,
:root[data-theme-ready="true"] .reason p,
:root[data-theme-ready="true"] .contract-note,
:root[data-theme-ready="true"] .contact-copy h2,
:root[data-theme-ready="true"] .contact-copy p,
:root[data-theme-ready="true"] .contact-phone,
:root[data-theme-ready="true"] .contact-label,
:root[data-theme-ready="true"] .contact-below,
:root[data-theme-ready="true"] .footer-note,
:root[data-theme-ready="true"] .footer-bottom a,
:root[data-theme-ready="true"] .footer-bottom { transition: color 2700s linear; }
:root[data-theme] .service-card:hover { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
:root[data-theme="night"] .day-night-indicator { background: rgba(14,32,52,.84); color: #d7e4f1; }
:root[data-theme="night"] .day-night-indicator .icon { color: #c2c8ff; }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme] *, :root[data-theme] *::before, :root[data-theme] *::after { transition-duration: .01ms !important; }
}


/* Conteúdo resumido: quatro grupos de serviço com leitura equilibrada. */
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card.wide { grid-column: auto; }
@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
}


/* Listas simples substituem as antigas etiquetas para reduzir ruído visual. */
.service-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.service-list li { position: relative; display: block; padding: 0 0 0 15px; border: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 1.45; }
.service-list li::before { content: ""; position: absolute; left: 1px; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
:root[data-theme] .services-section .service-list li { border: 0; background: transparent; }
:root[data-theme="day"] .services-section .service-list li { color: #47596b; }
:root[data-theme="night"] .services-section .service-list li { color: #d4e0eb; }


/* O tema continua automático; a preferência atual oculta o rótulo Dia/Noite. */
.day-night-indicator { display: none !important; }
