/* ============================================================
   DANIELLA LEVIN — Holistic Therapist Website
   Palette: warm beige, amber yellow, plant green
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --beige:             #F5EFE4;
  --beige-dark:        #EDE3D2;
  --beige-deeper:      #D9CBAF;
  --amber:             #C8933A;   /* decorative only — fails AA contrast */
  --amber-accessible:  #956526;   /* 4.91:1 on white — use for interactive elements */
  --amber-text:        #7A5C1E;   /* 6.07:1 on white — use for text links on light bg */
  --amber-light:       #E8B05A;
  --amber-pale:        #FBF0D9;
  --green:             #5A7047;
  --green-light:       #7A9462;
  --green-pale:        #EAF0E5;
  --brown:             #6B4F2E;
  --text:              #3A2E22;
  --text-soft:         #6B5E4E;
  --text-muted:        #756651;   /* was #9C8C78 — darkened to 4.86:1 on beige (AA) */
  --white:             #FEFCF8;
  --shadow-sm:    0 2px 12px rgba(90,60,20,0.08);
  --shadow-md:    0 6px 32px rgba(90,60,20,0.12);
  --shadow-lg:    0 16px 56px rgba(90,60,20,0.16);
  --radius:       14px;
  --radius-lg:    24px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   ACCESSIBILITY — Skip link, Screen-reader utilities, Focus
   ============================================================ */

/* Skip to main content — hidden until focused */
.skip-to-content {
  position: absolute;
  top: -999px;
  right: 0;
  padding: 0.75rem 1.5rem;
  background: var(--amber-accessible);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Global visible focus ring — applies to keyboard navigation only */
:focus-visible {
  outline: 3px solid var(--amber-accessible);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove focus ring for mouse users where browser supports it */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--text);
  direction: rtl;
  text-align: right;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: auto;
  padding: 0 2rem;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Heebo', sans-serif;
  line-height: 1.25;
  color: var(--text);
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 147, 58, 0.15);
  transition: box-shadow var(--transition);
}
.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo {
  display: block;
  height: 76px;
  max-height: 76px;
  width: auto;
  max-width: min(630px, calc(68vw * 1.5), 92vw);
  object-fit: contain;
}
/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.btn-cta {
  background: var(--amber-accessible);
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(200,147,58,0.3);
}
.btn-cta:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,112,71,0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--beige);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--beige-deeper);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-soft);
}
.mobile-menu a:hover { color: var(--amber-accessible); }
.btn-cta-mobile {
  display: inline-block;
  background: var(--amber-accessible);
  color: var(--white) !important;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s ease forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(42, 30, 10, 0.72) 0%,
    rgba(42, 30, 10, 0.45) 50%,
    rgba(42, 30, 10, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-top: 92px; /* header height */
}

.hero-tag {
  display: inline-block;
  background: rgba(200, 147, 58, 0.25);
  border: 1px solid rgba(200, 147, 58, 0.5);
  color: var(--amber-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.4rem;
  letter-spacing: 0.03em;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.btn-hero {
  background: var(--amber-accessible);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200,147,58,0.45);
}
.btn-hero:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200,147,58,0.5);
}

.btn-hero-ghost {
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-3px);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1.5px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  margin: auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}

/* ── Animate utilities ── */
.animate-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.55s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.section-tag.centered { display: block; text-align: center; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.section-title.centered { text-align: center; }

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section {
  background: var(--amber-pale);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deco-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--beige-deeper));
  opacity: 0.7;
}
.deco-leaf {
  position: absolute;
  font-size: 3rem;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
}

.intro-text p {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.btn-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber-text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}
.btn-text:hover {
  color: var(--green);
  gap: 0.6rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  padding: 6rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--beige);
  border: 1px solid var(--beige-deeper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--amber-pale);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
  line-height: 1;
}
.service-card h4 {
  font-family: 'Heebo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--green-pale);
  padding: 6rem 0;
}

.carousel-wrap {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.carousel {
  position: relative;
  min-height: 180px;
}

.testimonial {
  display: none;
  padding: 1rem 2rem;
  animation: fadeIn 0.5s ease;
}
.testimonial.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--green-light);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.testimonial p {
  font-family: 'Heebo', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.t-name {
  font-size: 0.88rem;
  color: var(--brown); /* --green is 4.28:1 on green-pale; --brown is 6.58:1 — passes AA */
  font-weight: 600;
  letter-spacing: 0.05em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.carousel-btn {
  background: var(--white);
  border: 1.5px solid var(--beige-deeper);
  color: var(--text-soft);
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--amber-accessible);
  color: var(--white);
  border-color: var(--amber-accessible);
}

.carousel-dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--beige-deeper);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
/* carousel dots as buttons — reset default button styles */
.dot {
  appearance: none;
  border: none;
  cursor: pointer;
}
.dot.active {
  background: var(--amber-accessible);
  transform: scale(1.25);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--brown) 0%, var(--green) 100%);
  padding: 4.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text h3 {
  font-family: 'Heebo', sans-serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.cta-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}

.btn-cta-large {
  background: var(--amber-accessible);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2.4rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-cta-large:hover {
  background: var(--green-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--beige-dark);
  padding: 3rem 0;
  border-top: 1px solid var(--beige-deeper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--amber-accessible); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .intro-deco { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.2rem; }

  .main-nav { display: none; }
  .hamburger { display: flex; }

  .site-logo { height: 66px; max-height: 66px; max-width: min(540px, calc(62vw * 1.5), 92vw); }

  .hero { min-height: 100svh; }
  .hero-content { padding-top: 92px; }
  .hero-desc br { display: none; }

  .intro-section,
  .services-section,
  .testimonials-section { padding: 4rem 0; }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 2rem auto 0;
  }

  .carousel-wrap { padding: 0 0.5rem; }
  .testimonial { padding: 1rem 0.5rem; }
  .testimonial p { font-size: 1rem; }
  .carousel { min-height: 160px; }

  .cta-banner { padding: 3rem 0; }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-text h3 { font-size: 1.6rem; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav { justify-content: center; }
}

/* ============================================================
   REDUCED MOTION — respect user OS preference (WCAG 2.2.2)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .header-inner { height: 78px; }
  .site-logo { height: 60px; max-height: 60px; max-width: min(450px, calc(76vw * 1.5), 92vw); }
  .hero-content { padding-top: 78px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-hero, .btn-hero-ghost {
    text-align: center;
    width: 100%;
  }

  .service-card { padding: 1.5rem 1.2rem; }

  .btn-cta-large { width: 100%; text-align: center; }
}
