/* APEJESE Theme – main.css v3.1.0 */

/* ================================================================
   1. DESIGN TOKENS
================================================================ */
:root {
  --c-primary:   #1B3A6B;
  --c-secondary: #C9A227;
  --c-accent:    #E63946;
  --c-text:      #1A1A2E;
  --c-bg:        #FFFFFF;
  --c-header:    #1B3A6B;
  --c-footer:    #0D1F3C;
  --c-muted:     #6B7280;
  --c-border:    #E5E7EB;
  --c-surface:   #F9FAFB;

  --f-heading: 'Playfair Display', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-size:    16px;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.15);
  --transition: .3s ease;

  --container: 1200px;
  --header-h:  72px;
}

/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--f-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* clip não cria novo contexto de formatação — não quebra position:sticky */
}

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  /* overflow-x:hidden removido — quebrava position:sticky no header */
}

body.menu-open { overflow: hidden; }

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

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-secondary); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  line-height: 1.25;
  color: var(--c-text);
}

/* ================================================================
   3. LAYOUT UTILITIES
================================================================ */
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--c-surface);
}

/* Section header with label + title + subtitle */
.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-secondary);
  margin-bottom: .75rem;
}
.section__label::before,
.section__label::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-secondary);
  border-radius: 2px;
  opacity: .6;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--c-primary);
  margin-bottom: .85rem;
  position: relative;
  display: inline-block;
}
/* Accent underline on section titles */
.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--c-secondary);
  border-radius: 3px;
  margin: .5rem auto 0;
}
.section__header .section__title::after { margin: .5rem auto 0; }

.section__sub {
  color: var(--c-muted);
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.05rem;
  margin-top: .5rem;
}

.section__footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* ================================================================
   4. REVEAL ANIMATION
   Always visible at .5 opacity — JS adds .in-view for full opacity.
================================================================ */
.reveal {
  transition: transform .65s cubic-bezier(.22,.61,.36,1),
              opacity  .65s ease;
}
.reveal:not(.in-view) {
  transform: translateY(26px);
  opacity: .5;
}
.reveal.in-view {
  transform: none;
  opacity: 1;
}
/* Stagger children inside grids */
.services__grid .reveal:nth-child(2) { transition-delay: .08s; }
.services__grid .reveal:nth-child(3) { transition-delay: .16s; }
.services__grid .reveal:nth-child(4) { transition-delay: .24s; }
.services__grid .reveal:nth-child(5) { transition-delay: .32s; }
.services__grid .reveal:nth-child(6) { transition-delay: .40s; }
.news__grid .reveal:nth-child(2)     { transition-delay: .1s; }
.news__grid .reveal:nth-child(3)     { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal:not(.in-view) {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ================================================================
   5. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn--lg { padding: .85rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: .4rem 1.1rem;  font-size: .82rem; }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: transparent;
  color: var(--c-primary);
}

.btn--secondary {
  background: var(--c-secondary);
  color: #fff;
  border-color: var(--c-secondary);
}
.btn--secondary:hover {
  background: transparent;
  color: var(--c-secondary);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.75);
}
.btn--outline-white:hover {
  background: #fff;
  color: var(--c-primary);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  margin-top: 1.5rem;
}
.btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}

