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

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

body {
  font-family: 'Segoe UI', 'Arial Hebrew', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--cream);
  overflow-x: clip;
}

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;
}

/* ===== CSS VARIABLES ===== */
:root {
  --cta:         #AC9772;
  --cta-hover:   #9A8766;
  --dark:        #565656;
  --primary:     #61A39F;
  --primary-dk:  #4E8A86;
  --green-lt:    #C6E2BF;
  --blue-lt:     #C0D7D8;
  --olive:       #ADBC6F;
  --teal-soft:   #94BDBD;
  --peach:       #ECD4BE;
  --cream:       #FBF7F2;
  --white:       #FFFFFF;
  --border:      #E0D8CF;

  --radius:      16px;
  --shadow:      0 4px 24px rgba(97, 163, 159, .10);
  --trans:       .3s ease;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--dark);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.125rem;
  font-weight: 700;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-cta {
  background: var(--cta);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(172, 151, 114, .3);
}

.btn-cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 6px 20px rgba(172, 151, 114, .4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== SKIP LINK (RTL-SAFE) ===== */
.skip-nav {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-nav:focus {
  position: fixed;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ===== BELOW-FOLD PERFORMANCE ===== */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
