/* ==========================================
   DESIGN SYSTEM — דנית חולי
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Assistant:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --teal:         #3A6868;
  --teal-light:   #4D8282;
  --teal-pale:    #EBF2F2;
  --gold:         #C4A96D;
  --gold-light:   #D4BA84;
  --gold-pale:    #F5EED8;
  --cream:        #E8E3CC;
  --cream-light:  #F5F2E8;
  --sky-blue:     #8FBEC3;
  --berry:        #B53268;
  --berry-dark:   #8E2451;
  --gray-light:   #D8D8DC;
  --gray-mid:     #999;
  --dark:         #3C3C3C;
  --white:        #FFFFFF;

  /* Semantic Roles */
  --bg:           #F8F5F0;
  --bg-alt:       #F0EDE5;
  --bg-dark:      #2A3D3D;
  --primary:      var(--teal);
  --accent:       var(--gold);
  --cta:          var(--berry);
  --text:         #2E2E2E;
  --text-soft:    #666;
  --border:       #E0DDD5;

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

  /* Spacing Scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --nav-h: 80px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 2px 12px rgba(58,104,104,0.08);
  --sh-md: 0 8px 32px rgba(58,104,104,0.12);
  --sh-lg: 0 20px 60px rgba(58,104,104,0.16);
  --sh-card: 0 4px 24px rgba(0,0,0,0.07);

  /* Easing */
  --ease: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-fast: 0.22s ease;
  --ease-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

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

/* Slide-in animations must not widen the page on mobile. Clip per section, not on html/body:
   clipping the root turns body into the scroll container and breaks the sticky hero. */
section,
footer {
  overflow-x: clip;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-b);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.section {
  padding: var(--s7) 0;
}

.section-sm {
  padding: var(--s5) 0;
}

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

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.8);
}

.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-teal h1,
.section-teal h2,
.section-teal h3 {
  color: var(--white);
}

.section-teal p {
  color: rgba(255,255,255,0.85);
}

.section-cream {
  background: var(--cream-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

/* Custom gaps for specific grids */
.healing-circle-grid,
.approach-healing-grid { gap: 4rem; }
.contact-grid,
.service-detail-grid   { gap: 5rem; }

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

.text-center { text-align: center; }
.text-right  { text-align: right; }

.section-label {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}

.section-title {
  margin-bottom: var(--s2);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto var(--s5);
  line-height: 1.85;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--r-pill);
  margin: var(--s3) 0;
}

.divider-center {
  margin: var(--s3) auto;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 14px 32px;
  border-radius: var(--r-pill);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(58,104,104,0.35);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58,104,104,0.45);
}

.btn-accent {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(196,169,109,0.4);
}

.btn-accent:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,169,109,0.5);
}

.btn-cta {
  background: var(--berry);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(181,50,104,0.35);
}

.btn-cta:hover {
  background: var(--berry-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(181,50,104,0.45);
}

.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.1rem;
}

/* ==========================================
   SECTION HEADER
   ========================================== */

.section-header {
  margin-bottom: var(--s6);
}

.section-header.center {
  text-align: center;
}

.section-header.center .divider {
  margin: var(--s2) auto var(--s3);
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: var(--r-pill);
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
  background: var(--teal-pale);
  color: var(--teal);
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
  }
  .section { padding: var(--s6) 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 var(--s3); }
  .healing-circle-grid,
  .approach-healing-grid,
  .contact-grid,
  .service-detail-grid { gap: var(--s5); }
  /* On mobile: contact form stacks — form comes first */
  .contact-grid .reveal-left  { order: -1; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
}
