/* =========================================================
   Kape Later? — Cozy coffee shop landing
   Palette pulled from the logo: deep coffee on warm cream
   ========================================================= */

:root {
  --coffee-900: #2F1B12;   /* deepest brown — text, borders */
  --coffee-700: #4A2C1A;   /* logo brown */
  --coffee-500: #6B4423;   /* mid roast */
  --latte-400:  #C9A57B;   /* warm caramel highlight */
  --latte-200:  #E8D4B8;   /* foam */
  --cream-100:  #F5EBDD;   /* page background */
  --cream-50:   #FBF5EB;   /* card background */
  --paper:      #FFFCF7;
  --ink-soft:   #5A4838;

  --shadow-sm: 0 2px 8px rgba(47, 27, 18, 0.08);
  --shadow-md: 0 8px 24px rgba(47, 27, 18, 0.12);
  --shadow-lg: 0 18px 48px rgba(47, 27, 18, 0.18);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: "Dancing Script", cursive;
  --font-body: "Lora", Georgia, serif;

  --container: 1140px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--coffee-900);
  background: var(--cream-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coffee-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--latte-400); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--coffee-900); }
p { margin: 0 0 1em; }

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

.section { padding: 96px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__lede { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--coffee-500);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--coffee-700);
  color: var(--cream-50);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--coffee-900);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  border-color: var(--coffee-700);
  color: var(--coffee-700);
}
.btn--ghost:hover {
  background: var(--coffee-700);
  color: var(--cream-50);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 235, 221, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 44, 26, 0.08);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--coffee-900);
}
.nav__brand:hover { color: var(--coffee-700); }
.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--coffee-700);
  object-fit: cover;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: .98rem;
  font-weight: 500;
  color: var(--coffee-900);
}
.nav__links a:hover { color: var(--coffee-500); }
.nav__cta {
  background: var(--coffee-700);
  color: var(--cream-50) !important;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav__cta:hover { background: var(--coffee-900); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--coffee-900);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 24px 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201, 165, 123, 0.35), transparent 60%),
    radial-gradient(ellipse at 90% 90%, rgba(106, 68, 35, 0.18), transparent 55%),
    var(--cream-100);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(74, 44, 26, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .6;
  pointer-events: none;
}
.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  font-style: italic;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--coffee-500);
  font-size: .8rem;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--coffee-700);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 8px;
  background: var(--latte-400);
  opacity: .35;
  border-radius: 4px;
  z-index: -1;
}
.hero__sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__cup {
  position: relative;
  color: var(--coffee-700);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 260px;
}
.cup-svg {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(74, 44, 26, 0.25));
}
.steam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 100px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}
.steam span {
  width: 6px;
  height: 60px;
  background: linear-gradient(to top, rgba(74, 44, 26, 0.35), transparent);
  border-radius: 3px;
  animation: steam 3.2s ease-in-out infinite;
  transform-origin: bottom;
}
.steam span:nth-child(2) { animation-delay: .6s; height: 80px; }
.steam span:nth-child(3) { animation-delay: 1.2s; height: 70px; }
@keyframes steam {
  0%   { transform: translateY(0) scaleY(0.6); opacity: 0; }
  30%  { opacity: .7; }
  100% { transform: translateY(-50px) scaleY(1.2); opacity: 0; }
}

/* ---------- About ---------- */
.about { background: var(--cream-50); }
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
  align-items: center;
}
.about__facts {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.about__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(74, 44, 26, 0.25);
  gap: 16px;
}
.about__facts strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--coffee-700);
}
.about__facts span {
  color: var(--ink-soft);
  font-size: .98rem;
}
.about__badge {
  display: flex;
  justify-content: center;
}
.about__badge img {
  width: 100%;
  max-width: 360px;
  border-radius: 50%;
  border: 6px solid var(--coffee-700);
  padding: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transition: transform .4s ease;
}
.about__badge img:hover { transform: rotate(-3deg) scale(1.02); }

