/*
  אומנות התפירה וסנדלרות (בת ים) - פלטה, פונטים ומבנה

  למה לא הפלטה השחוקה: הבריף המקורי מסמן במפורש שהשילוב "בז'/קרם חמים +
  פליז/יין/אוקר + חום אספרסו" הפך לברירת מחדל גנרית של AI לעסקי אומנות/כפר,
  ולכן נפסל כאן מראש. במקום זאת, מחקר קצר (Google/2026 branding trend
  roundups כמו superherodesign.co ו-designmadesimple.blog) הצביע על מגמה
  ברורה של 2026: מעבר מאפור קריר לירוקים עמוקים וגוני אדמה/תכשיט (jewel
  tones), עם טאופ/חום כסימן ל"תפירה איטלקית איכותית" (quiet luxury). מכאן
  הוחלט על ירוק בקבוק עמוק כצבע העוגן - צבע שקושר לבד ירוק על שולחן הגזירה
  ולעור עבה, לא "עוד קפה חם" - עם נחושת/פליז כצבע חוט משני ומוגבל בלבד
  (בדיוק כמו שהבריף מציע כאלטרנטיבה: "deep navy or bottle-green with a
  brass/copper thread accent"). הרקע הוא לבן-נייר קריר, לא קרם/בז' חמים,
  כדי להימנע מהצבע הראשון ברשימה האסורה.

  ניגודיות (נבדקה בפועל לפי נוסחת luminance היחסי של WCAG, לא בעין):
  - טקסט (#1f2421) על רקע (#f5f3ee): 14.2:1 - עובר AAA.
  - טקסט מושתק (#52605a) על רקע (#f5f3ee): 5.96:1 - עובר AA לטקסט רגיל.
  - טקסט מושתק (#52605a) על רקע מוגבה (#ece7da): 5.35:1 - עובר AA.
  - טקסט לבן על --accent (#1e4d3d): 9.6:1 - עובר AAA, משמש בכפתורים.
  - --copper-text (#8f5527, גרסה כהה יותר של הנחושת) על רקע (#f5f3ee): 5.42:1
    - עובר AA, ולכן זה הגוון היחיד מתוך משפחת הנחושת שמשמש לטקסט קטן/קישורים.
    - הנחושת הבהירה (#b3672b, ~4.2:1 בלבד על הרקע הבהיר) משמשת אך ורק
      דקורטיבית: אייקונים, גבולות, קווי תפר - אף פעם לא כטקסט רץ קטן.

  טיפוגרפיה: David Libre לכותרות (עיבוד עדכני לגופן העברי הקלאסי "דוד",
  אחד מגופני הדפוס העבריים המזוהים ביותר עם דורות של עבודת יד ומלאכה -
  התאמה ישירה לזהות של בית מלאכה) + Noto Sans Hebrew לטקסט רץ (גופן נקי,
  קריא מאוד, ניטרלי כנגד הכותרות המסורתיות יותר). הצימוד הזה שונה משלושת
  האתרים האחרים בפרויקט (Heebo+Assistant, Suez One+Rubik, Frank Ruhl
  Libre+Assistant) - מתארח מקומית (fonts/fonts.css), אפס בקשות בזמן ריצה
  ל-fonts.googleapis.com / fonts.gstatic.com.

  מבנה (זהות מבנית ייחודית, לא רק צבע): הדר עליון קבוע ורגיל (לא רייל
  אנכי, לא לוגו ממורכז, לא שקוף-מעל-הירו) עם קו תפר מנוקד תחתון; הירו הוא
  split א-סימטרי - טקסט מול תמונת ידיים/כלים בפריים עם קו תפר אנכי; קווי
  "תפר" SVG גליים מפרידים בין הסקשנים לאורך העמוד כמוטיב חוט מחבר; כרטיסי
  שירות בעיצוב "תווית בד" עם חור תלייה; גלריה ברשת א-סימטרית (לא מסיכת
  לייטבוקס אחידה); ביקורות כ"תוויות תלויות" עם חוט קטן, לא קרוסלה/טאבים.
*/

