/* ═══════════════════════════════════════════════════
   VARIABLES & RESET
════════════════════════════════════════════════════ */
:root {
  --primary:       #5DA97D;
  --primary-light: #eef6f1;
  --mint:          #F9FBFA;
  --border:        #e2ede8;
  --muted:         #334155;
  --heading:       #0f172a;
  --font:          'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: 0.3px;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
a { text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

/* ═══════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden { display: none !important; }

.section-mint  { background: var(--mint); }
.section-white { background: #fff; }

.section-fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
}

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY HELPERS
════════════════════════════════════════════════════ */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* ═══════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  padding: 0 2rem;
  height: 3rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #3a8a5e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93,169,125,0.4);
}

.btn-large { height: 3rem; padding: 0 2.5rem; font-size: 16px; }
.btn-full  { width: 100%; padding: 1rem; height: auto; border-radius: 999px; }

.btn-popular {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--primary);
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  width: 100%;
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-popular:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93,169,125,0.4);
}

/* Inside the green card the button should turn white on hover to stay visible */
.pricing-popular .btn-popular:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 8px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(26,31,28,0.88);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav-link:hover { color: var(--primary); }

.nav-cta {
  height: 2.5rem;
  padding: 0 1.5rem;
  font-size: 14px;
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.25rem;
  color: #1a1f1c;
}
.hamburger svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mobile-menu:not(.hidden) { display: flex; }

