/* ============================================
   אוטובוס בכרם — Soft Desert Warmth
   ============================================ */

:root {
  --cream: #FDF8F0;
  --cream-warm: #FAF3E8;
  --booking-bg: #FDF5E6;
  --ink: #2C1F10;
  --stone: #7A6B5A;
  --gold: #B8891E;
  --footer-bg: #3D3226;
  --footer-text: #F5EDE0;
  --nav-height: 56px;
  --text-max: 680px;
  --font: 'Heebo', sans-serif;
  --font-serif: 'Frank Ruhl Libre', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  background: var(--cream);
  background-image: radial-gradient(circle at 20% 50%, rgba(158, 142, 122, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(184, 137, 30, 0.02) 0%, transparent 50%), radial-gradient(circle at 50% 80%, rgba(158, 142, 122, 0.03) 0%, transparent 50%);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  background: var(--ink);
  color: var(--footer-text);
  padding: 0.6rem 1.2rem;
  z-index: 9999;
  font-size: 0.8rem;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

/* --- Fade-in --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(122, 107, 90, 0.12);
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: #fff;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.site-nav.scrolled .nav-logo {
  color: var(--ink);
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.site-nav.scrolled .nav-links a {
  color: var(--ink);
}

.site-nav.scrolled .nav-links a[aria-current="page"] {
  color: var(--gold);
}

.site-nav.scrolled .nav-links a:hover {
  color: var(--gold);
}

.nav-whatsapp { display: flex; align-items: center; }

.nav-whatsapp svg {
  width: 17px;
  height: 17px;
  fill: rgba(255, 255, 255, 0.7);
  transition: fill 0.3s ease;
}

.site-nav.scrolled .nav-whatsapp svg {
  fill: var(--ink);
}

.nav-whatsapp:hover svg { fill: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 5px 0;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.site-nav.scrolled .hamburger span { background: var(--ink); }

.hamburger.active span { background: var(--footer-text) !important; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--footer-text);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .site-nav { padding: 0 1.25rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  height: 100svh;
  min-height: 550px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 18vh;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* Gentle dark overlay so text is readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 10, 0.25);
  z-index: 1;
}

.hero > *:not(.hero-img):not(.scroll-indicator) {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.hero-cta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}

.hero-cta:hover { border-color: #fff; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.15; transform: scaleY(0.5); }
  50% { opacity: 0.5; transform: scaleY(1); }
}

/* Sub-hero (about, area) */
.hero--sub {
  height: 60vh;
  min-height: 360px;
}

.hero--sub .hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* ============================================
   IMAGE TREATMENTS
   ============================================ */

/* Full-width image — used sparingly */
.image-full {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

/* Inset image — centered with breathing room */
.image-inset {
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px;
}

.image-inset--large {
  width: 85%;
  max-height: 45vh;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.image-inset--medium {
  width: 70%;
  max-height: 50vh;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 768px) {
  .image-inset--large {
    width: 92%;
  }
  .image-inset--medium {
    width: 85%;
  }
}

/* ============================================
   SPLIT SECTIONS (text + image side by side)
   ============================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  background: var(--cream);
  min-height: 400px;
}

.split-section__text {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 4rem);
  max-width: 540px;
}

/* When text is on the start side (right in RTL), push it to the end of its cell */
.split-section__text--end {
  margin-inline-start: auto;
}

/* When text is on the end side (left in RTL), push it to the start of its cell */
.split-section__text--start {
  margin-inline-end: auto;
}

.split-section__image {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

/* Image with rounded inner corner */
.split-section__image--round-start {
  border-radius: 0 8px 8px 0;
}

.split-section__image--round-end {
  border-radius: 8px 0 0 8px;
}

/* Tablet: stack split sections between 641px-1024px */
@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-section__image {
    min-height: 250px;
    max-height: 45vh;
    border-radius: 0 !important;
  }

  /* On mobile, image always comes first visually */
  .split-section__image { order: -1; }

  .split-section__text {
    max-width: 100%;
    padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  }

  .split-section__text--end,
  .split-section__text--start {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }
}

/* ============================================
   TEXT SECTIONS
   ============================================ */
.text-section {
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  background: var(--cream);
}

.text-section-inner {
  max-width: var(--text-max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
}

.section-text p + p {
  margin-top: 1.25rem;
}

/* Poetic lines — same styling as regular text, flowing paragraphs */
.poetic-lines {
  max-width: var(--text-max);
}

.poetic-line {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.poetic-line:last-child {
  margin-bottom: 0;
  margin-top: 2rem;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Info items — same flowing text */
.info-items {
  max-width: var(--text-max);
}

.info-item {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-right: 0;
  position: relative;
}

.info-item::before { display: none; }

.info-item:last-child { margin-bottom: 0; }

/* ============================================
   GALLERY CAROUSEL
   ============================================ */
.gallery {
  width: 85%;
  margin: clamp(2rem, 4vw, 3rem) auto;
  position: relative;
}

.gallery__viewport {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.gallery__track {
  display: flex;
  transition: transform 0.45s ease;
}

.gallery__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.gallery__slide img {
  width: 100%;
  height: 55vh;
  max-height: 55vh;
  object-fit: cover;
  display: block;
}

/* Arrow buttons — always visible */
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(253, 248, 240, 0.55);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.3s ease;
}

.gallery__arrow:hover {
  background: rgba(253, 248, 240, 0.85);
}

/* Counter badge */
.gallery__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  direction: ltr;
}

.gallery__arrow--prev {
  left: 12px;
}

.gallery__arrow--next {
  right: 12px;
}

.gallery__arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dots */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(44, 31, 16, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.gallery__dot--active {
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .gallery {
    width: 92%;
  }

  .gallery__arrow {
    width: 34px;
    height: 34px;
  }

  .gallery__arrow--prev { left: 8px; }
  .gallery__arrow--next { right: 8px; }

  .gallery__slide img {
    height: 40vh;
    max-height: 40vh;
  }
}

/* ============================================
   BOOKING
   ============================================ */
.booking-section {
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  background: var(--booking-bg);
  text-align: center;
}

.booking-section .section-title {
  text-align: center;
}

.booking-placeholder {
  max-width: 660px;
  margin: 2rem auto 0;
  padding: 3.5rem 2rem;
  border: 1px dashed rgba(122, 107, 90, 0.3);
  background: var(--booking-bg);
  color: var(--stone);
  font-size: 0.85rem;
}

/* ============================================
   INSTAGRAM
   ============================================ */
.instagram-section {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  background: var(--cream);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid rgba(122, 107, 90, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.instagram-link:hover {
  border-color: var(--gold);
}

.instagram-link svg {
  width: 15px;
  height: 15px;
}

.instagram-placeholder {
  max-width: 400px;
  margin: 1.5rem auto 0;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(122, 107, 90, 0.12);
  color: var(--stone);
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 5rem 2rem 5rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-links svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  vertical-align: middle;
}

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(245, 237, 224, 0.08);
  padding-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 300;
  opacity: 0.55;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-bottom { text-align: center; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story {
  max-width: var(--text-max);
  margin: 0 auto;
}

.about-story p {
  font-size: 1rem;
  line-height: 2.0;
  margin-bottom: 1.5rem;
}

.eco-features {
  max-width: var(--text-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eco-feature {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  padding-right: 1rem;
  position: relative;
}

.eco-feature::before {
  content: '—';
  position: absolute;
  right: -0.25rem;
  color: var(--stone);
}

.about-closing {
  max-width: var(--text-max);
  margin: 0 auto;
}

.about-closing p {
  font-size: 1rem;
  line-height: 2.0;
  margin-bottom: 1rem;
}

/* ============================================
   AREA PAGE
   ============================================ */
.area-section {
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  background: var(--cream);
}

.area-section:nth-of-type(even) {
  background: var(--cream-warm);
}

/* Alternating backgrounds for area split sections */
.split-section--warm {
  background: var(--cream-warm);
}

.area-card {
  max-width: var(--text-max);
  margin: 0 auto;
}

.area-card-content .section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

/* ============================================
   ACCESSIBILITY PAGE
   ============================================ */
.access-content {
  max-width: var(--text-max);
  margin: 0 auto;
  padding: 2rem 0;
}

.access-content h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.access-content p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.access-content ul {
  list-style: none;
  padding-right: 0;
  margin-bottom: 1.5rem;
}

.access-content li {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 0.4rem;
  padding-right: 1rem;
  position: relative;
}

.access-content li::before {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--stone);
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
