/* ==========================================================================
   MEFTIHE TUTORS — FINAL PRODUCTION STYLESHEET
   Clean, Professional, Mobile-First
   ========================================================================== */

:root {
  --primary: #5fcf80;
  --primary-hover: #4db870;
  --primary-dark: #37423b;
  --primary-light: #eafaf0;

  --heading: #2d3436;
  --body-text: #444444;
  --muted: #777777;

  --white: #ffffff;
  --off-white: #f8f9fa;
  --border: #e9ecef;

  --font-body: "Open Sans", sans-serif;
  --font-heading: "Poppins", sans-serif;

  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-header: 0 2px 10px rgba(0,0,0,0.08);
  --radius: 8px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--heading); font-weight: 700; line-height: 1.25; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }

/* ============================================================
   HEADER — TOP BAR (desktop only)
   ============================================================ */
.header-top-bar {
  background: #1e2428;
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left { display: flex; gap: 18px; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-phone { color: var(--primary) !important; font-weight: 600; }
.top-social-links { display: flex; gap: 10px; }
.top-social-links a { color: #999; font-size: 13px; }
.top-social-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .header-top-bar { display: none; }
}

/* ============================================================
   HEADER — MAIN NAV BAR
   Mobile: ONLY logo (left) + hamburger (right). Nothing else.
   Desktop: Logo | Nav Links | Action Buttons
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-header);
}
.header-main { padding: 12px 0; }
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.logo-text h1 { font-size: 22px; margin: 0; line-height: 1; color: var(--heading); }
.logo-text span { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Desktop Nav */
.navmenu ul {
  display: flex;
  gap: 6px;
  margin: 0; padding: 0;
  align-items: center;
}
.navmenu a {
  color: var(--heading);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.navmenu a:hover, .navmenu a.active { color: var(--primary); }
.navmenu .nav-highlight {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
}

/* Desktop action buttons */
.header-actions-desktop { display: flex; align-items: center; gap: 10px; }

/* Hamburger button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--heading);
  padding: 4px;
  line-height: 1;
}

/* Mobile nav items inside the slide-down */
.mobile-nav-actions { display: none; }

/* ---- MOBILE BREAKPOINT ---- */
@media (max-width: 991px) {
  /* Show hamburger, hide desktop nav + desktop buttons */
  .mobile-nav-toggle { display: block; }
  .navmenu { display: none; }
  .header-actions-desktop { display: none; }

  /* When open */
  .navmenu.active {
    display: block;
    position: fixed;
    top: 64px; /* height of header */
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px 20px 20px;
    z-index: 999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .navmenu.active ul {
    flex-direction: column;
    gap: 4px;
  }
  .navmenu.active a {
    display: block;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: var(--radius);
  }
  .navmenu.active a:hover,
  .navmenu.active a.active {
    background: var(--primary-light);
  }

  /* Mobile action buttons at bottom of slide-down */
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
}

/* Shared button styles */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px; font-weight: 700;
  border: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  color: var(--primary) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px; font-weight: 700;
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--primary); color: var(--white) !important; }


/* ============================================================
   HERO — Transparent background, image fully visible
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Light transparent overlay — image stays fully visible */
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin-left: 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 14px; font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h2 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.15;
}
.hero p {
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Hero buttons — match original (outlined on dark bg) */
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.btn-hero-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px; font-weight: 700;
}
.btn-hero-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px; font-weight: 700;
  transition: background 0.2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); }

.btn-hero-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px; font-weight: 700;
  transition: background 0.2s;
}
.btn-hero-glass:hover { background: rgba(255,255,255,0.25); }

/* Trust badges */
.hero-trust-badges { display: flex; flex-wrap: wrap; gap: 18px; color: var(--white); font-size: 14px; font-weight: 600; }
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-check { color: var(--primary); font-weight: 800; }

/* Mobile hero */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 40px 0; }
  .hero .container { margin-left: auto; margin-right: auto; }
  .hero-bg-img { object-position: 70% center; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { width: 100%; text-align: center; }
  .hero-trust-badges { flex-direction: column; gap: 8px; }
}


