/* ==========================================================================
   SORA — template pentru cafenele (cafe-2-sora). Studio Felyra
   Culorile și fonturile vin din brand.json. Tema „Seară" = :root[data-theme="dark"].
   Pornit din site-ul SORA al lui Rareș (library/_surse/site-uri/sora-cafenea).
   ========================================================================== */

/* --cream, --ink și --olive NU sunt aici: stau în blocul <style data-edit-colors>
   din index.html, singurul pe care proprietarul îl poate schimba.
   --olive-ink e exact --cream (verificat pe ambele teme), iar --muted iese din
   același amestec de 63% în zi și în seară, deci se derivă în loc să fie fixat. */
:root {
  --muted: color-mix(in srgb, var(--ink) 63%, var(--cream));
  --olive-ink: var(--cream);
  --line: #CBC5B9;
  --dark: #262820;
  --dark-ink: #ECE8DF;
  --dark-muted: #A4A695;
  --dark-line: #FFFFFF26;
  --dark-accent: #B4B89A;
  --hero-ink: #F7F2E9;
  --sans: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Petrona', Georgia, serif;
  --gutter: clamp(22px, 4vw, 72px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --line: #2C2B26;
  --dark: #1B1C17;
  --dark-ink: #ECE8DF;
  --dark-muted: #A4A695;
  --dark-line: #FFFFFF1F;
  --dark-accent: #B4B89A;
  --hero-ink: #F7F2E9;
  color-scheme: dark;
}

/* Clasa ws-on e pusă de editorul WireSwan pe <html>, doar în editor.
   Fără asta, produsele din tab-urile 2 și 3 n-ar putea fi atinse pe pagină
   (rămân în lista All content, dar nu se pot da click). Vizitatorii n-o văd. */
html.ws-on .menu-items[hidden] { display: block !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .4s, color .4s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--olive); outline-offset: 6px; }
::selection { background: var(--olive); color: var(--olive-ink); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; background: var(--cream); padding: 15px; }
.skip-link:focus { top: 10px; }

