/* ===== Reset & Variables ===== */
:root {
  --primary: #0e8a5f;
  --primary-dark: #0b6f4a;
  --primary-light: #e6f5ee;
  --teal: #0b6f8f;
  --teal-light: #e3f1f6;
  --accent: #e8a33d;
  --accent-dark: #c9851f;
  --accent-light: #fdf3e0;
  --dark: #14342a;
  --text: #33414d;
  --muted: #6b7a85;
  --border: #e3e9ed;
  --bg: #ffffff;
  --bg-alt: #f4f9f7;
  --shadow: 0 8px 30px rgba(11, 111, 79, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 111, 79, 0.15);
  --radius: 16px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.9;
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head.light { color: #fff; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.section-head.light .section-tag { background: rgba(255,255,255,0.16); color: #fff; }
.section-head h3 { font-size: 2rem; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.section-head.light h3 { color: #fff; }
.section-head p { color: var(--muted); }
.section-head.light p { color: rgba(255,255,255,0.9); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(14,138,95,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: #fff; color: var(--primary-dark); }
.btn-ghost { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: #fff; color: var(--primary-dark); }

/* ===== Topbar ===== */
.topbar { background: var(--dark); color: #cfe6dd; font-size: 0.85rem; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.contact-item { display: inline-flex; align-items: center; gap: 6px; }
.contact-item .icon { flex-shrink: 0; }
.topbar-time { color: #9fc0b3; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(11,111,79,0.06);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { width: 66px; height: 66px; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow); }
.brand-text h1 { font-size: 1.2rem; color: var(--primary-dark); line-height: 1.3; }
.brand-text p { font-size: 0.8rem; color: var(--muted); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--primary-dark); border-radius: 3px; transition: all 0.3s ease; }

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(11,143,115,0.28), transparent),
    linear-gradient(135deg, #0b6f4a 0%, #0e8a5f 45%, #0b6f8f 100%);
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 20 L66 44 L90 50 L66 56 L60 80 L54 56 L30 50 L54 44 Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 740px; padding: 100px 0; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h2 { font-size: 2.6rem; line-height: 1.4; margin-bottom: 20px; color: #fff; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.93); margin-bottom: 30px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero highlights */
.hero-highlights { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(4px);
}
.hh-badge {
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hh-item strong { color: #fff; font-size: 0.95rem; font-weight: 700; }

/* ===== Free services banner ===== */
.free-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #f5c15d 100%);
  color: #4a3300;
  padding: 20px 0;
}
.free-banner-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.free-badge {
  background: #4a3300;
  color: #f5c15d;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 30px;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.free-banner-text { flex: 1; min-width: 260px; }
.free-banner-text strong { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.free-banner-text p { font-size: 0.93rem; }

/* ===== Intro cards ===== */
.intro { padding: 56px 0; }
.intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.intro-card {
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow);
}
.intro-card.primary { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); }
.intro-card.accent { background: linear-gradient(150deg, var(--accent), var(--accent-dark)); color: #3d2a00; }
.intro-card.teal { background: linear-gradient(150deg, var(--teal), #0a5a75); }
.intro-icon {
  display: inline-flex;
  background: rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.intro-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.intro-card p { font-size: 0.93rem; opacity: 0.95; }

/* Weekly schedule */
.weekly-schedule { margin-top: 44px; }
.ws-title { text-align: center; margin-bottom: 24px; }
.ws-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.ws-title p { color: var(--muted); }
.ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ws-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ws-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ws-day {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ws-item strong { color: var(--dark); font-size: 0.98rem; line-height: 1.5; display: block; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.about-text h3 { font-size: 2rem; color: var(--dark); margin-bottom: 14px; line-height: 1.4; }
.about-text p { margin-bottom: 14px; }
.underline-note {
  background: var(--primary-light);
  border-inline-start: 4px solid var(--primary);
  padding: 16px 18px;
  border-radius: 10px;
  margin-top: 10px;
  color: var(--dark);
}
.about-media figure { margin: 0; }
.about-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-media figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.about-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.extra-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.extra-icon {
  flex-shrink: 0;
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px;
  border-radius: 12px;
}
.extra-card h4 { color: var(--dark); margin-bottom: 6px; }
.extra-card p { color: var(--muted); font-size: 0.93rem; }

/* ===== Location ===== */
.location { background: linear-gradient(135deg, var(--teal) 0%, var(--primary) 100%); color: #fff; }
.location-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.location-map img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.location-info .section-tag { background: rgba(255,255,255,0.16); color: #fff; }
.location-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.location-brand img { width: 76px; height: 76px; object-fit: contain; border-radius: 16px; background: #fff; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.location-brand .section-tag { margin-bottom: 8px; }
.location-brand h3 { margin-bottom: 0; }
.location-info h3 { font-size: 2rem; }
.address-line {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.6;
}
.address-points li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.94);
}
.address-points li::before {
  content: "✓";
  position: absolute; right: 0;
  color: var(--accent);
  font-weight: 800;
}
.location-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95rem;
}
.location-contact a { color: var(--accent); font-weight: 700; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .svc-icon {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.service-card h4 { color: var(--dark); margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 10px; }
.service-card ul li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.service-card ul li::before {
  content: "•";
  position: absolute; right: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ===== MVV ===== */
.mvv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 48px; }
.mvv-card {
  border-radius: var(--radius);
  padding: 34px;
  color: #fff;
}
.mvv-card.mission { background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%); }
.mvv-card.vision { background: linear-gradient(150deg, var(--teal) 0%, #0a5a75 100%); }
.mvv-icon {
  display: inline-flex;
  background: rgba(255,255,255,0.18);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.mvv-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.mvv-card p { color: rgba(255,255,255,0.94); }

.values-wrap { text-align: center; }
.values-wrap h4 { font-size: 1.5rem; color: var(--dark); margin-bottom: 28px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.2s ease;
}
.value-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== History ===== */
.history-box {
  background: #fff;
  border-inline-start: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 30px;
}
.history-box p { margin-bottom: 14px; }
.history-box p:last-child { margin-bottom: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cc-icon {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.contact-card h4 { color: var(--dark); margin-bottom: 8px; }
.contact-card a { color: var(--primary); font-weight: 700; font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #cfe6dd; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-about h4, .footer-links h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.footer-brand h4 { margin-bottom: 0; }
.footer-about p { font-size: 0.92rem; color: #9fc0b3; margin-bottom: 14px; }
.footer-phone { font-size: 0.9rem; }
.footer-phone a { color: var(--accent); }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #b7cfc5; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: #8fb5a6; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: all 0.25s ease;
}
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top.show { display: inline-flex; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-extra { grid-template-columns: 1fr; }
  .location-wrap { grid-template-columns: 1fr; }
  .intro-cards { grid-template-columns: 1fr; }
  .ws-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 2.1rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 80px; right: 0; left: 0;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 14px;
    gap: 6px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 13px; }
  .topbar-inner { justify-content: center; }
  .hero h2 { font-size: 1.8rem; }
  .hero-content { padding: 70px 0; }
  .about-media img { height: 260px; }
  .location-map img { height: 220px; }
  .address-line { font-size: 1.15rem; }
  .location-brand { flex-direction: column; text-align: center; }
  .location-brand h3 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-highlights { flex-direction: column; align-items: stretch; }
  .ws-grid { grid-template-columns: 1fr; }
}
