/* מאפיית הנביאים — Bakery, Netanya */

:root {
  --ink-900: #241a12;
  --ink-800: #35271b;
  --ink-700: #4f3c2a;
  --ink-600: #6b5640;
  --cream-50: #fbf8f1;
  --cream-100: #f2ead9;
  --cream-200: #e7dabf;
  --terracotta-400: #c17d4e;
  --terracotta-500: #a8623a;
  --sky-400: #8fb2c2;
  --sky-500: #6f96a8;
  --ink: #241a12;
  --shadow: 0 12px 30px -14px rgba(36, 26, 18, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-body: "Assistant", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--terracotta-500);
  outline-offset: 2px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  direction: rtl;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

section { padding: 5.5rem 1.5rem; position: relative; }

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--terracotta-500);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terracotta-500);
  display: inline-block;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head p {
  color: var(--ink-700);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #25d366;
  color: #0b3d20;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 16px 34px -14px rgba(37, 211, 102, 0.55); }

.btn-outline {
  background: transparent;
  border-color: rgba(253, 250, 246, 0.55);
  color: var(--cream-50);
}
.btn-outline:hover { background: rgba(253, 250, 246, 0.12); }

.btn-dark {
  background: var(--ink-800);
  color: var(--cream-50);
}
.btn-dark:hover { background: var(--ink-900); }

.btn-instagram {
  background: linear-gradient(45deg, #FEDA75, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-instagram:hover { box-shadow: 0 16px 34px -14px rgba(214, 41, 118, 0.55); }

.btn-tiktok {
  background: #000;
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-tiktok:hover { background: #1a1a1a; }

.btn-facebook {
  background: #1877F2;
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-facebook:hover { box-shadow: 0 16px 34px -14px rgba(24, 119, 242, 0.55); }

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  background: rgba(253, 250, 246, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px -12px rgba(36, 26, 18, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-900);
}

.brand .logo-mark { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 0.3em 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta-500);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  transition: 0.25s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at top left, rgba(201, 154, 91, 0.25), transparent 55%),
    linear-gradient(160deg, var(--ink-900), var(--ink-700) 65%, var(--ink-800));
  color: var(--cream-50);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/product-croissant.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(253, 250, 246, 0.14);
  border: 1px solid rgba(253, 250, 246, 0.35);
  padding: 0.4em 1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: var(--cream-50);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--cream-200);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.95rem;
  color: var(--cream-200);
}
.hero-meta span { display: flex; align-items: center; gap: 0.5em; }
.hero-meta svg { flex-shrink: 0; }

.hero-seal {
  position: relative;
  justify-self: center;
  width: min(320px, 80%);
  aspect-ratio: 1;
}
.hero-seal .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(253, 250, 246, 0.35);
  animation: spin 40s linear infinite;
}
.hero-seal .logo-mark {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream-200);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  opacity: 0.85;
}
.scroll-cue .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--terracotta-400);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(10px);} }

/* Divider wave */
.divider {
  display: block;
  width: 100%;
  line-height: 0;
}
.divider svg { width: 100%; height: 70px; display: block; }

