/* ---------- Design tokens (daylounge brand guide v1.0) ---------- */
:root {
  --brown: #7E4937;        /* Espresso Brown - primary */
  --brown-hover: #6b3d2d;  /* ~15% darker */
  --orange: #FAB44F;       /* Marigold Orange - accent */
  --orange-hover: #e89f36; /* ~15% darker */
  --cream: #FDFAF6;        /* Cream White - background */
  --charcoal: #3D261C;     /* Charcoal Bean - dark/reversed */
  --charcoal-hover: #2c1b14;
  --leaf: #7C8F5A;         /* muted sage - used only for leaf accents */

  --text-dark: #3D261C;
  --text-muted: #8a7266;

  --font-head: 'Poppins', 'Nunito', 'Quicksand', sans-serif;
  --font-body: 'Karla', 'Open Sans', 'Lato', sans-serif;

  --container: 1160px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { color: var(--text-dark); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--orange-hover);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; }

section { padding: 96px 0; }

/* ---------- Buttons (brand guide: pill, bold uppercase, hover darkens ~15%) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brown);
  color: var(--cream);
}
.btn-primary:hover { background: var(--brown-hover); }

.btn-secondary {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-secondary:hover { background: var(--brown); color: var(--cream); }

.btn-accent {
  background: var(--orange);
  color: var(--brown);
}
.btn-accent:hover { background: var(--orange-hover); }

.btn-ghost {
  background: var(--charcoal);
  color: var(--orange);
  border-color: var(--orange);
}
.btn-ghost:hover { background: var(--charcoal-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(126, 73, 55, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-logo { height: 48px; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a:not(.btn):not(.icon-link) {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.btn):not(.icon-link):hover { color: var(--brown); }

.nav-cta { padding: 10px 24px; font-size: 0.78rem; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  width: 22px;
  height: 22px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.icon-link svg { width: 100%; height: 100%; }
.icon-link:hover { color: var(--orange-hover); transform: scale(1.08); }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(126,73,55,0.08);
  border: 1px solid rgba(126,73,55,0.18);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--brown); }
.lang-btn.is-active {
  background: var(--brown);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 110px;
  background: linear-gradient(180deg, #FFF9F0 0%, var(--cream) 70%);
}

.hero-flourish {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 420px;
  height: 420px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-flourish svg { width: 100%; height: 100%; }

.hero-flourish--small {
  right: auto;
  left: -30px;
  top: auto;
  bottom: 20px;
  width: 200px;
  height: 160px;
  opacity: 0.7;
}

.flourish-float {
  animation: flourish-drift 7s ease-in-out infinite;
}

@keyframes flourish-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .flourish-float { animation: none; }
}

.hero-inner { max-width: 640px; position: relative; z-index: 1; }

/* ---------- Leaf & coffee bean decorations ---------- */
.decor-leaf, .decor-bean {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.decor-leaf svg, .decor-bean svg { width: 100%; height: 100%; display: block; }

.decor-leaf {
  animation: leaf-sway 5.5s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes leaf-sway {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-4px); }
}

.decor-bean {
  animation: bean-tumble 6.5s ease-in-out infinite;
}
@keyframes bean-tumble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .decor-leaf, .decor-bean { animation: none; }
}

/* ---------- Flourish animation system ---------- */
.flourish-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: flourish-draw 2.4s ease-out forwards;
}
.flourish-path--dotted { animation-delay: .3s; }

@keyframes flourish-draw {
  to { stroke-dashoffset: 0; }
}

.flourish-dot {
  transform-origin: center;
  animation: flourish-pop .5s ease-out both, flourish-bob 3.5s ease-in-out 1s infinite;
  animation-delay: 1.8s, 2.3s;
}

@keyframes flourish-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes flourish-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Flourishes below the fold: draw only once they scroll into view */
.reveal .flourish-path, .reveal .flourish-dot,
.flourish-gated .flourish-path, .flourish-gated .flourish-dot {
  animation-play-state: paused;
}
.reveal.in-view .flourish-path, .reveal.in-view .flourish-dot,
.flourish-gated.in-view .flourish-path, .flourish-gated.in-view .flourish-dot {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .flourish-path, .flourish-dot, .reveal-load { animation: none !important; }
  .flourish-path { stroke-dashoffset: 0; }
}

/* ---------- Hero load-in ---------- */
.reveal-load {
  opacity: 0;
  animation: reveal-up .7s ease-out forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease-out, transform .7s ease-out;
  transition-delay: var(--d, 0s);
}
.reveal[data-reveal="left"] { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 24px 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
}

