/* ========================================
   יעל דהן - דיאטנית קלינית
   Global Stylesheet - Claymorphism & Soft UI
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
  --bg-primary: #FDEFF4;
  --bg-secondary: #FFF5F9;
  --color-mint: #D4F0F0;
  --color-mint-dark: #A8DCDC;
  --color-blue: #D6EAF8;
  --color-blue-dark: #A8C8E8;
  --color-pink: #F9D0E0;
  --color-pink-dark: #E8A8C0;
  --text-dark: #4A4A5A;
  --text-medium: #6B6B80;
  --text-light: #9898B0;
  --color-white: #FFFFFF;
  --footer-bg: #3A3A4A;
  --accent-pink: #E8709A;
  --accent-teal: #5BB8B8;
  --shadow-clay:
    inset 0 4px 10px rgba(255,255,255,0.75),
    inset 0 -4px 10px rgba(0,0,0,0.07),
    0 10px 40px rgba(180,140,160,0.18);
  --shadow-clay-hover:
    inset 0 -4px 10px rgba(255,255,255,0.75),
    inset 0 4px 10px rgba(0,0,0,0.1),
    0 3px 12px rgba(180,140,160,0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Varela Round', sans-serif;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--text-medium); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

ul { list-style: none; }

/* === Animations === */
@keyframes levitate {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes levitate-slow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes levitate-fast {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float-blob {
  0%, 100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  25%       { border-radius: 54% 46% 38% 62% / 44% 56% 44% 56%; }
  50%       { border-radius: 46% 54% 54% 46% / 40% 60% 40% 60%; }
  75%       { border-radius: 60% 40% 46% 54% / 56% 44% 56% 44%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Clay Card === */
.clay-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-clay);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
  padding: 2rem;
}

.clay-card:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: translateY(2px);
}

.clay-float {
  animation: levitate 4s ease-in-out infinite;
}

.clay-float:nth-child(2) { animation-duration: 4.5s; animation-delay: 0.5s; }
.clay-float:nth-child(3) { animation-duration: 5s; animation-delay: 1s; }

/* === Buttons === */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--accent-pink) 0%, #D45C88 100%);
  color: white;
  font-family: 'Varela Round', sans-serif;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.3),
    inset 0 -2px 6px rgba(0,0,0,0.15),
    0 8px 24px rgba(232,112,154,0.4);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary:hover {
  box-shadow:
    inset 0 -2px 6px rgba(255,255,255,0.3),
    inset 0 2px 6px rgba(0,0,0,0.2),
    0 2px 8px rgba(232,112,154,0.25);
  transform: translateY(2px);
  color: white;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-mint);
  color: var(--text-dark);
  font-family: 'Varela Round', sans-serif;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.7),
    inset 0 -2px 6px rgba(0,0,0,0.06),
    0 6px 20px rgba(91,184,184,0.2);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-clay-hover);
  transform: translateY(2px);
}

/* === Header / Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 239, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding: 0.75rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: 'Varela Round', sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-mint);
  color: var(--text-dark);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.7),
    inset 0 -2px 5px rgba(0,0,0,0.05);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-pink), #D45C88);
  color: white !important;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(232,112,154,0.35);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #D45C88, var(--accent-pink));
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* === Footer === */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.footer-blob-1 {
  width: 300px;
  height: 300px;
  background: var(--color-mint);
  top: -100px;
  left: 10%;
  animation: levitate-slow 6s ease-in-out infinite;
}

.footer-blob-2 {
  width: 200px;
  height: 200px;
  background: var(--color-blue);
  bottom: -60px;
  right: 15%;
  animation: levitate-slow 7s ease-in-out infinite reverse;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-brand .footer-logo {
  height: 52px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: 'Varela Round', sans-serif;
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-nav a:hover { color: white; }

.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
}

/* === Section Layout === */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: 'Varela Round', sans-serif;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  color: var(--accent-teal);
  margin-bottom: 1rem;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.7),
    inset 0 -2px 4px rgba(0,0,0,0.04);
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

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

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

/* === Page Banner === */
.page-banner {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
}

.page-banner p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
  position: relative;
  z-index: 1;
}

/* === Scroll animation helper === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

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

  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    box-shadow: -4px 0 40px rgba(0,0,0,0.12);
    z-index: 200;
    overflow-y: auto;
  }

  .site-nav.open { display: flex; }

  .nav-link { width: 100%; padding: 0.75rem 1rem; }

  .menu-toggle { display: flex; z-index: 300; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .section { padding: 4rem 1.2rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}