:root{
  --bg: #f5f3ee;
  --bg-elevated: #ece7da;
  --bg-card: #ffffff;
  --text: #1f2421;
  --text-muted: #52605a;
  --accent: #1e4d3d;
  --accent-dark: #123326;
  --accent-light: #2f6b54;
  --copper: #b3672b;
  --copper-text: #8f5527;
  --copper-soft: rgba(179, 103, 43, 0.14);
  --border: #ddd6c7;
  --steel: #c7bfa9;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shell-w: 1240px;
  --header-h: 84px;
  --font-heading: 'David Libre', 'Noto Serif Hebrew', serif;
  --font-body: 'Noto Sans Hebrew', 'Heebo', sans-serif;
  --ease-fabric: cubic-bezier(0.22, 0.68, 0.32, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-card: 0 18px 40px -22px rgba(18, 51, 38, 0.35);
  --shadow-lift: 0 24px 56px -20px rgba(18, 51, 38, 0.42);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  margin: 0;
  /* position:relative here is what makes .skip-link and .visually-hidden
     (both position:absolute) genuinely anchored to a real positioned
     ancestor, rather than falling back to the initial containing block. */
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1, h2, h3{ font-family: var(--font-heading); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; }
p{ margin: 0 0 1em; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }
svg{ display: block; }

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

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link{
  position: absolute;
  right: 16px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 300;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus{ top: 12px; }

:focus-visible{
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--copper-text);
  margin: 0 0 10px;
  text-transform: none;
}
.accent-text{ color: var(--accent); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-fabric), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.btn svg{ width: 19px; height: 19px; flex-shrink: 0; }
.btn-accent{
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-lg{ padding: 15px 28px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine){
  .btn-accent:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lift); background: var(--accent-dark); }
  .btn-ghost:hover{ transform: translateY(-2px); border-color: var(--accent); background: var(--bg-card); }
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.brand-mark{
  width: 40px; height: 40px;
  color: var(--copper);
  flex-shrink: 0;
}
.brand-mark svg{ width: 100%; height: 100%; }
.brand-text{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--text);
}
.main-nav{
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-end: auto;
}
.main-nav a{
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
}
.main-nav a::after{
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-fabric);
}
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover::after{ transform: scaleX(1); }

