/* ============================================
   רייבי שגיב - שמאי מקרקעין
   Brand colors aligned to logo (royal blue + amber)
   ============================================ */

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

:root {
  /* Surfaces */
  --bg: #f7f8fa;
  --bg-alt: #eef2f6;
  --bg-warm: #fff5e8;
  --surface: #ffffff;
  --surface-alt: #fafbfc;

  /* Brand - extracted from logo */
  --brand: #1f5db8;            /* royal blue from logo */
  --brand-dark: #154280;
  --brand-light: #2e72c4;
  --brand-soft: #dde7f5;

  /* Warm accent - amber/orange from logo */
  --warm: #f39200;
  --warm-dark: #c87800;
  --warm-light: #ffaa3a;
  --warm-soft: #ffe9c9;

  /* Neutrals - cool charcoal */
  --ink: #1a1d24;
  --ink-soft: #353a45;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: #e3e7ed;
  --border-light: #eef1f5;

  /* Typography (Manrope only, with weight variations) */
  --sans: "Manrope", "Heebo", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadow (soft, warm) */
  --sh-sm: 0 1px 2px rgba(31, 29, 26, 0.04), 0 1px 3px rgba(31, 29, 26, 0.06);
  --sh-md: 0 4px 8px rgba(31, 29, 26, 0.04), 0 2px 4px rgba(31, 29, 26, 0.04);
  --sh-lg: 0 12px 24px rgba(31, 29, 26, 0.06), 0 4px 8px rgba(31, 29, 26, 0.04);
  --sh-xl: 0 24px 48px rgba(31, 29, 26, 0.08), 0 8px 16px rgba(31, 29, 26, 0.04);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--brand); color: var(--surface); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

/* serif class removed - using Manrope throughout */

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.25rem;
}

