/* ============================================
   CAFÉ MALLI — vintage, young, light
   Colors derived from the logo:
   - Olive/forest green: #3F5526
   - Cream/butter yellow: #EFF09F
   - Pink flower accent: #D88BC7
   ============================================ */

:root {
  --app-height: 100vh;
  --hero-mobile-extra: 2.5rem; /* tune per design */

  --green: #3F5526;
  --green-deep: #2F4019;
  --green-soft: #5C7740;
  --cream: #EFF09F;
  --cream-warm: #F5F2D6;
  --pink: #D88BC7;
  --bg: #F5F2D6;       /* warm off-white background */
  --ink: #2F4019;      /* default text color */

  --font-display: 'Bowlby One', 'Arial Black', sans-serif;
  --font-body: 'Fraunces', Georgia, 'Times New Roman', serif;

  --radius: 28px;
  --radius-lg: 48px;

  --container: 1200px;
}

/* ===== Reset / Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

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

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

/* Subtle paper-like grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.25 0 0 0 0 0.10 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--pink);
}

.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--green-soft);
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--cream); opacity: 0.85; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(245, 242, 214, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 85, 38, 0.12);
}

.nav__logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--green);
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav__links a:hover { color: var(--green-deep); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Burger */
.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav__burger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--green);
  border-radius: 2px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  transition: color 0.2s ease;
}
.mobile-menu__links a:hover { color: var(--pink); }
.mobile-menu__ig {
  margin-top: 24px;
  color: var(--cream);
  transition: color 0.2s ease;
}
.mobile-menu__ig:hover { color: var(--pink); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(var(--app-height) + var(--hero-mobile-extra));
  }
}

/* Hero copy fades in once the hero logo has loaded (see script.js). */
.hero .hero__inner {
  opacity: 0;
  transition: opacity 0.55s ease;
}
.hero.hero--content-ready .hero__inner {
  opacity: 1;
}

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

/* Decorative flower scatter */
.flower {
  position: absolute;
  color: var(--pink);
  font-size: 3rem;
  animation: spin 18s linear infinite;
  opacity: 0.85;
  user-select: none;
}
.flower--1 { top: 14%; left: 10%; font-size: 2.2rem; animation-duration: 22s; }
.flower--2 { top: 22%; right: 12%; font-size: 3.2rem; animation-duration: 16s; animation-direction: reverse; }
.flower--3 { bottom: 22%; left: 16%; font-size: 2.5rem; animation-duration: 20s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__logo {
  width: min(420px, 70vw);
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.25));
}

.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--cream);
  opacity: 0.9;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--cream);
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll indicator (steaming coffee cup) ===== */
.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--cream);
  cursor: pointer;
  z-index: 3;
  animation: floatBob 2.6s ease-in-out infinite;
}

@keyframes floatBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}

.cup {
  position: relative;
  width: 38px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cup__body {
  width: 34px;
  height: 28px;
  background: var(--cream);
  border-radius: 3px 3px 17px 17px;
  position: relative;
  border: 2px solid var(--cream);
}
.cup__body::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px;
  height: 4px;
  background: #6F4F28;
  border-radius: 2px;
}
.cup__handle {
  position: absolute;
  right: -8px;
  top: 6px;
  width: 9px;
  height: 13px;
  border: 2px solid var(--cream);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}
.cup__saucer {
  width: 42px;
  height: 4px;
  background: var(--cream);
  border-radius: 50%;
  margin-top: 1px;
}

.steam {
  position: absolute;
  bottom: 30px;
  width: 3px;
  height: 11px;
  background: var(--cream);
  border-radius: 3px;
  opacity: 0;
  filter: blur(0.5px);
  animation: steam 2.4s ease-in-out infinite;
}
.steam--1 { left: 9px; animation-delay: 0s; }
.steam--2 { left: 17px; animation-delay: 0.5s; height: 12px; }
.steam--3 { left: 25px; animation-delay: 1s; }

@keyframes steam {
  0%   { opacity: 0; transform: translateY(0) scaleY(0.6); }
  30%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-17px) scaleY(1.25) translateX(3px); }
}

.scroll-indicator__text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  opacity: 0.85;
  margin-top: 2px;
}

.scroll-indicator__arrow {
  opacity: 0.7;
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding: 120px 32px;
  background: var(--bg);
}

.about__container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(63, 85, 38, 0.18);
  transform: rotate(-2deg);
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--pink);
  color: var(--green-deep);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transform: rotate(8deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.about__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--green-deep);
  margin-bottom: 28px;
}

.about__text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--ink);
}

.about__text strong {
  color: var(--green-deep);
  font-weight: 600;
}

/* ===== MENU ===== */
.menu {
  background: var(--green);
  color: var(--cream);
  padding: 120px 32px;
  position: relative;
}

.menu::before, .menu::after {
  content: '✿';
  position: absolute;
  color: var(--pink);
  font-size: 4rem;
  opacity: 0.5;
}
.menu::before { top: 60px; left: 8%; transform: rotate(-15deg); }
.menu::after  { bottom: 60px; right: 8%; transform: rotate(20deg); }

.menu__header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.menu__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--cream);
}
.menu__title em { color: var(--pink); }

.menu__grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.menu__column-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(239, 240, 159, 0.3);
}

.menu__icon {
  font-size: 1.4rem;
  color: var(--pink);
}

.menu__list { list-style: none; }

.menu__list li {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  font-size: 1.1rem;
  font-family: var(--font-body);
}

.menu__item-name {
  color: var(--cream);
  font-weight: 500;
  white-space: nowrap;
}

.menu__dots {
  flex: 1;
  border-bottom: 2px dotted rgba(239, 240, 159, 0.4);
  margin: 0 14px;
  transform: translateY(-5px);
}

.menu__price {
  color: var(--pink);
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
}

.menu__note {
  text-align: center;
  margin-top: 60px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.7;
}

/* ===== FIND US ===== */
.find {
  padding: 120px 32px;
  background: var(--bg);
}

.find__header {
  text-align: center;
  margin-bottom: 70px;
}

.find__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--green-deep);
}

.find__container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.find__info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-deep);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.info-block p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hours {
  list-style: none;
  border-top: 1px solid rgba(63, 85, 38, 0.15);
}
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(63, 85, 38, 0.15);
}
.hours li span:first-child {
  font-weight: 500;
  color: var(--green-deep);
}
.hours li span:last-child {
  font-style: italic;
  color: var(--green-soft);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1), background 0.3s ease;
}
.social-icon:hover {
  background: var(--pink);
  color: var(--green-deep);
  transform: rotate(-8deg) scale(1.05);
}

.find__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(63, 85, 38, 0.18);
  border: 6px solid var(--cream);
}

.find__map iframe {
  width: 100%;
  height: 520px;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
  padding: 36px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.footer__small {
  opacity: 0.6;
  margin-top: 6px;
  font-style: italic;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 2.75rem);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { padding: 12px 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .about { padding: 80px 24px; }
  .about__container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about__image-wrap {
    max-width: 420px;
    margin: 0 auto;
    transform: rotate(-2deg);
  }

  .menu { padding: 80px 24px; }
  .menu__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .menu::before, .menu::after { font-size: 2.5rem; }

  .find { padding: 80px 24px; }
  .find__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .find__map iframe { height: 380px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 110px 20px 70px; }
  .hero__logo { width: 75vw; }
  .scroll-indicator { bottom: 14px; }
  .about__badge { padding: 10px 16px; font-size: 0.8rem; }
  .menu__list li { font-size: 1rem; }
  .menu__column-title { font-size: 1.35rem; }
}
