/*
Theme Name: Hataw Group
Theme URI: https://www.hatawgroup.com
Description: Hataw Group Custom Theme
Version: 2.0
Author: Hataw Group
Text Domain: hataw
*/

/* ========== Fonts ========== */
@font-face { font-family:'IRANSans'; src:url('fonts/IRANSans_Light.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'IRANSans'; src:url('fonts/IRANSans.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'IRANSans'; src:url('fonts/IRANSans_Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'IRANSans'; src:url('fonts/IRANSans_Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* ========== Tokens ========== */
:root {
  --black: #0f0f0f;
  --bg:    #121212;
  --bg-2:  #1a1a1a;
  --bg-3:  #1f1f1f;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text:   #ffffff;
  --muted:  #B2B2B2;
  --muted-2: #7a7a7a;
  --gold:   #E8CC54;
  --gold-soft: rgba(232,204,84,0.1);
  --font: 'IRANSans', sans-serif;
  --hdr: 68px;
  --radius: 10px;
  --radius-lg: 14px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
html[lang="ku"], html[lang="ckb"] { direction: rtl; text-align: right; }
html[lang="en"] { direction: ltr; text-align: left; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ========== Scroll Animations ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ========== Typography ========== */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 20px;
}
.mega-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}
.quote-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
}
.section-text {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted);
  line-height: 1.85;
  max-width: 640px;
}
.section-text.center { margin-left: auto; margin-right: auto; }
.center-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.center-head .section-text { margin: 0 auto; }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  padding: 13px 30px;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-group { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.btn-group.center { justify-content: center; }

/* ========== HEADER ========== */
.hataw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--hdr);
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  direction: ltr;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo { flex-shrink: 0; }
.header-logo svg { height: 38px; width: auto; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: 2px; }

.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex-wrap: wrap; justify-content: center;
}
.nav-list li a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li a.is-active-section {
  color: var(--gold);
  background: var(--gold-soft);
}

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang-switcher, .lang-switcher ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang-switcher li { list-style: none; margin: 0; padding: 0; }
.lang-switcher li a {
  font-size: 12px; font-weight: 700; color: var(--muted-2);
  padding: 5px 9px; border-radius: 3px; text-transform: uppercase;
  transition: color 0.2s, background 0.2s; display: block;
}
.lang-switcher li.current-lang a,
.lang-switcher li a:hover { color: var(--gold); background: var(--gold-soft); }

.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#main-content { padding-top: var(--hdr); }

/* ========== HERO ========== */
.hero-section {
  min-height: calc(100vh - var(--hdr));
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 32px 100px;
  background: radial-gradient(ellipse at top, rgba(232,204,84,0.04), transparent 60%), var(--bg);
}
.hero-inner {
  max-width: 860px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-inner .eyebrow { margin-bottom: 0; }
.hero-title {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 700; line-height: 1.05;
}
.hero-subtitle {
  font-size: clamp(26px, 4.2vw, 56px);
  font-weight: 500; line-height: 1.2;
}
.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted); max-width: 580px; line-height: 1.8;
}
.hero-sub-desc { font-size: 13px; color: var(--muted-2); }

/* ========== Section Base ========== */
.section-block { padding: 110px 0; position: relative; }
.section-block + .section-block { border-top: 1px solid var(--border); }
.hero-section + .section-block { border-top: 1px solid var(--border); }
.why-block      { background: var(--bg); }
.problems-block { background: var(--bg-2); }
.clarity-block  { background: var(--bg); }
.xellati-block  { background: var(--bg-2); }
.services-block { background: var(--bg); }
.portfolio-block { background: var(--bg-2); }
.blog-block     { background: var(--bg); }
.about-block    { background: var(--bg-2); }

/* ========== Split Grid ========== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-grid.reverse { direction: ltr; }
html[lang="ku"] .split-grid.reverse,
html[lang="ckb"] .split-grid.reverse { direction: rtl; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Four Problems — image matches content height */
.problems-block .split-grid { align-items: stretch; }
.problems-block .split-media {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.problems-block .split-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border: none;
  border-radius: 0;
}

/* ========== Lead List (Why section) ========== */
.lead-list li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 10px;
}
.lead-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ========== Numbered List (Problems) ========== */
.numbered-list {
  display: flex; flex-direction: column; gap: 24px; margin-top: 20px;
}
.numbered-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}
.numbered-item:hover { border-color: rgba(232,204,84,0.25); transform: translateX(0); }
.numbered-item .num {
  font-size: 28px; font-weight: 700; color: var(--gold);
  min-width: 40px; line-height: 1;
}
.numbered-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.numbered-item p { font-size: 13px; color: var(--muted-2); line-height: 1.7; }

