/* ============================================
   BECKY FUHRMANN, ADV. — Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors — "Modern Counselor" palette */
  --color-primary: #1a1a2e;
  --color-primary-light: #2a2a42;
  --color-secondary: #a69882;
  --color-secondary-light: #c4b8a5;
  --color-accent: #b8934b;
  --color-accent-hover: #d4a94f;
  --color-surface: #faf9f6;
  --color-surface-alt: #f3f0ea;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-text-on-dark: #f0ece4;
  --color-text-on-dark-muted: #a69882;
  --color-border: #e5e0d8;
  --color-white: #ffffff;

  /* Typography */
  --font-headline-en: 'Cormorant Garamond', Georgia, serif;
  --font-headline-he: 'Heebo', Arial, sans-serif;
  --font-body-en: 'Inter', -apple-system, sans-serif;
  --font-body-he: 'Heebo', Arial, sans-serif;
  --font-label: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 100px;
  --space-4xl: 140px;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

body {
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Language-specific typography */
[dir="ltr"] body {
  font-family: var(--font-body-en);
  font-size: 17px;
}

[dir="rtl"] body {
  font-family: var(--font-body-he);
  font-size: 18px;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* --- Typography --- */
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 {
  font-family: var(--font-headline-en);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: var(--font-headline-he);
}

h1 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

[dir="ltr"] h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 600; }
[dir="rtl"] h1 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 700; }

h2 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

[dir="ltr"] h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 600; }
[dir="rtl"] h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 700; }

h3 {
  line-height: 1.3;
}

[dir="ltr"] h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; }
[dir="rtl"] h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; }

.label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.label-on-dark {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-large {
  font-size: 1.15em;
  line-height: 1.8;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-3xl);
}

.section-lg {
  padding-block: var(--space-4xl);
}

.section-alt {
  background-color: var(--color-surface-alt);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(250, 249, 246, 0.95);
}

.navbar-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

[dir="rtl"] .nav-logo {
  font-family: var(--font-body-he);
}

[dir="ltr"] .nav-logo {
  font-family: var(--font-body-en);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.lang-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
  line-height: 1;
}

.lang-toggle span.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184, 147, 75, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline-light:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

[dir="rtl"] .hero-inner {
  direction: rtl;
}

.hero-content {
  max-width: 560px;
}

/* --- Hero rotating text --- */
.hero-rotate {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

.hero-rotate-word {
  display: inline-block;
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 0.45s ease, transform 0.45s ease;
  color: var(--color-accent);
}

.hero-rotate-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.hero-rotate-word.exit {
  opacity: 0;
  transform: translateY(-30%);
}

.hero-content h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
}

.hero-phone:hover {
  color: var(--color-accent);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* Subtle accent behind hero image */
.hero-image::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  z-index: -1;
}

[dir="rtl"] .hero-image::before {
  inset: 20px 20px -20px -20px;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-secondary-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
  font-size: 22px;
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.card-link:hover {
  gap: 10px;
}

/* Pillar card variant */
.pillar-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.pillar-word {
  font-family: var(--font-headline-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

[dir="rtl"] .pillar-word {
  font-family: var(--font-label);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05em;
}

/* --- Intro / About Block --- */
.intro-block {
  max-width: 720px;
}

.intro-block p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.credentials-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.credential-tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

/* --- Social Proof / Trust --- */
.trust-section {
  text-align: center;
  padding-block: var(--space-2xl);
}

.trust-statement {
  font-size: 1.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.trust-sectors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.sector-tag {
  padding: 6px 16px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* --- CTA Band --- */
.cta-band {
  background: var(--color-primary);
  padding-block: var(--space-2xl);
  text-align: center;
}

.cta-band h2 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-lg);
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.blog-card-body {
  padding: var(--space-lg);
}

.blog-card .label {
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.blog-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 20px;
}

.blog-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--color-accent);
}

.blog-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.blog-card-meta {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Practice Area Page --- */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--color-surface-alt);
}

.page-hero .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  max-width: 640px;
  font-size: 1.1em;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.service-item:hover {
  border-color: var(--color-secondary-light);
}

.service-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.service-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.service-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.credential-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
}

.credential-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  flex-shrink: 0;
}

.credential-card-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.credential-card-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- Contact Page — Card Layout --- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 960px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 147, 75, 0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 48px rgba(26, 26, 46, 0.1);
  color: inherit;
}

.contact-card:hover::before {
  opacity: 1;
}


.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  border-radius: 50%;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.contact-card:hover .contact-card-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 16px;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.contact-card-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.contact-card small {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 998;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.2);
}

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

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 147, 75, 0.3);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 24px;
}

/* --- Enhanced link underline effect --- */
.footer-links a,
.nav-links a {
  position: relative;
}

.footer-links a::after,
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.footer-links a:hover::after,
.nav-links a:hover::after {
  width: 100%;
}

/* --- Pillar card shimmer on hover --- */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 147, 75, 0.06), transparent);
  transition: inset-inline-start 0.6s ease;
  pointer-events: none;
}

.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card:hover::after {
  inset-inline-start: 100%;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: start;
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 15px;
}


/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.process-step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: var(--color-surface-alt);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-headline-en);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
}

.process-step h3 {
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

.process-step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Blog Article --- */
.article-content {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.article-content p {
  margin-bottom: var(--space-md);
  line-height: 1.85;
  font-size: 17px;
}

.article-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 22px;
  line-height: 1.4;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

[dir="rtl"] .article-content h2 {
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-inline-start: var(--space-lg);
}

.article-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* --- Related Articles --- */
.related-articles {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.related-articles h3 {
  font-size: 20px;
  margin-bottom: var(--space-lg);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.related-card {
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

.related-card:hover {
  border-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.related-card .label {
  margin-bottom: var(--space-xs);
}

.related-card h4 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.related-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding-block: var(--space-2xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand p {
  color: var(--color-text-on-dark-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 360px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-on-dark);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-on-dark-muted);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  margin-top: var(--space-md);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* --- Mobile Sticky CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  z-index: 999;
  gap: var(--space-sm);
}

.mobile-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

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

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-image, .hero-content, .hero-content * {
    animation: none !important;
  }
}

/* Fallback when JS is disabled */
noscript + .reveal,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-image {
    order: 0;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-image::before {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-photo {
    position: static;
    max-width: 320px;
    margin-inline: auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 64px;
    --space-4xl: 80px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    inset-inline: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 0 var(--space-xl);
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    padding: var(--space-xs) 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-right .btn {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }

  .back-to-top {
    bottom: 76px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  [dir="ltr"] body { font-size: 15px; }
  [dir="rtl"] body { font-size: 16px; }

  .container,
  .container-narrow {
    padding-inline: var(--space-md);
  }

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

  .hero-image {
    max-width: 280px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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