/* Koacafe – main styles. Ensures full page layout (not just logo). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: #2c2c2c;
  background: #fafafa;
  line-height: 1.5;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ----- Header / Nav ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1.15rem;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}
.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.nav-link:hover { color: #6b4423; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 4px 0;
}

/* ----- Hero: entrance animations ----- */
@keyframes heroCupIn {
  0% { opacity: 0; transform: scale(0.82) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes heroScrollIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  background: linear-gradient(160deg, #f5efe6 0%, #e8ddd0 50%, #d4c4b0 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,255,255,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.hero-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-cup.png') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}
.hero-image {
  width: 280px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  animation: heroCupIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.hero-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-logo {
  width: 100px;
  height: 100px;
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0;
  color: #2c2c2c;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.hero-tagline {
  font-size: 1.1rem;
  color: #555;
  margin: 0.75rem 0 1.25rem;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero-content .btn-primary {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
  background: #6b4423;
  color: #fff;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
  background: #6b4423;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #6b4423;
  border: 2px solid #6b4423;
}
.menu-pdf-cta {
  text-align: center;
  margin: 0 0 1.5rem;
}
.menu-pdf-link { font-size: 0.95rem; }
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: heroScrollIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}
.scroll-indicator {
  color: #666;
  text-decoration: none;
  font-size: 1.5rem;
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}
.section-subtitle {
  text-align: center;
  color: #666;
  margin: 0 0 2rem;
}

/* ----- Menu ----- */
.menu-section { background: #fff; }

.menu-tagline-strip {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #6b4423 0%, #8b5a2b 50%, #6b4423 100%);
  background-size: 200% 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(107, 68, 35, 0.35);
  animation: menuTaglineFlash 2.5s ease-in-out 0.3s both;
}
@keyframes menuTaglineFlash {
  0% { opacity: 0; transform: scale(0.98); box-shadow: 0 2px 10px rgba(107, 68, 35, 0.2); }
  40% { opacity: 1; transform: scale(1.02); box-shadow: 0 6px 28px rgba(107, 68, 35, 0.5); }
  70% { transform: scale(1); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 4px 20px rgba(107, 68, 35, 0.35); }
}
.menu-tagline-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.menu-currency-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.menu-currency-label { font-weight: 500; }
.menu-currency-select { padding: 0.4rem 0.75rem; border-radius: 6px; border: 1px solid #ccc; }
.menu-currency-hint { font-size: 0.85rem; color: #888; display: none; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.menu-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.menu-category:has(.menu-category-slogan) .menu-category-title {
  margin-bottom: 0.35rem;
}
.menu-category-slogan {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 400;
  color: #777;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}
.menu-pasta-key {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b4423;
  margin: -0.35rem 0 0.5rem;
  line-height: 1.3;
}
.menu-pasta-key--right {
  text-align: right;
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.menu-category:has(.menu-category-slogan) .menu-pasta-key--right {
  margin-top: -0.15rem;
}
.menu-category:has(.menu-pasta-key) .menu-category-slogan {
  margin-bottom: 0.35rem;
}
.menu-pasta-key--split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.menu-pasta-key--split .menu-pasta-key__note {
  font-weight: 500;
  color: #666;
}
.menu-pasta-key--split .menu-pasta-key__cols {
  font-weight: 600;
  color: #6b4423;
  text-align: right;
  flex-shrink: 0;
}
.menu-title-icon-coffee { display: inline-flex; }
.menu-title-img { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.menu-category-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; flex-shrink: 0; color: #6b4423; }
.menu-category-icon svg { width: 100%; height: 100%; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}
.item-name { flex: 1; }
.item-name-with-desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}
.item-name-primary { font-weight: 500; }
.item-desc {
  font-size: 0.82rem;
  color: #666;
  font-weight: 400;
  line-height: 1.35;
  max-width: 20rem;
}
.item-price { font-weight: 600; color: #6b4423; white-space: nowrap; align-self: flex-start; }
.menu-list li:has(.item-name-with-desc) { align-items: flex-start; }
.menu-item-bold .item-name { font-weight: 600; }

.menu-qr-block {
  margin-top: 2.5rem;
  padding: 0;
}
.menu-qr-inner {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #faf8f5 0%, #f5f2ee 100%);
  border: 1px solid rgba(107, 68, 35, 0.15);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.menu-qr-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}
.menu-qr-desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.45;
}
.menu-qr-figure {
  display: inline-block;
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.menu-qr-figure .menu-qr-mount :is(img, canvas, table) {
  display: block;
  max-width: 100%;
  height: auto;
}
.menu-qr-mount {
  display: inline-block;
  vertical-align: middle;
}
.menu-qr-url {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  word-break: break-all;
}
.menu-qr-url-link {
  color: #6b4423;
  text-decoration: none;
  font-weight: 500;
}
.menu-qr-url-link:hover {
  text-decoration: underline;
}
.menu-qr-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #888;
}

/* ----- About ----- */
.about-section { background: #f5f2ee; }
.about-content { max-width: 640px; margin: 0 auto; }
.about-lead { font-size: 1.1rem; font-weight: 500; }
.about-mission, .about-ambiance {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

/* ----- Gallery ----- */
.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #eee;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Reviews ----- */
.reviews-section { background: #f5f2ee; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.review-text { margin: 0 0 0.75rem; font-style: italic; color: #444; }
.review-author { margin: 0; font-size: 0.9rem; color: #666; }

/* ----- Contact ----- */
.contact-section { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: #f9f9f9;
  padding: 1.25rem;
  border-radius: 10px;
  text-align: center;
}
.contact-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.contact-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.contact-card p { margin: 0; font-size: 0.95rem; }
.contact-card a { color: #6b4423; text-decoration: none; }
.contact-card-qr { display: flex; flex-direction: column; align-items: center; }
.contact-qr-img {
  max-width: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-qr-img :is(img, canvas, table) {
  max-width: 140px;
  height: auto;
  border-radius: 8px;
}
.contact-qr-handle { margin: 0.5rem 0 0; font-weight: 600; }
.contact-map-wrap { margin-top: 2rem; }
.contact-map-title { margin: 0 0 0.5rem; }
.contact-map-link { color: #6b4423; text-decoration: none; font-weight: 500; }
.contact-map-embed { border-radius: 10px; overflow: hidden; margin: 0.75rem 0; }
.contact-map-address { font-size: 0.95rem; color: #555; margin: 0.5rem 0 0; }

/* ----- Footer ----- */
.footer {
  background: #2c2c2c;
  color: #ccc;
  padding: 1.5rem 0;
  text-align: center;
}
.footer-text { margin: 0; font-size: 0.9rem; }

/* ----- Social float ----- */
.social-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-float-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.social-float-whatsapp { background: #25d366; color: #fff; }
.social-float-insta { background: linear-gradient(45deg, #f09433, #e1306c, #833ab4); color: #fff; }
.social-float-icon { width: 22px; height: 22px; flex-shrink: 0; }
.social-float-label { white-space: nowrap; }

/* ----- Mobile nav ----- */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    padding: 4rem 1.5rem 1.5rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-menu.show {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .hero-logo { width: 80px; height: 80px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
