/* Shared styles for every page. Colors live in the :root block so they are easy to change. */
:root {
  --bg: #F4F5F6; --surface: #FFFFFF; --fg: #16191C; --muted: #5B636B; --line: #D5DADF;
  --accent: #8A2B3B; --accent-fg: #FFFFFF; --plate: #E8EBED;
  --stage: #101316; --stage-fg: #EDEFF1; --stage-muted: #98A1A9; --stage-line: #2A3036; --gold: #C9A24A;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
html[lang="he"] { --display: "Frank Ruhl Libre", Georgia, serif; --body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
section { padding-block: 72px; }
section[id] { scroll-margin-top: 8px; }

/* header */
.strip { background: var(--fg); color: var(--bg); font-size: .8rem; padding-block: 8px; text-align: center; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-block: 20px; }
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.brand small { display: block; font: 400 .62rem var(--body); letter-spacing: .28em; color: var(--muted); margin-top: 2px; }
.hright { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: .92rem; }
nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { border-bottom-color: var(--fg); outline: none; }
.lang { border: 1px solid var(--fg); background: transparent; color: var(--fg); padding: 5px 14px; font: 500 .85rem var(--body); cursor: pointer; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .85rem 1.5rem; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: 500 .95rem var(--body); cursor: pointer; text-decoration: none; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn:focus-visible, .chip:focus-visible, .link:focus-visible, .lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.link { background: none; border: 0; padding: 0; font: 500 .9rem var(--body); color: var(--fg); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 300; margin-block: 14px 18px; }
.hero .lead { font-size: 1.1rem; max-width: 34em; color: var(--muted); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stage { background: var(--stage); color: var(--stage-fg); position: relative; }
.hero .stage { aspect-ratio: 4 / 5; overflow: hidden; }
.hero .stage video { width: 100%; height: 100%; object-fit: cover; }

/* grids and cards */
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.head h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 300; }
.head p { max-width: 30em; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--fg); padding: 7px 16px; font: 400 .9rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 22px; }
.card .plate { background: var(--plate); aspect-ratio: 4 / 5; overflow: hidden; }
.card .plate img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { padding-top: 12px; display: grid; gap: 4px; }
.card .tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.25rem; }
.card .price { font-size: .85rem; color: var(--muted); }
.card .link { justify-self: start; margin-top: 6px; }
.teasers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.teaser { border-top: 1px solid var(--fg); padding-top: 14px; text-decoration: none; display: grid; gap: 6px; }
.teaser h3 { font-size: 1.3rem; }
.teaser span { color: var(--muted); font-size: .95rem; }

/* luxury */
#luxury { background: var(--surface); border-block: 1px solid var(--line); }
.lux3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 36px; }
.lux3 div { border-top: 1px solid var(--fg); padding-top: 14px; }
.lux3 h3 { font-size: 1.2rem; margin-bottom: 4px; }
.lux3 p { color: var(--muted); font-size: .95rem; }
.luxmedia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.luxmedia figure { margin: 0; }
.ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--plate); }
.ph video, .ph img { width: 100%; height: 100%; object-fit: cover; }
.luxmedia figcaption { padding-top: 10px; font-size: .85rem; color: var(--muted); }

/* reserve */
#reserve { background: var(--stage); color: var(--stage-fg); border-top: 1px solid var(--gold); }
#reserve .eyebrow { color: var(--gold); }
#reserve .head p { color: var(--stage-muted); }
#reserve .link { color: var(--stage-fg); }
.manifesto { max-width: 36em; font: 300 1.35rem/1.6 var(--display); margin-bottom: 44px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 28px; }
.rcard .plate { border: 1px solid var(--stage-line); background: #0B0D0F; aspect-ratio: 4 / 5; overflow: hidden; }
.rcard .plate img { width: 100%; height: 100%; object-fit: cover; }
.rcard .no { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }
.rcard h3 { font-size: 1.6rem; font-weight: 300; margin-block: 2px 8px; }
.rcard p { color: var(--stage-muted); font-size: .95rem; }
.rcard .spec { margin-top: 10px; font-size: .8rem; color: var(--stage-fg); opacity: .8; }

/* builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: start; }
.preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.preview .stage { padding: 18px 14px 34px; }
.preview .cap { position: absolute; inset-inline: 14px; bottom: 10px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stage-muted); display: flex; justify-content: space-between; }
.sum { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin-top: 14px; }
.sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .92rem; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 500; }
.sum .quote { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.acts2 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; min-height: 42px; }
.seg input:checked + .opt { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.seg input:focus-visible + .opt { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
.opt svg { flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
label.f { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
input[type=text], input[type=tel], textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: .7rem .8rem; font: 400 1rem var(--body); }
textarea { min-height: 84px; resize: vertical; }

/* about and contact */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about p { font-size: 1.15rem; max-width: 30em; }
.crow { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.crow span:first-child { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
.step { padding: 22px 28px 0 0; }
.step b { font: 300 2.2rem var(--display); display: block; color: var(--muted); }
.step h3 { font-size: 1.25rem; margin-block: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

footer { border-top: 1px solid var(--line); padding-block: 24px 36px; font-size: .82rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .builder, .two, .luxmedia { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 28px 44px; }
  .preview { position: static; order: -1; }
  .steps, .lux3 { grid-template-columns: minmax(0, 1fr); }
  .step { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  section { padding-block: 52px; }
}
@media (max-width: 480px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card h3 { font-size: 1.05rem; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1214; --surface: #171B1E; --fg: #ECEEF0; --muted: #9AA3AB; --line: #2B3136;
    --accent: #E08A9A; --accent-fg: #1A0B0F; --plate: #1E2327; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1214; --surface: #171B1E; --fg: #ECEEF0; --muted: #9AA3AB; --line: #2B3136;
  --accent: #E08A9A; --accent-fg: #1A0B0F; --plate: #1E2327; color-scheme: dark;
}
