/* ============================================================
   Styles - CBT Clinic | Natali Levi Harel
   ============================================================

   File map:
     1. Variables (colors, spacing, fonts)   <- most edits belong here
     2. Base reset
     3. Utilities (container, buttons, headings, lists)
     4. Site header
     5. Hero
     6. Sections, in page order
     7. Footer + floating button
     8. Animations
     9. Responsive (small screens)

   Tip: every color is defined once in :root below.
   Changing one there updates the entire site at once.

   RTL note: this site is right-to-left. Logical properties
   (inset-inline-start, margin-inline, padding-inline) flip automatically
   with the writing direction. `transform` does NOT - it always works in
   physical coordinates. Mixing the two on the same element is the source
   of most RTL layout bugs; see the comments at .nav and .triangle__node--top.
   ============================================================ */


/* ------------------------------------------------------------
   1. Variables
   ------------------------------------------------------------ */
:root {
  /* --- Palette, sampled from the printed business card --- */
  --sage-light: #D2E0CE;    /* light sage - primary background */
  --sage-lighter: #E4EDE2;  /* lighter variant for soft backgrounds */
  --sage: #7E9B77;          /* olive - accents, borders */
  --sage-dark: #4A6B45;     /* mid green - links, icons */
  --green-deep: #2F4A2C;    /* deepest green - headings and text */
  --cream: #F5EDD6;         /* cream - alternating section backgrounds */
  --cream-light: #FBF7EC;   /* light cream - card backgrounds */
  /* Two accents with different jobs, not two shades of the same idea:

     --accent is the sky-and-water hue from the portrait photo (average #99b8c6)
     darkened until white text on it clears WCAG AA - it lands at 6.38:1. It sits
     between the sage and blue, so it reads as a second voice in the palette
     rather than a clash. Everything that needs emphasis on a LIGHT background
     uses this: the CTA, the callout bar, the contact icons.

     Alternatives that were measured and also pass, if this ever needs swapping:
       #3F6478 lake blue      6.35:1
       #2F4A2C deep green     9.83:1
       #4A6B45 sage dark      6.03:1
       #A65F42 clay/terracotta 4.84:1

     --orange is the brighter business-card orange. It only appears on DARK
     backgrounds and on the decorative berries, where it needs the extra
     luminance to register at all. On white it reads at 2.37:1 - too low for
     text or buttons, which is why the CTA never uses it. */
  --accent: #40656B;
  --accent-dark: #33535A;   /* hover state */
  --orange: #E8963C;
  --white: #FFFFFF;
  --text: #33422F;          /* body text */
  --text-soft: #5D6E58;     /* secondary, less prominent text */

  /* --- Typography --- */
  --font: 'Heebo', 'Arial Hebrew', Arial, sans-serif;

  /* Secular One is a display face for headings. It has exactly one weight,
     so anything using it must stay at font-weight 400 - see the h1/h2/h3 rule.
     Heebo is the fallback so a slow font load degrades to the body face
     rather than to a system serif. */
  --font-heading: 'Secular One', 'Heebo', 'Arial Hebrew', Arial, sans-serif;

  /* clamp(min, fluid, max) - type scales with viewport width,
     so there's no need for a media query per font size.

     Everything below headings runs off these four steps rather than each
     component hard-coding its own rem value. To make body copy bigger or
     smaller across the whole site, change --fs-body and the rest keeps its
     relative proportion. Values in the comments are min - max in pixels. */
  --fs-h1: clamp(2.1rem, 5vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3.5vw, 2.6rem);

  --fs-lead:  clamp(1.4rem, 2.1vw, 1.75rem);    /* 22 - 28  hero lead, pull quote */
  --fs-body:  clamp(1.25rem, 1.6vw, 1.5rem);    /* 20 - 24  default running text */
  --fs-small: clamp(1.15rem, 1.4vw, 1.32rem);   /* 18 - 21  nav, buttons, captions */
  --fs-micro: clamp(1rem, 1.15vw, 1.15rem);     /* 16 - 18  eyebrows, fine print */

  /* --- Spacing and shape --- */
  /* The design is rectangular by choice. These two stay as variables so the
     whole site can be softened from one place - set them to e.g. 4px and 8px
     and every card, button and photo rounds off together.
     The one deliberate exception is the hero portrait, whose arch is
     hard-coded at .hero__image img. */
  --radius: 0;             /* cards, buttons, callouts */
  --radius-lg: 0;          /* images, map */
  --shadow: 0 4px 20px rgba(47, 74, 44, 0.08);
  --shadow-lg: 0 18px 45px rgba(47, 74, 44, 0.14);
  --section-pad: clamp(4rem, 9vw, 7.5rem);   /* vertical rhythm between sections */
  --container: 1180px;     /* max content width */
  --transition: 0.3s ease;
}