/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-banner {
  background: var(--primary);
  color: var(--white);
  padding: 10px 0;
}
.banner-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.banner-text { font-size: 14px; }
.banner-button {
  background: var(--white);
  color: var(--heading) !important;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .banner-content { flex-direction: column; text-align: center; }
}


/* ============================================================
   SECTION TAGS & TITLES
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.section-title { margin-bottom: 36px; }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 992px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.about-list { margin: 20px 0; padding: 0; }
.about-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body-text);
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}


/* ============================================================
   STATS SECTION
   ============================================================ */
.light-background { background: var(--off-white); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stats-card {
  background: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.stats-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stats-card p { color: var(--muted); font-weight: 600; margin: 0; }


/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 992px) { .why-us-grid { grid-template-columns: 1fr 2fr; } }

.why-box {
  background: var(--primary);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
}
.why-box h3 { color: var(--white); font-size: 24px; margin-bottom: 12px; }
.why-box p { opacity: 0.9; margin-bottom: 20px; }

.more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.2);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
}

.why-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.icon-box {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.icon-box svg { width: 36px; height: 36px; fill: var(--primary); margin: 0 auto 12px; }
.icon-box h4 { font-size: 16px; margin-bottom: 8px; }
.icon-box p { font-size: 14px; color: var(--muted); }


/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.features-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.features-item svg { width: 26px; height: 26px; flex-shrink: 0; fill: var(--primary); }
.features-item h3 { font-size: 15px; margin: 0; }


/* ============================================================
   PROMO / ONLINE LEARNING
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 992px) { .promo-grid { grid-template-columns: 1fr 1fr; } }

.promo-visual-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  padding: 32px;
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.promo-features { margin: 20px 0; padding: 0; }
.promo-features li {
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
}
.promo-features li::before { content: "✓"; color: var(--primary); font-weight: 800; }


/* ============================================================
   COURSE CARDS
   ============================================================ */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.course-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  position: relative;
  display: flex; flex-direction: column;
}
.course-badge-ribbon {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 5;
}
.course-item img { width: 100%; height: 200px; object-fit: cover; }
.course-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.price-tag { font-size: 22px; font-weight: 800; color: var(--primary); }
.price-unit { font-size: 13px; color: var(--muted); font-weight: 400; }
.course-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700; font-size: 14px;
  margin-top: auto;
  width: 100%;
  border: none;
}
.course-btn:hover { background: var(--primary-hover); }


/* ============================================================
   FOOTER — Professional 4-column grid
   ============================================================ */
.site-footer {
  background: #111827;
  color: #94a3af;
  padding: 48px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}
.footer-about { max-width: 280px; }
.footer-about h3 { color: var(--white); font-size: 20px; margin-bottom: 10px; }
.footer-about p { line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col ul { padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3af; }
.footer-col a:hover { color: var(--primary); }
.footer-col p { line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: #d1d5db; text-decoration: underline; }

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ============================================================
   MODALS — Phone call & Tutor Application
   ============================================================ */
.modal-backdrop-custom {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10050;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop-custom.active { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%; max-width: 440px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: #f1f5f9;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.phone-option {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-light);
  border: 1px solid rgba(95,207,128,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--primary) !important;
  font-weight: 700; font-size: 17px;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.2s;
}
.phone-option:hover { background: var(--primary); color: var(--white) !important; }


/* ============================================================
   FLOATING ACTION BUTTONS (FABs)
   Stacked bottom-right: Call (bottom) → Apply (above) → AI Chat (top)
   ============================================================ */
.fab-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  z-index: 9998;
}

.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  font-size: 22px;
  color: #fff;
}
.fab-btn:hover {
  transform: scale(1.08);
}

.fab-call {
  background: #22c55e;
}
.fab-apply {
  background: #7c3aed;
}

/* Push AI chat button up so it doesn't overlap */
.ai-chat-button {
  bottom: 164px !important;  /* 24px base + 54px call + 14px gap + 54px apply + 14px gap ≈ 160px */
}

@media (max-width: 768px) {
  .fab-stack {
    bottom: 16px;
    right: 16px;
    gap: 12px;
  }
  .fab-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .ai-chat-button {
    bottom: 148px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}