/* ================================================================
   6. TOPBAR
================================================================ */
.topbar {
  background: #152e56;
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar__info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.topbar__item i { color: var(--c-secondary); font-size: .7rem; }
.topbar__item a { color: rgba(255,255,255,.8); }
.topbar__item a:hover { color: var(--c-secondary); }
.topbar__social { display: flex; gap: .4rem; }
.topbar__social-link {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  font-size: .7rem;
  transition: all var(--transition);
}
.topbar__social-link:hover {
  background: var(--c-secondary);
  color: #fff;
  transform: translateY(-1px);
}

/* ================================================================
   7. HEADER
================================================================ */
.site-header {
  background: var(--c-header);
  position: relative;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
/* Sticky: elemento permanece no fluxo — overflow-x:clip no html garante que isso funcione */
.site-header--sticky {
  position: sticky;
  top: 0;
}
/* Transparente na homepage: fundo some, posição continua sticky (não absolute) */
.site-header--transp {
  background: transparent;
}
/* Ao rolar: restaura fundo e adiciona sombra — SEM trocar para position:fixed (evita content jump) */
.site-header--sticky.is-scrolled,
.site-header--transp.is-scrolled {
  background: var(--c-header);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* Brand */
.header__brand { flex-shrink: 0; }
.header__brand img,
.header__brand .custom-logo { max-height: 52px; width: auto; }
.header__site-name {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.header__site-abbr { color: var(--c-secondary); }
.header__site-rest { color: #fff; }
.header__site-name:hover .header__site-abbr { color: #fff; }
.header__site-name:hover .header__site-rest { color: var(--c-secondary); }

/* Nav */
.main-nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}
.menu-item { position: relative; }
.menu-item > a {
  display: block;
  padding: .55rem .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
/* Active indicator underline */
.menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: .9rem;
  right: .9rem;
  height: 2px;
  background: var(--c-secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.menu-item > a:hover::after,
.menu-item.current-menu-item > a::after,
.menu-item.current-page-ancestor > a::after,
.menu-item.current-menu-ancestor > a::after { transform: scaleX(1); }
.menu-item > a:hover,
.menu-item.current-menu-item > a,
.menu-item.current-page-ancestor > a,
.menu-item.current-menu-ancestor > a { color: #fff; }

/* Dropdown */
.menu-item ul {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .4rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  border-top: 3px solid var(--c-secondary);
}
.menu-item:hover > ul,
.menu-item:focus-within > ul {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.menu-item ul li a {
  display: block;
  padding: .5rem 1.1rem;
  font-size: .875rem;
  color: var(--c-text);
  border-radius: 0;
  font-weight: 400;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.menu-item ul li a::after { display: none; }
.menu-item ul li a:hover {
  background: var(--c-surface);
  color: var(--c-primary);
  padding-left: 1.4rem;
}

/* Header actions (CTA + hamburger) */
.header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.header__cta { flex-shrink: 0; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.18); }
.hamburger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}
/* Animate hamburger → X when menu is open */
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.menu-overlay.is-visible { display: block; }

/* ================================================================
   8. HERO
================================================================ */
.hero {
  position: relative;
  /* Margem negativa puxa o hero para cima, por baixo do sticky header transparente */
  margin-top: calc(-1 * var(--header-h));
  min-height: 100svh;
  background:
    var(--hero-bg, linear-gradient(135deg, var(--c-primary) 0%, #1e4a8a 100%))
    center / cover no-repeat;
  display: flex;
  align-items: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11,27,52,.72) 0%,
    rgba(11,27,52,.48) 60%,
    rgba(11,27,52,.35) 100%
  );
}
/* Wave bottom separator */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  /* padding-top extra compensa o margin-top negativo do hero */
  padding-block: calc(var(--header-h) + 3rem) 7rem;
  animation: heroIn .9s .1s ease both;
  width: 100%;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.35);
  color: var(--c-secondary);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  max-width: 820px;
  margin-inline: auto;
}
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  margin-top: 3rem;
  animation: bounce 2.2s ease-in-out infinite;
  transition: border-color var(--transition), color var(--transition);
}
.hero__scroll:hover { border-color: #fff; color: #fff; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ================================================================
   9. PAGE HERO (inner pages)
================================================================ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-primary) 0%, #1e4a8a 100%);
  padding: 5rem 0 3.5rem;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.25) 0%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: #fff;
}
.page-hero__meta {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  margin-top: .5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ================================================================
   10. ABOUT
================================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
}
/* Decorative frame behind image */
.about__media::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 3px solid var(--c-secondary);
  border-radius: var(--radius-lg);
  opacity: .35;
  z-index: 0;
}
.about__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-primary) 0%, #2d5a9e 100%);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 5rem;
  color: rgba(255,255,255,.2);
  box-shadow: var(--shadow-lg);
}
.about__body { padding-left: 1rem; }
.about__body .section__label { justify-content: flex-start; }
.about__body .section__title { text-align: left; display: block; }
.about__body .section__title::after { margin: .5rem 0 0; }
.about__text {
  color: var(--c-muted);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about__feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}
.about__feat {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text);
}
.about__feat i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201,162,39,.12);
  color: var(--c-secondary);
  font-size: .65rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ================================================================
   11. SERVICES
================================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Top accent line on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-primary) 0%, #2562b8 100%);
  color: #fff;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(27,58,107,.3);
  transition: transform var(--transition);
}
.service-card:hover .service-card__icon { transform: scale(1.08); }
.service-card__title {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--c-primary);
}
.service-card__desc {
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.72;
}

