/* Orit Yanay - site styles.
 *
 * Hand-written replacement for the exported Elementor/WordPress styles.
 * One page, right-to-left Hebrew. Sizes are in rem so the accessibility
 * "bigger / smaller text" buttons can scale everything from <html>.
 */

/* ---------- fonts (self-hosted; Rubik is a variable font, one file covers 300-900) */
@font-face { font-family: "Rubik"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-italic-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-hebrew.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hurricane"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hurricane-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

/* ---------- design tokens */
:root {
  --bg: #f4e5df;            /* the site's blush background */
  --surface: #f4e5df;       /* cards */
  --ink: #000;              /* text */
  --ink-soft: #2b2b2b;
  --on-dark: #fff;
  --pill: rgba(0, 0, 0, .14);
  --line: rgba(0, 0, 0, .12);
  --shadow: 0 0 10px rgba(0, 0, 0, .35);
  --whatsapp: #39de55;
  --a11y: #06007c;
  --radius: 4px;

  --font: "Rubik", "Segoe UI", Arial, sans-serif;
  --script: "Hurricane", "Brush Script MT", cursive;

  --container: 77rem;                         /* ~1230px of content */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(3rem, 6vw, 5rem);    /* top and bottom of every section */
  --stack: 1.25rem;                           /* space between blocks inside a section */
  --header-h: 5rem;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-style: italic;          /* the brand look: Rubik italic throughout */
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--a11y); outline-offset: 3px; }

.sprite { display: none; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: .75rem 1.25rem; border-radius: var(--radius);
  font-style: normal; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- shared building blocks */
.section { padding-block: var(--section-space); }

/* small label above a section title: the same pill everywhere */
.eyebrow {
  display: inline-block;
  padding: .3rem .95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--pill);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
}
.section-title {
  margin-top: .75rem;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
}
.section-head, .hero__inner, .card__body { text-wrap: balance; }
.section-head { text-align: center; max-width: 52rem; margin-inline: auto; margin-bottom: calc(var(--stack) * 2); }
.section-lead {
  margin-top: var(--stack);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
}
.prose { margin-top: var(--stack); display: grid; gap: .85rem; max-width: 38rem; }

/* every call to action on the page is this one button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; min-width: 15rem;
  padding: .85rem 1.9rem;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  background: var(--ink); color: var(--on-dark);
  font-weight: 600; font-size: 1rem; line-height: 1.2; font-style: italic;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.split__text .btn, .contact-form .btn { margin-top: calc(var(--stack) * 1.6); }

/* ---------- header */
.site-header { background: var(--bg); position: relative; z-index: 20; }
.site-header__inner {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding-block: 1rem .75rem;
}
.brand img { width: 9.5rem; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2.25rem; }
.site-nav a {
  display: block; padding: .6rem .25rem;
  font-style: normal; font-weight: 800; font-size: 1rem; line-height: 1.25;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: currentColor; }
.nav-toggle { display: none; }

/* ---------- hero */
.hero {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(34rem, 78vh, 46rem);
  padding-block: clamp(4rem, 9vw, 7.5rem);
  color: var(--on-dark); text-align: center;
  background: #2a2420 url("../img/room-1194.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .42); }
.hero__inner { display: grid; justify-items: center; }
.hero__spark { width: 7rem; margin-bottom: -2.4rem; pointer-events: none; }
.hero__title {
  font-family: var(--script); font-style: normal; font-weight: 400;
  font-size: clamp(3.4rem, 2.2rem + 4vw, 5.4rem); line-height: 1.05;
  text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(0, 0, 0, .55);
}
.hero__lead {
  margin-top: 1rem; max-width: 46rem;
  font-size: clamp(1.25rem, .95rem + 1.4vw, 1.95rem); font-weight: 300; line-height: 1.4;
  text-shadow: 0 0 10px rgba(0, 0, 0, .85);
}
.hero__sub {
  margin-top: 1rem; max-width: 40rem;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.15rem); line-height: 1.55;
  text-shadow: 0 0 10px rgba(0, 0, 0, .82);
}
.hero__actions { width: 100%; margin-top: 2.25rem; display: grid; justify-items: center; gap: 1.1rem; }   /* full width so a phone-width CTA matches the others */
.hero__phone {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; line-height: 1.2;
  text-decoration: none; text-shadow: 0 0 10px rgba(0, 0, 0, .83);
}
.hero__phone .icon { width: 1.1em; height: 1.1em; }
.hero__phone:hover span, .hero__phone:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- text + image sections (zig-zag) */
.split__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
}
.split--media-first .split__media { order: -1; }       /* in RTL: image on the right, text on the left */
.split__text { text-align: start; }
.split__media img {
  width: 100%; max-height: 46rem; object-fit: cover;
  box-shadow: var(--shadow);
}

