/* ============================================================
   Caffè e Gelato — Berlin Potsdamer Platz
   ============================================================ */

:root {
  --cream: #f6f0e3;
  --cream-2: #efe6d3;
  --sand: #e4d7bd;
  --gold: #c39a4d;
  --gold-deep: #a97f37;
  --ink: #2f2620;
  --ink-soft: #5b4f45;
  --grey-blue: #9aa6ac;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(60, 45, 25, .14);
  --shadow-sm: 0 8px 24px rgba(60, 45, 25, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; color: var(--ink); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: .9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(163,127,55,.32); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.35); color: var(--ink); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.6); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 240, 227, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(163,127,55,.15);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(60,45,25,.10); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.5rem; gap: 1rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.brand-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }

.nav-links { display: flex; gap: 1.7rem; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-mobile { display: none; flex-direction: column; padding: 0 1.5rem; overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.nav-mobile a { padding: .85rem 0; border-bottom: 1px solid rgba(163,127,55,.12); font-weight: 500; color: var(--ink-soft); }

/* ============================================================
   HERO  — recreates the brand gradient + concentric circles,
   crossfades into a photo and zooms in while scrolling, then
   fades out as the next section scrolls into view.
   ============================================================ */
.hero-wrap {
  position: relative;
  height: 360vh; /* scroll room that drives the pinned hero animation */
}
.hero {
  position: sticky; top: 0;
  height: 100vh; min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  /* cool blue-grey (left) -> warm gold/cream (right), like the brand banner */
  background: linear-gradient(105deg,
      #8f9ba3 0%,
      #a7aca6 22%,
      #c9c1a4 48%,
      #ddcfa4 70%,
      #e7d29a 100%);
  will-change: opacity;
}
.hero-pattern {
  position: absolute; inset: -10% -5%;
  background-image: url("img/circles.svg");
  background-size: 190px 190px;
  opacity: .5;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}
.hero-bg-photo {
  position: absolute; inset: 0;
  background: url("img/locale-hero.png") center 60% / cover no-repeat;
  opacity: 0;
  transform: scale(1);
  will-change: opacity, transform;
  pointer-events: none;
}
.hero::after { /* soft light bloom */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; transform-origin: center; will-change: opacity, transform; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.92); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  color: #fff; font-weight: 700; letter-spacing: -.02em;
  text-shadow: 0 4px 30px rgba(70,55,25,.25);
}
.hero-subtitle {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2rem); color: rgba(255,255,255,.95);
  margin-top: .3rem;
}
.hero-lead {
  margin: 1.5rem auto 0; max-width: 540px;
  font-size: 1.08rem; color: rgba(255,255,255,.95);
  text-shadow: 0 2px 12px rgba(70,55,25,.18);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* Google badge */
.google-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 2.2rem; padding: .6rem 1.1rem;
  background: rgba(255,255,255,.92); border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.google-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-logo { display: flex; }
.g-text { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink); }
.g-text strong { font-size: 1.05rem; }
.g-stars { color: #f5b301; letter-spacing: 1px; position: relative; }
.g-star-half { position: relative; display: inline-block; }
.g-star-half::after { content: "★"; position: absolute; left: 0; top: 0; width: 40%; overflow: hidden; color: #f5b301; }
.g-star-half { color: rgba(245,179,1,.30); }
.g-count { color: var(--ink-soft); }

/* ============================================================
   INFO BAR
   ============================================================ */
.infobar {
  background: var(--ink); color: var(--cream);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem;
  padding: 1rem 1.5rem;
}
.infobar-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ib-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); }
.ib-value { font-size: .95rem; }
.ib-value a { color: var(--cream); }
.ib-value a:hover { color: var(--gold); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; position: relative; }
.section::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background-image: url("img/circles-ink.svg");
  background-size: 280px 280px;
  opacity: .1;
  pointer-events: none;
  z-index: 0;
}
.section > * { position: relative; z-index: 1; }
.section-alt { max-width: none; background: var(--cream-2); overflow: hidden; }
.section-alt::before {
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; margin-top: .6rem; }

