/* SMS Express Guia — estilos principais */
:root {
  --ink: #1a2332;
  --ink-soft: #3d4f66;
  --paper: #f6f4ef;
  --paper-alt: #ece8df;
  --brand: #0c5c8a;
  --brand-dark: #084261;
  --accent: #d45c2a;
  --accent-hover: #b84a1f;
  --line: #d4cfc4;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.08);
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.logo strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--brand-dark);
}

code {
  font-size: 0.88em;
  background: var(--paper-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  word-break: break-all;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 55%, #1278a8 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 4rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  color: var(--white);
}

.hero-lead {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 0.95rem;
}

.hero-card dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.hero-card dt:first-child {
  margin-top: 0;
}

.hero-card dd {
  margin: 0.15rem 0 0;
  opacity: 0.9;
}

.disclaimer-bar {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.disclaimer-bar p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}

/* Main layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand);
}

.stat span {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footnotes {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  padding: 2rem 2rem;
  margin: 3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  max-width: 32rem;
  opacity: 0.92;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

/* Legal pages */
.legal-doc {
  max-width: 48rem;
}

.legal-doc h2 {
  margin-top: 2rem;
}

.legal-doc .updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 400;
}

.checkbox-row input {
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.925rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner--4 {
  grid-template-columns: repeat(4, 1fr);
}

.footer-col .footer-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

.footer-contact {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-links--legal li {
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.footer-compliance {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-compliance a {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
  z-index: 200;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  text-decoration: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.blog-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.blog-card h2 a {
  text-decoration: none;
  color: var(--ink);
}

.blog-card h2 a:hover {
  color: var(--brand);
}

.blog-card .meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.blog-card p {
  flex: 1;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.blog-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-top: 0.75rem;
}

.article-body {
  max-width: 42rem;
}

.article-body .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.related-posts ul {
  list-style: none;
  padding: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .stats-row,
  .footer-inner,
  .footer-inner--4 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}