/* ================================================================
   12. STATS
================================================================ */
.stats {
  background: linear-gradient(135deg, var(--c-primary) 0%, #132c53 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
/* Subtle geometric background */
.stats::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 60px solid rgba(255,255,255,.03);
  border-radius: 50%;
}
.stats::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 10%;
  width: 220px;
  height: 220px;
  border: 50px solid rgba(255,255,255,.04);
  border-radius: 50%;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat {
  padding: 2rem 1.5rem;
  color: #fff;
  position: relative;
}
/* Divider between stats */
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.stat__icon {
  font-size: 2rem;
  color: var(--c-secondary);
  margin-bottom: .85rem;
  display: block;
}
.stat__number {
  display: block;
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat__label {
  font-size: .85rem;
  color: rgba(255,255,255,.68);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ================================================================
   13. NEWS
================================================================ */
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.news-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__thumb-link { display: block; overflow: hidden; }
.news-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card__thumb { transform: scale(1.04); }
.news-card__thumb--placeholder {
  background: var(--c-surface);
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--c-border);
  aspect-ratio: 16/9;
}
.news-card__body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__date {
  font-size: .75rem;
  color: var(--c-secondary);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .5rem;
}
.news-card__title {
  font-size: 1.02rem;
  margin-bottom: .6rem;
  line-height: 1.4;
  flex: 1;
}
.news-card__title a { color: var(--c-primary); }
.news-card__title a:hover { color: var(--c-secondary); }
.news-card__excerpt {
  font-size: .86rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.news-card__link {
  font-size: .83rem;
  font-weight: 600;
  color: var(--c-secondary);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-top: 1px solid var(--c-border);
  padding-top: .85rem;
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.news-card__link:hover { color: var(--c-primary); gap: .6rem; }

/* ================================================================
   14. PARTNERS
================================================================ */
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
  margin-top: .5rem;
}
.partner {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  display: grid;
  place-items: center;
  min-width: 140px;
  min-height: 80px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.partner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-secondary);
  transform: translateY(-3px);
}
.partner__logo {
  max-height: 52px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(.65);
  transition: filter var(--transition);
}
.partner:hover .partner__logo { filter: none; }
.partner__name { font-weight: 700; color: var(--c-primary); font-size: .9rem; }

/* ================================================================
   15. CONTACT
================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__info {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.contact__list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact__item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  font-size: .94rem;
  color: var(--c-text);
}
.contact__item i {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(201,162,39,.12);
  color: var(--c-secondary);
  font-size: .85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.contact__item a { color: var(--c-text); font-weight: 500; }
.contact__item a:hover { color: var(--c-primary); }
.contact__map iframe {
  width: 100%;
  aspect-ratio: 4/3;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   16. CTA
================================================================ */
.cta {
  position: relative;
  background:
    var(--cta-bg, linear-gradient(135deg, var(--c-primary) 0%, #132c53 100%))
    center / cover no-repeat;
  padding: 5.5rem 0;
  text-align: center;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,27,52,.75) 0%, rgba(11,27,52,.6) 100%);
}
.cta__content { position: relative; z-index: 1; max-width: 740px; margin-inline: auto; }
.cta__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 1rem;
}
.cta__text {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   17. POSTS GRID
================================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}
.post-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 1.35rem; }
.post-card__meta {
  font-size: .76rem;
  color: var(--c-muted);
  margin-bottom: .5rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.post-card__title { font-size: 1.05rem; margin-bottom: .5rem; }
.post-card__title a { color: var(--c-primary); }
.post-card__title a:hover { color: var(--c-secondary); }
.post-card__excerpt { font-size: .88rem; color: var(--c-muted); margin-bottom: .75rem; line-height: 1.65; }

/* ================================================================
   18. SINGLE POST
================================================================ */
.single-grid { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; padding-block: 3rem; }
.single-post__thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.single-post__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry-content { max-width: 72ch; }
.entry-content h2, .entry-content h3 { margin-block: 1.5rem .5rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content blockquote {
  border-left: 4px solid var(--c-secondary);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: var(--c-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.single-post__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .78rem;
  color: var(--c-muted);
}
.post-navigation { margin-top: 2rem; border-top: 1px solid var(--c-border); padding-top: 1.5rem; display: flex; gap: 1rem; justify-content: space-between; }
.nav-label { font-size: .78rem; color: var(--c-muted); display: block; }
.nav-title { font-weight: 600; color: var(--c-primary); font-size: .9rem; }

/* ================================================================
   19. PAGE CONTENT
================================================================ */
.page-content { padding-block: 3rem; }
.page-content .entry-content { max-width: none; }

/* ================================================================
   20. 404 PAGE
================================================================ */
.error-404 { text-align: center; padding: 5rem 0; }
.error-404__code { font-size: clamp(6rem, 20vw, 12rem); font-weight: 900; color: var(--c-border); font-family: var(--f-heading); line-height: 1; }
.error-404__title { font-size: clamp(1.5rem, 4vw, 2.25rem); color: var(--c-primary); margin-bottom: .75rem; }
.error-404 p { color: var(--c-muted); margin-bottom: 2rem; }

/* ================================================================
   21. NO RESULTS
================================================================ */
.no-results { text-align: center; padding: 4rem 0; }
.no-results h2 { color: var(--c-primary); margin-bottom: 1rem; }

/* ================================================================
   22. PAGINATION
================================================================ */
.nav-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin: 2rem 0; }
.nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--c-text);
  transition: all var(--transition);
}
.nav-links a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.nav-links .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ================================================================
   23. WIDGET AREA