.eyebrow--warm {
  color: var(--warm-dark);
  background: var(--warm-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 400;
}

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

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(4rem, 8vw, 6rem) 0; position: relative; }
.section--warm { background: var(--bg-warm); }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: var(--surface); }
.section--brand h1, .section--brand h2, .section--brand h3 { color: var(--surface); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-head h2 { margin-bottom: 1rem; }

.section-head__sub {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-head--start { text-align: right; margin-left: 0; margin-right: 0; }

/* ---- Buttons (Modern, soft) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--brand {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.btn--brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--warm {
  background: var(--warm);
  color: var(--surface);
  border-color: var(--warm);
}

.btn--warm:hover {
  background: var(--warm-dark);
  border-color: var(--warm-dark);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: var(--sh-sm);
}

.btn--white {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--surface);
}

.btn--white:hover {
  background: var(--bg-alt);
  border-color: var(--bg-alt);
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--icon { padding: 0.85rem; aspect-ratio: 1; }

.btn .arrow { transition: transform var(--transition); display: inline-block; }
.btn:hover .arrow { transform: translateX(-3px); }

/* ---- Site Header ---- */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin: 1rem var(--gutter) 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 0.75rem 0.7rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.brand__role {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: center;
}

.nav__link {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: all var(--transition);
}

.nav__link:hover { background: var(--bg-alt); color: var(--ink); }
.nav__link--active { color: var(--brand); font-weight: 600; }

.header__cta { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  position: relative;
  border: none;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

/* ---- Hero ---- */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--warm-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero__inner {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__inner > div { text-align: center; }
.hero__inner .hero__cta { justify-content: center; }
.hero__inner .hero__trust { justify-content: center; }
.hero__inner .hero__lede { margin-left: auto; margin-right: auto; }

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__title em {
  font-style: normal;
  color: var(--warm-dark);
  font-weight: 800;
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  bottom: 0.05em;
  right: 0;
  left: 0;
  height: 0.18em;
  background: var(--warm-soft);
  z-index: -1;
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 50ch;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__trust-icon {
  width: 24px;
  height: 24px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero__trust-icon svg { width: 14px; height: 14px; }

/* Visual side */
.hero__visual {
  position: relative;
}

/* Compact byline (small avatar + name) - replaces big portrait */
.hero__byline {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--sh-sm);
}

.hero__byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-soft);
  flex-shrink: 0;
  background: var(--bg-alt);
}

.hero__byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__byline-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.hero__byline-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.hero__byline-role {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* Legacy hero card kept for backwards-compat (unused on homepage now) */
.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--sh-lg);
}

.hero__card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.hero__card-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}

.hero__card-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.hero__card-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__card-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero__card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero__card-check {
  width: 22px;
  height: 22px;
  background: var(--brand);
  color: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.hero__card-check svg { width: 12px; height: 12px; }

/* sticker removed */

/* ---- Metrics row ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}

.metric:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.metric__num {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.metric__label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Service cards (modern grid) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.svc:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
  border-color: var(--brand-soft);
}

.svc__icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  transition: all var(--transition);
}

.svc:hover .svc__icon {
  background: var(--brand);
  color: var(--surface);
}

.svc__icon svg { width: 22px; height: 22px; }

.svc__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.svc__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Services with warm theme variant */
.svc--warm .svc__icon { background: var(--warm-soft); color: var(--warm-dark); }
.svc--warm:hover .svc__icon { background: var(--warm); color: var(--surface); }
.svc--warm .svc__link { color: var(--warm-dark); }

/* ---- Why Us / Features ---- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature:hover {
  box-shadow: var(--sh-md);
  border-color: var(--brand-soft);
}

.feature__icon {
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--surface);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature__icon svg { width: 22px; height: 22px; }

.feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* ---- Process (modern horizontal) ---- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--brand-soft) 50%, var(--border) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.process-step__num {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.process-step:hover .process-step__num {
  background: var(--brand);
  color: var(--surface);
  transform: scale(1.05);
}

.process-step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ---- Testimonials (modern cards) ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition);
}

.testi:hover { box-shadow: var(--sh-md); }

.testi__rating {
  display: flex;
  gap: 2px;
  color: var(--warm);
}

.testi__rating svg { width: 16px; height: 16px; }

.testi__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.testi__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.testi__avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testi__avatar--warm { background: linear-gradient(135deg, var(--warm) 0%, var(--warm-light) 100%); }

.testi__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}

.testi__role {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Page Header ---- */
.page-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.page-header__title em {
  font-style: normal;
  color: var(--warm-dark);
  font-weight: 800;
}

.page-header__sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

.breadcrumbs a:hover { color: var(--brand); }

/* ---- Bio / About — magazine-style with floated portrait ---- */
.bio-article {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.bio-figure {
  float: left;
  width: clamp(260px, 32%, 380px);
  margin: 0.5rem 0 1.5rem 2rem;
  shape-outside: margin-box;
}

.bio-figure__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.bio-figure__caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.bio-figure__caption span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted-light);
}

@media (max-width: 720px) {
  .bio-figure {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
}

/* Legacy bio-grid kept for any leftover usage */
.bio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.bio-portrait {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.25rem;
  box-shadow: var(--sh-md);
}

.bio-portrait__inner {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.bio-portrait__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-portrait__monogram {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 6.5rem;
  color: var(--surface);
  opacity: 0.95;
  letter-spacing: -0.04em;
}

.bio-meta {
  margin-top: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.bio-meta__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.bio-meta__row:last-child { border-bottom: none; }

.bio-meta__label { color: var(--muted); font-weight: 500; }
.bio-meta__val { font-weight: 600; }

.bio-content { max-width: 1080px; margin: 0 auto; }
.bio-content h2 { margin-bottom: 1.25rem; }

.bio-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.bio-content h3,
.bio-content h2,
.bio-content > p,
.bio-content > ul {
  clear: none;
}

/* Clear float after the figure naturally wraps */
.bio-content::after {
  content: "";
  display: block;
  clear: both;
}

.bio-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.bio-content ul {
  margin: 1rem 0 1.5rem;
  list-style: none;
  padding: 0;
}

.bio-content ul li {
  padding: 0.65rem 1.75rem 0.65rem 0;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.65;
}

.bio-content ul li:last-child { border-bottom: none; }

.bio-content ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  background: var(--warm);
  border-radius: 50%;
}

.bio-content strong { font-weight: 700; color: var(--ink); }

/* ---- Service detail blocks ---- */
.svc-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  transition: box-shadow var(--transition);
}

.svc-block:hover { box-shadow: var(--sh-md); }

.svc-block__side { position: sticky; top: 100px; }

.svc-block__icon {
  width: 64px;
  height: 64px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.svc-block__icon svg { width: 30px; height: 30px; }

.svc-block__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm-dark);
  background: var(--warm-soft);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.75rem;
}

.svc-block__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.svc-block__main p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

.svc-block__main h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.svc-block__main ul {
  margin: 0.5rem 0 1.25rem;
  list-style: none;
  padding: 0;
}

.svc-block__main li {
  padding: 0.5rem 1.5rem 0.5rem 0;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

.svc-block__main li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
}

.svc-block__main strong { font-weight: 700; color: var(--ink); }

/* ---- Article cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.article-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

.article-card__cover {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-warm) 100%);
  display: grid;
  place-items: center;
  color: var(--brand);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.article-card__cover--warm {
  background: linear-gradient(135deg, var(--warm-soft) 0%, var(--warm-light) 100%);
  color: var(--warm-dark);
}

.article-card__cover--bg { background-size: cover; background-position: center; }
.article-card__cover svg { width: 48px; height: 48px; opacity: 0.5; }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Full hero illustration on article page */
.article-hero-img {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  display: block;
  aspect-ratio: 16/9;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero background image overlay */
.hero {
  background-image: url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.article-card__tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  align-self: flex-start;
}

.article-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.article-card__excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.article-card__read {
  color: var(--brand);
  font-weight: 600;
}

/* Article body */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.article-body p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.article-body blockquote {
  border-right: 4px solid var(--warm);
  background: var(--warm-soft);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---- FAQ (modern accordion) ---- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item:hover { box-shadow: var(--sh-sm); }
.faq__item--open { box-shadow: var(--sh-sm); border-color: var(--brand-soft); }

.faq__q {
  width: 100%;
  text-align: right;
  padding: 1.25rem 1.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  border: none;
  background: none;
}

.faq__icon {
  width: 28px;
  height: 28px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: 1.1rem;
  font-weight: 700;
}

.faq__item--open .faq__icon { background: var(--brand); color: var(--surface); transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__item--open .faq__a { max-height: 500px; }

.faq__a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  border-color: var(--brand-soft);
  background: var(--surface-alt);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card__icon svg { width: 22px; height: 22px; }

.contact-card__label { font-size: 0.85rem; color: var(--muted); }
.contact-card__val { font-weight: 600; font-size: 1rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--sh-sm);
}

.contact-form__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-form__sub { color: var(--muted); margin-bottom: 1.75rem; }

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field label .req { color: var(--warm); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  transition: all var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.field textarea { min-height: 120px; resize: vertical; }

.form-msg {
  display: none;
  padding: 1rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: var(--r-md);
  margin-top: 1rem;
  font-weight: 500;
}

.form-msg--ok { display: block; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 123, 94, 0.4) 0%, transparent 70%);
}

.cta-banner__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.cta-banner h2 {
  color: var(--surface);
  margin-bottom: 1rem;
}

.cta-banner h2 em {
  font-style: normal;
  color: var(--warm-light);
  font-weight: 800;
}

.cta-banner__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-banner__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  font-size: 0.95rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--warm-light); }

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { display: flex; flex-direction: column; }

