/* =============================
   GR Educação — gredu.com.br
   Custom Styles
   ============================= */

:root {
  --navy: #1e3a5c;
  --navy-dark: #152b47;
  --navy-light: #254d7a;
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --orange-light: #fb923c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

/* ── Navbar ── */
#navbar {
  transition: box-shadow 0.3s, background 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(30,58,92,.15);
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(10px);
}

/* ── Hero ── */
.hero-bg {
  background: linear-gradient(135deg, #1e3a5c 0%, #254d7a 60%, #1a3350 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(249,115,22,.12) 0%, transparent 55%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.hero-floating {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Buttons ── */
.btn-orange {
  background: var(--orange);
  color: #fff;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,92,.35);
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

/* ── Stats ── */
.stat-card {
  border-top: 4px solid var(--orange);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(30,58,92,.14);
}

/* ── Produto card ── */
.produto-card {
  border-bottom: 4px solid transparent;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.produto-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(30,58,92,.13);
}

/* ── Feature icon ── */
.feature-icon {
  background: linear-gradient(135deg, #fff4ed, #fff);
  border: 2px solid #fed7aa;
}

/* ── Depoimentos ── */
.depoimento-card {
  transition: transform .25s, box-shadow .25s;
}
.depoimento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,58,92,.12);
}
.depoimento-card blockquote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 0;
  color: var(--orange);
  opacity: .3;
  vertical-align: -1.2rem;
  margin-right: 4px;
}

/* ── Section headings ── */
.section-tag {
  display: inline-block;
  background: #fff4ed;
  color: var(--orange);
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .9rem;
  margin-bottom: .75rem;
}
.section-title {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
}
.underline-orange {
  position: relative;
  display: inline-block;
}
.underline-orange::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
}

/* ── WhatsApp fab ── */
#whatsapp-fab {
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
}
#whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
#whatsapp-fab .pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ── Mobile menu ── */
#mobile-menu {
  transition: max-height .35s ease, opacity .3s;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Fade-in on scroll ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ── */
footer a {
  transition: color .2s;
}
footer a:hover {
  color: var(--orange-light);
}
