/* ================================
   Roonah Education Center
   Basic Client Website - 7,000 AFN
=================================== */

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --secondary: #f59e0b;
  --dark: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  --radius: 18px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: "Noto Naskh Arabic", "Poppins", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.8;
}

body,
button,
input,
textarea {
  font-family: "Noto Naskh Arabic", "Poppins", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--light);
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.section-heading h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.3;
}

.section-heading p {
  color: var(--text);
}

/* Header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.brand-text {
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  padding: 8px 2px;
  color: #334155;
  font-size: 0.97rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 17px;
  color: white;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  margin-inline: auto;
  background: var(--dark);
  transition: 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background:
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1800&q=88")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      100deg,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 118, 110, 0.72) 58%,
      rgba(15, 118, 110, 0.54) 100%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  padding: 55px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #ecfeff;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 4.35rem);
  line-height: 1.22;
}

.hero h1 span {
  color: #fcd34d;
}

.hero p {
  max-width: 700px;
  margin-bottom: 30px;
  color: #e2e8f0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--secondary);
  color: #111827;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 45px;
}

.hero-trust div {
  display: grid;
  gap: 1px;
}

.hero-trust strong {
  font-size: 1.6rem;
}

.hero-trust span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.hero-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.hero-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.6rem;
}

.hero-card h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.hero-card p {
  margin-bottom: 14px;
  color: #e2e8f0;
}

.hero-card a {
  color: #fcd34d;
  font-weight: 700;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 55px;
  align-items: center;
}

.about-image {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content h3 {
  margin-bottom: 15px;
  font-size: 2rem;
  line-height: 1.35;
}

.about-content p {
  margin-bottom: 15px;
  color: var(--text);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  font-weight: 600;
}

.feature-list span {
  color: var(--primary);
  font-weight: 800;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.course-card:hover {
  transform: translateY(-7px);
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow: var(--shadow);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 15px;
  background: #ccfbf1;
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 800;
}

.course-label {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.course-card h3 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
}

.course-card p {
  min-height: 78px;
  margin-bottom: 15px;
  color: var(--text);
}

.course-card a {
  color: var(--primary);
  font-weight: 700;
}

.course-card a span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.course-card a:hover span {
  transform: translateX(-4px);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  padding: 27px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  text-align: center;
  transition: 0.28s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 16px;
  background: #ecfeff;
  font-size: 1.55rem;
}

.why-card h3 {
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text);
}

/* Stats */
.stats {
  padding: 65px 0;
  background: linear-gradient(135deg, var(--primary), #0d9488);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  text-align: center;
}

.stat-item {
  display: grid;
  gap: 5px;
}

.stat-item strong {
  font-size: 2.65rem;
  line-height: 1;
}

.stat-item span {
  color: #ccfbf1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card:last-of-type {
  border-bottom: 0;
}

.contact-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ecfeff;
}

.contact-info-card h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.contact-info-card p {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  transition: 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
  color: var(--dark);
  background: white;
  transition: 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 145px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.submit-btn {
  width: 100%;
}

.form-note {
  min-height: 28px;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding-top: 55px;
  background: var(--dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 38px;
}

.footer-brand {
  margin-bottom: 16px;
  color: white;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: #cbd5e1;
}

.footer-grid section > p {
  max-width: 430px;
}

.footer-grid h3 {
  margin-bottom: 13px;
}

.footer-grid li {
  margin-bottom: 7px;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  margin-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Back to top */
.back-top {
  position: fixed;
  inset-inline-end: 22px;
  inset-block-end: 22px;
  z-index: 900;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 500px;
    margin-bottom: 50px;
  }

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

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

@media (max-width: 800px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    inset-inline: 4%;
    inset-block-start: 83px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 9px 7px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 390px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 70px 0;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .hero {
    min-height: 650px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-trust {
    gap: 22px;
  }

  .course-grid,
  .why-grid,
  .feature-list,
  .stats-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
