/* Andrews Planning — home (redesign 2026) */

:root {
  --bg: #0b0e14;
  --bg-alt: #0d111a;
  --surface: #0f141f;
  --surface-2: #10151f;
  --line-1: #171c26;
  --line-2: #1c2330;
  --line-3: #232a38;
  --line-4: #333a48;
  --text: #e8ebf2;
  --text-2: #a5adbd;
  --text-3: #aab2c0;
  --muted: #8a92a3;
  --muted-2: #7c8494;
  --muted-3: #6a7284;
  --muted-4: #5a6274;
  --accent: #3b72d8;
  --accent-light: #9dbcf5;
  --accent-hover: #2f5fc0;
  --accent-border: #4d82e6;
  --green: #22b358;
  --green-hover: #1c9a4b;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: 56px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-border); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: #7ba4f0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
::selection { background: var(--accent); color: #fff; }

@keyframes apFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes apRise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes apGlow  { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

.container { max-width: var(--max); margin: 0 auto; }
.accent { color: var(--accent); }
.muted { color: var(--muted-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 4px; font-weight: 600; white-space: nowrap; line-height: 1.2;
  border: 1px solid transparent;
}
.btn--xs { padding: 9px 18px; font-size: 13.5px; }
.btn--sm { padding: 11px 22px; font-size: 14.5px; }
.btn--md { padding: 14px 28px; font-size: 15px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--outline { border-color: var(--line-4); color: var(--text); }
.btn--outline:hover { border-color: var(--accent-border); color: #fff; }
.btn--outline-green:hover { border-color: var(--green); }
.btn--ghost { border-color: #2a3344; color: #c7cdd8; }
.btn--ghost:hover { border-color: var(--accent-border); color: #fff; }
.btn--white { background: #fff; color: var(--bg); font-weight: 700; }
.btn--white:hover { background: #dce6f8; color: var(--bg); }
.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x); max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; margin-top: 38px; }
.brand__symbol { height: 72px; width: auto; }
.brand__name { height: 55px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav__links > a:not(.btn) { color: #c7cdd8; }
.nav__links > a:not(.btn):hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 90px var(--pad-x) 120px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero__glows { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__glow { position: absolute; border-radius: 50%; }
.hero__glow--a {
  top: -80px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(59,114,216,.22) 0%, transparent 65%);
  animation: apGlow 6s ease-in-out infinite;
}
.hero__glow--b {
  bottom: -40px; left: 30%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,114,216,.1) 0%, transparent 60%);
}
.hero__copy { position: relative; animation: apRise .8s ease both; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(77,130,230,.35); background: rgba(59,114,216,.08);
  color: var(--accent-light); font-size: 13px; font-weight: 600; letter-spacing: .14em;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 { font-size: 62px; line-height: 1.04; font-weight: 700; margin: 0 0 24px; text-wrap: balance; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 540px; margin: 0 0 40px; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero__ctas .btn--accent { padding: 17px 32px; }
.metrics { display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap; }
.metric__num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.metric__label { font-size: 13.5px; color: var(--muted-2); margin-top: 4px; }
.metric__sep { width: 1px; background: #222835; }

.hero__visual { position: relative; height: 480px; animation: apRise 1s .15s ease both; }
.hero__logo-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__logo-float { display: flex; flex-direction: column; align-items: center; gap: 28px; animation: apFloat 7s ease-in-out infinite; }
.hero__symbol { width: 300px; height: auto; filter: drop-shadow(0 30px 60px rgba(59,114,216,.3)); }
.hero__name { width: 320px; height: auto; }
.chip {
  position: absolute; border: 1px solid var(--line-3); background: rgba(15,19,28,.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 8px; padding: 14px 18px; font-size: 13px; color: var(--text-3); white-space: nowrap;
}
.chip__dot { font-weight: 700; }
.chip--a { top: 30px; right: 10px; animation: apFloat 6s .5s ease-in-out infinite; }
.chip--b { top: 150px; left: 20px; animation: apFloat 7.5s 1.5s ease-in-out infinite; }
.chip--c { bottom: 50px; left: 0; animation: apFloat 8s 1s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 100px var(--pad-x); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--bordered { border-top: 1px solid var(--line-1); }
.section--tight { padding-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--accent); margin-bottom: 14px; }
.eyebrow--light { color: var(--accent-light); }
.section__title { font-size: 42px; font-weight: 700; }
.section__title--narrow { max-width: 560px; }
.section__intro { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 380px; margin: 0; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: var(--accent); transform: translateY(-4px); }
.service__num {
  width: 44px; height: 44px; border-radius: 8px; background: rgba(59,114,216,.12);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--accent);
}
.service h3 { font-size: 20px; font-weight: 600; color: #fff; }
.service p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
.service__link { font-size: 14px; font-weight: 600; color: var(--accent-light); }
.service__link:hover { color: #fff; }

/* Loja */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg-alt) 100%);
  border-radius: 10px; overflow: hidden; transition: border-color .2s;
}
.product:hover { border-color: var(--accent); }
.product__photo { height: 220px; background-color: #131926; background-size: cover; background-position: center; }
.product__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.product h3 { font-size: 18px; font-weight: 600; color: #fff; }
.product__compat { font-size: 13.5px; color: var(--muted); }
.product__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; }
.product__price { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent); }

/* Equipe / Lab */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.photo-card { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); min-height: 380px; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,14,20,.85)); }
.photo-card figcaption { position: absolute; left: 28px; right: 28px; bottom: 24px; }
.photo-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.photo-card__sub { font-size: 14.5px; color: var(--text-3); margin-top: 4px; }

/* Academy */
.academy {
  border: 1px solid rgba(77,130,230,.3);
  background: linear-gradient(120deg, rgba(59,114,216,.14) 0%, rgba(59,114,216,.04) 60%);
  border-radius: 14px; padding: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
  position: relative; overflow: hidden;
}
.academy__glow { position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(59,114,216,.25), transparent 65%); }
.academy__copy { position: relative; }
.academy h2 { font-size: 36px; font-weight: 700; margin: 0 0 14px; max-width: 620px; }
.academy p { color: var(--text-2); font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 560px; }
.academy .btn { position: relative; padding: 17px 34px; }

/* Footer */
.footer { border-top: 1px solid var(--line-1); background: var(--bg-alt); padding: 90px var(--pad-x) 40px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line-1); }
.footer h2 { font-size: 38px; font-weight: 700; margin: 0 0 18px; }
.footer__lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 32px; max-width: 420px; }
.footer__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__ctas .btn--green { padding: 15px 28px; }
.footer__label { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--muted-3); margin-bottom: 20px; }
.footer__address { font-style: normal; color: var(--text-3); font-size: 15px; line-height: 1.8; margin: 0; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__nav a { color: var(--text-3); }
.footer__nav a:hover { color: #fff; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13.5px; color: var(--muted-4); gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__symbol { height: 34px; width: auto; }
.footer__name { height: 26px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad-x: 36px; }
  .hero h1 { font-size: 52px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 80px; gap: 56px; }
  .hero__visual { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__symbol { width: 220px; }
  .hero__name { width: 250px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .section__intro { max-width: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .photo-card { min-height: 300px; }
  .academy { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .nav { padding-top: 16px; }
  .brand { margin-top: 16px; }
  .brand__symbol { height: 48px; }
  .brand__name { height: 36px; }
  .nav__links > a:not(.btn) { display: none; }
  .hero { padding-top: 44px; padding-bottom: 64px; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { width: 100%; }
  .metrics { gap: 24px; }
  .metric__sep { display: none; }
  .hero__visual { height: 380px; }
  .hero__symbol { width: 180px; }
  .hero__name { width: 210px; }
  .chip--a { top: 0; right: 0; }
  .chip--b { top: 44px; left: 0; }
  .chip--c { bottom: 0; left: auto; right: 0; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section--tight { padding-top: 0; }
  .section__title { font-size: 32px; }
  .services, .products { grid-template-columns: 1fr; }
  .academy h2 { font-size: 28px; }
  .academy .btn { width: 100%; }
  .footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer h2 { font-size: 30px; }
  .footer__ctas .btn { flex: 1 1 auto; }
  .footer__bar { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  .brand__name { display: none; }
  .nav__links .btn--sm { padding: 10px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy, .hero__visual, .hero__logo-float, .hero__glow--a, .chip { animation: none !important; }
  .service { transition: none; }
}