.section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.section-grid-rev .section-media { order: 2; }
.section-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.section-text h2 { margin-bottom: 1.1rem; }
.section-text p { color: var(--ink-soft); margin-bottom: 1rem; }
.section-text em { color: var(--gold-deep); font-style: normal; font-weight: 600; }

.checklist { list-style: none; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Values ===== */
.values-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
}
.value-card {
  background: var(--white); border-radius: var(--radius-sm); padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(163,127,55,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); font-weight: 600; }
.value-card h3 { margin: .6rem 0 .5rem; }
.value-card p { font-size: .92rem; color: var(--ink-soft); }

/* ===== Gallery ===== */
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 1.2rem;
}
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-lg { grid-row: span 2; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem .9rem; color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(30,22,15,.72));
}

.eis-snack {
  margin-top: 2.5rem; background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 2.2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.eis-snack h3 { color: #fff; margin-bottom: .4rem; }
.eis-snack p { color: rgba(246,240,227,.8); max-width: 560px; }

/* ===== Ambiente ===== */
.ambiente-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.ambiente-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ambiente-item img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.ambiente-item:hover img { transform: scale(1.04); }

/* ===== Cool box section media height ===== */
.section-cool .section-media img { aspect-ratio: 3/4; max-height: 520px; }

/* ===== Gutschein ===== */
.gutschein { display: flex; justify-content: center; }
.gutschein-card {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: 3.2rem; text-align: center; max-width: 720px;
  box-shadow: var(--shadow);
}
.gutschein-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("img/circles.svg"); background-size: 160px 160px;
  opacity: .18; mix-blend-mode: overlay;
}
.gutschein-card > * { position: relative; z-index: 1; }
.gutschein-card h2 { color: #fff; margin: .6rem 0 1rem; }
.gutschein-card p { color: rgba(255,255,255,.92); margin-bottom: 1.6rem; }
.gutschein-tag { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; }
.gutschein-card .btn-primary { background: #fff; color: var(--gold-deep); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.gutschein-card .btn-primary:hover { background: var(--cream); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; }
.contact-info { display: grid; gap: 1.8rem; }
.contact-block h3 { margin-bottom: .5rem; color: var(--gold-deep); font-size: 1.05rem; }
.contact-block p, .contact-block a { color: var(--ink-soft); }
.contact-block a:hover { color: var(--gold-deep); }
.hours { list-style: none; display: grid; gap: .45rem; }
.hours li { display: flex; justify-content: space-between; max-width: 340px; color: var(--ink-soft); border-bottom: 1px dashed rgba(163,127,55,.25); padding-bottom: .3rem; }
.hours li span:last-child { font-weight: 600; color: var(--ink); }
.contact-map { position: relative; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); margin-top: 2rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("img/circles.svg");
  background-size: 170px 170px;
  opacity: .07;
  pointer-events: none;
}
.site-footer > * { position: relative; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-brand .brand-name { color: #fff; font-size: 1.5rem; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-content: flex-start; }
.footer-links a { color: rgba(246,240,227,.8); font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { text-align: right; color: rgba(246,240,227,.7); font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(246,240,227,.14); text-align: center; padding: 1.2rem 1.5rem; font-size: .82rem; color: rgba(246,240,227,.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .site-header.open .nav-mobile { max-height: 420px; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-grid-rev .section-media { order: 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .ambiente-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-lg { grid-column: span 2; grid-row: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-cool .section-media img { aspect-ratio: 4/3; max-height: none; }
}

@media (max-width: 560px) {
  .hero-wrap { height: 290vh; }
  .section { padding: 4rem 1.2rem; }
  .infobar { gap: 1.4rem; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-lg { grid-column: auto; }
  .gutschein-card { padding: 2.2rem 1.5rem; }
  .eis-snack { padding: 1.8rem 1.5rem; }
  .footer-meta { text-align: left; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