/* ========== Xellati Info Cards ========== */
.xellati-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.info-card {
  position: relative;
  padding: 32px 26px;
  background: linear-gradient(180deg, rgba(232,204,84,0.04), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}
.info-card:hover {
  border-color: rgba(232,204,84,0.4);
  transform: translateY(-4px);
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 28px;
  width: 42px; height: 2px;
  background: var(--gold);
}
.info-card .info-num {
  font-size: 13px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.18em; margin-bottom: 16px;
}
.info-card h3 {
  font-size: 18px; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.info-card p { font-size: 13px; color: var(--muted-2); line-height: 1.75; }

/* ========== Services Cards ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: rgba(232,204,84,0.35);
  transform: translateY(-6px);
}
.service-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.82; transition: opacity 0.4s, transform 0.6s;
}
.service-card:hover .service-media img { opacity: 1; transform: scale(1.05); }
.service-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-3));
  pointer-events: none;
}
.stage-badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  z-index: 2;
  font-size: 10px; font-weight: 700;
  color: var(--gold);
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(232,204,84,0.3);
  letter-spacing: 0.1em;
}
.service-body {
  padding: 22px;
  display: flex; flex-direction: column;
  flex: 1;
}
.service-body h3 {
  font-size: 16px; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
}
.service-desc {
  font-size: 13px; color: var(--muted-2);
  line-height: 1.7; margin-bottom: 16px;
}
.service-points {
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.service-points li {
  font-size: 12px; color: var(--muted);
  padding-inline-start: 16px;
  position: relative;
  line-height: 1.5;
}
.service-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.card-link {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
.card-link .arrow { transition: transform 0.25s; }
.service-card:hover .card-link .arrow {
  transform: translateX(4px);
}
html[lang="ku"] .service-card:hover .card-link .arrow,
html[lang="ckb"] .service-card:hover .card-link .arrow {
  transform: translateX(-4px);
}

/* ========== Portfolio List ========== */
.portfolio-list {
  display: flex; flex-direction: column; gap: 16px;
}
.portfolio-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, background 0.3s;
}
.portfolio-row:hover {
  border-color: rgba(232,204,84,0.35);
  background: rgba(232,204,84,0.03);
}
.pf-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
}
.pf-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.portfolio-row:hover .pf-media img { transform: scale(1.06); }
.pf-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 10px; font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.pf-body p { font-size: 13px; color: var(--muted-2); line-height: 1.7; }
.pf-arrow {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 18px;
  transition: all 0.25s;
  flex-shrink: 0;
}
.portfolio-row:hover .pf-arrow {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ========== Blog ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.blog-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}
.blog-card:hover {
  border-color: rgba(232,204,84,0.35);
  transform: translateY(-4px);
}
.blog-card-inner {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  height: 100%;
}
.blog-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.blog-card h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--gold); }
.blog-excerpt {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.75;
  margin: 0;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.blog-tags .tag {
  font-size: 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.blog-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted-2);
  display: flex;
  gap: 6px;
  align-items: center;
}
.blog-arrow {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--muted-2);
  transition: color 0.25s, transform 0.25s;
}
.blog-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}
html[lang="ku"] .blog-arrow svg,
html[lang="ckb"] .blog-arrow svg {
  transform: scaleX(-1);
}
.blog-card:hover .blog-arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}
html[lang="ku"] .blog-card:hover .blog-arrow,
html[lang="ckb"] .blog-card:hover .blog-arrow {
  transform: translate(-2px, -2px);
}
.blog-footer {
  text-align: center; max-width: 680px; margin: 0 auto;
  padding-top: 48px; border-top: 1px solid var(--border);
}
.blog-footer h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; margin-bottom: 16px; line-height: 1.3;
}
.blog-footer p {
  font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 28px;
}

/* ========== About ========== */
.about-block .center-head { margin-bottom: 72px; }

/* ========== FOOTER ========== */
.hataw-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  direction: ltr;
}

/* CTA Band */
.footer-cta-band {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-2), var(--black));
  border-bottom: 1px solid var(--border);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band-inner .eyebrow { margin-bottom: 10px; }
.cta-band-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  max-width: 720px;
}
.cta-band-btn { padding: 16px 36px; font-size: 15px; }
html[lang="ku"] .cta-band-inner,
html[lang="ckb"] .cta-band-inner { direction: rtl; }

