html, body { margin: 0; }
img, video { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Rhea landing pages (index, bridal, sell). Fashion lookbook: photo or video first, centred bold sans headlines, one green band as the only colour moment. Single light look on purpose. */
:root {
  --paper: #FAFAF8;
  --ink: #121211;
  --ink-soft: #55554F;
  --line: #DCDCD6;
  --green: #1B5E3E;          /* Rhea logo green */
  --green-ink: #F3F5F0;
  --photo-1: #D9D7D1;
  --photo-2: #C8CCC4;
  --photo-3: #26261F;
  --photo-4: #E5E2DC;
  --photo-label: #4A4A44;
  --photo-label-dark: #CFCFC6;

  --f-he-display: "Heebo", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
  --f-en-display: "Heebo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Heebo", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
  --radius: 8px;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); max-width: 1320px; margin-inline: auto; }
.en { font-family: var(--f-en-display); direction: ltr; unicode-bidi: isolate; }
.label {
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- buttons: plain rectangles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font: 600 15px/1 var(--f-body); letter-spacing: .02em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 6px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores .btn { min-width: 150px; }
.stores .btn .en { font-size: 16px; font-weight: 600; }
.stores-note { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- photo slots ---------- */
.photo {
  position: relative; overflow: hidden; background: var(--photo-1); border-radius: var(--radius);
  max-width: 100%; width: 100%;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph {
  position: absolute; inset-inline: 14px; bottom: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--photo-label);
}
.photo.has-img .ph { display: none; }
.photo.t2 { background: var(--photo-2); }
.photo.t3 { background: var(--photo-3); }
.photo.t3 .ph { color: var(--photo-label-dark); }
.photo.t4 { background: var(--photo-4); }
/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.menu-btn { justify-self: start; background: none; border: 0; padding: 8px 0; font: 600 14px var(--f-body); color: var(--ink); cursor: pointer; letter-spacing: .04em; }
.mark { justify-self: center; font-family: var(--f-en-display); font-size: 28px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; direction: ltr; line-height: 1; }
.mark span { color: var(--green); }
.top .btn { justify-self: end; }
.nav-links { display: none; }
.drawer { border-top: 1px solid var(--line); }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; margin: 0; padding: 8px 0 18px; display: grid; }
.drawer a { display: block; padding: 12px 0; font-weight: 700; font-size: 22px; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .top .wrap { grid-template-columns: auto 1fr auto; gap: 40px; }
  .mark { justify-self: start; }
  .nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .drawer { display: none !important; }
}

/* ---------- hero ---------- */
.hero { display: grid; }
.hero .photo { aspect-ratio: 4 / 5; border-radius: 0; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; display: block; }
.vid-btn { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(250, 250, 248, .85); color: var(--ink); border: 0; border-radius: 6px; padding: 7px 11px; font: 600 12px var(--f-body); cursor: pointer; }
.vid-btn:hover { background: var(--paper); }
.hero-text { padding-block: 28px 44px; display: grid; gap: 16px; align-content: center; justify-items: center; text-align: center; }
.hero-text .label { color: var(--green); }
h1 {
  margin: 0; font-family: var(--f-he-display); font-weight: 800;
  font-size: clamp(32px, 8.4vw, 64px); line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
h1 .second { display: block; }
.hero-text p.sub { margin: 0; font-size: 18px; max-width: 34ch; color: var(--ink-soft); }
.hero-actions { display: grid; gap: 12px; width: 100%; max-width: 460px; margin-top: 6px; }
.hero-actions > .btn { width: 100%; min-height: 54px; font-size: 17px; }
.hero-actions .stores { justify-content: center; }
.hero-actions .stores .btn { flex: 1; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 6fr; min-height: 720px; }
  .hero .photo { aspect-ratio: auto; height: 100%; min-height: 720px; }
  .hero-text { padding-inline-start: 56px; padding-block: 64px; }
}

/* ---------- section heads ---------- */
section { padding-block: 72px 0; }
.head { display: flex; justify-content: center; text-align: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
h2 { margin: 0; font-family: var(--f-he-display); font-weight: 800; font-size: clamp(28px, 6vw, 48px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h2.en { letter-spacing: -.02em; }
.more { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- dresses ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { height: 3px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink); }
@media (min-width: 640px) { .rail { grid-auto-columns: 40%; } }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 36px) / 4); } }
.dress { scroll-snap-align: start; display: grid; gap: 10px; text-decoration: none; min-width: 0; }
.dress .photo { aspect-ratio: 3 / 4; }
.dress .meta { display: grid; gap: 2px; font-size: 14px; }
.dress .size { font-weight: 700; }
.dress .price { display: flex; gap: 14px; font-variant-numeric: tabular-nums; }
.dress .price span { white-space: nowrap; }
.rail-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.rail-hint { font-size: 13px; color: var(--ink-soft); }