/* ---------- Menu ---------- */
.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.menu-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(74, 44, 26, 0.08);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.menu-card--featured {
  background: var(--coffee-700);
  color: var(--cream-50);
  border-color: transparent;
}
.menu-card--featured h3,
.menu-card--featured .menu-card__sub { color: var(--cream-50); }
.menu-card--featured ul li { color: var(--latte-200); border-color: rgba(232, 212, 184, 0.2); }
.menu-card--featured .menu-card__icon { background: rgba(255, 252, 247, 0.12); color: var(--latte-200); }

.menu-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--coffee-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.menu-card__icon svg { width: 36px; height: 36px; }
.menu-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 4px;
}
.menu-card__sub {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: .95rem;
}
.menu-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-card ul li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(74, 44, 26, 0.15);
  font-size: .98rem;
}
.menu-card ul li:last-child { border: 0; }

.menu__note {
  text-align: center;
  margin-top: 48px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream-50); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.gallery__item:hover { transform: scale(1.02); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--coffee-700);
  background: var(--latte-200);
}
.ph-1 { background: linear-gradient(135deg, #C9A57B, #6B4423); color: var(--cream-50); }
.ph-2 { background: linear-gradient(135deg, #E8D4B8, #C9A57B); }
.ph-3 { background: linear-gradient(135deg, #F5EBDD, #E8D4B8); }
.ph-4 { background: linear-gradient(135deg, #4A2C1A, #6B4423); color: var(--cream-50); }
.ph-5 { background: linear-gradient(135deg, #C9A57B, #E8D4B8); }
.ph-6 { background: linear-gradient(135deg, #6B4423, #4A2C1A); color: var(--cream-50); }

.gallery__note {
  text-align: center;
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: .9rem;
}
.gallery__note code {
  background: var(--cream-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .85rem;
}

/* ---------- Visit ---------- */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.visit__block {
  margin-bottom: 24px;
}
.visit__block h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--coffee-700);
  margin-bottom: 6px;
}
.visit__block p { margin: 0; color: var(--ink-soft); }
.visit__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--paper);
  aspect-ratio: 4 / 3;
}
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- CTA ---------- */
.cta {
  background: var(--coffee-700);
  color: var(--cream-50);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 165, 123, 0.25), transparent 70%);
}
.cta::before { top: -120px; left: -80px; }
.cta::after { bottom: -160px; right: -100px; }
.cta__inner { position: relative; z-index: 1; }
.cta h2 { color: var(--cream-50); }
.cta p { color: var(--latte-200); font-size: 1.1rem; margin-bottom: 32px; }
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--primary { background: var(--cream-50); color: var(--coffee-900); }
.cta .btn--primary:hover { background: var(--paper); color: var(--coffee-900); }
.cta .btn--ghost { border-color: var(--cream-50); color: var(--cream-50); }
.cta .btn--ghost:hover { background: var(--cream-50); color: var(--coffee-900); }

/* ---------- Footer ---------- */
.footer {
  background: var(--coffee-900);
  color: var(--latte-200);
  padding: 56px 0 32px;
  text-align: center;
}
.footer__inner { display: grid; gap: 12px; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream-50);
}
.footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--latte-400);
}
.footer__tag {
  font-style: italic;
  margin: 0;
  color: var(--latte-400);
}
.footer__meta {
  font-size: .85rem;
  color: rgba(232, 212, 184, 0.6);
  margin: 8px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 80px 24px 64px; }
  .hero__content { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero__cta { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cup { order: -1; min-height: 200px; }
  .cup-svg { width: 200px; }

  .about__grid,
  .visit__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__badge { order: -1; }
  .about__badge img { max-width: 240px; }

  .menu__grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--tall { grid-row: auto; }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(74, 44, 26, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 400px; }
  .nav__links a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(74, 44, 26, 0.06);
  }
  .nav__cta {
    margin: 12px 24px;
    text-align: center;
    border-radius: var(--radius-pill);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
