/* ===== ROOT ===== */
:root {
  --primary: #0f172a;
  --secondary: #1e3a5f;
  --accent: #f97316;
  --accent-dark: #ea6c0a;
  --prevention: #10b981;
  --prevention-dark: #059669;
  --intervention: #ef4444;
  --intervention-dark: #dc2626;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 40px 60px -15px rgb(0 0 0 / 0.2);
  --radius: 12px;
  --max-width: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary); color: white; }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.label { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.75rem; }
.section-header h2 { color: inherit; margin-bottom: 1rem; }
.section-header .subtitle { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  transition: all 0.2s ease; cursor: pointer; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary  { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover  { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgb(249 115 22 / 0.4); }
.btn-green    { background: var(--prevention); color: white; border-color: var(--prevention); }
.btn-green:hover    { background: var(--prevention-dark); border-color: var(--prevention-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgb(16 185 129 / 0.4); }
.btn-red      { background: var(--intervention); color: white; border-color: var(--intervention); }
.btn-red:hover      { background: var(--intervention-dark); border-color: var(--intervention-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgb(239 68 68 / 0.4); }
.btn-outline  { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover  { background: white; color: var(--primary); border-color: white; }
.btn-outline-green { background: transparent; color: var(--prevention); border-color: var(--prevention); }
.btn-outline-green:hover { background: var(--prevention); color: white; }
.btn-outline-red   { background: transparent; color: var(--intervention); border-color: var(--intervention); }
.btn-outline-red:hover   { background: var(--intervention); color: white; }
.btn-white    { background: white; color: var(--accent); border-color: white; font-weight: 700; }
.btn-white:hover    { background: #fff8f4; transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.2); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 20px rgb(0 0 0 / 0.3);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 48px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: white; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.mobile-menu-btn {
  display: none; background: none; border: none; color: white;
  cursor: pointer; padding: 0.5rem; border-radius: 6px; line-height: 1;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-nav {
  display: none; flex-direction: column; background: #172038;
  padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: white; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #060d1f 0%, #0f2547 50%, #0a1929 100%);
  color: white; padding: 5.5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 50%, rgba(249,115,22,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(16,185,129,0.05) 0%, transparent 40%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.25);
  color: #fbb86c; padding: 0.375rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title { color: white; margin-bottom: 1.25rem; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2.25rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.trust-item .check { color: var(--prevention); font-size: 0.9rem; }
.hero-visual { display: flex; flex-direction: column; gap: 1rem; }
.hero-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 1.375rem 1.5rem; backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s;
}
.hero-card:hover { transform: translateX(-4px); border-color: rgba(255,255,255,0.2); }
.hero-card-row { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.75rem; }
.hc-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.hc-icon.green { background: rgba(16,185,129,0.15); }
.hc-icon.red   { background: rgba(239,68,68,0.15); }
.hc-icon.orange{ background: rgba(249,115,22,0.15); }
.hc-info { flex: 1; }
.hc-info h4 { color: white; font-size: 0.95rem; margin-bottom: 0.1rem; }
.hc-info p  { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }
.hc-tag { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 100px; flex-shrink: 0; }
.hc-tag.green { background: rgba(16,185,129,0.15); color: #34d399; }
.hc-tag.red   { background: rgba(239,68,68,0.15); color: #f87171; }
.hero-card-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin: 0; }
.hero-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-stat { text-align: center; }
.mini-stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: white; line-height: 1; }
.mini-stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--accent); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 1.4rem 1rem; text-align: center; color: white; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-cell:last-child { border-right: none; }
.stat-num  { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat-lbl  { font-size: 0.78rem; opacity: 0.85; margin-top: 0.2rem; display: block; }

/* ===== COURSES ===== */
.courses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.course-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.course-header { padding: 2rem 2rem 1.75rem; color: white; }
.course-header.prevention { background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%); }
.course-header.intervention { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 40%, #b91c1c 100%); }
.course-badge {
  display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.75rem;
  border-radius: 100px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.course-header h3 { color: white; font-size: 1.6rem; margin-bottom: 0.5rem; }
.course-header .course-tagline { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin: 0; }
.course-body { padding: 2rem; background: white; }
.course-desc { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.7; }
.course-features { list-style: none; margin-bottom: 1.5rem; }
.course-features li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.55rem 0; font-size: 0.9rem; color: var(--text);
  border-bottom: 1px solid var(--bg-light);
}
.course-features li:last-child { border-bottom: none; }
.cf-check {
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.65rem; font-weight: 800; flex-shrink: 0; margin-top: 0.1rem;
}
.cf-check.green { background: rgba(16,185,129,0.1); color: var(--prevention); }
.cf-check.red   { background: rgba(239,68,68,0.1); color: var(--intervention); }
.course-use-cases { background: var(--bg-light); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.course-use-cases h5 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.5rem; }
.course-use-cases ul { list-style: none; }
.course-use-cases ul li { font-size: 0.875rem; color: var(--text); padding: 0.2rem 0; }
.course-use-cases ul li::before { content: '→ '; color: var(--text-light); }
.course-actions { display: flex; gap: 0.875rem; }
.course-actions .btn { flex: 1; font-size: 0.9rem; padding: 0.8rem 1rem; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 30px; left: calc(16.66% + 1.25rem); right: calc(16.66% + 1.25rem);
  height: 2px; background: linear-gradient(90deg, var(--accent), transparent 100%);
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 8px, transparent 8px, transparent 16px);
  opacity: 0.3;
}
.step { text-align: center; padding: 0 1rem; }
.step-num {
  width: 60px; height: 60px; background: var(--accent); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  font-weight: 800; margin: 0 auto 1.5rem; box-shadow: 0 8px 20px rgb(249 115 22 / 0.35);
  position: relative; z-index: 1;
}
.step h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.step p { font-size: 0.92rem; }

/* ===== WHY CHOOSE ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why-card {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); transition: background 0.2s, border-color 0.2s;
}
.why-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.why-icon { font-size: 1.75rem; }
.why-card h4 { color: white; font-size: 1rem; }
.why-card p  { font-size: 0.875rem; margin: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.t-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.t-quote { font-size: 0.95rem; color: var(--text); line-height: 1.75; margin-bottom: 1.25rem; font-style: italic; flex: 1; }
.t-author { display: flex; align-items: center; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: 0.875rem; color: var(--text); }
.t-role { font-size: 0.78rem; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; background: white; }
.faq-q {
  width: 100%; background: none; border: none; padding: 1.2rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 0.975rem; font-weight: 600; color: var(--text);
  text-align: left; gap: 1rem; transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-light); }
.faq-q-icon {
  width: 26px; height: 26px; background: var(--accent); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  font-weight: 400; flex-shrink: 0; transition: transform 0.3s ease;
  line-height: 1;
}
.faq-a { display: none; padding: 0 1.5rem 1.25rem; font-size: 0.92rem; color: var(--text-light); line-height: 1.75; }
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-item.open .faq-a { display: block; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #c2410c 0%, var(--accent) 50%, #f97316 100%);
  padding: 5rem 0; text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 2.25rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-phone { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 1.5rem; }
.cta-phone a { color: white; font-weight: 600; }

/* ===== FOOTER ===== */
footer { background: #060d1f; color: rgba(255,255,255,0.55); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; margin: 1rem 0 1.25rem; max-width: 270px; line-height: 1.7; }
.footer-contact-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-contact-links a:hover { color: white; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: white; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .section { padding: 3.5rem 0; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-cell:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.2); }
  .stat-cell:nth-child(n+3)  { border-bottom: none; }
  .courses-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .course-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }
}