.mobile-link {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #1a1f1c;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}
.mobile-link:last-of-type { border-bottom: none; }

.mobile-cta {
  margin-top: 0.75rem;
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
#hero { padding-top: 5rem; padding-bottom: 4rem; }

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.hero-photo-mobile {
  width: 60%;
  margin: 0 auto;
}

.hero-photo-desktop { display: none; }

.photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.18);
  aspect-ratio: 4/5;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  pointer-events: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.role-badge {
  display: inline-block;
  width: fit-content;
  background: #d6ede3;
  color: #2d6b4f;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: justify;
}

.hero-cta-wrap {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-line {
  width: 6rem;
  height: 4px;
  background: rgba(93,169,125,0.4);
  border-radius: 999px;
  margin: 0 auto;
}

.section-sub {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════
   PROBLEMS
════════════════════════════════════════════════════ */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.problem-card {
  background: var(--mint);
  border: 1px solid rgba(226,237,232,0.8);
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.3s;
}
.problem-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.problem-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}
.problem-card:hover .problem-icon { transform: scale(1.1); }
.problem-icon svg { width: 1.5rem; height: 1.5rem; }

.problem-card p {
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.75;
  color: var(--heading);
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════════════════ */
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  cursor: pointer;
}
.carousel-arrow:hover { border-color: var(--primary); }
.carousel-arrow svg { width: 1rem; height: 1rem; }

.carousel-card-wrap {
  flex: 1;
  user-select: none;
}

.carousel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(93,169,125,0.25);
  margin-bottom: 1rem;
}

.review-text {
  flex: 1;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  font-family: var(--font);
  margin-bottom: 1.5rem;
  text-align: left;
}

.review-author-wrap {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.review-author {
  font-family: var(--font);
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(93,169,125,0.27);
  border: none;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
  width: 0.5rem;
  padding: 0;
}
.dot.active {
  width: 1.5rem;
  background: var(--primary);
}

.carousel-more-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 18px;
  color: var(--muted);
}
.carousel-more-link a {
  color: var(--primary);
  text-decoration: underline;
}
.carousel-more-link a:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════
   EDUCATION
════════════════════════════════════════════════════ */
.education-list {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.education-item:hover {
  border-color: var(--border);
  background: var(--primary-light);
}

.education-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  transition: transform 0.3s;
}
.education-item:hover .education-icon { transform: scale(1.1); }
.education-icon svg { width: 1rem; height: 1rem; }

.edu-degree {
  font-family: var(--font);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.5px;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.edu-institution {
  font-family: var(--font);
  font-size: 18px;
  color: var(--muted);
}

.diploma-trigger {
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.diploma-trigger:hover {
  box-shadow: 0 4px 16px rgba(93,169,125,0.25);
}

#eduGroup1 .edu-group-header {
  background: var(--primary-light);
}

#eduGroup2 .edu-group-header {
  background: var(--primary-light);
}

.diploma-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .diploma-view-btn { display: none; }
}
/* ═══════════════════════════════════════════════════
   PRICING
════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s;
}

.pricing-popular {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(93,169,125,0.27);
}

.pricing-popular h3 { color: #fff; }

.popular-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #f0d99a;
  color: #6b4c10;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.pricing-price {
  font-family: var(--font);
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.pricing-popular .pricing-price { color: #fff; }

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 18px;
  color: var(--muted);
  font-family: var(--font);
}
.pricing-popular .pricing-features li { color: rgba(255,255,255,0.9); }

.pricing-features li svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--primary);
}
.pricing-popular .pricing-features li svg { color: #f0d99a; }

/* ═══════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════ */
.contact-card {
  max-width: 72rem;
  margin: 0 auto;
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-logo { display: none; }

.contact-logo-mobile {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.contact-logo-mobile img { width: 22rem; height: auto; mix-blend-mode: multiply; opacity: 0.9; }

.contact-content { flex: 1; text-align: center; }
.contact-content h2 { margin-bottom: 0.5rem; font-size: 1.8rem;}
.contact-sub { margin-bottom: 2rem; font-size: 18px; }

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  color: #1a1f1c;
  min-height: 120px;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.social-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ─── Social button brand colors on hover (border + icon) ─── */
.social-btn[href*="wa.me"]:hover      { border-color: #25D366; border-width: 2px; color: #25D366; }
.social-btn[href*="t.me"]:hover       { border-color: #29A8EB; border-width: 2px; color: #29A8EB; }
.social-btn[href*="instagram"]:hover  { border-color: #dc2743; border-width: 2px; color: #dc2743; }
.social-btn[href*="facebook"]:hover   { border-color: #1877F2; border-width: 2px; color: #1877F2; }

/* WhatsApp uses an <img> so we tint it with a CSS filter */
.social-btn[href*="wa.me"]:hover .social-img {
  filter: invert(60%) sepia(80%) saturate(400%) hue-rotate(90deg) brightness(0.95);
}

.social-btn svg { width: 2.25rem; height: 2.25rem; }
.social-btn span {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.social-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
footer {
  background: var(--mint);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   SCROLL TO TOP
════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}
.scroll-top:hover  { transform: scale(1.1); }
.scroll-top:active { transform: scale(0.95); }
.scroll-top svg { width: 1.25rem; height: 1.25rem; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (≥768px)
════════════════════════════════════════════════════ */
@media (min-width: 500px) {

  .hero-photo-mobile { width: 40%; }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-card {
    padding: 2.5rem;
  }

  .review-text { font-size: 18px; }

  .contact-card {
    padding: 3rem 4rem;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content { text-align: center; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥1024px)
════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Navbar */
  .nav-links { display: flex; }
  .hamburger { display: none; }

  /* Hero */
  #hero { padding-top: 6rem; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-photo-mobile  { display: none; }
  .hero-photo-desktop { display: block; }

  .hero-text {
    padding-right: 3rem;
  }

  .hero-cta-wrap { justify-content: flex-start; }

  .role-badge { font-size: 14px; }

  /* Problems */
  .problems-grid { grid-template-columns: repeat(3, 1fr); }

   /* Pricing */

   .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  /* Contact */
  .contact-card {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 4rem;
  }

  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact-logo {
    display: flex;
    width: 19rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
  }
  .contact-logo img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    opacity: 0.9;
  }

  .contact-logo-mobile { display: none; }
  .contact-content { text-align: center; }
}

/* ═══════════════════════════════════════════════════
   EDUCATION — Collapsible groups
════════════════════════════════════════════════════ */
.education-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

.edu-group {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.edu-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
  transition: background 0.2s;
}
.edu-group-header:hover { background: var(--primary-light); }
.edu-group-header.open  { background: none; }

.edu-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--heading);
}

.edu-chevron {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}
.edu-group-header.open .edu-chevron { transform: rotate(180deg); }

.edu-group-body { padding: 0 1rem 1rem; }

/* ── Desktop: side by side, always open ── */
@media (min-width: 768px) {
  .education-groups {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
  .edu-group {
    flex: 1;
    min-width: 0;
  }
  .edu-group-header     { cursor: default; pointer-events: none; }
  .edu-group-body       { display: flex !important; flex-direction: column; flex: 1; }
  .edu-chevron          { display: none; }
  /* list fills remaining height so items can share it equally */
  .edu-group-body .education-list {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  /* each item takes equal share of the box height */
  .edu-group .education-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
  }
  /* icon: locked to its natural size, never stretches */
  .edu-group .education-icon {
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    flex-grow: 0;
    align-self: flex-start;
  }
  .edu-group .education-item > div {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}
