/* Eran Services — design system
   Warm, trustworthy, uncluttered. Mobile-first, accessible. */

:root {
  --bg: #F8F7F3;
  --bg-alt: #F1EEE5;
  --ink: #142636;
  --ink-soft: #3C4C5C;
  --muted: #6B7686;
  --accent: #D89B44;
  --accent-ink: #5C3B0F;
  --line: #E4DFD3;
  --white: #FFFFFF;
  --success: #2E7D4F;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 54, 0.06), 0 1px 1px rgba(20, 38, 54, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 38, 54, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1180px;
  --sticky-h: 64px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

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

a { color: var(--ink); text-decoration: none; }
.link { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent); }
.link:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(248, 247, 243, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-right: auto; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--accent);
  font-weight: 800; font-size: 1rem;
}
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-weight: 600; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-header__actions { display: none; align-items: center; gap: 16px; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.phone-link svg { color: var(--accent); }

.nav-toggle {
  display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink);
}

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 44px; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .site-header__actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; min-height: 44px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--secondary { background: var(--ink); color: var(--white); }
.btn--secondary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero__eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-ink); text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 18ch; }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.hero__micro { font-size: 0.9rem; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-weight: 600; font-size: 0.95rem; }
.trust-row .pill { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow-sm); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__heading { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__sub { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }
.section__head { margin-bottom: 32px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); margin-bottom: 4px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-soft); flex: 1; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 52px; margin-bottom: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); margin: 0; }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.value-list svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 18px; max-width: 760px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; }
.faq__q { font-size: 1.02rem; margin-bottom: 6px; }
.faq__a { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--white); aspect-ratio: 4/3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty {
  text-align: center; padding: 48px 24px; background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--radius-lg); color: var(--ink-soft);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field__hint { font-size: 0.85rem; color: var(--muted); }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.checkbox-field input { margin-top: 3px; width: 18px; height: 18px; }
.form__status { font-weight: 600; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form__status.is-success { display: block; background: #E7F4EC; color: var(--success); }
.form__status.is-error { display: block; background: #FBEAEA; color: #A4322A; }
.form__alt { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.review-theme { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; display: flex; gap: 14px; }
.review-theme svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Service areas ---------- */
.area-chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.area-chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D7DEE6; padding: 48px 0 20px; margin-top: 40px; }
.site-footer a { color: #D7DEE6; }
.site-footer .link { color: var(--accent); }
.site-footer .muted { color: #9BAAB8; }
.brand--footer { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__heading { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9BAAB8; margin-bottom: 10px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-top: 1px solid #28384A; margin-top: 32px; padding-top: 20px; font-size: 0.88rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; display: flex; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta__btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; font-weight: 700; min-height: 56px;
}
.sticky-cta__btn--call { background: var(--ink); color: var(--white); }
.sticky-cta__btn--text { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Misc page bits ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); text-decoration: underline; }
.callout { background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink-soft); }
.final-cta { background: var(--ink); color: var(--white); text-align: center; padding: 56px 0; border-radius: var(--radius-lg); margin: 0 20px; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: #C9D2DB; max-width: 50ch; margin: 0 auto 20px; }
.final-cta .hero__ctas { justify-content: center; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.price-list { display: grid; gap: 14px; max-width: 640px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.price-row strong { color: var(--accent-ink); }
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
