/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1242b0;
  --blue-light:  #e8f0fe;
  --green:       #25d366;
  --green-dark:  #1aaa50;
  --dark:        #0f172a;
  --dark-2:      #1e293b;
  --mid:         #475569;
  --muted:       #94a3b8;
  --border:      #e2e8f0;
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --max-w:       1100px;
  --header-h:    64px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,.35);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 14px rgba(26,86,219,.45); }

.btn-whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: var(--green-dark); box-shadow: 0 4px 14px rgba(37,211,102,.45); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

.btn-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-disabled:hover { transform: none; box-shadow: none; }

.btn-badge {
  display: inline-block;
  padding: .15rem .45rem;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-badge--soon {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.site-logo:hover { text-decoration: none; color: var(--dark); }
.site-logo .logo-accent { color: var(--blue); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* Hide non-essential nav links in header — keep only key items */
.site-nav a:not(.btn):not([href="/"]):not([href="/contact/"]) {
  display: none;
}

/* Hamburger */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: .5rem;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 640px) {
  .nav-burger { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 0;
    box-shadow: var(--shadow-md);
  }

  .site-nav a {
    display: block !important;
    width: 100%;
    padding: .75rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .btn { margin: .75rem 1.25rem; width: calc(100% - 2.5rem); justify-content: center; }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FACTS STRIP
   ============================================================ */
.facts-strip {
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 1.25rem;
}

.facts-list {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.facts-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .75rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.facts-item:last-child { border-right: none; }

.facts-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}

.facts-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .facts-item {
    padding: .75rem .75rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    width: 50%;
  }
  .facts-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .facts-item:last-child, .facts-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .facts-value { font-size: 1.25rem; }
}

/* ============================================================
   LANDING INTRO
   ============================================================ */
.landing-intro {
  background: var(--bg);
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.landing-intro p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mid);
  text-align: center;
}

/* ============================================================
   PAGE GRID (homepage card list)
   ============================================================ */
.page-grid-section {
  padding: 3.5rem 0 4rem;
  background: var(--bg-soft);
}

.page-group {
  margin-bottom: 3rem;
}
.page-group:last-child { margin-bottom: 0; }

.page-group-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.page-grid-section > .container > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.page-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s, border-color .15s;
  position: relative;
}
.page-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
  text-decoration: none;
  color: var(--dark);
}

.page-card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
}
.page-card:hover .page-card-label { color: var(--blue-dark); }

.page-card-desc {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.4;
}

.page-card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color .15s, transform .15s;
}
.page-card:hover .page-card-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* ============================================================
   EXPLORE SECTION
   ============================================================ */
.explore-section {
  padding: 3.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.explore-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.explore-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.explore-card {
  display: inline-block;
  padding: .6rem 1.2rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.explore-card:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   PROVIDERS
   ============================================================ */
.providers-section {
  margin: 3.5rem 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.providers-section > h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}

.providers-intro {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.provider-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.provider-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.provider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.provider-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.provider-type {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
}

.provider-meta {
  padding: .875rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.provider-row {
  display: flex;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--mid);
}

.provider-label {
  flex-shrink: 0;
  width: 58px;
  font-weight: 600;
  color: var(--dark);
  font-size: .8rem;
  padding-top: .05rem;
}

.provider-price {
  font-weight: 600;
  color: var(--blue);
}

.provider-notes {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .25rem;
}

.provider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--border);
  gap: .75rem;
}

.provider-phone {
  font-size: .85rem;
  color: var(--mid);
  text-decoration: none;
}
.provider-phone:hover { color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--muted);
  padding: 3.5rem 1.25rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-pages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-pages { grid-template-columns: 1fr; }
}

.footer-logo {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.footer-logo:hover { text-decoration: none; color: #fff; }
.footer-logo .logo-accent { color: var(--blue); }

.footer-brand p {
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 300px;
}

.footer-col h4,
.footer-page-group h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .875rem;
}

.footer-links ul,
.footer-explore ul,
.footer-page-group ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a,
.footer-explore a:not(.btn),
.footer-page-group a:not(.btn) {
  font-size: .875rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover,
.footer-explore a:not(.btn):hover,
.footer-page-group a:not(.btn):hover { color: #fff; }

.footer-contact {
  margin-top: 1.5rem;
}
.footer-contact h4 { margin-bottom: .75rem; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: var(--muted);
}

/* ============================================================
   CONTENT PAGES (page.njk)
   ============================================================ */
.site-main {
  min-height: 60vh;
}

article {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

article h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

article > p:first-of-type {
  font-size: 1.1rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 .75rem;
  color: var(--dark);
}

article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 .5rem;
  color: var(--dark);
}

article p { margin-bottom: 1rem; color: var(--mid); }

article ul {
  list-style: none;
  margin: .75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

article ul li {
  padding: .5rem .75rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  color: var(--dark);
}

/* CTA block inside article */
.cta {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  border: 1px solid #c7d9fb;
  text-align: center;
}

.cta h2 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-size: 1.3rem;
}

.cta p {
  margin-bottom: 1.25rem;
}

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

/* Internal links block */
.internal-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.internal-links h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.internal-links ul {
  flex-direction: row;
  flex-wrap: wrap;
  gap: .5rem;
}

.internal-links ul li {
  background: none;
  border: none;
  padding: 0;
}

.internal-links ul li a {
  display: inline-block;
  padding: .45rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--blue);
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.internal-links ul li a:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  text-decoration: none;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.contact-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.contact-page > p {
  color: var(--mid);
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  display: block;
  margin-bottom: .35rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

textarea { resize: vertical; min-height: 140px; }

button[type="submit"] {
  align-self: flex-start;
  padding: .75rem 2rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
button[type="submit"]:hover { background: var(--blue-dark); transform: translateY(-1px); }
