/*
Theme Name: APAM CMDPII
Theme URI: https://apamcmdpii.com.br
Author: APAM CMDPII
Description: Tema oficial da Associação de Pais, Alunos e Mestres do Colégio Militar Dom Pedro II
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: apam-cmdpii
Tags: institutional, responsive, dark
*/

/* ─── VARIÁVEIS ──────────────────────────────────────────────────────────────── */
:root {
  --navy:       #0C1E3E;
  --navy-mid:   #1B3A6B;
  --navy-light: #2A5298;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --cream:      #F7F4EF;
  --gray-100:   #F0EDE8;
  --gray-300:   #C8C2B8;
  --gray-500:   #7A7468;
  --text:       #1A1714;
  --font-title: 'Playfair Display', serif;
  --font-body:  'DM Sans', sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────────── */
.apam-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.apam-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px,5vw,48px);
  height: 68px;
}
.apam-navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.apam-navbar__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}
.apam-navbar__name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.apam-navbar__sub {
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.apam-navbar__menu {
  display: flex;
  gap: 28px;
}
.apam-navbar__menu a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.apam-navbar__menu a:hover { color: #fff; }
.apam-navbar__portal {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy) !important;
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.apam-navbar__portal:hover { opacity: 0.9; }
.apam-navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.apam-navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.2s;
}
.apam-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.apam-mobile-menu.is-open { display: flex; }
.apam-mobile-menu a {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
}
.apam-mobile-menu .apam-mobile-portal {
  margin: 16px;
  text-align: center;
  background: var(--gold);
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 4px;
  display: block;
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.apam-hero {
  background: var(--navy);
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.apam-hero__content {
  padding: clamp(48px,8vw,80px) clamp(24px,5vw,64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.apam-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  width: fit-content;
}
.apam-hero__tag-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.apam-hero__tag-text {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.apam-hero__title {
  font-size: clamp(28px,5vw,48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.apam-hero__title em {
  color: var(--gold);
  font-style: italic;
}
.apam-hero__desc {
  font-size: clamp(13px,2vw,15px);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
}
.apam-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.apam-btn-gold {
  background: var(--gold);
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  display: inline-block;
}
.apam-btn-gold:hover { opacity: 0.9; }
.apam-btn-outline {
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px;
  padding: 13px 28px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
  transition: border-color 0.2s;
}
.apam-btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff !important; }
.apam-hero__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.apam-hero__logo {
  width: clamp(180px,25vw,280px);
  height: clamp(180px,25vw,280px);
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.15));
}

/* ─── STATS ──────────────────────────────────────────────────────────────────── */
.apam-stats {
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.apam-stats__item {
  padding: 28px clamp(16px,3vw,32px);
  border-right: 1px solid var(--gray-100);
}
.apam-stats__num {
  font-family: var(--font-title);
  font-size: clamp(22px,3vw,32px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.apam-stats__label {
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}
.apam-stats__bar {
  width: 24px; height: 2px;
  background: var(--gold);
  margin-top: 8px;
}

/* ─── SEÇÃO GENÉRICA ─────────────────────────────────────────────────────────── */
.apam-section {
  padding: clamp(40px,6vw,72px) clamp(20px,5vw,64px);
}
.apam-section--white  { background: #fff; }
.apam-section--cream  { background: var(--cream); }
.apam-section--navy   { background: var(--navy); }
.apam-section__label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.apam-section__title {
  font-size: clamp(22px,4vw,34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 40px;
}
.apam-section__title--white { color: #fff; }
.apam-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

/* ─── BENEFÍCIOS GRID ────────────────────────────────────────────────────────── */
.apam-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 2px;
  background: var(--gray-100);
}
.apam-beneficio {
  background: #fff;
  padding: clamp(24px,4vw,36px) clamp(20px,3vw,28px);
}
.apam-beneficio__icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 16px;
}
.apam-beneficio__title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.apam-beneficio__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── ESCOLINHAS ─────────────────────────────────────────────────────────────── */
.apam-escolinhas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}
.apam-escolinha {
  background: var(--cream);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--gold);
  padding: 32px;
}
.apam-escolinha__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.apam-escolinha__title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.apam-escolinha__loc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.apam-escolinha__mods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.apam-mod-tag {
  font-size: 11px;
  color: var(--navy-mid);
  background: rgba(27,58,107,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
}

/* ─── NOTICIAS ───────────────────────────────────────────────────────────────── */
.apam-noticias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}
.apam-noticia {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
}
.apam-noticia__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.apam-noticia__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.apam-noticia__cat {
  font-size: 10px;
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}
.apam-noticia__title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}
.apam-noticia__title a { color: var(--navy); }
.apam-noticia__title a:hover { color: var(--navy-light); }
.apam-noticia__excerpt {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}
.apam-noticia__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
  margin-top: auto;
}
.apam-noticia__date { font-size: 12px; color: var(--gray-500); }
.apam-noticia__link {
  font-size: 12px;
  color: var(--navy-light);
  border-bottom: 1px solid var(--navy-light);
  padding-bottom: 1px;
}

/* ─── CTA ASSOCIE-SE ─────────────────────────────────────────────────────────── */
.apam-cta {
  background: var(--navy);
  padding: clamp(40px,6vw,72px) clamp(20px,5vw,64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px,6vw,80px);
  align-items: center;
}
.apam-preco {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  padding: clamp(28px,5vw,48px) clamp(24px,4vw,40px);
  text-align: center;
  min-width: 240px;
}
.apam-preco__label {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.apam-preco__valor {
  font-family: var(--font-title);
  font-size: clamp(42px,8vw,64px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.apam-preco__sup {
  font-size: 20px;
  color: var(--gold-light);
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
}
.apam-preco__period {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  margin-bottom: 28px;
}
.apam-preco__lista {
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apam-preco__item {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.apam-preco__check { color: var(--gold); font-size: 15px; flex-shrink: 0; }

/* ─── PAGE HEADER ────────────────────────────────────────────────────────────── */
.apam-page-header {
  background: var(--navy);
  padding: clamp(32px,6vw,64px) clamp(20px,5vw,64px) clamp(28px,5vw,56px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.apam-page-header__label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.apam-page-header__title {
  font-size: clamp(26px,6vw,42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.apam-page-header__desc {
  font-size: clamp(13px,2.5vw,15px);
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── POST INDIVIDUAL ────────────────────────────────────────────────────────── */
.apam-post {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px,6vw,72px) clamp(20px,5vw,64px);
}
.apam-post img { width: 100%; height: 400px; object-fit: cover; margin-bottom: 40px; border-radius: 4px; }
.apam-post p { font-size: 15px; line-height: 1.9; margin-bottom: 20px; color: var(--text); }
.apam-post h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin: 32px 0 16px; }
.apam-post a { color: var(--navy-light); border-bottom: 1px solid var(--navy-light); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.apam-footer {
  background: #080F1E;
  padding: clamp(40px,6vw,60px) clamp(20px,5vw,64px) 28px;
}
.apam-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px,4vw,48px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.apam-footer__brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.apam-footer__brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 20px;
}
.apam-footer__bar { width: 40px; height: 1px; background: var(--gold); opacity: 0.4; }
.apam-footer__col-title {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.apam-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apam-footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.apam-footer__links a:hover { color: rgba(255,255,255,0.8); }
.apam-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ─── LINK UTILITÁRIO ────────────────────────────────────────────────────────── */
.apam-link {
  font-size: 13px;
  color: var(--navy-light);
  border-bottom: 1px solid var(--navy-light);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.apam-link:hover { opacity: 0.7; }
.apam-link--white { color: rgba(255,255,255,0.6) !important; border-color: rgba(255,255,255,0.4); }

/* ─── WORDPRESS RESET ────────────────────────────────────────────────────────── */
.wp-caption, .wp-caption-text, .gallery-caption { font-size: 13px; color: var(--gray-500); }
.aligncenter { display: block; margin: 20px auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }

/* ─── RESPONSIVO ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .apam-navbar__menu,
  .apam-navbar__portal { display: none; }
  .apam-navbar__hamburger { display: flex; }
  .apam-hero { grid-template-columns: 1fr; }
  .apam-hero__logo-wrap { display: none; }
  .apam-stats { grid-template-columns: repeat(2,1fr); }
  .apam-cta { grid-template-columns: 1fr; }
  .apam-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .apam-stats { grid-template-columns: 1fr 1fr; }
  .apam-footer__grid { grid-template-columns: 1fr; }
}