.checklist { margin-top: var(--stack); display: grid; gap: .6rem; }
.checklist li { display: flex; align-items: baseline; gap: .65rem; }
.checklist .icon { width: .95em; height: .95em; transform: translateY(.12em); }

/* ---------- services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.card__body { flex: 1; display: grid; align-content: start; gap: .6rem; padding: 2rem 1.75rem 2.25rem; text-align: center; }
.card__title { font-size: clamp(1.55rem, 1.3rem + .8vw, 1.9rem); font-weight: 800; line-height: 1.15; margin-bottom: .4rem; }
.card p { line-height: 1.6; }

/* ---------- FAQ */
.faq { max-width: 54rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 700; line-height: 1.45;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.1rem; height: 1.1rem; transition: transform .25s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { background: rgba(255, 255, 255, .35); }
.faq details p { padding: 0 1.25rem 1.25rem; max-width: 46rem; }

/* ---------- testimonials carousel */
.carousel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
  gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .75rem 0 1rem;              /* no inline padding: snap points must be exact multiples of a slide, or the loop's swap lands a few px off */
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { position: relative; scroll-snap-align: start; }   /* contains the absolutely positioned hidden labels, or they escape the scroller and widen the page */
.review {
  display: grid; place-items: center;
  width: 100%; height: 18rem; padding: .25rem;
  border: 0; background: transparent;                 /* the bubbles are cut out; the page colour shows through */
  cursor: zoom-in;
  transition: transform .2s ease;
}
.review:hover, .review:focus-visible { transform: translateY(-3px); }
.review img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .18)); }
.carousel__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .2s;
}
.carousel__btn:hover, .carousel__btn:focus-visible { background: rgba(0, 0, 0, .08); }
.carousel__btn .icon { width: 1.5rem; height: 1.5rem; }
.carousel__btn--prev .icon { transform: scaleX(1); }     /* RTL: "previous" points right */
.carousel__btn--next .icon { transform: scaleX(-1); }    /* "next" points left */

.lightbox { padding: 1.25rem; border: 0; border-radius: 10px; max-width: min(92vw, 52rem); max-height: 92vh; background: var(--bg); overflow: auto; }
.lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.lightbox__img { width: 100%; height: auto; }
.lightbox__close {
  position: sticky; top: .5rem; float: left; margin: .5rem;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer;
}

/* ---------- contact: the full-width closing block */
.contact {
  position: relative; isolation: isolate;
  padding-block: calc(var(--section-space) * 1.25);
  color: var(--on-dark);
  background: #241d18 url("../img/room-1194.jpg") center / cover no-repeat;
}
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22, 16, 12, .74); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__title { font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem); font-weight: 800; line-height: 1.1; margin-bottom: calc(var(--stack) * 1.4); }

