/* ============================================================
   brew — Brunch Bar · Constanța
   Sistem de design: verde forest (logo Instagram) + crem/alb,
   ton „bistro cu ștaif": serif Fraunces la titluri, Hanken
   Grotesk la text, margini festonate ca o copertină.
   Utilitar (prețuri, program): monospace.
   ============================================================ */

:root {
  --forest: #1E4634;
  --forest-deep: #143325;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --ink: #172B20;
  --ink-soft: #51635A;
  --sage: #DEE8DA;
  --sage-deep: #A9C0AA;
  --line: #E4E0D3;
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-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(--cream);
  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%; }

a { color: inherit; }

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

.wrap {
  max-width: 1080px;
  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(1.9rem, 4.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--forest);
}

h3 {
  font-size: 1.3rem;
  font-weight: 650;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--forest);
  margin-bottom: 0.9rem;
}

.eyebrow-crem { color: var(--sage-deep); }

.sectiune-head { margin-bottom: 2.4rem; }

.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 2.8rem;
}

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

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

.btn-solid {
  background: var(--forest);
  color: var(--cream);
}

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

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

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

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, 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.8rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--forest);
  text-decoration: none;
  line-height: 1;
}

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

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

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

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

.hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.stamp {
  width: clamp(100px, 14vw, 150px);
  height: auto;
  margin-inline: auto;
  display: block;
  color: var(--forest);
  animation: rotire 28s linear infinite;
}

.stamp-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.stamp-dot { fill: currentColor; }

.stamp-text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  fill: currentColor;
}

@keyframes rotire {
  to { transform: rotate(360deg); }
}

.wordmark {
  font-size: clamp(4.5rem, 17vw, 12rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-top: 1.2rem;
}

.hero-sub {
  max-width: 36rem;
  margin: 1.4rem auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

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

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

.despre, .citat, .locatie {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* despre — text + colaj foto, dovada pentru „cozy vibes" */

.despre-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 2.8rem;
}

.despre-text .lead { margin-bottom: 0; }

.despre-foto {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 5 / 6;
  justify-self: center;
}

.despre-foto img {
  position: absolute;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--ink) 18%, transparent);
}

.despre-foto img:first-child {
  width: 78%;
  top: 0;
  left: 0;
  transform: rotate(-1.5deg);
}

.despre-foto img:last-child {
  width: 56%;
  bottom: 0;
  right: 0;
  transform: rotate(1.8deg);
  border: 5px solid var(--cream);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.feature-card {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.feature-card h3 {
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.feature-card p { color: var(--ink-soft); }

/* margini festonate (copertina de bistro) */

.scallop {
  height: 16px;
  background-repeat: repeat-x;
  background-size: 28px 16px;
}

.scallop-sus {
  background-image: radial-gradient(circle 8px at 50% 100%, var(--forest) 0 7.5px, transparent 8px);
}

.scallop-jos {
  background-image: radial-gradient(circle 8px at 50% 0, var(--forest) 0 7.5px, transparent 8px);
}

/* meniu — pe verde forest */

.meniu {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.meniu h2 { color: var(--cream); }

.meniu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
}

.meniu-col h3 {
  margin-bottom: 1.3rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--sage-deep);
  color: var(--cream);
}

.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-weight: 500; }

.dots {
  flex: 1;
  border-bottom: 2px dotted color-mix(in srgb, var(--sage-deep) 55%, transparent);
  transform: translateY(-0.28rem);
}

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

.meniu-nota {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  color: var(--sage-deep);
}

/* citat */

.citat { text-align: center; }

.citat-mare {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--forest);
  max-width: 26em;
  margin-inline: auto;
  text-wrap: balance;
}

/* galerie — bandă compactă, un singur rând; scroll lateral pe ecrane mici */

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

.galerie-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
}

.galerie-grid img {
  flex: 0 0 auto;
  height: clamp(170px, 22vw, 260px);
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.95) contrast(1.02);
  scroll-snap-align: center;
}

/* evenimente — afișe „prinse în piuneze" */

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

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

.afise img {
  width: min(290px, 78vw);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 20%, transparent);
}

.afise img:first-child { transform: rotate(-1.4deg); }

.afise img:last-child { transform: rotate(1.4deg); }

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

/* locație & program */

.locatie { padding-top: 0; }

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

.card {
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.3rem);
}

.card h3 {
  color: var(--forest);
  margin-bottom: 1.2rem;
}

.card-adresa {
  background: var(--white);
  border: 1px solid var(--line);
}

.adresa {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--forest);
}

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

.adresa-detaliu a { font-weight: 700; color: var(--forest); }

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

.card-program { background: var(--sage); }

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

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

.program th {
  font-size: 0.95rem;
  font-weight: 700;
}

.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(--ink-soft);
}

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

.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.footer-mare {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

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

.footer-linkuri a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  transition: color 0.2s ease;
}

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

.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(--cream) 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: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .despre-grid, .feature-grid, .locatie-grid { grid-template-columns: 1fr; }

  .hero { min-height: 70vh; }
}

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

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

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

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

  .stamp { animation: none; }

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

  .btn { transition: none; }
}
