/* ========================================================================
   Compassionate Heart Home Care Services
   Brand-aligned stylesheet matching approved mockup design
   Colors: #e98787 (rose pink), #3d7f9a (teal blue), #FFFFFF
   Fonts: DM Serif Display (headings), Source Sans 3 (body), Vazirmatn (Farsi)
   Supports: LTR (EN/ES) + RTL (FA/Dari)
   ======================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #e98787;
  --primary-dark: #c96a6a;
  --primary-light: #fce8e8;
  --accent: #3d7f9a;
  --accent-dark: #2c6078;
  --accent-light: #e8f2f6;
  --warm: #fdf8f8;
  --white: #FFFFFF;
  --text: #2e3a40;
  --text-light: #5e7078;
  --border: #eee;
  --success: #16a34a;
  --error: #dc2626;

  --shadow-sm: 0 2px 8px rgba(233,135,135,0.10);
  --shadow-md: 0 8px 30px rgba(233,135,135,0.14);
  --shadow-lg: 0 20px 60px rgba(233,135,135,0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 30px;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-farsi: 'Vazirmatn', 'Tahoma', sans-serif;

  --transition: all 0.3s ease;
  --container: 1200px;
}

/* ---------- Lucide icons ----------
   All icons are inlined as SVG (no sprite, no <use href>). Each carries
   the .lucide-icon class so this block controls size + color. Size
   variants are explicit classes to keep markup decisions out of CSS files
   the admin may not see. */
.lucide-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  /* Stroke icons. The handful of filled-mark icons (facebook, youtube)
     declare fill="currentColor" inline; this default does not affect them. */
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* RTL safety: SVG geometry must never flip in Farsi/Dari. */
  direction: ltr;
}
.lucide-icon-sm { width: 16px; height: 16px; }
.lucide-icon-md { width: 24px; height: 24px; }
.lucide-icon-lg { width: 32px; height: 32px; }
.lucide-icon-xl { width: 48px; height: 48px; }
/* RTL belt-and-braces. */
[dir="rtl"] .lucide-icon { direction: ltr; transform: none; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm);
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin-bottom: 1em; color: var(--text-light); }
.eyebrow, .section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
section, .section { padding: 100px 40px; }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-header p { color: var(--text-light); font-size: 17px; }
.grid { display: grid; gap: 28px; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover { background: var(--warm); transform: translateY(-2px); }
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost-white:hover { background: var(--white); color: var(--primary); }

/* ---------- Top Language Bar ---------- */
.topbar {
  background: var(--accent-dark);
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; color: rgba(255,255,255,0.85); }
.topbar-contact a { color: rgba(255,255,255,0.85); transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a:hover { color: var(--white); }
.topbar-contact .lucide-icon { width: 16px; height: 16px; }

.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch button {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.lang-switch button:hover, .lang-switch button.active {
  background: var(--white);
  color: var(--accent-dark);
  border-color: var(--white);
}

/* ---------- Header / Navbar ---------- */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: var(--logo-height-header, 72px);
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  /* Mobile is fixed at 56px regardless of admin setting. */
  .logo-img { height: 56px; }
}
.header { min-height: calc(var(--logo-height-header, 72px) + 24px); }

.nav-list { display: flex; gap: 28px; align-items: center; }
.nav-list a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
  padding: 6px 0;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); }
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-list a.btn { padding: 10px 24px; }
.nav-list a.btn::after { display: none; }

