/* ==========================================================================
   Entry page (index.html): two worlds side by side.
   Gifts wear the deep Cielo blue of the gifts page; business wears the cream
   and copper of the restaurants page. The chosen door's color fills the
   screen before the page opens.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--g-ink); color: var(--g-white); font-family: var(--font-body-he, "Assistant", "Heebo", Arial, sans-serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.skip { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 10; padding: .6rem 1rem; background: var(--g-white); color: var(--g-ink); }
.skip:focus { top: 1rem; }

.entry { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 560px; }

/* ---- Top bar: logo and the question ------------------------------------ */
.entry__top {
  display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: clamp(0.8rem, 2vh, 1.2rem) 1rem; background: var(--g-ink); text-align: start;
}
.entry__logo { width: clamp(44px, 4vw, 58px); height: auto; display: block; flex: none; }
.entry__head { border-inline-start: 1px solid rgba(255,255,255,.2); padding-inline-start: clamp(0.8rem, 2vw, 1.6rem); }
.entry__title { margin: 0; font-family: var(--font-display-he); font-weight: 200; font-size: clamp(1.35rem, 1rem + 1.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.01em; }
.entry__sub { margin: 0.2rem 0 0; font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.95rem); opacity: .7; }

/* ---- The two doors --------------------------------------------------- */
.doors { flex: 1; min-height: 0; display: flex; }
.door {
  --bg: #04126c; --fg: #fff; --muted: rgba(255,255,255,.75); --accent: #9cc8ff; --line: rgba(255,255,255,.4);
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--fg); text-decoration: none;
  transition: flex-grow .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.door--pro { --bg: #f3ebe2; --fg: #231f20; --muted: #6b5f5a; --accent: #c4703f; --line: rgba(35,31,32,.35); }
.door__media { position: relative; flex: 1 1 58%; min-height: 0; margin: 0; overflow: hidden; }
.door__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.door--gifts .door__media img { object-position: 50% 45%; }
.door--pro .door__media img { object-position: 38% 58%; }
/* the photo melts into the door color */
.door__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, var(--bg), transparent); }