.header-cta{ flex-shrink: 0; }
.nav-burger{
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-burger svg{ width: 22px; height: 22px; }

.mobile-nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 22px;
  border-top: 1px solid var(--border);
}
.mobile-nav a{
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn{ margin-top: 12px; justify-content: center; }
.mobile-nav[hidden]{ display: none; }

@media (max-width: 900px){
  .main-nav, .header-cta{ display: none; }
  .nav-burger{ display: flex; }
  .brand{ margin-left: 0; margin-inline-end: auto; }
}

/* =========================================================
   STITCH DIVIDER (motif connecting sections)
   ========================================================= */
.stitch-divider{
  display: block;
  width: 100%;
  height: 30px;
  color: var(--copper);
  overflow: visible;
}
.stitch-divider path{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 3 9;
  opacity: 0.55;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-copy{ order: 2; }
.hero-media{ order: 1; position: relative; }

.hero-title{
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  margin-bottom: 20px;
}
.reveal-line{ display: block; overflow: hidden; }
.reveal-line span{ display: inline-block; }
.hero-sub{
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 26px;
}
.hero-rating-chip{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.rating-stars{ display: flex; gap: 2px; color: var(--copper); }
.rating-stars svg{ width: 16px; height: 16px; }
.rating-text{ display: flex; align-items: baseline; gap: 6px; font-size: 0.88rem; color: var(--text-muted); }
.rating-text strong{ font-size: 1.15rem; color: var(--text); font-family: var(--font-heading); }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.hero-frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  background: var(--bg-elevated);
}
.hero-frame img{
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1250;
  object-fit: cover;
}
.hero-tag{
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5);
}
.hero-stitch{
  position: absolute;
  top: 0; bottom: 0;
  right: -22px;
  width: 40px;
  height: 100%;
  color: var(--copper);
  opacity: 0.6;
}
.hero-stitch path{ fill: none; stroke: currentColor; stroke-width: 2.4; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; gap: 36px; }
  .hero-copy{ order: 1; }
  .hero-media{ order: 2; max-width: 420px; margin: 0 auto; }
  .hero-stitch{ display: none; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about{ padding: 76px 0 20px; }
.about-inner{
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about-image img{
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 599;
  object-fit: cover;
}
.about-copy h2{ font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.about-copy p{ color: var(--text-muted); max-width: 54ch; }
.about-points{ margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.about-points li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.96rem;
}
.about-points svg{ width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px){
  .about-inner{ grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */
.section-head{ text-align: center; padding: 20px 0 44px; }
.section-head h2{ font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.section-head .eyebrow{ display: block; }

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding: 30px 0 20px; }
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card{
  position: relative;
  background: var(--bg-card);
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 260ms var(--ease-fabric), border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.service-tag-hole{
  position: absolute;
  top: 16px;
  left: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--steel);
}
.service-icon{
  width: 34px; height: 34px;
  color: var(--copper);
  margin-bottom: 16px;
}
.service-card h3{ font-size: 1.15rem; margin-bottom: 8px; }
.service-card p{ color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0; }
@media (hover: hover) and (pointer: fine){
  .service-card:hover{
    transform: translateY(-6px);
    border-color: var(--accent);
    border-style: solid;
    box-shadow: var(--shadow-lift);
  }
  .service-card:hover .service-icon{ color: var(--accent); }
}

@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery{ padding: 30px 0 20px; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 18px;
}
.gallery-item{
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
  grid-column: span 1;
  grid-row: span 2;
}
.gallery-item--wide{ grid-column: span 2; grid-row: span 2; }
.gallery-item--tall{ grid-column: span 1; grid-row: span 4; }
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-fabric);
}
.gallery-item::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,51,38,0) 55%, rgba(18,51,38,0.55) 100%);
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine){
  .gallery-item:hover img{ transform: scale(1.06); }
  .gallery-item:hover::after{ opacity: 1; }
}

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item--wide{ grid-column: span 2; grid-row: span 2; }
  .gallery-item--tall{ grid-column: span 1; grid-row: span 2; }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-item--wide, .gallery-item--tall{ grid-column: span 1; grid-row: span 2; }
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews{ padding: 66px 0 20px; }
.reviews-inner{ text-align: center; }
.reviews-score{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
}
.score-number{
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.score-count{ color: var(--text-muted); font-weight: 600; }
.review-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: right;
}
.review-card{
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  box-shadow: var(--shadow-card);
}
.review-string{
  position: absolute;
  top: -14px;
  right: 28px;
  width: 2px;
  height: 18px;
  background: var(--copper);
}
.review-string::before{
  content: '';
  position: absolute;
  top: -6px;
  right: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  background: var(--bg-card);
}
.review-card p{ color: var(--text); font-size: 0.98rem; margin-bottom: 14px; }
.review-card cite{ font-style: normal; font-weight: 700; color: var(--copper-text); font-size: 0.88rem; }

@media (max-width: 900px){
  .review-cards{ grid-template-columns: 1fr; }
}

/* =========================================================
   HOURS + MAP
   ========================================================= */
.hours-contact{ padding: 30px 0 90px; }
.hc-inner{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: stretch;
  background: var(--accent-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hc-hours{
  padding: 48px;
  color: #fff;
}
.hc-hours .eyebrow{ color: #d9b98a; }
.hc-hours h2{ color: #fff; }
.hours-list{ margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.hours-list li{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  font-weight: 600;
}
.hours-note{ color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 22px; }
.hc-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.hc-hours .btn-ghost{ color: #fff; border-color: rgba(255,255,255,0.4); }
.hc-hours .btn-ghost:hover{ background: rgba(255,255,255,0.1); border-color: #fff; }

.hc-map{ min-height: 340px; }
.hc-map iframe{ width: 100%; height: 100%; border: 0; display: block; min-height: 340px; }

@media (max-width: 900px){
  .hc-inner{ grid-template-columns: 1fr; }
  .hc-hours{ padding: 34px 28px; }
  .hc-map{ min-height: 280px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--accent-dark);
  color: rgba(255,255,255,0.82);
  padding: 34px 0 26px;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand .brand-text{ color: #fff; font-size: 1rem; }
.footer-brand p{ margin: 4px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-contact{ display: flex; gap: 18px; font-weight: 600; }
.footer-contact a:hover{ color: var(--copper); }
.footer-legal{ display: flex; gap: 18px; font-size: 0.88rem; }
.footer-legal a{ color: rgba(255,255,255,0.7); }
.footer-legal a:hover{ color: #fff; }
.footer-copy{ width: 100%; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 6px 0 0; }
.footer-credit{ width: 100%; font-size: 0.72rem; color: rgba(255,255,255,0.4); margin: 2px 0 0; }

/* =========================================================
   LIGHTBOX (gallery)
   ========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(9, 20, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.lightbox[hidden]{ display: none; }
.lightbox-close{
  /* position:absolute anchored to .lightbox, which is position:fixed -
     a fixed ancestor establishes a containing block exactly like a
     relative one does, so this is a genuinely anchored pair, not the
     "absolute with no real positioned ancestor" bug pattern. */
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close svg{ width: 22px; height: 22px; }
.lightbox-close:hover{ border-color: var(--copper); color: var(--copper); }
.lightbox-figure{ margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-figure img{ max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius-lg); object-fit: contain; }
.lightbox-figure figcaption{ color: rgba(255,255,255,0.82); font-size: 0.92rem; text-align: center; }
@media (prefers-reduced-motion: no-preference){
  .lightbox-figure img{ animation: tf-scale-in 280ms var(--ease-out); }
}

/* =========================================================
   ACCESSIBILITY WIDGET
   (button + panel are plain flex siblings of a position:fixed,
   column-reverse container - never position:absolute for the panel.
   The only legitimate position:absolute pair in this file is
   .a11y-switch-knob inside its position:relative parent .a11y-switch.)
   ========================================================= */
.a11y-widget{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 210;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
}
.a11y-toggle{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.a11y-toggle svg{ width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine){
  .a11y-toggle:hover{ transform: scale(1.08); background: var(--bg-elevated); }
}

.a11y-panel{
  width: min(320px, calc(100vw - 48px));
  max-height: min(64vh, 440px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px -16px rgba(18,51,38,0.5);
}
.a11y-panel[hidden]{ display: none; }
.a11y-panel h2{ font-size: 1.05rem; margin-bottom: 16px; font-family: var(--font-heading); }
.a11y-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.a11y-row span{ font-weight: 700; font-size: 0.92rem; }
.a11y-btns{ display: flex; gap: 6px; }
.a11y-btns button{
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.a11y-btns button:hover{ border-color: var(--accent); }

.a11y-toggle-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: right;
}
.a11y-switch{
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  flex-shrink: 0;
  background: var(--steel);
  transition: background 200ms var(--ease-out);
}
.a11y-switch-knob{
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 1px 1px rgba(0,0,0,0.25);
  transition: transform 200ms var(--ease-out);
}
.a11y-toggle-row[aria-pressed="true"] .a11y-switch{ background: var(--accent); }
.a11y-toggle-row[aria-pressed="true"] .a11y-switch-knob{ transform: translateX(-16px); }

.a11y-reset{
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms var(--ease-out);
}
.a11y-reset:hover{ background: var(--border); }

@media (max-width: 560px){
  .a11y-widget{ right: 16px; bottom: 16px; }
}

/* =========================================================
   ACCESSIBILITY STATE CLASSES (html.*)
   ========================================================= */
html.a11y-font-lg{ font-size: 107.5%; }
html.a11y-font-xl{ font-size: 116%; }

html.a11y-underline a:not(.btn):not(.a11y-toggle):not(.brand){
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.a11y-spacing body{ letter-spacing: 0.03em; line-height: 1.9; }
html.a11y-spacing p{ margin-bottom: 1.4em; }

html.a11y-grayscale{ filter: grayscale(1); }

html.a11y-stop-motion *, html.a11y-stop-motion *::before, html.a11y-stop-motion *::after{
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-contrast{
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #000000;
  --text-muted: #000000;
  --accent: #0b3324;
  --accent-dark: #051510;
  --accent-light: #0b3324;
  --copper: #6b3d17;
  --copper-text: #5a3212;
  --border: #000000;
  --steel: #000000;
}
html.a11y-contrast .site-header{ border-bottom-color: #000; }
html.a11y-contrast .service-card{ border-style: solid; }
html.a11y-contrast .hc-hours,
html.a11y-contrast .site-footer{ background: #000000; }

/* =========================================================
   REDUCED MOTION - global safety net for the CSS-only hero entrance
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .reveal-line span, [data-hero-el]{ animation: none !important; opacity: 1 !important; transform: none !important; }
  /* stitch-divider paths, service/gallery/review cards etc. are never
     hidden by CSS in the first place - script.js only hides them via
     gsap.set() at runtime, and it checks reduceMotion() before doing so,
     so there is nothing left to force-show here. */
}
html.a11y-stop-motion .reveal-line span, html.a11y-stop-motion [data-hero-el]{
  animation: none !important; opacity: 1 !important; transform: none !important;
}

/* =========================================================
   HERO ENTRANCE ANIMATION - pure CSS keyframes, no JS dependency.
   Purpose: signal the page is alive above the fold before any script
   (including GSAP) has had a chance to load/parse/execute. Fabric-like
   soft easing, not a mechanical linear/ease-out snap.
   ========================================================= */
@keyframes tf-rise{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes tf-line-up{
  from{ transform: translateY(110%); }
  to{ transform: translateY(0); }
}
@keyframes tf-scale-in{
  from{ opacity: 0; transform: scale(0.96) translateY(14px); }
  to{ opacity: 1; transform: scale(1) translateY(0); }
}

.reveal-line span{
  animation: tf-line-up 850ms var(--ease-fabric) both;
}
.hero-title .reveal-line:nth-child(1) span{ animation-delay: 120ms; }
.hero-title .reveal-line:nth-child(2) span{ animation-delay: 260ms; }

[data-hero-el]{ animation: tf-rise 750ms var(--ease-fabric) both; }
.eyebrow[data-hero-el]{ animation-delay: 60ms; }
.hero-sub[data-hero-el]{ animation-delay: 420ms; }
.hero-rating-chip[data-hero-el]{ animation-delay: 540ms; }
.hero-actions[data-hero-el]{ animation-delay: 620ms; }
.hero-media.reveal-scale{ animation: tf-scale-in 900ms var(--ease-fabric) both; animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce){
  .reveal-line span, [data-hero-el], .hero-media.reveal-scale{ animation: none; opacity: 1; transform: none; }
}

/* =========================================================
   LEGAL PAGES (accessibility.html / privacy.html)
   share this stylesheet + header/footer markup, with the lighter
   single-fade motion instead of the GSAP scroll choreography above.
   ========================================================= */
.legal-header{
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.legal-header-inner{
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-main{ padding: 60px 0 96px; }
.legal-content{ max-width: 68ch; margin: 0 auto; padding: 0 24px; }
.legal-content h1{ font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 24px; }
.legal-content h2{ font-family: var(--font-heading); font-weight: 600; font-size: 1.28rem; margin: 34px 0 12px; color: var(--accent); }
.legal-content p{ color: var(--text-muted); margin: 0 0 16px; }
.legal-content ul{ color: var(--text-muted); padding-right: 22px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; list-style: disc; }
.legal-content li{ margin-inline-start: 4px; }
.legal-content strong{ color: var(--text); }
.legal-updated{ color: var(--text-muted); font-size: 0.85rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }

.legal-fade{ opacity: 0; transition: opacity 500ms var(--ease-out); }
.legal-fade.is-visible{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .legal-fade{ opacity: 1; transition: none; }
}