.mobile-toggle {
  display: none;
  color: var(--primary-dark);
  padding: 4px 10px;
}
.mobile-toggle .lucide-icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
/* Full-bleed background image with a dark gradient overlay; left-aligned
   single-column content. The .hero-card visual was removed in favor of the
   image-driven hero - keys home.hero.card_* are no longer rendered.
   The hero-bg.jpg shipped here is a placeholder solid pink fallback;
   replace via the admin Media Library once Luz uploads a real photo. */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background-color: var(--primary);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
}
.hero-text { max-width: 600px; }
.hero-text h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-text .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--white);
  padding: 40px;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.trust-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.trust-badge .icon {
  width: 48px;
  height: 48px;
  background: rgba(61, 127, 154, 0.15); /* teal at 15% */
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.trust-badge .icon .lucide-icon { width: 24px; height: 24px; }
.trust-badge .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  max-width: 110px;
  line-height: 1.3;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 100px 40px 80px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .subtitle { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 720px; margin: 0 auto; }
.page-hero .section-tag { background: rgba(255,255,255,0.15); color: var(--white); }

/* ---------- Service Cards ---------- */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(233,135,135,0.06);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(233, 135, 135, 0.15); /* primary at 15% */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary); /* drives the stroke color of the .lucide-icon inside */
  margin-bottom: 20px;
}
.service-icon .lucide-icon { width: 32px; height: 32px; }
.service-card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--text-light); }
.service-card .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- How It Works (Steps) ---------- */
.steps-row {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(233,135,135,0.30);
}
.step h3 { color: var(--primary-dark); margin-bottom: 8px; font-size: 18px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ---------- Why Us ---------- */
.why-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.why-check {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(233, 135, 135, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.why-check .lucide-icon { width: 20px; height: 20px; stroke-width: 2.5; }
.why-item p { font-weight: 500; font-size: 15px; color: var(--text); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.testimonial-card {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
[dir="rtl"] .testimonial-card::before { left: auto; right: 20px; content: '\201D'; }
.testimonial-quote {
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.testimonial-stars { color: var(--accent); font-size: 18px; margin-bottom: 8px; }
.testimonial-author { font-weight: 600; color: var(--text); }
.testimonial-location { color: var(--text-light); font-size: 14px; }

/* ---------- Custom Sections (admin Sections builder) ---------- */
/* Rendered by i18n.js from content.custom_sections into #custom-sections-mount.
   Three layouts: cs-left (image left), cs-right (text left), cs-bg (full-bleed
   background image). Visual style follows the rest of the site - DM Serif
   Display heading, rose pink eyebrow, primary CTA. */
.cs-section { padding: 80px 40px; }
.cs-section + .cs-section { padding-top: 40px; }
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cs-image { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.cs-image img { display: block; width: 100%; height: auto; }
.cs-text .cs-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.cs-text h2 {
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.cs-body { color: var(--text-light); font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.cs-cta { margin-top: 8px; }
.cs-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-md);
}
.cs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-bg {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-dark);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.cs-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
}
.cs-bg-content { position: relative; z-index: 1; max-width: 720px; }
.cs-bg h2 { color: var(--white); }
.cs-bg .cs-eyebrow { color: rgba(255,255,255,0.9); }
.cs-bg .cs-body { color: rgba(255,255,255,0.9); }
@media (max-width: 900px) {
  .cs-section { padding: 60px 24px; }
  .cs-grid { grid-template-columns: 1fr; gap: 32px; }
  /* On mobile, always show the image above the text regardless of position. */
  .cs-right .cs-image { order: -1; }
  .cs-bg { min-height: 360px; }
}

/* ---------- Service Areas ---------- */
.areas-section {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: var(--white);
}
.areas-section .section-tag { background: rgba(255,255,255,0.15); color: var(--white); }
.areas-section .section-header h2 { color: var(--white); }
.areas-section .section-header p { color: rgba(255,255,255,0.85); }
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
/* Equal-footprint pins. min-width keeps "Surrounding Communities" from
   ballooning relative to "Fairfax"; flex:1 1 0 ensures all five share
   the row evenly on desktop. Inner SVG locked to 24x24 so the icon
   never inherits the parent's larger font and visually inflates. */
.area-tag {
  flex: 1 1 0;
  min-width: 160px;
  max-width: 220px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.area-tag .lucide-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.area-tag:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
@media (max-width: 700px) {
  .area-tag { flex: 1 1 45%; min-width: 0; max-width: none; }
}

/* ---------- About Page ---------- */
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { color: var(--primary-dark); margin-bottom: 20px; }
.about-text p { font-size: 16px; color: var(--text-light); margin-bottom: 16px; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card .icon {
  width: 56px;
  height: 56px;
  background: rgba(233, 135, 135, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
}
.value-card .icon .lucide-icon { width: 32px; height: 32px; }
.value-card h4 { color: var(--primary-dark); margin-bottom: 6px; font-size: 16px; }
.value-card p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ---------- Daily Living Detail (Services Page) ---------- */
.services-detail-section { background: var(--white); }
.services-detail-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--warm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
[dir="rtl"] .detail-item { border-left: none; border-right: 3px solid transparent; }
.detail-item:hover {
  border-left-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(4px);
}
[dir="rtl"] .detail-item:hover {
  border-left-color: transparent;
  border-right-color: var(--primary);
  transform: translateX(-4px);
}
.detail-icon {
  min-width: 40px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-icon .lucide-icon { width: 28px; height: 28px; }
.detail-item p { font-size: 15px; font-weight: 500; color: var(--text); margin: 0; }

/* ---------- Schedule Banner (chips) ---------- */
.schedule-banner {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.schedule-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.schedule-tag:hover { background: var(--accent); color: var(--white); }

/* ---------- Payment Options ---------- */
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.payment-option {
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
}
.payment-option::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 18px; }

/* ---------- Service Detail (full page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) > div:first-child { order: 2; }
.service-detail-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--primary-light), var(--accent-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  opacity: 0.9;
}
.service-detail h3 { font-size: 28px; margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-wrapper h2, .form-wrapper h3 { color: var(--primary-dark); margin-bottom: 16px; }
.form-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--warm);
  border-radius: 10px;
  padding: 4px;
}
.form-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.3;
}
.form-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(233,135,135,0.15);
}
.form-tab:hover:not(.active) { color: var(--text); }
.form-panel { display: none; }
.form-panel.active { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s;
  background: var(--warm);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e7078' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
[dir="rtl"] .form-group select { background-position: left 16px center; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-checkbox input { width: auto; margin-top: 4px; }
.form-submit { width: 100%; justify-content: center; }
.form-message { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; display: none; font-weight: 500; }
.form-message.success { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; display: block; }
.form-message.error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; display: block; }

/* ---------- Contact Page ---------- */
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(233, 135, 135, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-icon .lucide-icon { width: 24px; height: 24px; }
.contact-row .text { font-size: 15px; color: var(--text); line-height: 1.5; }
.contact-row .text a { color: var(--primary); }
.contact-row .text small { display: block; color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Careers Inner ---------- */
.careers-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: var(--radius);
}
.careers-inner h2 { color: var(--primary-dark); font-size: 28px; margin-bottom: 16px; }
.careers-inner p { color: var(--text-light); font-size: 17px; margin-bottom: 28px; }

/* ---------- Positions Cards ---------- */
.position-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  transition: var(--transition);
}
.position-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.position-card h4 { color: var(--primary-dark); margin-bottom: 4px; font-size: 16px; }
.position-meta { color: var(--text-light); font-size: 14px; }

/* ---------- Team Cards ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.5;
}
.team-photo .lucide-icon { width: 80px; height: 80px; stroke-width: 1.5; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.team-info { padding: 24px; }
.team-info h4 { margin-bottom: 4px; font-size: 18px; }
.team-role { color: var(--primary); font-weight: 600; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-bio { color: var(--text-light); font-size: 14px; margin: 0; }

/* ---------- Blog Cards ---------- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.6;
}
.blog-image .lucide-icon { width: 56px; height: 56px; stroke-width: 1.5; }
.blog-content { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.blog-category {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.blog-card h3 { font-size: 18px; color: var(--primary-dark); }
.blog-card p { color: var(--text-light); font-size: 14px; }
.blog-card .read-more { color: var(--primary); font-weight: 600; font-size: 14px; margin-top: auto; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 40px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.95); font-size: 17px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer.footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 40px 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand h3, .footer-logo {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  height: var(--logo-height-footer, 60px);
  width: auto;
  display: block;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
}
.footer-tagline { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.footer h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-body);
}
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-list a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.3s;
}
.footer-list a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 10px; margin-top: 12px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
}
.footer-socials a:hover { background: var(--primary); }
.footer-socials .lucide-icon { width: 18px; height: 18px; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 20px; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 80;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}
[dir="rtl"] .whatsapp-float { right: auto; left: 28px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ---------- Reveal Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 500px; }
  .hero .container { padding: 60px 24px; }
  .hero-text h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
  .hero-text .subtitle { font-size: 16px; margin-bottom: 28px; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-detail-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 30px; }
  .service-detail:nth-child(even) > div:first-child { order: 0; }
  .about-values { grid-template-columns: 1fr 1fr; }
  section, .section, .hero, .page-hero, .trust-bar, .cta-band, footer.footer { padding-left: 20px; padding-right: 20px; }
  section, .section { padding-top: 60px; padding-bottom: 60px; }
  .container, .header .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 700px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  .nav-list.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    align-items: stretch;
    border-top: 1px solid var(--border);
  }
  .nav-list.open a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-list.open a.btn { margin-top: 8px; }
  .topbar-contact { display: none; }
  .topbar .container { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .trust-inner { gap: 24px; }
  .trust-badge .label { max-width: 90px; font-size: 12px; }
}

@media print {
  .header, .footer, .topbar, .whatsapp-float, .cta-band, .lang-switch { display: none; }
}

/* ---------- RTL ---------- */
[dir="rtl"] body { font-family: var(--font-farsi); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 { font-family: var(--font-farsi); font-weight: 700; }
[dir="rtl"] .nav-list a::after { left: auto; right: 0; }
[dir="rtl"] .service-card::before { transform-origin: right; }
[dir="rtl"] .step-num { font-family: var(--font-farsi); font-weight: 700; }
[dir="rtl"] .hero-text { margin-left: auto; }