.footer-brand__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: block;
  object-fit: contain;
  background: var(--surface);
  padding: 4px;
}

.footer-brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--surface);
}

.footer-brand__role {
  font-size: 0.78rem;
  color: var(--warm-light);
  font-weight: 500;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  font-size: 0.92rem;
  max-width: 36ch;
}

.footer-col h4 {
  color: var(--surface);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col li {
  padding: 0.35rem 0;
  font-size: 0.92rem;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--warm-light);
  border-bottom-color: var(--warm-light);
}

@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { width: 100%; }
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-lg);
  z-index: 99;
  transition: all var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--brand);
  color: var(--surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-md);
  z-index: 200;
  font-size: 0.9rem;
}

.skip-link:focus { top: 1rem; outline: 3px solid var(--warm); outline-offset: 2px; }

/* ---- Enhanced focus styles for accessibility ---- */
*:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--warm) !important;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  body { color: #000; }
  .muted, .testi__role, .article-card__excerpt { color: #333; }
  .btn--ghost { border-width: 2px; }
}

/* Honor user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .articles-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process::before { display: none; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { position: static; max-width: 360px; margin: 0 auto; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block__side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .site-header { margin: 0.5rem var(--gutter) 0; border-radius: var(--r-lg); }
  .site-header__inner { grid-template-columns: auto auto; padding: 0.5rem 0.75rem; }
  .nav {
    position: fixed;
    inset: 80px var(--gutter) auto;
    flex-direction: column;
    background: var(--surface);
    box-shadow: var(--sh-lg);
    padding: 0.75rem;
    align-items: stretch;
    transform: translateY(-180%);
    transition: transform var(--transition);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    z-index: 99;
  }
  .nav--open { transform: translateY(0); }
  .nav__link { padding: 0.85rem 1rem; border-radius: var(--r-md); }
  .header__cta { margin-top: 0.5rem; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }

  .services-grid, .articles-grid, .testimonials { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero__sticker { right: auto; left: -8px; top: -8px; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .whatsapp-float, .nav-toggle, .hero::before, .hero::after { display: none; }
  body { background: white; color: black; }
}
