/* ═══════════════════════════════════════════════════════════
   YAEL DAHAN — Clinical Dietitian  |  תוכנית אפיון 8
   Swiss International Style · Full-Screen Immersive · Scroll Snap
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --black:    #000000;
  --white:    #FFFFFF;
  --accent:   #E0E0E0;
  --blue:     #4169E1;
  --blue-dim: #2a4ab8;
  --gray:     #888888;
  --line:     rgba(255,255,255,0.12);

  --font-main: "Helvetica Neue", "Arial", sans-serif;
  --ls:        -0.05em;

  --ease-dig: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

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

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
  background: var(--black);
  direction: rtl;
  font-size: 18px;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--white);
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
  background: var(--black);
  overflow-x: hidden;
}

/* ─── Fixed Background Container ─── */
.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--black);
  pointer-events: none;
}

/* ─── Scroll Sections ─── */
section {
  scroll-snap-align: start;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 0 3rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease-dig);
}

.nav-logo {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-dig);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease-dig);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em !important;
  transition: background 0.3s var(--ease-dig) !important;
}
.nav-cta:hover { background: var(--blue-dim) !important; }
.nav-cta::after { display: none !important; }

/* ─── Section Label (01, 02…) ─── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 1.4rem;
  display: block;
}

/* ─── Thin Dividers ─── */
.h-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}

/* ══════════════════════════════════════════════════
   SECTION 1 — HOME / HERO
   ══════════════════════════════════════════════════ */
#home {
  padding: 0;
  background: var(--black);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100%;
}

.hero-portrait {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.7s var(--ease-dig), transform 0.7s var(--ease-dig);
  display: block;
}

.hero-portrait:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.02);
}

/* Vertical text label on portrait */
.hero-portrait-label {
  position: absolute;
  bottom: 2.5rem;
  right: 1.5rem;
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 5rem 4rem 3rem;
  border-right: 1px solid var(--line);
}

.hero-content .section-label {
  margin-bottom: 2rem;
}

.hero-h1 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: var(--ls);
  color: var(--white);
  margin-bottom: 1.8rem;
}

.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-h2 {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--accent);
  letter-spacing: -0.02em;
  max-width: 480px;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-dig), transform 0.3s var(--ease-dig);
  align-self: flex-start;
  font-family: var(--font-main);
}
.btn-primary:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   SECTION 2 — ABOUT
   ══════════════════════════════════════════════════ */
#about {
  background: var(--black);
  border-top: 1px solid var(--line);
  align-items: stretch;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  height: 100vh;
  width: 100%;
}

.about-col {
  padding: 7rem 3rem 3rem;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: none;
}
.about-col::-webkit-scrollbar { display: none; }
.about-col:last-child { border-right: none; }

.about-col-number {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.6rem;
  display: block;
}

.about-col-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 200;
  letter-spacing: var(--ls);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 2rem;
}

.about-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.about-col p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* About images strip at bottom */
.about-images {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  opacity: 0.35;
  transition: opacity 0.5s;
}
.about-images:hover { opacity: 0.55; }

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s var(--ease-dig);
}
.about-images img:hover { filter: grayscale(0%); }

/* ══════════════════════════════════════════════════
   SECTION 3 — SERVICES
   ══════════════════════════════════════════════════ */
#services {
  background: var(--black);
  border-top: 1px solid var(--line);
  align-items: stretch;
}

.services-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding: 7rem 5rem 4rem;
  overflow-y: auto;
  scrollbar-width: none;
}
.services-inner::-webkit-scrollbar { display: none; }

.services-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.services-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 200;
  letter-spacing: var(--ls);
  color: var(--white);
}

.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table thead tr th {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  text-align: right;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid var(--line);
}
.services-table thead tr th:last-child { text-align: left; min-width: 140px; }

.services-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-dig);
  cursor: default;
}
.services-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}
.services-table tbody tr:hover .service-name { color: var(--white); }

.services-table td {
  padding: 1.6rem 0;
  vertical-align: top;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: var(--ls);
  transition: color 0.3s;
  min-width: 180px;
  padding-left: 2rem;
}

.service-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(224,224,224,0.65);
  letter-spacing: -0.01em;
  padding-right: 2rem;
  max-width: 540px;
}

.service-price {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--blue);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: left;
  min-width: 140px;
}

.service-price span {
  display: block;
  line-height: 1.8;
}