/* ---------- sell (the one colour moment) ---------- */
.sell { margin-top: 88px; background: var(--green); color: var(--green-ink); padding-block: 0; }
.sell .wrap { display: grid; gap: 0; padding-left: 0; padding-right: 0; max-width: none; }
.sell .photo { aspect-ratio: 4 / 5; background: #164E33; border-radius: 0; }
.sell .photo .ph { color: #9DB8A9; }
.sell-text { padding: 48px var(--gutter-r) 56px var(--gutter); display: grid; gap: 22px; align-content: center; }
.sell h2 { font-size: clamp(36px, 8.5vw, 76px); line-height: 1.02; color: var(--green-ink); }
.sell p { margin: 0; font-size: 18px; max-width: 34ch; }
.sell .btn { background: var(--green-ink); color: var(--green); border-color: var(--green-ink); justify-self: start; }
.sell .btn:hover { background: transparent; color: var(--green-ink); }
@media (min-width: 900px) {
  .sell .wrap { grid-template-columns: 5fr 6fr; }
  .sell .photo { aspect-ratio: auto; min-height: 620px; height: 100%; }
  .sell-text { padding: 72px 64px; }
}

/* ---------- bridal ---------- */
.bridal-grid { display: grid; gap: 28px; }
.bridal-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.bridal-photos .photo:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.bridal-photos .photo { aspect-ratio: 3 / 4; }
.bridal-text { display: grid; gap: 18px; align-content: start; }
.bridal-text .label { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 10px; display: flex; justify-content: space-between; }
.bridal-text .label .en { letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 14px; }
.bridal-text h2 { font-size: clamp(40px, 9vw, 72px); }
.bridal-text p { margin: 0; font-size: 18px; max-width: 36ch; }
.bridal-text p.quiet { font-size: 16px; color: var(--ink-soft); }
.event { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event div { padding: 14px 0; display: grid; gap: 2px; }
.event div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.event small { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.event span { font-weight: 600; font-size: 18px; }
@media (min-width: 900px) {
  .bridal-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
  .bridal-text { position: sticky; top: 100px; }
}

/* ---------- final ---------- */
.final { background: var(--ink); color: var(--paper); padding-block: 88px 72px; margin-top: 0; }
.final h2 { font-size: clamp(36px, 8.5vw, 84px); line-height: 1.02; max-width: 14ch; margin-inline: auto; color: var(--paper); }
.final { text-align: center; }
.final .stores { justify-content: center; }
.final p { font-size: 20px; margin: 18px 0 28px; }
.final .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final .btn:hover { background: transparent; color: var(--paper); }
.final p.stores-note { color: #A7A79F; font-family: var(--f-body); font-size: 13px; margin: 12px 0 0; }

footer { background: var(--ink); color: #A7A79F; padding-block: 0 40px; font-size: 14px; }
footer .wrap { border-top: 1px solid #33332F; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; color: var(--paper); }
footer a:hover { text-decoration: underline; }
footer .tag { letter-spacing: .2em; font-size: 11px; font-weight: 600; direction: ltr; }



/* ---------- added: skip link, language, how-it-works, QR, sticky bar, dialog ---------- */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
.top .wrap { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.top-start { justify-self: start; display: flex; align-items: center; gap: 16px; }
.top-dl { justify-self: end; }
@media (min-width: 900px) { .top .wrap { grid-template-columns: auto 1fr auto auto; } .top-start { order: 3; } .top-dl { order: 4; } }
.lang-btn { background: none; border: 0; padding: 8px 0; font: 700 13px var(--f-body); letter-spacing: .06em; color: var(--ink); cursor: pointer; }
.lang-btn:hover { text-decoration: underline; text-underline-offset: 5px; }

.how { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 900px; text-align: center; counter-reset: step; }
.how li { display: grid; gap: 4px; justify-items: center; font-size: 15px; font-weight: 600; line-height: 1.3; counter-increment: step; min-width: 0; }
.how li::before { content: counter(step); font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .1em; }
.how-wrap { padding-block: 8px 0; }

.qr { display: none; }
@media (min-width: 900px) {
  .qr { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
  .qr img { width: 92px; height: 92px; display: block; border: 1px solid var(--line); border-radius: 6px; }
  .qr span { font-size: 14px; color: var(--ink-soft); max-width: 16ch; text-align: start; line-height: 1.35; }
  .final .qr { justify-content: center; margin-top: 26px; }
  .final .qr span { color: #A7A79F; }
  .final .qr img { border-color: #33332F; }
}

.sticky-dl {
  position: fixed; z-index: 15; inset: auto 0 0 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-dl.show { transform: none; }
.sticky-dl .btn { width: 100%; min-height: 50px; font-size: 16px; }
@media (min-width: 900px) { .sticky-dl { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-dl { transition: none; } }

footer button.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--paper); cursor: pointer; }
footer button.linkish:hover { text-decoration: underline; }

dialog.a11y { max-width: min(640px, calc(100% - 32px)); width: 100%; border: 0; border-radius: 8px; padding: 0; background: var(--paper); color: var(--ink); }
dialog.a11y::backdrop { background: rgba(18, 18, 17, .55); }
dialog.a11y .inner { padding: 28px 24px; display: grid; gap: 14px; max-height: 80vh; overflow-y: auto; }
dialog.a11y h2 { font-size: 26px; }
dialog.a11y ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
dialog.a11y p { margin: 0; }
dialog.a11y .muted { color: var(--ink-soft); font-size: 14px; }
dialog.a11y .btn { justify-self: start; }

[dir="ltr"] .rail-hint-arrow::after { content: "→"; }
[dir="rtl"] .rail-hint-arrow::after { content: "←"; }
[hidden] { display: none !important; }

/* ---------- v2: dress tabs, more-tile, hero stats, sub pages ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 2px; justify-content: flex-start; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .tabs { justify-content: center; } }
.tab { flex: none; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 15px var(--f-body); cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.occasions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.occ { display: grid; gap: 8px; text-decoration: none; min-width: 0; }
.occ .photo { aspect-ratio: 3 / 4; }
.occasions.n3 .occ:first-child { grid-column: span 2; }
.occasions.n3 .occ:first-child .photo { aspect-ratio: 4 / 3; }
.occ .name { display: grid; gap: 2px; text-align: center; }
.occ .name b { font-weight: 700; font-size: 18px; }
.occ-meta { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.occ:hover .name b { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 900px) {
  .occasions.n3 { grid-template-columns: repeat(3, 1fr); }
  .occasions.n3 .occ:first-child { grid-column: auto; }
  .occasions.n3 .occ:first-child .photo { aspect-ratio: 3 / 4; }
}
.tiles-mode .rail-hint { visibility: hidden; }
.more-tile { scroll-snap-align: start; display: grid; gap: 10px; text-decoration: none; min-width: 0; }
.more-tile .photo { aspect-ratio: 3 / 4; }
.more-tile .photo::after { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 17, .28); }
.more-tile .over { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 18px 16px; color: #FAFAF8; font-weight: 800; font-size: 20px; line-height: 1.2; }
.more-tile .meta { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.hero-stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); margin: 0; }
.hero-stats b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.sec-link { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 6px; }
.sell .sec-link { color: var(--green-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.steps-head { text-align: center; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.how.big li { font-size: 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.facts b { font-size: 18px; font-weight: 800; }
.facts span { color: var(--ink-soft); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 0 32px; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .photo { aspect-ratio: 3 / 4; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.hero.photo-hero .photo img { object-position: var(--pos, 50% 50%); }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ink-soft); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Social links in the mobile menu */
.drawer-social { padding: 4px 0 22px; }
.drawer-social > span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.drawer-social .social { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer .drawer-social .social a { display: inline-block; padding: 10px 18px; font-size: 15px; font-weight: 600; border: 1px solid var(--ink); border-radius: 6px; }
/* The drawer also has .wrap: undo the header-bar grid and fixed height. */
.top .drawer.wrap:not([hidden]) { display: block; height: auto; max-height: calc(100dvh - 60px); overflow-y: auto; }
.drawer-social > span:lang(he), .steps-head:lang(he) { letter-spacing: 0; }
