:root {
  --bg: #f4f9f8;
  --surface: #ffffff;
  --surface-soft: #edf6f4;
  --ink: #09252a;
  --muted: #587074;
  --line: #d8e7e4;
  --brand: #2d6f6f;
  --brand-strong: #235a5a;
  --accent: #ffc638;
  --accent-strong: #e7aa18;
  --danger: #8f2e2e;
  --shadow: 0 14px 34px rgba(22, 33, 27, .08);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  max-width: 860px;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: 10px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  border-bottom: 0;
  box-shadow: 0 10px 24px rgba(9, 37, 42, .12);
}

.site-header__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  justify-self: end;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(255, 198, 56, .28);
}

.brand__text {
  font-size: 1.1rem;
}

.primary-nav {
  justify-self: center;
  margin: 0;
}

.primary-nav ul,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  color: #fff;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: var(--radius);
  padding: 0 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.button--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(255, 198, 56, .25);
}

.button--primary:hover {
  background: var(--accent-strong);
  color: var(--ink);
}

.button--ghost {
  border-color: rgba(45,111,111,.24);
  background: var(--surface);
  color: var(--ink);
}

.button--light {
  background: #fff;
  color: var(--brand-strong);
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: .88rem;
  font-weight: 800;
}

.home-hero,
.archive-hero,
.single-hero {
  padding: 82px 0 52px;
  background: var(--bg);
}

.home-hero__grid,
.single-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 42px;
  align-items: center;
}

.single-hero__grid {
  grid-template-columns: minmax(380px, .92fr) minmax(0, 1fr);
}

.single-hero__content {
  min-width: 0;
}

.home-hero p,
.archive-hero p,
.single-hero p {
  max-width: 720px;
  font-size: 1.08rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.search-panel,
.lead-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.search-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.trust-list,
.mini-stats,
.stats-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.trust-list div,
.mini-stats div,
.stats-panel div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255,255,255,.7);
}

dt {
  color: var(--muted);
  font-size: .86rem;
}

dd {
  margin: 0;
  font-weight: 800;
}

.section {
  padding: 58px 0;
}

.section--compact {
  padding: 28px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.af-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(22, 33, 27, .05);
}

.af-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

.af-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-soft), #dfe9e1);
}

.af-card__body {
  padding: 18px;
}

.af-card__title {
  min-height: 3.8em;
  font-size: 1.08rem;
}

.mini-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.mini-stats div {
  padding: 8px 10px;
}

.mini-stats dd {
  font-size: .92rem;
}

.single-hero__media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  min-height: 360px;
}

.single-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.floating-whatsapp {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 26px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #1ecb5a;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(30, 203, 90, .28);
}

.floating-whatsapp:hover {
  color: #fff;
  background: #16b94f;
}

.content-narrow {
  max-width: 820px;
}

.entry-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.entry-content h2 {
  margin-top: 34px;
  font-size: 1.6rem;
}

.entry-content a {
  color: var(--brand);
  font-weight: 800;
}

.post-meta {
  color: var(--muted);
  margin-bottom: 22px;
}

.post-cover {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: var(--radius);
}

.lead-box {
  position: sticky;
  top: 96px;
}

.pagination-nav,
.navigation.pagination {
  margin-top: 30px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin-inline-end: 6px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.page-numbers.current {
  background: var(--brand);
  color: #fff;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 42px 0 22px;
}

.site-footer p,
.site-footer a,
.site-footer dt {
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}

.footer-grid h2 {
  font-size: 1.12rem;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.62);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.header-cta {
  justify-self: center;
  width: auto;
  min-width: 88px;
  padding-inline: 22px;
  max-width: max-content;
}

.header-cta:hover {
  transform: translateY(-1px);
}

.site-header .button {
  min-height: 48px;
}

.site-header .primary-nav ul {
  justify-content: center;
}

.site-header .primary-nav a {
  white-space: nowrap;
}

.site-header .primary-nav li {
  line-height: 1;
}

.single-hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.7rem);
}

.single-hero p {
  color: #244247;
}

@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 12px 0;
    min-height: 72px;
  }

  .brand {
    justify-self: end;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    margin-inline-start: auto;
  }

  .primary-nav {
    display: none;
    width: 100%;
    order: 5;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    justify-items: start;
  }

  .header-cta {
    justify-self: start;
    width: auto;
    max-width: none;
  }

  .site-header .button {
    min-height: 44px;
  }

  .home-hero__grid,
  .single-hero__grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-box {
    position: static;
  }
}

@media (max-width: 620px) {
  .single-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .brand__text {
    font-size: 1rem;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    bottom: 18px;
    inset-inline-start: 14px;
  }

  .header-cta {
    display: none;
  }

  .container {
    width: min(100% - 22px, var(--container));
  }

  .home-hero,
  .archive-hero,
  .single-hero {
    padding: 38px 0 28px;
  }

  .single-hero__media {
    min-height: 220px;
  }

  .section {
    padding: 38px 0;
  }

  .listing-grid,
  .stats-panel,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .section-head,
  .search-form,
  .hero-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .search-form button {
    width: 100%;
  }

  .entry-content,
  .search-panel,
  .lead-box {
    padding: 18px;
  }

  .af-card__title {
    min-height: auto;
  }
}