/* ------------------------------------------------------------
   2. Base reset
   ------------------------------------------------------------ */

/* border-box makes padding and border count inside the width you set.
   Without it, width math becomes a nightmare. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;      /* smooth scroll for in-page nav links */
  scroll-padding-top: 90px;     /* keeps the sticky header off the target heading */
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* guards against stray horizontal scroll */
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* font-weight 400 is deliberate, not an oversight: Secular One ships only
   that weight. Requesting 700 makes the browser synthesise a fake bold,
   which thickens the strokes unevenly and looks blurry on Hebrew. */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--green-deep);
}


/* ------------------------------------------------------------
   3. Utilities
   ------------------------------------------------------------ */

/* Wraps content and caps its width, centered */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;    /* inline = left + right, direction-aware */
}

.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-pad); }

/* Background variants that visually separate one section from the next */
.section--cream { background: var(--cream); }
.section--sage  { background: var(--sage-lighter); }
.section--dark  { background: var(--green-deep); }

/* Inside a dark section, flip the text colors */
.section--dark { color: var(--cream); }
.section--dark .section__title { color: var(--white); }
.section--dark .section__eyebrow { color: var(--orange); }
.section--dark .section__intro { color: var(--sage-light); }

/* Small label above the main heading */
.section__eyebrow {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.section__intro {
  color: var(--text-soft);
  max-width: 100ch;   /* ch = width of one character. ~60 per line reads well. */
}

/* Centered section heading block */
.section__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section__head .section__intro { margin-inline: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--fs-small);
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn__icon { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }

/* The WhatsApp CTA. Sampled from the lake and sky behind the portrait,
   so the button belongs to the photo it sits next to. */
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(64, 101, 107, 0.3);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(64, 101, 107, 0.4);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-deep);
  border-color: var(--sage);
}
.btn--secondary:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Checkmark list --- */
.checklist { display: grid; gap: 0.9rem; }

.checklist li {
  position: relative;
  padding-inline-start: 2.2rem;   /* room for the check bullet, right side in RTL */
  color: var(--text-soft);

  /* If an item is long enough to wrap, split it into two even lines rather
     than letting the browser fill line one and orphan a single word on
     line two. Doesn't prevent wrapping - just makes it look intentional.
     Silently ignored by browsers that don't support it. */
  text-wrap: balance;
}

/* The checkmark is pure CSS - no image file needed */
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius);
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}

/* Two-column variant for longer lists.

   The columns are 1fr each, so both are sized by the container and not by
   their contents - which means the single longest item decides whether
   anything wraps. The longest one here is "קשיים רגשיים המשפיעים על התפקוד
   היומיומי", which needs 473px including the 35px bullet gutter.

   max-width 1080 gives each column (1080 - 40) / 2 = 520px, so that item
   clears by roughly 47px. At 1000px the margin was 7px, which is not a
   margin - a slightly wider font on another OS or one more word in the copy
   would have pushed it onto a second line.

   The count is a hard 2 rather than repeat(auto-fit, minmax(310px, 1fr)).
   auto-fit packs in as many columns as will fit, so widening the list to
   1080px let it squeeze in a THIRD 333px column and wrapped five items
   instead of one. The phone breakpoint below drops this to a single column,
   which is the only other layout this list needs. */
.checklist--grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  max-width: 1080px;
  margin-inline: auto;
}

