/* ============================================================
   foam — cafea de specialitate, brunch & cocktailuri · Constanța
   Sistem de design: crem cald (ca posterele foam), tuș albastru-
   închis, accent cobalt (albastrul din logo-ul lor de Instagram),
   periwinkle pentru decor. Display: Bricolage Grotesque.
   Text: Newsreader. Utilitar (prețuri, program): monospace.
   ============================================================ */

:root {
  --porcelain: #F5F2EA;
  --milk: #FCFBF7;
  --ink: #191D33;
  --ink-soft: #575D75;
  --accent: #1F2EC2;
  --accent-deep: #131C7E;
  --sea: #C9D3F0;
  --sea-deep: #98A7E0;
  --line: #DFDACE;
  --radius: 18px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- tipografie comună ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ---------- butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-solid {
  background: var(--accent);
  color: var(--milk);
}

.btn-solid:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--porcelain);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--porcelain) 84%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.85rem;
}

.logo {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
  padding-right: 0.55rem;
}

.logo-bubble {
  position: absolute;
  top: 0.05rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(6rem, 11vw, 9rem);
}

.wordmark {
  font-size: clamp(5rem, 21vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin-left: -0.05em;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* bule care urcă — spuma */

.bubbles { position: absolute; inset: 0; z-index: 1; }

.bubbles span {
  position: absolute;
  bottom: -120px;
  will-change: transform;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--milk) 0%, var(--sea) 55%, var(--sea-deep) 100%);
  opacity: 0.4;
  animation: rise linear infinite;
}

.bubbles span:nth-child(1) { left: 6%;  width: 26px; height: 26px; animation-duration: 19s; }
.bubbles span:nth-child(2) { left: 15%; width: 60px; height: 60px; animation-duration: 26s; animation-delay: -8s; }
.bubbles span:nth-child(3) { left: 27%; width: 14px; height: 14px; animation-duration: 15s; animation-delay: -3s; }
.bubbles span:nth-child(4) { left: 41%; width: 38px; height: 38px; animation-duration: 22s; animation-delay: -12s; }
.bubbles span:nth-child(5) { left: 55%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: -6s; }
.bubbles span:nth-child(6) { left: 66%; width: 84px; height: 84px; animation-duration: 30s; animation-delay: -16s; }
.bubbles span:nth-child(7) { left: 78%; width: 22px; height: 22px; animation-duration: 18s; animation-delay: -2s; }
.bubbles span:nth-child(8) { left: 87%; width: 48px; height: 48px; animation-duration: 24s; animation-delay: -10s; }
.bubbles span:nth-child(9) { left: 94%; width: 12px; height: 12px; animation-duration: 14s; animation-delay: -5s; }

@keyframes rise {
  to { transform: translateY(-115vh); }
}

/* valul dintre hero și banda de meniu */

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(36px, 6vw, 72px);
  z-index: 3;
}

.wave path { fill: var(--ink); }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--porcelain);
  padding-block: 1.1rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: defilare 30s linear infinite;
}

.marquee-half {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee-track i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea);
  flex-shrink: 0;
}

@keyframes defilare {
  to { transform: translateX(-50%); }
}

/* ---------- secțiuni ---------- */

.despre, .meniu, .locatie {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

/* despre */

.despre-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.despre-titlu { position: sticky; top: 6rem; }

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  max-width: 65ch;
}

.feature-list {
  margin: 2.6rem 0 0;
  display: grid;
  gap: 1.6rem;
}

.feature {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
}

.feature dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.feature dd {
  margin: 0;
  color: var(--ink-soft);
}

/* meniu */

.meniu { background: var(--milk); border-block: 1px solid var(--line); }

.meniu-head { margin-bottom: 2.6rem; }

.meniu-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
}

.meniu-col h3 {
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
}

.col-nota {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  margin: -0.9rem 0 1.2rem;
}

.col-desc {
  color: var(--ink-soft);
  max-width: 34ch;
}

.meniu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.meniu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.item-name { font-size: 1.05rem; }

.dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-0.28rem);
}

.price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.meniu-nota {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* banda cobalt */

.banda-accent {
  position: relative;
  background: var(--accent-deep);
  color: var(--milk);
  padding-block: clamp(5rem, 10vw, 8.5rem) clamp(7rem, 13vw, 11rem);
}

.banda-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sea);
  margin-bottom: 1.4rem;
}

