/* ── Vazirmatn – self-hosted ─────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --navy:    #1B2A4A;
  --navy-80: rgba(27,42,74,.80);
  --navy-55: rgba(27,42,74,.55);
  --navy-12: rgba(27,42,74,.12);
  --navy-06: rgba(27,42,74,.06);
  --orange:  #F57C00;
  --orange-h:#E36900;
  --orange-l:rgba(245,124,0,.12);
  --white:   #FFFFFF;
  --gray:    #F5F7FA;
  --text:    #2D3436;
  --text-2:  #5A6478;
  --border:  rgba(27,42,74,.10);
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    20px;
  --shadow-card: 0 1px 3px rgba(27,42,74,.08), 0 8px 24px rgba(27,42,74,.08), 0 24px 48px rgba(27,42,74,.05);
  --shadow-nav:  0 2px 20px rgba(27,42,74,.15);
  --shadow-btn:  0 4px 16px rgba(245,124,0,.35);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: rgba(245,124,0,.20); color: var(--navy); }

/* ── Layout helpers ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.section-pad { padding-block: clamp(64px, 10vw, 120px); }
.section-pad-sm { padding-block: clamp(40px, 6vw, 72px); }

/* ── Typography ──────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-l);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
h1, .h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h2, .h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
h3, .h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
h4, .h4 { font-size: 1rem; font-weight: 600; color: var(--navy); }
p { line-height: 1.85; color: var(--text-2); }
.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-2);
}
.section-header { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section-header p { max-width: 52ch; margin-inline: auto; margin-top: 10px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--orange-h); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,124,0,.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.65);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy-12);
}
.btn-outline-navy:hover { border-color: var(--navy); background: var(--navy-06); }

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: var(--white); }

.btn-ghost-orange {
  background: transparent;
  color: var(--orange);
  padding: 8px 0;
  gap: 6px;
  font-weight: 600;
}
.btn-ghost-orange:hover { gap: 10px; }

.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 36px; font-size: 1.0625rem; }
.btn-pill { border-radius: 100px; }

/* ── Header / Nav ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { color: var(--orange); }
.logo-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.logo-name span {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-2);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); background: var(--orange-l); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--navy);
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--gray); }
.cart-badge {
  position: absolute;
  top: 4px; left: 4px;
  width: 16px; height: 16px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: .625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border-radius: var(--r-sm);
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--gray); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(480px, 75vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-zoom 14s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,42,74,.80) 0%, rgba(27,42,74,.50) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content {
  max-width: 640px;
  color: var(--white);
}
.hero-content .eyebrow { color: var(--orange); background: rgba(245,124,0,.20); }
.hero-content h1 {
  color: var(--white);
  margin-block: 16px 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-content .lead { color: rgba(255,255,255,.82); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Stats bar ───────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  box-shadow: 0 4px 40px rgba(27,42,74,.10);
  position: relative;
  z-index: 2;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border-left: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-left: none; }
.stat-num {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--orange); }
.stat-label {
  font-size: .875rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── About section ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.about-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.about-badge-icon {
  width: 40px; height: 40px;
  background: var(--orange-l);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.about-badge-text strong { display: block; font-size: .9rem; color: var(--navy); font-weight: 700; }
.about-badge-text span   { font-size: .8rem; color: var(--text-2); }
.about-content h2 { margin-bottom: 16px; }
.about-content p  { margin-bottom: 20px; }
.about-list { margin-bottom: 28px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9375rem;
  color: var(--text);
}
.about-list li svg { flex-shrink: 0; color: var(--orange); margin-top: 3px; }

/* ── Services ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(27,42,74,.14);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }
.service-link svg { transition: transform var(--transition); }
.service-link:hover svg { transform: translateX(-4px); }

/* ── Products / Shop ─────────────────────────────────────────────────── */
.products-section { background: var(--gray); }
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
  gap: 16px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(27,42,74,.14);
}
.product-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  display: inline-flex;
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-l);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.product-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  flex: 1;
  line-height: 1.4;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.product-price .unit { font-size: .8rem; font-weight: 400; color: var(--text-2); margin-right: 3px; }

/* ── Client portal callout ───────────────────────────────────────────── */
.portal-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.portal-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,124,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.portal-section::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}
.portal-inner { position: relative; z-index: 1; text-align: center; }
.portal-inner h2 { color: var(--white); margin-bottom: 14px; }
.portal-inner .lead { color: rgba(255,255,255,.72); margin-bottom: 48px; max-width: 52ch; margin-inline: auto; margin-bottom: 48px; }
.portal-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.portal-step {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
}
.portal-step-num {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-inline: auto;
  margin-bottom: 14px;
}
.portal-step h3 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.portal-step p  { color: rgba(255,255,255,.65); font-size: .875rem; line-height: 1.65; }
.portal-connector {
  display: none;
}