/* --- Justified body copy ---

   Justify earns its keep only when a paragraph is long enough to wrap several
   times over a controlled measure. Then the flush left AND right edges echo
   the rectangular frames and the page reads as a set of clean blocks.

   So it is applied to exactly three places - the multi-paragraph prose in
   About, What-is-CBT and What-therapy-looks-like - and deliberately NOT to:
     - centered text (.section__intro, .welcome, .hero__lead) - justifying
       centered copy is contradictory, and these run 1-3 lines anyway
     - list items and the pull quote - too short, every line would be
       stretched into a different rhythm
     - headings - large type magnifies the uneven word gaps

   Hebrew has no hyphenation to fall back on, so a narrow measure turns the
   word spacing into rivers. The phone breakpoint at the bottom of this file
   switches these back to start-aligned for that reason. */
.justify-text p {
  text-align: justify;
  max-width: 62ch;    /* caps the measure so justification stays even */
}

/* --- Running text inside a dark section --- */
.prose p + p { margin-top: 1.1rem; }

/* .prose lives in a centered narrow container, so the capped measure
   should be centered too rather than hugging the start edge. */
.prose.justify-text p { margin-inline: auto; }


/* ------------------------------------------------------------
   4. Site header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;      /* stays pinned to the top while scrolling */
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

/* Important: the background and blur live on ::before, not on the header
   itself. An element with backdrop-filter (or filter / transform) becomes a
   containing block, and any position:fixed descendant then resolves against
   IT instead of the viewport. That was breaking the mobile nav panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 155, 119, 0.35);
  transition: background var(--transition);
}

/* This class is added by JS after 40px of scrolling.
   A hard rule rather than a soft shadow, to match the rectangular language. */
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--sage);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo__name { font-weight: 900; font-size: var(--fs-body); color: var(--green-deep); }
.logo__title { font-size: var(--fs-micro); color: var(--sage-dark); font-weight: 500; }

.nav__list { display: flex; align-items: center; gap: 1.5rem; }

.nav__list a {
  position: relative;
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--text);
  padding-block: 0.35rem;
  transition: var(--transition);
  white-space: nowrap;
}

/* Underline that grows in on hover */
.nav__list a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width var(--transition);
}
.nav__list a:not(.nav__cta):hover::after { width: 100%; }
.nav__list a:hover { color: var(--sage-dark); }

/* Same accent as the hero CTA, so every "contact me" action on the page
   shares one colour and the visitor learns it means action. */
.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: var(--radius);
}
.nav__cta:hover { background: var(--accent-dark); }

/* Hamburger button - three bars. Hidden on desktop. */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--green-deep);
  transition: var(--transition);
}

/* When the menu is open the bars morph into an X */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ------------------------------------------------------------
   5. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--sage-lighter) 55%, var(--cream-light) 100%);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.hero__inner {
  position: relative;
  z-index: 2;                     /* above the background ornament */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.65);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.3rem;
}

.hero__title {
  font-size: var(--fs-h1);
}

/* Sits inside the h1, so it would inherit Secular One and its single weight.
   Sent back to Heebo: this is spaced-out Latin, which the body face sets
   better, and the 500 weight here is real rather than synthesised. */
.hero__title-sub {
  font-family: var(--font);
  display: block;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  margin-top: 0.4rem;
}

.hero__role {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--sage-dark);
  margin-top: 0.9rem;
}

/* The opening line - second largest type after the name, because
   it's the sentence that actually speaks to the visitor. */
.hero__lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.6;
  color: var(--green-deep);
  max-width: 40ch;
  margin-block: 1.6rem 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Portrait --- */
.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;            /* crops any source photo to one ratio */
  object-fit: cover;              /* fills the frame without distorting */
  /* The one curve left on the site. Hard-coded rather than using --radius
     so that flattening everything else doesn't flatten the portrait too.
     The bottom corners are square, so the arch sits on a rectangle. */
  border-radius: 190px 190px 0 0;
  box-shadow: var(--shadow-lg);
  border: 7px solid var(--white);
}

/* --- Leaf and berry ornament --- */
/* Sits in the bottom corner, partly off-canvas, like the business card.
   inset-inline-start resolves to the RIGHT edge in RTL. */