/* ---------- Header ---------- */
.site-header { height: 94px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--cream); position: relative; z-index: 20; transition: background-color .4s; }
.logo { font-size: 53px; letter-spacing: -.094em; line-height: 1; font-weight: 500; white-space: nowrap; }
.logo span { font-size: 13px; letter-spacing: 0; vertical-align: top; display: inline-block; margin: 5px 0 0 8px; }
.site-header nav { display: flex; gap: 37px; font-size: 14px; }
.site-header nav a, .header-visit { position: relative; }
.site-header nav a::after, .header-visit::after { content: ''; height: 1px; background: currentColor; position: absolute; bottom: -6px; left: 0; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.site-header nav a:hover::after, .header-visit:hover::after { transform: scaleX(1); }
.header-end { display: flex; align-items: center; gap: 32px; }
.header-visit { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; }
.header-visit svg { width: 20px; height: 20px; }
.theme-text { display: inline-flex; gap: 6px; background: none; border: 0; padding: 10px 0; font-size: 14px; }
.theme-text span { opacity: .4; transition: opacity .3s; }
.theme-text .t-sep { opacity: .3; }
:root:not([data-theme="dark"]) .theme-text .t-day,
:root[data-theme="dark"] .theme-text .t-night { opacity: 1; }
.mobile-toggle { display: none; }
.mobile-nav[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 680px; height: calc(100svh - 94px); max-height: 1050px; background: var(--dark); color: var(--hero-ink); isolation: isolate; overflow: hidden; margin: 0 16px; }
/* 8% de rezervă sus și jos: parallax-ul mută poza fără să lase gol */
.hero-image { position: absolute; left: 0; right: 0; top: -8%; height: 116%; z-index: -3; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(23, 19, 12, .35), rgba(23, 19, 12, .04)), linear-gradient(0deg, rgba(20, 19, 12, .32), transparent 65%); }
.hero-top { position: absolute; top: 35px; left: calc(var(--gutter) - 16px); right: calc(var(--gutter) - 16px); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { position: absolute; top: 21%; left: calc(var(--gutter) - 16px); right: 25px; font-size: clamp(72px, 7.4vw, 124px); font-weight: 400; letter-spacing: -.065em; line-height: 1.05; margin: 0; }
/* masca lasă loc pentru Ă Î Â sus și Ș Ț jos; merge cu yPercent 130 din main.js */
.line { display: block; overflow: hidden; padding: .14em 0 .2em; margin: -.14em 0 -.2em; }
.line > span { display: block; }
.hero h1 .second { padding-left: 10.7vw; }
em { font-family: var(--serif); font-weight: 400; font-style: normal; letter-spacing: -.045em; }
.hero h1 em { font-size: 1.16em; }
.hero-bottom { position: absolute; bottom: 105px; left: calc(var(--gutter) - 16px); right: calc(var(--gutter) - 16px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-bottom p { font-size: 16px; line-height: 1.5; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 58px; border-radius: 40px; padding: 18px 25px; background: var(--cream); color: var(--ink); font-size: 14px; transition: background-color .3s, color .3s, transform .3s; }
.pill:hover { background: var(--olive); color: var(--olive-ink); transform: translateY(-3px); }
.pill svg { width: 22px; height: 22px; }
.scroll-note { position: absolute; bottom: 32px; left: calc(var(--gutter) - 16px); right: calc(var(--gutter) - 16px); border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 19px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-note svg { width: 20px; height: 20px; }

.intro-strip { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 35px var(--gutter); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.strip-star { width: 24px; height: 24px; color: var(--olive); }

/* ---------- Secțiuni ---------- */
.section-pad { padding: 110px var(--gutter); }
.section-label { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.tiny-star { width: 20px; height: 20px; color: var(--olive); }
h2 { font-weight: 400; font-size: clamp(48px, 5.5vw, 90px); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
h2 em { font-size: 1.2em; }
p { line-height: 1.6; }
figure { margin: 0; }

.story-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 7vw; margin: 52px 0 78px; }
.story-copy { max-width: 380px; padding-top: 7px; }
.story-copy p { font-size: 16px; margin: 0 0 20px; }
.story-copy p + p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 32px; border-bottom: 1px solid currentColor; padding-bottom: 8px; margin-top: 18px; font-size: 14px; }
.text-link svg { width: 18px; height: 18px; transition: transform .25s; }
.text-link:hover svg { transform: translate(3px, -3px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5.8vw; }
.coffee-photo { height: 560px; position: relative; overflow: hidden; background: var(--dark); }
.coffee-photo img { object-position: 54% center; }
/* umbra de sub text e un gradient pe poză, nu text-shadow */
.coffee-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, rgba(15, 12, 8, .5), transparent); pointer-events: none; }
.coffee-photo figcaption { position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 1; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.values { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.values article { padding: 24px 24px 25px 0; border-top: 1px solid var(--line); }
.values article + article { padding-left: 27px; border-left: 1px solid var(--line); }
.value-number { font-family: var(--serif); font-size: 20px; color: var(--muted); }
.values h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.04em; font-weight: 400; margin: 30px 0 15px; }
.values p { font-size: 14px; color: var(--muted); max-width: 235px; }
.olive-note { grid-column: 1 / -1; background: var(--olive); color: var(--olive-ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 36px; margin-top: 24px; }
.olive-note > svg { width: 64px; height: 64px; }
.olive-note p { color: var(--olive-ink); font-size: 38px; line-height: 1.05; letter-spacing: -.045em; margin: 0; max-width: none; }
.olive-note em { font-size: 1.17em; }

/* ---------- Meniu ---------- */
.menu-section { background: var(--dark); color: var(--dark-ink); }
.menu-section .tiny-star { color: var(--dark-accent); }
.menu-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin: 48px 0 70px; }
.menu-heading h2 { font-size: clamp(70px, 8vw, 125px); }
.menu-heading p { font-size: 16px; color: var(--dark-muted); max-width: 330px; margin-bottom: 15px; }
.menu-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10vw; }
.menu-note { font-size: 11px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; color: var(--dark-muted); }
.menu-tabs { display: flex; flex-direction: column; margin: 26px 0 30px; }
.menu-tabs button { background: transparent; text-align: left; border: 0; border-bottom: 1px solid var(--dark-line); padding: 21px 0; display: flex; align-items: center; gap: 13px; font-size: 21px; color: var(--dark-muted); transition: color .25s, padding .25s; }
.menu-tabs button[hidden] { display: none; }
.menu-tabs .tab-arr { width: 20px; height: 20px; display: none; }
.menu-tabs button[aria-selected="true"] { color: var(--dark-ink); padding-left: 14px; border-bottom-color: var(--dark-ink); }
.menu-tabs button[aria-selected="true"] .tab-arr { display: block; }
.menu-tabs .tab-n { font-size: 12px; margin-left: auto; }
.menu-tabs button:hover { color: var(--dark-ink); }
.milk-note { font-size: 13px; color: var(--dark-muted); }
/* min-height se calculează în main.js din cel mai înalt tab — un fix aici
   ar lăsa gol când proprietarul are puține produse. */
.menu-panel { }
.menu-items[hidden] { display: none; }
.menu-item { display: flex; justify-content: space-between; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--dark-line); }
.menu-item:first-child { padding-top: 0; }
.menu-item h3 { font-size: 25px; font-weight: 400; letter-spacing: -.04em; margin: 0 0 6px; }
.menu-item p { font-size: 13px; color: var(--dark-muted); margin: 0; }
.menu-price { font-size: 22px; white-space: nowrap; }
.menu-price small { font-size: 12px; color: var(--dark-muted); margin-left: 5px; }
.allergen-note { font-size: 12px; color: var(--dark-muted); line-height: 1.5; margin-top: 24px; }

/* ---------- Spațiul ---------- */
.space-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 48px 0 58px; }
.space-heading h2 { font-size: clamp(72px, 8vw, 126px); }
.space-heading p { max-width: 330px; font-size: 16px; color: var(--muted); }
.space-photo { height: 620px; position: relative; overflow: hidden; background: var(--dark); }
.space-photo img { position: absolute; inset: 0; object-position: center 60%; }
.space-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 23, 14, .38), transparent 45%); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 40px; color: var(--hero-ink); }
.space-overlay > span:first-child { font-size: clamp(30px, 4vw, 66px); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
.round-stamp { flex: none; width: 120px; height: 120px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-12deg); font-size: 26px; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.round-stamp small { font-size: 10px; line-height: 1.5; margin-top: 5px; letter-spacing: .13em; }
.space-caption { display: flex; justify-content: space-between; gap: 24px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; padding-top: 20px; }

/* ---------- Vizită ---------- */
.visit-section { padding-top: 30px; padding-bottom: 110px; }
.visit-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10vw; margin-top: 50px; }
.visit-grid h2 { font-size: clamp(68px, 7.4vw, 116px); }
.visit-details { padding-top: 4px; }
.visit-details > div { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 34px; }
.detail-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.visit-details p { font-size: 21px; letter-spacing: -.035em; margin: 18px 0 2px; }
.visit-details p.detail-subtle { font-size: 14px; letter-spacing: 0; color: var(--muted); margin-top: 5px; }
.visit-details .text-link { margin-top: 16px; }
.phone-link { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; border-bottom: 1px solid transparent; transition: border-color .3s; }
.phone-link:hover, .plain-link:hover { border-bottom: 1px solid currentColor; }
.hours { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; margin-top: 17px; }
.visit-button { background: var(--olive); color: var(--olive-ink); justify-content: space-between; width: 100%; margin-top: 8px; }
.visit-button:hover { background: var(--ink); color: var(--cream); }