.contact-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field input {
  width: 100%; min-height: 3rem; padding: .7rem 1rem;
  border: 1px solid transparent; border-radius: var(--radius);
  background: #fff; color: var(--ink);
  font-style: normal; font-size: 1rem;
}
.field input::placeholder { color: #6b6b6b; opacity: 1; }
/* Browsers force type="tel" fields to direction: ltr, which pushed "טלפון" to the
   left edge while "שם מלא" sits on the right. Keep the value left-to-right (so
   "054 123 4567" keeps its group order) but align it, and the placeholder, right. */
.field input[type="tel"] { text-align: right; }
.field input:focus { outline: 3px solid var(--bg); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b; }
.contact-form__note { min-height: 1.7em; margin-top: .9rem; font-size: .95rem; }
.contact-form__note.is-error { color: #ffd0d0; }

.contact-list { display: grid; gap: 1.1rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover span, .contact-list a:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }
.contact-list .icon { width: 2.4rem; height: 2.4rem; color: var(--bg); }

/* ---------- floating widgets */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;                 /* bottom-right, as on the original */
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: scale(1.07); }
.whatsapp-float .icon { width: 2.1rem; height: 2.1rem; }

.a11y { position: fixed; right: 0; top: 50%; z-index: 50; transform: translateY(-50%); }   /* middle of the right edge, as on the original */
.a11y__toggle {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border: 0; border-radius: 0; background: var(--a11y); color: #fff; cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.a11y__toggle .icon { width: 2rem; height: 2rem; }
.a11y__panel {
  position: absolute; right: 3.25rem; top: 50%; transform: translateY(-50%);
  display: grid; gap: .25rem; width: 13.5rem; padding: .9rem;
  background: #fff; color: #000; box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  font-style: normal;
}
.a11y__panel[hidden] { display: none; }
.a11y__title { font-weight: 700; margin-bottom: .25rem; }
.a11y__panel button {
  padding: .45rem .6rem; border: 0; border-radius: var(--radius); background: transparent;
  text-align: start; font-style: normal; cursor: pointer;
}
.a11y__panel button:hover, .a11y__panel button:focus-visible { background: #eceaf6; }
.a11y__panel button[aria-pressed="true"] { background: var(--a11y); color: #fff; }

/* ---------- reveal on scroll (only when JS is running, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- accessibility modes, set on <html> by site.js */
html.a11y-grayscale :is(.site-header, main, .contact) { filter: grayscale(1); }
html.a11y-invert :is(.site-header, main, .contact) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert :is(.site-header, main, .contact) img { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast { --bg: #000; --surface: #000; --ink: #fff; --pill: #000; --line: #fff; --shadow: 0 0 0 1px #fff; }
html.a11y-contrast body, html.a11y-contrast .faq details { background: #000; color: #fff; }
html.a11y-contrast a:not(.btn), html.a11y-contrast .faq summary { color: #ff0; }
html.a11y-contrast .btn { background: #ff0; color: #000; border-color: #ff0; }
html.a11y-light { --bg: #fff; --surface: #fff; --pill: #fff; }
html.a11y-light :is(.hero, .contact) { background-image: none; background-color: #fff; color: #000; }
html.a11y-light :is(.hero, .contact)::before { display: none; }
html.a11y-light :is(.hero__title, .hero__lead, .hero__sub, .hero__phone) { text-shadow: none; }
html.a11y-light .contact-list .icon { color: #000; }
html.a11y-light .field input { border-color: #000; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: .2em; }
html.a11y-readable body, html.a11y-readable .btn, html.a11y-readable .hero__title { font-family: Arial, Helvetica, sans-serif; font-style: normal; }

/* ---------- tablet */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel__track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}

/* ---------- phone */
@media (max-width: 900px) {
  :root { --stack: 1.1rem; }
  .site-header__inner { flex-direction: row; justify-content: space-between; padding-block: .6rem; }
  .brand img { width: 5rem; }
  .nav-toggle {
    display: grid; place-items: center; width: 3rem; height: 3rem;
    border: 0; border-radius: var(--radius); background: #fff; color: #000; cursor: pointer;
  }
  .nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 0; justify-content: stretch; }
  .site-nav a { padding: 1rem var(--gutter); font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--line); background: var(--bg); }

  .hero { background-image: url("../img/room-800.jpg"); min-height: 0; }
  .hero__spark { width: 5rem; margin-bottom: -1.6rem; }

  .split__grid { grid-template-columns: 1fr; }
  .split--media-first .split__media { order: 0; }        /* text first on phones, like every other section */
  .split__media img { max-height: 32rem; }

  .contact { background-image: url("../img/room-800.jpg"); }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero__lead br { display: none; }                      /* let the line break where it fits instead of orphaning half a line */
  .a11y__toggle { width: 2.6rem; height: 2.6rem; }
  .a11y__toggle .icon { width: 1.6rem; height: 1.6rem; }
  .a11y__panel { right: 2.6rem; }
  .cards { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 85%; }
  .carousel__btn { display: none; }                        /* swipe on phones */
  .carousel { grid-template-columns: minmax(0, 1fr); }
  .contact-form__fields { grid-template-columns: 1fr; }
  .btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .carousel__track { scroll-behavior: auto; }
}

@media print {
  .whatsapp-float, .a11y, .nav-toggle, .carousel__btn { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