.hero__decor {
  position: absolute;
  bottom: -110px;
  inset-inline-start: -100px;
  width: clamp(300px, 36vw, 480px);
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;           /* never swallows clicks meant for content */
}
.decor-blob  { fill: var(--sage); opacity: 0.55; }
.decor-leaf  { fill: none; stroke: var(--cream); stroke-width: 5; stroke-linecap: round; }
.decor-berry { fill: var(--accent); opacity: 0.9; }


/* ------------------------------------------------------------
   6a. Welcome
   ------------------------------------------------------------ */
.welcome__inner { text-align: center; }

.welcome__body {
  font-size: var(--fs-body);
  color: var(--text-soft);
}

/* The key line - larger, darker, with generous space around it */
.welcome__highlight {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--green-deep);
  margin-block: 2rem;
  position: relative;
  padding-block: 2rem;
}

/* Decorative rules above and below the line */
.welcome__highlight::before,
.welcome__highlight::after {
  content: "";
  position: absolute;
  inset-inline: 50%;
  width: 60px;
  height: 2px;
  background: var(--sage);
  transform: translateX(50%);
  opacity: 0.5;
}
.welcome__highlight::before { top: 0; }
.welcome__highlight::after { bottom: 0; }


/* ------------------------------------------------------------
   6b. What I can help with
   ------------------------------------------------------------ */

/* Callout box for parent guidance */
.note {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  max-width: 950px;
  margin: 3rem auto 0;
  padding: 1.8rem 2rem;
  background: var(--cream-light);
  border: 1px solid rgba(126, 155, 119, 0.3);
  border-inline-start: 5px solid var(--accent);   /* accent bar, right side in RTL */
  border-radius: var(--radius);
}

.note__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--sage-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 0.3rem;
}
.note p { color: var(--text-soft); }
.note strong { color: var(--green-deep); }


/* ------------------------------------------------------------
   6c. What is CBT + the triangle diagram
   ------------------------------------------------------------ */
.cbt__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.cbt__text p { color: var(--text-soft); }
.cbt__text p + p { margin-top: 1rem; }

.cbt__triangle {
  position: relative;
  aspect-ratio: 300 / 260;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

/* The lines connecting the three nodes */
.triangle__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.triangle__lines path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 7 7;    /* dashed */
  opacity: 0.65;
}

.triangle__node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 2px solid var(--sage);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--green-deep);
  z-index: 2;
}

/* Positioning the three vertices.
   The top node deliberately uses physical `left` rather than
   inset-inline-start: transform does not flip in RTL, so mixing the two
   would push the circle sideways instead of centering it.
   The bottom two use logical properties - no transform involved there. */
.triangle__node--top   { top: 0;    left: 50%; transform: translateX(-50%); }
.triangle__node--right { bottom: 0; inset-inline-start: 0; }
.triangle__node--left  { bottom: 0; inset-inline-end: 0; }


/* ------------------------------------------------------------
   6d. Why CBT
   ------------------------------------------------------------ */
.why__outro {
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(126, 155, 119, 0.35);
  text-align: center;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--green-deep);
}


/* ------------------------------------------------------------
   6e. About
   ------------------------------------------------------------ */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.about__text p { color: var(--text-soft); }
.about__text p + p { margin-top: 1rem; }

/* Pull quote */
.quote {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  background: var(--white);
  border-inline-start: 5px solid var(--sage);
  border-radius: var(--radius);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.7;
  color: var(--green-deep);
  box-shadow: var(--shadow);
}


/* ------------------------------------------------------------
   6f. What therapy looks like
   ------------------------------------------------------------ */
.process__closing {
  margin-top: 2.5rem;
  padding: 1.8rem;
  text-align: center;
  font-size: var(--fs-body);
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}
.process__closing strong { color: var(--orange); font-size: var(--fs-lead); }


/* ------------------------------------------------------------
   6g. Clinic gallery
   ------------------------------------------------------------ */

/* auto-fit + minmax lets the column count adapt to the viewport on its own.
   To add a third photo, just add a <figure> in the HTML - no CSS change. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.gallery__item {
  overflow: hidden;               /* clips the image zoom to the rounded corners */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.04); }


