/* ===================================================================
   Dr. Guy Rasner — clinic site. Luxury editorial re-skin.
   Palette + type from the original Elementor site. RTL Hebrew.
   =================================================================== */

:root {
  --accent: #9B8579;     /* taupe */
  --primary: #3C2415;    /* dark brown — text, headings */
  --text: #3C2415;
  --secondary: #F8CFC3;  /* blush — primary buttons */
  --beige: #EFE7E0;      /* soft warm section bg */
  --beige-deep: #E3D2CB;
  --light: #F7F3EF;
  --white: #ffffff;
  --max: 1240px;
  --shadow: 0 18px 50px rgba(60, 36, 21, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* No overflow-x:hidden here — setting it on <html> or <body> turns that element
   into its own scroll container and breaks window.scrollTo / in-page #anchor
   scrolling. Reveal animations translate only vertically, so nothing overflows
   horizontally. If a stray element ever does, clip it locally, not globally. */
html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", "Assistant", -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.85;
  font-weight: 300;
  background: var(--white);
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-weight: 400; line-height: 1.25; color: var(--primary); }
h2.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 400; margin-bottom: 6px; }
h3 { font-weight: 500; }

/* thin centered separator */
.sep { width: 70px; height: 1px; background: var(--accent); margin: 20px auto 44px; border: 0; }
.sep.start { margin-inline: 0; }

.section { padding: 104px 0; }
.section.beige { background: var(--beige); }
.section.light { background: var(--light); }
.section.deep  { background: var(--beige-deep); }

/* ---------- Buttons: blush, sharp corners, spaced ---------- */
.btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 15px 44px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .06em;
  border: 0; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--accent); color: var(--white); }
.btn.outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn.outline:hover { background: var(--accent); color: var(--white); }
.btn.accent { background: var(--accent); color: var(--white); }
.btn.accent:hover { background: var(--primary); color: var(--white); }
.btn.light { background: rgba(255,255,255,.9); color: var(--primary); }
.btn.light:hover { background: var(--white); }

/* =================== HEADER =================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(60,36,21,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-direction: row-reverse;
  gap: 28px; padding: 14px 32px; max-width: var(--max); margin: 0 auto;
}
.logo img { height: 60px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-size: 1.02rem; font-weight: 400; color: var(--primary);
  padding: 6px 0; position: relative; transition: color .2s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .3s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--primary); display: block; transition: .3s; }

/* =================== HERO =================== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.28) saturate(.85) brightness(.95); }
/* warm luxury wash */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(60,36,21,.42) 0%, rgba(155,133,121,.30) 45%, rgba(227,210,203,.12) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-mark { max-width: 560px; padding-inline-start: 34px; position: relative; }
.hero-mark::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px;
  width: 1px; background: rgba(255,255,255,.65); }
.hero-logo { width: min(440px, 70vw); margin-bottom: 40px; }
.hero-tagline { color: #fff; font-size: 1.15rem; font-weight: 300; letter-spacing: .04em; margin-bottom: 34px; max-width: 460px; }

/* page banner (inner pages) */
.page-banner { position: relative; padding: 130px 0 118px; color: var(--white); text-align: center; overflow: hidden; background: var(--accent); }
.page-banner-bg { position: absolute; inset: 0; z-index: 0; }
.page-banner-bg img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.28) saturate(.85) brightness(.9); }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(60,36,21,.45), rgba(155,133,121,.35)); }
.page-banner h1 { position: relative; z-index: 2; color: var(--white); font-weight: 400; letter-spacing: .04em; font-size: clamp(2.1rem, 5vw, 3.4rem); }

/* =================== INTRO / ABOUT split =================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; }
.split .lead { font-size: 1.08rem; margin-bottom: 26px; font-weight: 300; }

/* homepage "על ד״ר רסנר" — beige, photo bleeds to the right edge, text left */
.section.about-intro { background: var(--beige-deep); padding: 0; overflow: hidden; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; }
.about-intro-img { align-self: stretch; }
.about-intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-intro-text { padding: 84px 7% 84px 48px; }
.about-intro-text .lead { font-size: 1.08rem; margin-bottom: 28px; font-weight: 300; }

/* =================== TREATMENT CARDS (home) — overlaid, rounded, staggered =================== */
.section.treatments { background: #F4ECE6; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 52px; }
.card {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 3/2; border-radius: 16px; box-shadow: var(--shadow);
}
/* magazine-style vertical stagger of the left column (margin, not transform,
   so it doesn't conflict with the reveal animation's transform) */
.card:nth-child(even) { margin-top: 52px; }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s ease; filter: grayscale(.15); }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(60,36,21,.55) 0%, rgba(60,36,21,.05) 55%); transition: background .3s; }
.card:hover::after { background: linear-gradient(to top, rgba(60,36,21,.65) 0%, rgba(155,133,121,.2) 60%); }
.card h3 { position: absolute; inset-inline-end: 34px; bottom: 30px; z-index: 2;
  color: var(--white); font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 400; letter-spacing: .04em;
  padding-inline-end: 22px; }
.card h3::after { content: ""; position: absolute; inset-inline-end: 0; top: 4px; bottom: 4px;
  width: 1px; background: rgba(255,255,255,.7); }