.banda-citat {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  max-width: 24em;
  text-wrap: balance;
}

.wave-accent path { fill: var(--porcelain); }

/* locație & program */

.locatie-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.card h3 { margin-bottom: 1.2rem; }

.card-adresa { background: var(--milk); }

.adresa {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  font-weight: 500;
}

.adresa-detaliu {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.card-program { background: var(--sea); border-color: var(--sea-deep); }

.program {
  width: 100%;
  border-collapse: collapse;
}

.program th, .program td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--sea-deep);
  text-align: left;
}

.program th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.program td {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.program-nota {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

/* bule foto — semnătura foam: fotografii rotunde plutind în hero */

.foto-bule {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.foto-bule img {
  position: absolute;
  bottom: -260px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--milk);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--ink) 22%, transparent);
  animation: urcare-foto linear infinite;
  will-change: transform;
}

.foto-bule img:nth-child(1) { width: clamp(125px, 14vw, 190px); right: 6%; animation-duration: 30s; }

.foto-bule img:nth-child(2) { width: clamp(95px, 11vw, 150px); right: 23%; animation-duration: 34s; animation-delay: -14s; }

.foto-bule img:nth-child(3) { width: clamp(100px, 12vw, 160px); right: 37%; animation-duration: 27s; animation-delay: -21s; }

.foto-bule img:nth-child(4) { width: clamp(90px, 10vw, 140px); right: 52%; animation-duration: 33s; animation-delay: -7s; }

@keyframes urcare-foto {
  to { transform: translateY(calc(-115vh - 320px)); }
}

/* fotografia interiorului, sub titlul din „Despre" */

.despre-foto-interior {
  margin-top: 1.6rem;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* galerie — mozaic cu un cadru mare și patru mici */

.galerie { padding-block: clamp(4.5rem, 9vw, 8rem) 0; }

.mozaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(130px, 15vw, 210px);
  gap: 1rem;
}

.mozaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.mozaic img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* evenimente — afișe drepte cu umbră cobalt, stil sticker */

.evenimente { padding-block: clamp(4.5rem, 9vw, 8rem) 0; }

.evenimente .lead { margin-bottom: 2.6rem; }

.afise-foam {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.afise-foam img {
  width: min(330px, 82vw);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--sea);
}

.evenimente-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.6rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--porcelain);
  padding-block: clamp(4rem, 8vw, 6.5rem) 2rem;
}

.footer-mare {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--porcelain) 22%, transparent);
  color: color-mix(in srgb, var(--porcelain) 78%, transparent);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--porcelain);
  margin-bottom: 0.6rem;
}

.footer-linkuri {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-linkuri a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: color-mix(in srgb, var(--porcelain) 78%, transparent);
  transition: color 0.2s ease;
}

.footer-linkuri a:hover { color: var(--porcelain); }

.footer-jos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--porcelain) 55%, transparent);
}

/* ---------- animații de apariție (doar cu JS activ) ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .despre-grid, .meniu-card, .locatie-grid {
    grid-template-columns: 1fr;
  }

  .despre-titlu { position: static; }

  .feature { grid-template-columns: 1fr; gap: 0.3rem; }

  .hero { min-height: 72vh; }

  .foto-bule img:nth-child(2), .foto-bule img:nth-child(4) { display: none; }

  .foto-bule img:nth-child(1) { width: 110px; right: 5%; }

  .foto-bule img:nth-child(3) { width: 88px; right: 24%; }

  .mozaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 34vw;
  }
}

@media (max-width: 640px) {
  .site-nav { display: none; }

  .header-inner { justify-content: space-between; }

  .foto-bule img:nth-child(3) { display: none; }

  .foto-bule img:nth-child(1) { width: 92px; right: 6%; }
}

/* ---------- mișcare redusă ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .bubbles span, .marquee-track, .foto-bule img { animation: none; }

  /* fără animație, bulele foto stau pe loc, în compoziție fixă */
  .foto-bule img { bottom: auto; }

  .foto-bule img:nth-child(1) { top: 14%; }

  .foto-bule img:nth-child(2) { top: 40%; }

  .foto-bule img:nth-child(3) { top: 58%; }

  .foto-bule img:nth-child(4) { top: 30%; }

  .js .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .btn { transition: none; }
}