.door__body { position: relative; flex: none; padding: 0 clamp(1rem, 3.5vw, 3.2rem) clamp(1.2rem, 4vh, 2.8rem); margin-top: -2.5rem; }
.door__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); }
.door__eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.door__title { margin: 0 0 0.45rem; font-family: var(--font-display-he); font-weight: 200; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1.04; letter-spacing: -0.025em; }
.door__text { margin: 0 0 0.9rem; max-width: 34ch; font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem); line-height: 1.5; color: var(--muted); }
.door__tags { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.door__tags li { padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; color: var(--muted); }
.door__cta {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 50px; padding: 0 1.4rem;
  border: 1px solid var(--fg); font-weight: 600; letter-spacing: 0.02em;
  transition: background-color .3s ease, color .3s ease;
}
.door__cta svg { width: 18px; height: 18px; transition: transform .3s ease; }
.door--gifts .door__cta { background: #fff; color: #04126c; border-color: #fff; }
.door--pro .door__cta { background: #231f20; color: #fff; border-color: #231f20; }
.door:hover .door__cta svg, .door:focus-visible .door__cta svg { transform: translateX(-6px); }
.door:hover .door__media img, .door:focus-visible .door__media img { transform: scale(1.04); }
.door:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.door + .door { border-inline-start: 1px solid rgba(0,0,0,.15); }

@media (hover: hover) and (min-width: 900px) {
  .doors:hover .door:hover { flex-grow: 1.3; }
  .doors:hover .door:not(:hover) { filter: saturate(.75) brightness(.92); }
}

/* ---- Footer ---------------------------------------------------------- */
.entry__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; padding: .3rem 1rem; background: var(--g-ink); font-size: .82rem; color: rgba(255,255,255,.65); }
.entry__foot a, .entry__foot span { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.entry__foot a:hover { color: #fff; }

/* ---- The wipe: the chosen color fills the screen --------------------- */
.entry__wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0; }
.entry__wipe.is-on { opacity: 1; transition: opacity .15s ease; }
.door.is-chosen .door__media img { transform: scale(1.08); }

/* ---- Phones and small tablets: still two halves, tighter type -------- */
@media (max-width: 899px) {
  .entry__top { justify-content: flex-start; }
  .entry__sub { display: none; }
  .door__media { flex-basis: 52%; }
  .door__body { padding: 0 0.85rem 1.1rem; margin-top: -1.6rem; }
  .door__eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; gap: 0.35rem; }
  .door__eyebrow::before { width: 12px; }
  .door__title { font-size: clamp(1.45rem, 1rem + 2.6vw, 2.3rem); line-height: 1.08; }
  .door__text { font-size: 0.86rem; line-height: 1.4; margin-bottom: 0.8rem; }
  .door__tags { display: none; }
  .door__cta { width: 100%; justify-content: space-between; min-height: 44px; padding: 0 0.8rem; font-size: 0.88rem; }
}
@media (max-width: 420px) { .door__text { display: none; } }
@media (max-height: 640px) and (min-width: 900px) { .door__tags { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .door, .door__media img, .door__cta svg { transition: none; }
}
@media (max-width: 899px) { .door--gifts .door__media img { object-position: 80% 45%; } .door--pro .door__media img { object-position: 30% 60%; } }
@media (min-width: 900px) { .door--gifts .door__media img { object-position: 62% 40%; } }

/* Top bar: logo on top, the question and line centered under it */
.entry__top { flex-direction: column; justify-content: center; gap: 0.55rem; text-align: center; padding: clamp(1rem, 2.6vh, 1.6rem) 1rem clamp(0.9rem, 2.2vh, 1.4rem); }
.entry__logo { width: clamp(46px, 3.6vw, 56px); }
.entry__head { border: 0; padding: 0; }
.entry__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
.entry__sub { margin-top: 0.3rem; }
@media (max-width: 899px) {
  .entry__top { justify-content: center; gap: 0.4rem; padding: 0.8rem 1rem 0.7rem; }
  .entry__logo { width: 42px; }
  .entry__title { font-size: 1.35rem; }
}

/* The logo and the question sit in a compact dark card centered on the seam,
   not a full-width band: the two worlds run to the top of the screen. */
.entry { position: relative; }
.entry__top {
  position: absolute; z-index: 5; top: clamp(14px, 3vh, 28px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2rem);
  padding: clamp(0.9rem, 2vh, 1.2rem) clamp(1.4rem, 3vw, 2.6rem) clamp(0.8rem, 1.8vh, 1.1rem);
  background: rgba(24, 21, 22, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
@media (max-width: 899px) {
  .entry__top { top: 10px; padding: 0.65rem 1.2rem 0.6rem; }
  .entry__title { font-size: 1.2rem; }
  .door__media { flex-basis: 58%; }
}

/* ---- Phones: a slim card, photos focused on the subject, aligned doors ---- */
.cta-short { display: none; }
@media (max-width: 899px) {
  .entry__top {
    flex-direction: row; gap: 0.55rem; top: 8px; padding: 0.4rem 0.9rem 0.4rem 1rem; border-radius: 999px;
  }
  .entry__logo { width: 26px; }
  .entry__title { font-size: 1rem; font-weight: 300; white-space: nowrap; }
  .door__media { flex-basis: auto; flex-grow: 1; }
  .door--gifts .door__media img { object-position: 78% 55%; }
  .door--pro .door__media img { object-position: 44% 62%; }
  /* text blocks share one height, so the two buttons line up */
  .door__body { display: flex; flex-direction: column; min-height: 11.5rem; margin-top: -1.8rem; padding: 0 0.75rem 1rem; }
  .door__title { font-size: clamp(1.3rem, 5.6vw, 1.75rem); min-height: 2.2em; display: flex; align-items: flex-end; }
  .door__text { display: block; font-size: 0.8rem; line-height: 1.4; margin-bottom: 0.7rem; min-height: 2.8em; }
  .door__cta { margin-top: auto; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 380px) {
  .door__text { display: none; }
  .door__body { min-height: 8.5rem; }
}
@media (max-height: 680px) and (max-width: 899px) {
  .door__text { display: none; }
  .door__body { min-height: 8.5rem; }
}
@media (max-width: 899px) { .door--gifts .door__media img { object-position: 92% 55%; } }
/* Phones: the same card as on desktop (logo on top, question, line), only smaller */
@media (max-width: 899px) {
  .entry__top { flex-direction: column; gap: 0.3rem; border-radius: 0; top: 10px; padding: 0.6rem 1.1rem 0.55rem; text-align: center; }
  .entry__logo { width: 34px; }
  .entry__title { font-size: 1.3rem; font-weight: 200; }
  .entry__sub { display: block; font-size: 0.66rem; margin-top: 0.15rem; white-space: nowrap; }
}
@media (max-width: 360px) { .entry__sub { display: none; } }
.door__media picture { display: contents; }
@media (max-width: 899px) { .door--pro .door__media img { object-position: 50% 40%; } }
@media (max-width: 899px) { .door--pro .door__media img { object-position: 50% 30%; } }
/* Phones: photos start under the card, so it never covers her face */
@media (max-width: 899px) {
  .door__media { margin-top: 84px; }
  .door--pro .door__media img { object-position: 50% 0%; }
  .door--gifts .door__media img { object-position: 92% 30%; }
}
@media (max-width: 360px) { .door__media { margin-top: 66px; } }
@media (max-width: 899px) { .door__media { margin-top: 100px; } }
@media (max-width: 360px) { .door__media { margin-top: 84px; } }
/* Phones: the card becomes a full-width dark band over the top strip, so no gap shows above the photos */
@media (max-width: 899px) {
  .entry__top { top: 0; left: 0; right: 0; transform: none; width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; background: var(--g-ink); padding: 0.7rem 1rem 0.6rem; }
  .door__media { margin-top: 0; }
  .doors { padding-top: var(--top-h, 96px); }
}
.entry__legal { flex-basis: 100%; margin: 0; padding-top: .35rem; text-align: center; font-size: .78rem; line-height: 1.5; color: rgba(255,255,255,.6); }
@media (max-width: 899px) { .entry__legal { font-size: .7rem; padding-top: .25rem; } }

/* ---- Mattino: the wide wordmark replaces the square Guglielmi seal ---- */
.entry__logo--mattino { width: clamp(108px, 8.4vw, 132px); }
@media (max-width: 899px) {
  .entry__logo--mattino { width: 92px; }
  .entry__sub { white-space: normal; max-width: 30ch; margin-inline: auto; line-height: 1.45; }
}
.entry__legal a { color: inherit; }

/* Small labels stand alone, with no rule before them (Eyal, 24/11/2026) */
.door__eyebrow::before { display: none !important; }