/* ── Blog preview ────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(27,42,74,.12); }
.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  display: inline-flex;
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-l);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
}
.blog-excerpt { font-size: .875rem; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; flex: 1; }
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.blog-date { font-size: .8rem; color: var(--text-2); display: flex; align-items: center; gap: 5px; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, #E36900 100%);
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.cta-band .btn-outline-white { border-color: rgba(255,255,255,.55); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-name span { color: rgba(255,255,255,.55); }
.footer-tagline { font-size: .9rem; line-height: 1.75; max-width: 30ch; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  transition: background var(--transition), color var(--transition);
}
.footer-social:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.footer-col h4 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--orange); }
.footer-contact-info { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item svg { flex-shrink: 0; color: var(--orange); margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--orange); }
.footer-trust { display: flex; align-items: center; gap: 16px; }
.trust-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: rgba(255,255,255,.55);
}
.trust-badge svg { color: var(--orange); }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'Vazirmatn', sans-serif;
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  direction: rtl;
}
.form-control::placeholder { color: #aab0be; }
.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,124,0,.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.alert-error   { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }
.alert-info    { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }

/* ── Cards general ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: 24px; }

/* ── Page hero (inner pages) ─────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding-block: 56px 48px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.page-hero .lead { color: rgba(255,255,255,.70); }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { font-size: .75rem; }

/* ── Utility ─────────────────────────────────────────────────────────── */
.bg-gray   { background: var(--gray); }
.bg-navy   { background: var(--navy); }
.bg-white  { background: var(--white); }
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-2); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Scroll reveal ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
}

/* ── Mobile nav overlay ──────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--white);
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--orange); background: var(--orange-l); }
.mobile-nav .btn { margin-top: 16px; justify-content: center; }

/* ── Responsive: 768px ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-badge { right: 10px; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn-pill { display: none; }
  .menu-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { order: -1; }
  .about-badge { right: 16px; bottom: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .portal-steps { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-left: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
  .section-row { flex-direction: column; align-items: flex-start; }
}

/* ── Responsive: 390px ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 1.7rem; }
  .product-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Admin & auth pages (heading cap ≤24px) ──────────────────────────── */
.admin-page h1, .auth-page h1,
.admin-page h2, .auth-page h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* ── Stub pages ──────────────────────────────────────────────────────── */
.stub-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gray);
}
.stub-hero h2 { color: var(--navy); margin-bottom: 12px; }
.stub-hero p  { margin-bottom: 24px; }

/* ── Shop filter bar ─────────────────────────────────────────────────── */
.shop-filter-bar { margin-bottom: 8px; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cat-tab:hover { color: var(--orange); border-color: var(--orange); }
.cat-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Product detail ──────────────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--gray);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb {
  width: 80px; height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb:hover { border-color: var(--navy); }
.product-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.product-feature-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--text-2);
}
.product-feature-item svg { color: var(--orange); flex-shrink: 0; }
.license-options { display: flex; gap: 10px; flex-wrap: wrap; }
.license-option {
  flex: 1; min-width: 140px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.license-option input[type="radio"] { accent-color: var(--orange); }
.license-option strong { display: block; font-size: .875rem; color: var(--navy); font-weight: 600; }
.license-option span   { display: block; font-size: .8rem; color: var(--text-2); }
.license-option.active { border-color: var(--orange); background: var(--orange-l); }
.qty-row { display: flex; align-items: center; gap: 0; width: fit-content; }
.qty-btn {
  width: 40px; height: 42px;
  background: var(--gray);
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  cursor: pointer;
}
.qty-btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); border-left: none; }
.qty-btn:last-child  { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-right: none; }
.qty-btn:hover { background: var(--navy-06); }
.qty-input {
  width: 60px;
  border-radius: 0;
  text-align: center;
  padding: 8px;
  border-left: none;
  border-right: none;
  height: 42px;
}
.product-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-2);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-meta-row strong { color: var(--navy); }

/* ── Cart ────────────────────────────────────────────────────────────── */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cart-empty h2 { color: var(--navy); }
.cart-empty p  { color: var(--text-2); margin-bottom: 8px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  padding: 14px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid var(--border);
  text-align: right;
}
.cart-row td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-row:last-child td { border-bottom: none; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-thumb {
  width: 72px; height: 54px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name {
  font-weight: 600;
  color: var(--navy);
  font-size: .9375rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.cart-item-name:hover { color: var(--orange); }
.cart-remove-btn {
  color: var(--text-2);
  transition: color var(--transition);
  display: flex;
}
.cart-remove-btn:hover { color: #c0392b; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 10px;
}
.summary-total {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  margin-top: 4px;
}
.trust-badges-mini {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; justify-content: center;
}
.trust-badges-mini .trust-badge { color: var(--text-2); font-size: .8rem; }
.trust-badges-mini .trust-badge svg { color: var(--orange); }

/* ── Checkout ────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* ── Responsive additions ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout > div:last-child { order: -1; }
}
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-layout > .card:last-child { order: -1; }
  .license-options { flex-direction: column; }
  .qty-input { width: 52px; }
}