.media-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(61,38,28,0.18);
}
.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-flourish {
  position: absolute;
  bottom: -36px;
  right: -36px;
  width: 130px;
  height: 130px;
  pointer-events: none;
}
.about-flourish svg { width: 100%; height: 100%; }

.about-copy p { margin-bottom: 1rem; color: var(--text-muted); }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Menu / Pillars ---------- */
.menu { background: #FFF9F0; position: relative; overflow: hidden; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.menu-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(126,73,55,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(126,73,55,0.12);
}

.menu-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}
.menu-icon svg { width: 100%; height: 100%; }

.menu-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Fan favorites (real menu picks) ---------- */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.pick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--cream);
  border: 1px solid rgba(126,73,55,0.1);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pick-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.pick-info { display: flex; flex-direction: column; }

.pick-name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brown);
}
.pick-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.pick-price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange-hover);
  white-space: nowrap;
}

.menu-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,38,28,0) 60%, rgba(61,38,28,0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 32px;
}
.gallery-note--link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brown);
  transition: color 0.2s ease;
}
.gallery-note--link svg { width: 20px; height: 20px; }
.gallery-note--link:hover { color: var(--orange-hover); }

/* ---------- Hours & Location ---------- */
.hours { background: var(--cream); position: relative; overflow: hidden; }

.hours-flourish {
  position: absolute;
  left: -70px;
  bottom: -50px;
  width: 260px;
  height: 260px;
  opacity: 0.5;
  pointer-events: none;
}
.hours-flourish svg { width: 100%; height: 100%; }

.hours-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.hours-list { margin-top: 24px; list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(126,73,55,0.12);
  font-family: var(--font-head);
  font-weight: 500;
}
.hours-list li span:last-child { color: var(--text-muted); }

address {
  font-style: normal;
  margin: 24px 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hours-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Coffee partner (illy) ---------- */
.partner {
  position: relative;
  overflow: hidden;
  background: #FFF9F0;
}

.partner-flourish {
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  opacity: 0.6;
  pointer-events: none;
}
.partner-flourish svg { width: 100%; height: 100%; }

.partner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.partner-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #B0202B;
  background: rgba(176,32,43,0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.partner-copy p { color: var(--text-muted); margin-bottom: 1rem; }

.partner-tagline {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--brown) !important;
  font-weight: 500;
}

.partner-media { position: relative; }

.partner-media-main {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(61,38,28,0.18);
}
.partner-media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-media-accent {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 45%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 5px solid var(--cream);
  box-shadow: 0 16px 28px rgba(61,38,28,0.25);
}
.partner-media-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-inner p {
  color: rgba(253,250,246,0.9);
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(253,250,246,0.12);
}

.footer-logo {
  height: 60px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p { color: var(--cream); font-size: 0.9rem; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact a { font-size: 0.95rem; }
.footer-contact a:hover { color: var(--orange); }

.footer-legal h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 14px;
}
.footer-legal p {
  font-size: 0.85rem;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 6px;
}
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal span { color: rgba(253,250,246,0.8); }

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-instagram svg { width: 18px; height: 18px; }

.footer-bottom {
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #FFFFFF;
}
.footer-bottom span, .footer-bottom p {
  color: #FFFFFF;
}
.footer-bottom a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Simple legal page (Impressum) ---------- */
.page-hero {
  padding: 160px 0 64px;
  background: linear-gradient(180deg, #FFF9F0 0%, var(--cream) 70%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

.legal-content { padding-bottom: 96px; max-width: 640px; }
.legal-block { margin-bottom: 32px; }
.legal-block h2 { font-size: 1.1rem; }
.legal-block dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}
.legal-block dt { color: var(--text-muted); }
.legal-block dd { color: var(--text-dark); font-weight: 500; }
.legal-block a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 32px;
}
.back-link:hover { color: var(--orange-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-inner, .hours-inner, .partner-inner { grid-template-columns: 1fr; gap: 40px; }
  .partner-media { order: -1; }
  .menu-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 72px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(126,73,55,0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a:not(.btn):not(.icon-link) { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 12px; }

  .hero { padding: 120px 0 80px; text-align: left; }
  .hero-flourish { width: 280px; height: 280px; right: -80px; top: -20px; opacity: 0.6; }
}

@media (max-width: 560px) {
  .picks-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-actions, .hero-actions, .hours-actions { flex-direction: column; }
  .btn { width: 100%; }
  .about-flourish { width: 90px; height: 90px; bottom: -20px; right: -16px; }
  .partner-flourish { width: 220px; height: 220px; }
  .partner-media-accent { width: 38%; bottom: -16px; left: -16px; border-width: 3px; }
  .decor-leaf, .decor-bean { transform: scale(0.7); }
}