/* ------------------------------------------------------------
   6h. Contact
   ------------------------------------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.contact__card {
  display: grid;
  gap: 0.3rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(126, 155, 119, 0.3);
  text-align: center;
  justify-items: center;
  transition: var(--transition);
}
.contact__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact__card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.6rem;
}
.contact__card strong { color: var(--green-deep); font-size: var(--fs-body); }
.contact__card span { color: var(--text-soft); font-size: var(--fs-small); }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;       /* gives the nested iframe rounded corners */
  box-shadow: var(--shadow-lg);
  line-height: 0;
}


/* ------------------------------------------------------------
   7. Footer + floating button
   ------------------------------------------------------------ */
.site-footer {
  background: var(--green-deep);
  color: var(--sage-light);
  padding-block: 3rem;
  text-align: center;
  font-size: var(--fs-small);
}
.site-footer__inner { display: grid; gap: 0.4rem; }
.site-footer__brand { font-weight: 900; color: var(--white); font-size: var(--fs-lead); }
.site-footer__note {
  font-size: var(--fs-micro);
  max-width: 55ch;
  margin-inline: auto;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.85;
}
.site-footer__copy { font-size: var(--fs-micro); opacity: 0.6; margin-top: 0.6rem; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;   /* left corner in RTL */
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  /* Matches the hero CTA rather than WhatsApp's brand green - that green
     fights the sage palette, and the icon already says "WhatsApp". */
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(64, 101, 107, 0.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.09); }
.whatsapp-float svg { width: 31px; height: 31px; fill: var(--white); }


/* ------------------------------------------------------------
   8. Animations
   ------------------------------------------------------------ */

/* Elements tagged [data-reveal] start transparent and shifted down.
   JS adds .is-visible once they scroll into view. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Respect the OS-level setting - if the user asked for less motion, honor it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ------------------------------------------------------------
   9. Responsive
   Everything below applies only under the stated width.
   ------------------------------------------------------------ */

/* --- Tablet ---
   The breakpoint is 1060 rather than a rounder 980 because that is where the
   six nav links plus the logo stop fitting on one line at the current type
   size. If you shrink --fs-small or drop a nav item, this can come back down. */
@media (max-width: 1060px) {

  /* The nav becomes a slide-in side panel */
  .nav-toggle { display: flex; }

  /* The panel is anchored to whichever side the hamburger sits on.
     inset-inline-end resolves to the LEFT edge of the screen in RTL.
     Note: transform always works in physical coordinates and does not flip
     in RTL, so hiding it means a negative translateX (leftwards) - which
     matches the side we anchored to. */
  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    inset-inline-start: auto;
    width: min(78vw, 320px);
    background: var(--white);
    box-shadow: 8px 0 30px rgba(47, 74, 44, 0.15);
    transform: translateX(-100%);   /* parked off-screen */
    transition: transform var(--transition);
    padding-top: 6rem;
    overflow-y: auto;
    z-index: 105;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-inline: 2rem;
  }
  .nav__list li { width: 100%; }
  .nav__list a { display: block; width: 100%; padding-block: 0.8rem; font-size: var(--fs-body); }
  .nav__cta { text-align: center; margin-top: 1rem; }

  /* Two-column layouts collapse to one */
  .hero__inner,
  .about__inner,
  .cbt__inner {
    grid-template-columns: 1fr;
  }

  /* Photo moves above the text */
  .hero__image { order: -1; max-width: 320px; margin-inline: auto; }
  .about__image { max-width: 420px; margin-inline: auto; }

  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }

  /* Lists stay start-aligned even when the section around them is centered */
  .checklist { text-align: start; max-width: 620px; margin-inline: auto; }
  .checklist--grid { grid-template-columns: 1fr; }

  .note { flex-direction: column; gap: 0.8rem; }
}

/* --- Phone --- */
@media (max-width: 620px) {

  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }

  .cbt__triangle { max-width: 300px; }
  .triangle__node { font-size: var(--fs-micro); }

  .note { padding: 1.4rem 1.3rem; }
  .quote { padding: 1.2rem 1.3rem; }

  /* Too narrow to justify. Hebrew can't hyphenate, so at this width the
     browser stretches word gaps into visible rivers. Ragged edge is better. */
  .justify-text p { text-align: start; }

  /* On narrow screens the logo subtitle crowds the hamburger.
     The name alone is enough. */
  .logo__title { display: none; }
}