================================================================ */
.widget-area { display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--c-surface); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--c-border); }
.widget-title { font-size: 1rem; margin-bottom: .75rem; color: var(--c-primary); border-bottom: 2px solid var(--c-secondary); padding-bottom: .4rem; }

/* ================================================================
   24. FOOTER
================================================================ */
.site-footer {
  background: var(--c-footer);
  color: rgba(255,255,255,.72);
  padding-top: 4.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo { max-height: 52px; width: auto; margin-bottom: 1rem; }
.footer__site-name { font-family: var(--f-heading); font-size: 1.3rem; color: #fff; display: block; margin-bottom: .5rem; }
.footer__about { font-size: .88rem; line-height: 1.75; margin-top: .5rem; margin-bottom: 1.25rem; }
.footer__social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  display: grid; place-items: center;
  font-size: .85rem;
  transition: all var(--transition);
}
.footer__social-link:hover {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: #fff;
  transform: translateY(-2px);
}
.footer__heading {
  font-size: .95rem;
  color: #fff;
  margin-bottom: 1.1rem;
  font-family: var(--f-body);
  font-weight: 600;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__menu { display: flex; flex-direction: column; gap: .4rem; }
.footer__menu a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition), gap var(--transition);
  padding: .1rem 0;
}
.footer__menu a::before { content: '›'; color: var(--c-secondary); font-size: 1.1em; }
.footer__menu a:hover { color: var(--c-secondary); gap: .6rem; }
.footer__contact { display: flex; flex-direction: column; gap: .85rem; }
.footer__contact-item { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; }
.footer__contact-item i { color: var(--c-secondary); margin-top: .2rem; flex-shrink: 0; font-size: .9rem; }
.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ================================================================
   25. WHATSAPP FAB
================================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 1.65rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
  color: #fff;
}

/* ================================================================
   26. BACK TO TOP
================================================================ */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top.is-visible { opacity: 1; pointer-events: all; transform: none; }
.back-to-top:hover { background: var(--c-secondary); }

/* ================================================================
   27. RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__media { order: -1; max-width: 560px; margin-inline: auto; }
  .about__body { padding-left: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .single-grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .hamburger { display: flex; }
  .header__cta { display: none; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--c-header);
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    overflow-y: auto;
    transition: right .35s ease;
    z-index: 100;
    box-shadow: -8px 0 32px rgba(0,0,0,.25);
  }
  .main-nav.is-open { right: 0; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .menu-item { width: 100%; }
  .menu-item > a {
    padding: .8rem .5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
    font-size: .95rem;
  }
  .menu-item > a::after { display: none; }
  .menu-item ul {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,.25);
    opacity: 1;
    pointer-events: all;
    transform: none;
    border-radius: 0;
    border-top: none;
    padding: 0;
  }
  .menu-item ul li a {
    padding: .65rem 1rem .65rem 1.5rem;
    border-radius: 0;
    font-size: .88rem;
    color: rgba(255,255,255,.75);
  }
  .menu-item ul li a:hover { padding-left: 1.75rem; color: var(--c-secondary); background: transparent; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero { min-height: 90svh; margin-top: calc(-1 * var(--header-h)); }
  .hero__content { padding-block: calc(var(--header-h) + 2rem) 5rem; }
  .hero::after { height: 40px; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero__actions { flex-direction: column; align-items: center; }

  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: 1fr; }
  .about__feats { grid-template-columns: 1fr; }

  .topbar { display: none; }

  .page-hero { margin-top: var(--header-h); }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .partners__grid { gap: 1rem; }
  .partner { min-width: 110px; padding: 1rem; }
  .contact__info { padding: 1.5rem; }
  .about__media::before { display: none; }
}