/* =================== VALUES — white, thin, airy =================== */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; text-align: center; }
.value .ico { height: 58px; margin: 0 auto 20px; }
.value .ico img { height: 100%; width: auto; margin: 0 auto; }
.value h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 12px; color: var(--primary); letter-spacing: .03em; }
.value p { font-weight: 300; color: #6f5c50; font-size: .98rem; }

/* =================== GALLERY — carousel (fewer, larger, swipeable) =================== */
.gallery-carousel { position: relative; display: flex; align-items: center; gap: 8px; }
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; flex: 1; padding: 4px; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure {
  position: relative; overflow: hidden; border-radius: 12px;
  flex: 0 0 calc(50% - 10px); scroll-snap-align: center; aspect-ratio: 3/4; box-shadow: var(--shadow);
}
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gal-arrow {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: background .25s, color .25s;
}
.gal-arrow:hover { background: var(--accent); color: var(--white); }
.gallery-cta { text-align: center; margin-top: 40px; }
.gallery-cta .btn { display: inline-flex; align-items: center; gap: 10px; }
.gallery-cta .btn svg { width: 20px; height: 20px; fill: currentColor; }

/* =================== TESTIMONIALS =================== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.testimonial { background: var(--white); padding: 40px 32px; box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: "\201D"; font-size: 4.5rem; color: var(--secondary);
  position: absolute; top: 14px; right: 22px; line-height: 1; font-family: Georgia, serif; }
.testimonial p { position: relative; z-index: 1; font-weight: 300; }
.testimonial-more { display: inline-block; margin-top: 18px; color: var(--accent);
  font-weight: 400; font-size: .95rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.testimonial-more:hover { color: var(--primary); border-color: var(--primary); }

/* =================== TREATMENT LIST (inner pages) =================== */
.intro-block { max-width: 820px; margin: 0 auto 54px; text-align: center; }
.intro-block p { font-weight: 300; font-size: 1.1rem; }
.treatment { margin-bottom: 16px; border: 1px solid rgba(60,36,21,.10); background: var(--white); }
.treatment summary {
  cursor: pointer; list-style: none; padding: 24px 30px; font-size: 1.2rem; font-weight: 400;
  color: var(--primary); display: flex; justify-content: space-between; align-items: center;
  transition: background .25s; letter-spacing: .02em;
}
.treatment summary:hover { background: var(--light); }
.treatment summary::-webkit-details-marker { display: none; }
.treatment summary::after { content: "+"; color: var(--accent); font-size: 1.7rem; font-weight: 300; }
.treatment[open] summary::after { content: "\2212"; }
.treatment[open] summary { background: var(--beige); }
.treatment .body { padding: 12px 30px 32px; }
.treatment .body p { margin-bottom: 16px; font-weight: 300; }
.treatment .body.with-img { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.treatment .body.with-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(.1); }
@media (max-width: 720px) { .treatment .body.with-img { grid-template-columns: 1fr; } }

/* =================== CONTACT =================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-line { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font-size: 1.06rem; font-weight: 300; }
.contact-info-line .ico { width: 48px; height: 48px; border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--accent); flex: 0 0 auto; }
.contact-info-line svg { width: 20px; height: 20px; fill: currentColor; }
.contact-social { display: flex; gap: 18px; margin-top: 14px; }
.contact-social a { color: var(--primary); }
.contact-social svg { width: 28px; height: 28px; fill: currentColor; transition: fill .2s; }
.contact-social a:hover svg { fill: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 16px 20px; border: 1px solid rgba(60,36,21,.15); border-radius: 0;
  font-family: inherit; font-size: 1rem; font-weight: 300; background: var(--white); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.map-embed { width: 100%; border: 0; min-height: 340px; display: block; filter: grayscale(.2); }

/* =================== FOOTER =================== */
.site-footer { background: var(--primary); color: #d9c9be; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.site-footer h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; font-weight: 400; letter-spacing: .04em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; font-weight: 300; }
.site-footer a { color: #c9b7ab; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer-logo img { height: 60px; margin-bottom: 20px; }
.footer-contact-line { display: flex; gap: 10px; margin-bottom: 12px; color: #c9b7ab; font-weight: 300; }
.footer-bottom { text-align: center; margin-top: 52px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1); color: #a8968b; font-size: .9rem; font-weight: 300; }

/* =================== FLOATING BUTTONS =================== */
.floating { position: fixed; bottom: 24px; left: 24px; z-index: 200; display: flex; flex-direction: column; gap: 14px; }
.floating a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: var(--shadow); transition: transform .2s; }
.floating a:hover { transform: scale(1.1); }
.floating .wa { background: #25D366; }
.floating .mail { background: var(--primary); }
.floating .chat { background: var(--primary); }
.floating svg { width: 26px; height: 26px; fill: currentColor; }

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

/* =================== RESPONSIVE =================== */
@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-intro-text { padding: 56px 32px; order: 2; }
  .about-intro-img { order: 1; }
  .about-intro-img img { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 0 0 0 28%; background: var(--white); flex-direction: column;
    padding: 84px 32px; transform: translateX(100%); transition: transform .3s; box-shadow: var(--shadow); z-index: 90; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 24px; align-items: flex-start; }
  .nav-toggle { display: flex; z-index: 95; }
  .header-cta { display: none; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; padding-bottom: 0; }
  .card:nth-child(even) { margin-top: 0; }
  .card { aspect-ratio: 3/2; }
  .values { grid-template-columns: 1fr; }
  .gallery-track figure { flex: 0 0 100%; aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =================== SCROLL-REVEAL ANIMATIONS =================== */
/* anchor targets clear the sticky header when scrolled to */
[id] { scroll-margin-top: 96px; }

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.reveal-left  { transform: translateX(46px); }
.reveal.reveal-right { transform: translateX(-46px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
