/* ============ FONTES (WOFF2 latin, self-hosted) ============ */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../assets/fonts/cormorant-500i.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../assets/fonts/jost-var.woff2) format("woff2"); }

/* ============ TOKENS (mesmos do casa-colegio-militar) ============ */
:root {
  --bg-deep: #0a0705;
  --bg-2: #140e09;
  --card: #1a130c;
  --gold-1: #f6e2a8;
  --gold-2: #d6ab5c;
  --gold-3: #b8893d;
  --gold-line: rgba(214, 171, 92, .35);
  --offwhite: #f3ece0;
  --champagne: #e8d7b8;
  --muted: #b3a892;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 640px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--offwhite);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-1) 40%, #fff6dd 50%, var(--gold-1) 60%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ BOTÃO ============ */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; padding: 13px 24px; border-radius: 50px;
  font-weight: 600; font-size: 15px; letter-spacing: .2px; line-height: 1.25; text-align: center;
  color: #2a1c08;
  background: linear-gradient(100deg, var(--gold-3), var(--gold-1) 45%, #fff4d4 52%, var(--gold-1) 60%, var(--gold-3));
  background-size: 200% 100%; background-position: 100% 0;
  box-shadow: 0 14px 30px -12px rgba(214,171,92,.55), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .3s, box-shadow .3s, background-position .6s;
}
.btn-gold:hover { transform: translateY(-2px); background-position: 0 0; box-shadow: 0 20px 38px -12px rgba(214,171,92,.75), inset 0 1px 0 rgba(255,255,255,.65); }
.btn-gold svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ============ TOPO — FOTO + DEGRADÊ PARA O PRETO ============ */
.hero {
  position: relative; max-width: var(--col); margin: 0 auto;
  isolation: isolate; overflow: hidden;
}
.hero__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,7,5,0) 38%, rgba(10,7,5,.55) 62%, rgba(10,7,5,.92) 82%, var(--bg-deep) 100%),
    linear-gradient(90deg, var(--bg-deep) 0%, rgba(10,7,5,0) 14%, rgba(10,7,5,0) 86%, var(--bg-deep) 100%);
}
.hero__inner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 20px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo { width: 180px; margin-bottom: 14px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 6.4vw, 38px); line-height: 1.1;
  color: #fff; text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0,0,0,.6);
}
.hero h1 em { display: block; margin-top: 6px; font-style: italic; font-weight: 500; font-size: .82em; }
.hero__sub {
  margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold-2);
}

/* ============ SERVIÇOS ============ */
.services {
  max-width: var(--col); margin: 0 auto; padding: 28px 20px 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.svc {
  display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start;
  padding: 22px 20px; border-radius: 18px;
  background: linear-gradient(160deg, var(--card), var(--bg-2));
  border: 1px solid var(--gold-line);
  overflow: hidden;
}
.svc__icon { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); }
.svc__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(23px, 5vw, 28px); line-height: 1.15; color: #fff;
}
.svc__body p { margin: 10px 0 16px; font-size: 15px; font-weight: 300; color: var(--champagne); }
.svc__body strong { font-weight: 500; color: var(--gold-1); }

@media (max-width: 420px) {
  .svc { grid-template-columns: 64px 1fr; gap: 14px; padding: 20px 16px; }
  .svc__icon { width: 64px; height: 64px; }
  .btn-gold { width: 100%; padding: 13px 18px; }
}

/* Animação de entrada: ícone gira + fade-in, texto vem da direita */
.js .svc__icon { opacity: 0; transform: rotate(-270deg) scale(.4); }
.js .svc__body { opacity: 0; transform: translateX(70px); }
.svc.is-in .svc__icon {
  opacity: 1; transform: none;
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.9,.25,1.15);
}
.svc.is-in .svc__body {
  opacity: 1; transform: none;
  transition: opacity .8s ease .25s, transform .9s cubic-bezier(.2,.8,.2,1) .25s;
}
@media (prefers-reduced-motion: reduce) {
  .js .svc__icon, .js .svc__body { opacity: 1; transform: none; transition: none; }
}

/* ============ RODAPÉ ============ */
.footer {
  max-width: var(--col); margin: 0 auto; padding: 30px 20px 40px; text-align: center;
  border-top: 1px solid var(--gold-line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.footer img { width: 150px; opacity: .9; }
.footer__copy { font-size: 12px; opacity: .7; }
