﻿:root {
  --primary: #0d6e8a;
  --primary-dark: #0a5569;
  --primary-light: #e8f4f7;
  --accent: #25d366;
  --text: #1a2b32;
  --text-muted: #5a6b72;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(13, 110, 138, 0.12);
  --radius: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 110, 138, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.header-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--primary-light);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  header .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-bar {
    gap: 0.75rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
  }

  .header-bar > .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem 1.5rem 2rem;
    background: var(--white);
    box-shadow: -8px 0 32px rgba(13, 110, 138, 0.15);
    z-index: 160;
    overflow-y: auto;
  }

  .header-bar > .nav-menu.is-open {
    display: flex;
  }

  .header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.5rem;
  }

  .header-cta {
    padding: 0.55rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .header-cta-text {
    display: none;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(26, 43, 50, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 150;
  }

  body.menu-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu > a {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(13, 110, 138, 0.08);
  }

  .nav-menu .social-links {
    margin-top: 1.25rem;
    padding-top: 0.5rem;
    justify-content: flex-start;
  }

  .hide-mobile-text {
    display: none;
  }
}

@media (min-width: 769px) {
  .header-bar > .nav-menu {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .menu-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    z-index: 170;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 60%);
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13, 110, 138, 0.1);
}

.hero-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}

/* Section */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Exams */
.exams {
  background: var(--primary-light);
}

.exams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .exams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .exams-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exam-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 110, 138, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.exam-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.exam-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.exam-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.exam-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.exam-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text blockquote {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-light);
  padding: 1.25rem;
  border-radius: 12px;
}

.feature svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  flex-shrink: 0;
}

.feature strong {
  display: block;
  margin-bottom: 0.25rem;
}

.feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Footer */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .social-links {
  justify-content: center;
  margin-top: 1rem;
}

footer .social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

footer .social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}