.services-footnote {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════════
   SECTION 4 — BLOG
   ══════════════════════════════════════════════════ */
#blog {
  background: var(--black);
  border-top: 1px solid var(--line);
  align-items: stretch;
}

.blog-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding: 7rem 5rem 4rem;
  justify-content: center;
}

.blog-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.blog-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 200;
  letter-spacing: var(--ls);
  color: var(--white);
}

.blog-list {
  list-style: none;
}

.blog-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-dig);
}

.blog-item:hover { background: rgba(255,255,255,0.03); }

.blog-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0;
  cursor: pointer;
  gap: 2rem;
}

.blog-item-num {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  font-weight: 400;
  min-width: 2rem;
  flex-shrink: 0;
}

.blog-item-title {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: var(--ls);
  transition: color 0.3s var(--ease-dig);
  flex: 1;
}
.blog-item:hover .blog-item-title { color: var(--white); }

.blog-item-arrow {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.3s, transform 0.3s var(--ease-dig);
  flex-shrink: 0;
}
.blog-item:hover .blog-item-arrow {
  color: var(--blue);
  transform: translateX(-6px);
}

/* Tooltip image on hover */
.blog-tooltip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 240px;
  height: 150px;
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-dig), transform 0.35s var(--ease-dig);
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.blog-tooltip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.blog-item:hover .blog-tooltip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ══════════════════════════════════════════════════
   SECTION 5 — CONTACT
   ══════════════════════════════════════════════════ */
#contact {
  background: var(--black);
  border-top: 1px solid var(--line);
  align-items: stretch;
  flex-direction: column;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  width: 100%;
}

.contact-info {
  padding: 7rem 5rem 4rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 200;
  letter-spacing: var(--ls);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: auto;
}

.contact-detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.contact-detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  min-width: 60px;
  padding-top: 0.1rem;
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-detail-value a:hover { color: var(--blue); }

/* Contact Form */
.contact-form-wrap {
  padding: 7rem 4rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 440px;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: var(--ls);
  padding: 0.5rem 0 0.7rem;
  outline: none;
  transition: border-color 0.3s var(--ease-dig);
  direction: rtl;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group textarea {
  resize: none;
  height: 70px;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--blue);
}

/* Focus line animation */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.4s var(--ease-dig);
}
.form-group:focus-within::after { width: 100%; }

.form-submit {
  margin-top: 1rem;
}

/* Footer */
.contact-footer {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.2rem 5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
}

.footer-logo {
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.footer-logo:hover { opacity: 0.8; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ══════════════════════════════════════════════════ */
@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes wa-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

.whatsapp-fab {
  position: fixed;
  bottom: 2.2rem;
  left: 2.2rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.2rem 0.75rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.3);
  animation: wa-float 3s ease-in-out infinite;
  transition: background 0.25s, box-shadow 0.25s, padding 0.3s;
  overflow: hidden;
}

.whatsapp-fab:hover {
  background: #1ebe5d;
  box-shadow: 0 10px 32px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.35);
}

.whatsapp-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.whatsapp-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  font-family: var(--font-main);
}

/* Pulsing ring behind the button */
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25D366;
  animation: wa-pulse-ring 2.4s ease-out infinite;
  z-index: 0;
}

/* ─── Scrollbar ─── */
html::-webkit-scrollbar { width: 3px; }
html::-webkit-scrollbar-track { background: var(--black); }
html::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ─── Selection ─── */
::selection { background: var(--blue); color: var(--white); }

/* ─── Fade-in on load ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content .section-label { animation: fadeUp 0.7s var(--ease-out) 0.1s both; }
.hero-h1                      { animation: fadeUp 0.7s var(--ease-out) 0.25s both; }
.hero-h2                      { animation: fadeUp 0.7s var(--ease-out) 0.4s both; }
.btn-primary                  { animation: fadeUp 0.7s var(--ease-out) 0.55s both; }

/* ─── Responsive Guard (min 900px for this layout) ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { display: none; }
  .hero-content { padding: 7rem 2.5rem 3rem; border-right: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-col { padding: 2rem; border-right: none; border-bottom: 1px solid var(--line); height: auto; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-info { padding: 6rem 2.5rem 2rem; border-left: none; }
  .contact-form-wrap { padding: 2rem 2.5rem 6rem; }
  .services-inner, .blog-inner { padding: 6rem 2.5rem 3rem; }
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .contact-footer { padding: 1rem 2.5rem; }
}