/* About */
.about { background: var(--cream-50); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.about-art img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-art .tag {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: rgba(253,250,246,0.92);
  color: var(--ink-900);
  padding: 0.6em 1.1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

/* Samboosak spotlight marquee */
.samboosak-spotlight {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.samboosak-spotlight .eyebrow { margin-bottom: 0; }
.samboosak-spotlight h3 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0;
}
.samboosak-spotlight p {
  color: #4a3733;
  font-size: 1rem;
  margin: 0 0 0.2rem;
}
.swipe-hint {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-600);
  font-weight: 600;
}
.swipe-hint svg { flex-shrink: 0; transform: scaleX(-1); color: var(--terracotta-500); }
.marquee {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.marquee-card {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: center;
  transform-origin: center center;
  transition: box-shadow 0.2s ease;
  will-change: transform;
}
.marquee-card.is-active {
  box-shadow: 0 18px 30px -12px rgba(36, 26, 18, 0.4);
  z-index: 3;
}

/* Where supported, drive the scale + lift off the compositor via a
   scroll-driven animation instead of JS — this stays perfectly smooth
   through native momentum scrolling because it never touches the main
   thread at all (no scroll events, no rAF polling). */
@supports (animation-timeline: view()) {
  .marquee-card {
    animation: card-coverflow linear both;
    animation-timeline: view(inline);
    animation-range: entry 0% exit 100%;
    transition: none;
  }
}
@keyframes card-coverflow {
  0% { transform: scale(1); box-shadow: 0 18px 30px -12px rgba(36, 26, 18, 0); z-index: 1; }
  50% { transform: scale(1.16); box-shadow: 0 18px 30px -12px rgba(36, 26, 18, 0.4); z-index: 3; }
  100% { transform: scale(1); box-shadow: 0 18px 30px -12px rgba(36, 26, 18, 0); z-index: 1; }
}
.marquee-card img { width: 100%; height: 100%; object-fit: cover; }
.marquee-card span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.6rem 0.6rem 0.5rem;
  background: linear-gradient(0deg, rgba(36,26,18,0.88), transparent);
  color: var(--cream-50);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}
.about-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.about-copy p { color: #4a3733; font-size: 1.05rem; margin-bottom: 1.2em; }

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-weight: 600;
  color: var(--ink-800);
}
.about-points svg { flex-shrink: 0; margin-top: 2px; color: var(--terracotta-500); }

/* Offerings */
.offerings { background: var(--cream-100); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.offer-card {
  background: var(--cream-50);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(111,66,61,0.08);
}
.offer-card:hover { transform: translateY(-6px); }
.offer-photo {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.offer-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.offer-card:hover .offer-photo img { transform: scale(1.06); }
.offer-photo.icon-only {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
}
.offer-photo.icon-only svg { color: var(--cream-100); }
.offer-icon {
  position: absolute;
  bottom: -22px;
  right: 1.4rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--terracotta-400), var(--terracotta-500));
  border-radius: 14px;
  color: var(--cream-50);
  box-shadow: 0 10px 20px -8px rgba(58,30,22,0.5);
  border: 3px solid var(--cream-50);
}
.offer-body { padding: 2rem 1.7rem 1.8rem; }
.offer-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.offer-card p { color: #5b4640; font-size: 0.96rem; margin: 0; }

/* Gallery */
.gallery { background: var(--cream-50); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-grid figure.tall { grid-row: span 2; }
.gallery-grid figure.wide { grid-column: span 2; }
.gallery-grid img, .gallery-grid .illustration {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid .illustration {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
}
.gallery-grid figure:hover img,
.gallery-grid figure:hover .illustration svg { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(0deg, rgba(42,26,22,0.85), transparent);
  color: var(--cream-50);
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Reviews */
.reviews { background: var(--ink-900); color: var(--cream-100); }
.reviews .section-head h2 { color: var(--cream-50); }
.reviews .section-head p { color: var(--cream-200); }
.review-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review-card {
  background: rgba(253,250,246,0.06);
  border: 1px solid rgba(253,250,246,0.14);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-stars { color: var(--terracotta-400); letter-spacing: 2px; }
.review-card p { margin: 0; color: var(--cream-100); font-size: 0.98rem; }
.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-weight: 700;
  color: var(--cream-50);
  font-size: 0.9rem;
}
.review-foot span.google {
  display: flex; align-items: center; gap: 0.4em;
  font-weight: 600; color: var(--cream-200); font-size: 0.82rem;
}

/* Contact */
.contact { background: var(--cream-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-card {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.5rem; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9em; font-size: 1rem; }
.contact-list svg { flex-shrink: 0; color: var(--terracotta-500); margin-top: 3px; }
.contact-list a:hover { color: var(--terracotta-500); }
.contact-list .muted { color: #6b5750; font-size: 0.88rem; display: block; margin-top: 0.15em; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  border: 6px solid var(--cream-50);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-200);
  padding: 2.6rem 1.5rem 1.6rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-display);
  color: var(--cream-50);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.footer-brand .logo-mark { height: 56px; width: auto; }
.footer-links { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-icon:hover { transform: translateY(-3px); box-shadow: 0 10px 18px -8px rgba(0,0,0,0.7); }

/* Header social badges */
.social-badges { display: flex; align-items: center; gap: 0.5rem; }
.social-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.social-badge:hover { transform: translateY(-2px); }
.social-badge svg { width: 100%; height: 100%; display: block; }
.site-footer small { display: block; opacity: 0.7; font-size: 0.82rem; }

/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.4);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 14px 28px -10px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 14px 28px -10px rgba(0,0,0,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-seal { order: -1; width: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-track { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure.wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .btn-dark, .social-badges { display: none; }
  .nav-toggle { display: block; }
  section { padding: 4rem 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .review-track { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }

  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--cream-50);
    flex-direction: column;
    padding: 1.4rem;
    gap: 1.2rem;
    box-shadow: var(--shadow);
  }
}