/* Main Footer */
.footer-main { padding: 72px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
html[lang="ku"] .footer-grid,
html[lang="ckb"] .footer-grid { direction: rtl; }

.footer-col {}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand .footer-logo svg {
  height: 42px;
  width: auto;
  opacity: 0.95;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Footer Nav */
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.footer-nav li { list-style: none; }
.footer-nav li a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s, padding 0.2s;
}
.footer-nav li a:hover {
  color: var(--gold);
  padding-inline-start: 6px;
}

/* Contact List */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-list li {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact-list .label {
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-contact-list a {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}
.footer-contact-list a:hover { color: var(--gold); }
.footer-cta-inline {
  display: inline-block;
  padding: 10px 22px;
  font-size: 13px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.25s;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-3px);
}
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
html[lang="ku"] .footer-bottom-inner,
html[lang="ckb"] .footer-bottom-inner { direction: rtl; }
.footer-copy { font-size: 12px; color: var(--muted-2); }
.footer-legal a { font-size: 12px; color: var(--muted-2); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .nav-list li a { font-size: 12px; padding: 5px 7px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .xellati-cards { grid-template-columns: 1fr; }
  .section-block { padding: 80px 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 16px; }
  .header-nav {
    display: block;
  }
  .header-nav .nav-list {
    flex-direction: column; align-items: stretch;
    width: 100%; gap: 2px;
    direction: inherit;
  }
  .header-nav .nav-list li { width: 100%; }
  .header-nav .nav-list li a {
    font-size: 15px; padding: 13px 16px;
    display: block; width: 100%;
    border-radius: 6px;
  }
  .mobile-menu-toggle { display: flex; }

  .split-grid,
  .split-grid.reverse { grid-template-columns: 1fr; gap: 40px; direction: inherit; }
  .split-grid.reverse .split-media { order: -1; }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pf-media { max-width: 320px; }
  .pf-arrow { justify-self: start; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cta-band-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  html[lang="ku"] .cta-band-inner,
  html[lang="ckb"] .cta-band-inner { text-align: center; }
  .cta-band-btn { justify-self: center; }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-block { padding: 64px 0; }
  .hero-section { padding: 40px 24px 60px; min-height: auto; }
  .center-head { margin-bottom: 40px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  html:not([lang="en"]) .btn-group,
  .btn-group.center { align-items: center; }
  .btn-group.center .btn { width: auto; }
}

@media (max-width: 480px) {
  .numbered-item { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .numbered-item .num { font-size: 24px; }
  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 24px; }
  .mega-title { font-size: 34px; }
}

/* ========== Mobile Drawer ========== */
@media (max-width: 768px) {

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 998;
    backdrop-filter: blur(3px);
  }
  .mobile-overlay.is-open { display: block; }

  .header-nav {
    display: block !important;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    background: #111111;
    border-left: 1px solid rgba(255,255,255,.08);
    overflow-y: auto;
    z-index: 999;
    transition: right .32s cubic-bezier(.4,0,.2,1);
    padding: 0;
  }
  .header-nav.is-open { right: 0; }

  .header-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 68px 0 24px;
  }
  .header-nav .nav-list li { width: 100%; }
  .header-nav .nav-list li a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 24px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,.05);
    border-radius: 0;
    transition: color .2s, background .2s;
  }
  .header-nav .nav-list li a:hover { color: var(--text); background: rgba(255,255,255,.04); }
  .header-nav .nav-list li.current-menu-item a { color: var(--gold); font-weight: 700; }

  .drawer-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: #111111;
    z-index: 2;
  }
  .drawer-topbar span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--muted-2);
    text-transform: uppercase;
  }
  .drawer-close-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    transition: all .2s;
  }
  .drawer-close-btn:hover { background: rgba(232,204,84,.15); color: var(--gold); border-color: var(--gold); }

  .drawer-cta-bar {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .drawer-cta-bar a {
    display: block;
    text-align: center;
    padding: 13px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
  }

  body.drawer-open { overflow: hidden; }
}

/* RTL drawer */
@media (max-width: 768px) {
  html[dir="rtl"] .header-nav {
    right: auto;
    left: -320px;
    border-left: none;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: left .32s cubic-bezier(.4,0,.2,1);
  }
  html[dir="rtl"] .header-nav.is-open { left: 0; }
}

/* ========== Global Responsive — All Pages ========== */
@media (max-width: 768px) {
  /* Grids */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 480px"],
  [style*="grid-template-columns:1fr 480px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns:1fr 300px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 280px 1fr"],
  [style*="grid-template-columns:280px 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2,1fr) !important; }

  /* Section padding */
  section[style*="padding:140px"] { padding-top: 100px !important; padding-bottom: 60px !important; }
  section[style*="padding:120px"] { padding-top: 90px !important; padding-bottom: 60px !important; }
  section[style*="padding:100px"] { padding-top: 60px !important; padding-bottom: 60px !important; }
  section[style*="padding:80px"]  { padding-top: 50px !important; padding-bottom: 50px !important; }
  section[style*="padding:160px"] { padding-top: 80px !important; padding-bottom: 80px !important; }

  /* Typography */
  .mega-title { font-size: clamp(32px,9vw,52px) !important; }
  .section-title { font-size: clamp(22px,6vw,32px) !important; }
  h1[style*="font-size:clamp(52px"] { font-size: clamp(32px,9vw,48px) !important; }
  h2[style*="font-size:clamp(36px"] { font-size: clamp(24px,7vw,36px) !important; }

  /* Gap reduction */
  [style*="gap:80px"] { gap: 32px !important; }
  [style*="gap:60px"] { gap: 28px !important; }

  /* Min-height hero */
  section[style*="min-height:100vh"] { min-height: auto !important; }

  /* Sticky sidebar off on mobile */
  [style*="position:sticky"] { position: static !important; }

  /* Full width containers */
  .container { padding: 0 20px !important; }
}

@media (max-width: 480px) {
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: 1fr !important; }
}