/* ---------- Footer ---------- */
footer { padding: 45px var(--gutter) 24px; background: var(--dark); color: var(--dark-ink); overflow: hidden; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; letter-spacing: .065em; text-transform: uppercase; }
.footer-top a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.footer-top a svg { width: 16px; height: 16px; }
.footer-wordmark { display: block; position: relative; font-size: 36vw; font-weight: 450; line-height: .9; letter-spacing: -.08em; margin: 22px 0 34px -.035em; width: 100%; text-align: center; white-space: nowrap; }
.footer-wordmark span { font-size: .095em; position: absolute; top: 11%; right: 3%; letter-spacing: 0; }
.footer-bottom { padding-top: 23px; border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 10px; }
.demo-note { margin: 18px 0 0; font-size: 11px; line-height: 1.5; color: var(--dark-muted); }

.split-word { display: inline-block; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .2em; margin: -.14em -.02em -.2em; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.photo-reveal img { will-change: transform; }

/* ---------- Responsive ---------- */
@media (min-width: 1700px) { .hero h1 { top: 25%; } }

@media (max-width: 1000px) {
  .story-main { grid-template-columns: 1.35fr 1fr; gap: 4vw; }
  .story-grid { gap: 4vw; }
  .coffee-photo { height: 550px; }
  .values h3 { font-size: 20px; }
  .olive-note { padding: 22px; }
  .olive-note p { font-size: 30px; }
  .olive-note > svg { width: 44px; height: 44px; }
  .menu-layout { gap: 6vw; }
  .visit-grid { gap: 6vw; }
  .space-photo { height: 510px; }
}

@media (max-width: 760px) {
  .site-header { height: 78px; }
  .logo { font-size: 46px; }
  .site-header nav, .header-visit { display: none; }
  .header-end { gap: 14px; }
  .mobile-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 12px; }
  .mobile-toggle span { display: block; width: 25px; height: 1px; background: var(--ink); }
  .mobile-nav { position: absolute; z-index: 30; top: 78px; left: 0; right: 0; background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); }

  .hero { margin: 0 9px; min-height: 630px; height: calc(100svh - 88px); max-height: 900px; }
  .hero-top { top: 25px; left: 18px; right: 18px; font-size: 10px; }
  .hero-top span:last-child { display: none; }
  .hero h1 { font-size: clamp(49px, 9.7vw, 73px); top: 24%; left: 18px; right: 14px; line-height: 1.14; }
  .hero h1 .second { padding-left: 4vw; }
  .hero-bottom { left: 18px; right: 18px; bottom: 99px; display: block; }
  .hero-bottom p { font-size: 15px; margin-bottom: 24px; }
  .pill { padding: 15px 21px; gap: 44px; }
  .scroll-note { left: 18px; right: 18px; bottom: 25px; font-size: 9px; }
  /* Banda se așază pe mai multe rânduri pe telefon. Avea `white-space: nowrap`
     plus `overflow: hidden`, deci la 375px se vedeau 2 din 4 cuvinte și restul
     dispărea în tăcere — fix pe ecranul pe care i-o arăți patronului la ușă.
     Măsurat: 637px de conținut într-o cutie de 375px. */
  .intro-strip { padding: 22px; gap: 9px 16px; flex-wrap: wrap; justify-content: center; text-align: center; font-size: 10px; }
  .intro-strip > * { flex-shrink: 0; }
  .intro-strip .strip-star { width: 16px; height: 16px; }

  .section-pad { padding: 72px 23px; }
  .section-label { font-size: 10px; gap: 11px; }
  .story-main { grid-template-columns: 1fr; gap: 30px; margin: 34px 0 40px; }
  h2 { font-size: clamp(42px, 9.5vw, 62px); }
  .story-copy { max-width: 100%; padding: 0; }
  .story-copy p { font-size: 15px; }
  .story-copy .text-link { margin-top: 6px; }
  .story-grid { grid-template-columns: 1fr; gap: 35px; }
  .coffee-photo { height: 460px; }
  .values { grid-template-rows: auto auto; }
  .values article { padding: 20px 18px 12px 0; }
  .values article + article { padding-left: 20px; }
  .values h3 { font-size: 22px; margin-top: 20px; }
  .values p { font-size: 14px; }
  .olive-note { padding: 28px; margin-top: 10px; }
  .olive-note p { font-size: 36px; }
  .olive-note > svg { width: 56px; height: 56px; }

  .menu-heading { display: block; margin: 35px 0 40px; }
  .menu-heading h2, .space-heading h2 { font-size: clamp(56px, 18vw, 80px); }
  .menu-heading p { margin-top: 26px; font-size: 15px; }
  .menu-layout { grid-template-columns: 1fr; gap: 22px; }
  .menu-note, .milk-note { display: none; }
  .menu-tabs { flex-direction: row; gap: 18px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
  .menu-tabs button { font-size: 14px; padding: 15px 0; white-space: nowrap; }
  .menu-tabs button[aria-selected="true"] { padding-left: 0; }
  .menu-tabs button[aria-selected="true"] .tab-arr, .menu-tabs .tab-n { display: none; }
  .menu-item { padding: 23px 0; }
  .menu-item h3 { font-size: 24px; }
  .menu-item p { font-size: 12px; }
  .menu-price { font-size: 21px; }

  .space-heading { display: block; margin: 36px 0; }
  .space-heading p { font-size: 15px; margin-top: 28px; max-width: 100%; }
  .space-photo { height: 480px; margin: 0 -14px; }
  .space-photo img { object-position: 66% center; }
  .space-overlay { padding: 24px; }
  .space-overlay > span:first-child { font-size: 33px; }
  .round-stamp { width: 83px; height: 83px; font-size: 20px; }
  .round-stamp small { font-size: 7px; }
  .space-caption { font-size: 9px; }
  .space-caption span:last-child { display: none; }

  .visit-section { padding-top: 8px; }
  .visit-grid { grid-template-columns: 1fr; gap: 38px; margin-top: 32px; }
  .visit-grid h2 { font-size: clamp(56px, 19vw, 78px); }
  .visit-details p { font-size: 23px; }
  .visit-details > div { margin-bottom: 30px; }

  footer { padding: 32px 23px 24px; }
  .footer-top { font-size: 9px; }
  .footer-top a { font-size: 12px; }
  .footer-wordmark { font-size: 37vw; margin: 36px 0; line-height: 1; letter-spacing: -.085em; }
  .footer-wordmark span { top: 8%; right: 0; }
  .footer-bottom { font-size: 9px; gap: 20px; line-height: 1.6; }
  .footer-bottom > span:nth-child(2) { display: none; }
}

@media (max-width: 370px) {
  .menu-tabs { gap: 13px; }
  .menu-tabs button { font-size: 12px; }
  .hero h1 { font-size: 43px; }
  .visit-grid h2 { font-size: 66px; }
  .coffee-photo { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
