/* ==========================================================================
   Kathe Coffee — enhance.css
   Loaded AFTER style.css. Uses only the palette already defined in
   style.css (--dark, --cream, --gold, --accent-deep ...). No new colours.
   Sections: 1 Base · 2 Header & drawer · 3 Hero & offer card · 4 Section
   typography · 5 Menu · 6 Local / FAQ / branch cards · 7 Blog · 8 Footer
   · 9 Booking form · 10 Mobile · 11 Motion & accessibility
   ========================================================================== */

/* ---------- 1. Base ---------- */
html { scroll-padding-top: 110px; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--dark); color: var(--cream-text);
  padding: 10px 18px; border-radius: 999px; font-size: .8rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.btn-dark { background: var(--dark); color: #f0dcb8; border-color: var(--dark); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.btn-line { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-line:hover { background: var(--dark); color: var(--cream-text); }

/* ---------- 2. Header & drawer ---------- */
.hamburger { width: 44px; height: 44px; padding: 0 11px; }
.mobile-menu {
  height: 100vh; height: 100dvh;
  padding: 120px 34px 40px;
}
.mobile-menu a { transition: color .2s ease, padding-left .2s ease; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--gold); padding-left: 6px; }
.mobile-menu__note {
  margin-top: auto; color: var(--muted-light);
  font-size: .78rem; line-height: 1.6;
}

/* ---------- 3. Hero & offer card ---------- */
.hero-content .hero-title {
  font-family: var(--serif); color: var(--cream-text); font-weight: 500;
  font-size: clamp(2.1rem, 8vw, 4.4rem); line-height: 1.06; margin-bottom: 16px;
}
.hero-content p { text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-cta .btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }

/* ---------- 4. Section typography ---------- */
.section-title { text-wrap: balance; }
.section-para { text-wrap: pretty; max-width: 820px; }
.section-para a, .prose a, .faq a, .branch-card a:not(.btn) {
  color: var(--accent-deep); border-bottom: 1px solid var(--gold);
}
.section-para a:hover, .prose a:hover { color: var(--dark); }

.page-intro { padding: clamp(40px, 7vw, 84px) 0 clamp(8px, 2vw, 20px); text-align: center; }
.page-intro .section-para { padding-bottom: clamp(20px, 4vw, 36px); }
.page-intro__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 16px 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 18px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; color: var(--dark);
  background: var(--cream-2); border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: var(--dark); color: var(--cream-text); border-color: var(--dark); }

.marquee-track span { padding-right: .4em; }

/* ---------- 5. Menu ---------- */
.menu-sections { display: block; }
.category__text {
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(36, 24, 17, .35);
}
.category__title { text-wrap: balance; }
.menu-row__head { align-items: baseline; }
.menu-row__name { order: 1; min-width: 0; text-wrap: balance; }
.menu-row__head::after {
  content: ""; order: 2; flex: 1 1 24px; min-width: 16px; height: 0;
  border-bottom: 1px dotted var(--gold); opacity: .7; align-self: baseline;
  position: relative; top: -.25em;
}
.menu-row__price { order: 3; }
.menu-cta { text-align: center; padding: 8px 22px clamp(36px, 6vw, 64px); padding-bottom: 8px; }
.menu-cta p { color: var(--muted-dark); margin-bottom: 18px; }

/* ---------- 6. Local intro, branch cards, FAQ ---------- */
/*.local { padding: clamp(40px, 6vw, 72px) 0; padding-top: 16px; }*/
.local {
  padding-top: clamp(16px, 3vw, 32px);
  padding-top: 16px; 
  padding-bottom: clamp(40px, 6vw, 72px);
  padding-left: 0;
  padding-right: 0;
}
.branch-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px); margin-top: 8px;
}
.branch-card {
  background: var(--cream-panel); border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 40px -28px rgba(36, 24, 17, .35);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.branch-card h2, .branch-card h3 {
  font-family: var(--serif); font-weight: 500; color: var(--dark);
  font-size: clamp(1.35rem, 3.6vw, 1.75rem); line-height: 1.2;
}
.branch-card__area { color: var(--accent-deep); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.branch-card address { font-style: normal; color: var(--ink-soft); line-height: 1.65; }
.branch-card__hours { color: var(--ink-soft); font-size: .92rem; }
.branch-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.branch-card__actions .btn { padding: 13px 22px; min-height: 46px; }
.map-frame {
  margin-top: 12px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--cream-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.faq { max-width: 820px; margin: 0 auto; padding: 0 22px clamp(40px, 7vw, 80px); }
.faq details {
  border-top: 1px solid var(--line); padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.05rem, 2.8vw, 1.2rem); color: var(--dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; max-width: 70ch; line-height: 1.75; }

.contact .contact-bar { flex-wrap: wrap; gap: 12px; }
.contact-intro { color: #b8935f; max-width: 640px; margin: 0 auto 26px; }

/* ---------- 7. Blog ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 0 22px clamp(36px, 6vw, 72px); color: var(--ink); }
.prose h2 {
  font-family: var(--serif); font-weight: 500; line-height: 1.2;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem); margin: clamp(32px, 5vw, 48px) 0 14px;
  text-wrap: balance;
}
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 22px 0 8px; }
.prose p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.85; margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 1.1em; color: var(--ink-soft); line-height: 1.8; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  color: var(--ink); line-height: 1.6; border-left: 2px solid var(--gold); padding-left: 18px;
}
.prose .price { color: var(--accent-deep); font-weight: 600; white-space: nowrap; }
.post-meta { text-align: center; color: var(--muted-dark); font-size: .82rem; letter-spacing: .06em; margin-bottom: 26px; }
.post-cta {
  margin-top: 34px; padding: clamp(22px, 4vw, 34px); text-align: center;
  background: var(--dark); color: var(--cream-text); border-radius: 28px;
}
.post-cta h2 { color: var(--gold); margin-top: 0; }
.post-cta p { color: var(--muted-light); }
.post-cta .btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }
.post-cta .branch-card__actions { justify-content: center; }
.crumbs { text-align: center; font-size: .78rem; color: var(--muted-dark); padding-top: 18px; }
.crumbs a { border-bottom: 1px solid var(--line); }

.journal-teaser { text-align: center; padding: clamp(36px, 6vw, 64px) 22px; }
.journal-teaser p { max-width: 640px; margin: 0 auto 22px; color: var(--muted-dark); }

/* ---------- 8. Footer additions ---------- */
.kathe-footer-nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0;
}
.kathe-footer-nav a { color: #c8bdb0; font-size: .85rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.kathe-footer-nav a:hover { color: var(--gold); border-color: var(--gold); }
.kathe-areas { margin-top: 14px; font-size: .78rem; line-height: 1.7; color: rgba(200, 189, 176, .75); }
.kathe-social a { min-width: 44px; min-height: 44px; }

/* ---------- 9. Booking form ---------- */
.booking-form__field input,
.booking-form__field textarea,
.booking-form__field select {
  font-size: 16px; /* stops iOS Safari zooming into the field */
  font-family: var(--sans); color: var(--dark); background: var(--cream-2);
  border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 14px;
  width: 100%; min-height: 46px;
}
.booking-form__field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
.booking-form__field select:focus { outline: none; border-color: var(--gold); background-color: var(--cream); }
.booking-modal { max-height: 90vh; max-height: 90dvh; }

/* ---------- 10. Mobile ---------- */
@media (max-width: 900px) {
  .branch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 80px; }
  html { scroll-padding-top: 96px; }
  .site-header { padding: 4px 16px; }
  .brand__logo { height: 84px; }

  .hero-slide { min-height: min(76svh, 620px); }
  .hero-content { padding: 0 20px 64px; }
  .hero-content p { font-size: .98rem; max-width: 34ch; }
  .hero-arrow { display: none !important; } /* swipe + dots replace arrows on touch */
  .hero-dots { bottom: 22px; }

  /* offer card: compact banner pinned to the bottom, never covers the hero text
     (!important is needed to beat the legacy mobile rule in style.css) */
  .offer-card {
    top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important; right: 14px !important; width: auto !important; max-width: none !important;
    transform: none !important; padding: 12px 52px 12px 16px !important;
    text-align: left; border-radius: 14px; backdrop-filter: none;
  }
  .offer-card.hidden { transform: translateY(24px) !important; }
  .offer-card .confetti { display: none !important; }
  .offer-badge { font-size: 10px !important; padding: 3px 8px !important; margin-bottom: 6px; letter-spacing: .08em; }
  .offer-title { font-size: 14px !important; margin-bottom: 4px !important; }
  .offer-desc { font-size: 12px !important; margin-bottom: 10px !important; }
  .offer-btn { display: inline-block !important; width: auto !important; padding: 9px 18px; font-size: 11.5px; }

  .section-title { font-size: clamp(1.9rem, 8vw, 2.5rem); margin-top: 60px; }
  .section-para { text-align: center; padding-left: 20px; padding-right: 20px; padding-bottom: 70px; }
  .page-intro .section-para { text-align: center; }

  .category { margin: 18px auto; padding: 12px 14px; }
  .category__text { border-radius: 24px; padding: 22px 18px; }
  .category__media, .category__media--portrait { border-radius: 24px; min-height: 0; aspect-ratio: 4 / 3; }
  .menu-row__name { font-size: 1rem; }
  .menu-row__note { font-size: .88rem; }

  .branch-card { border-radius: 24px; }
  .prose { padding-left: 20px; padding-right: 20px; }
  .kathe-footer-nav { gap: 4px 18px; }
}

@media (max-width: 480px) {
  .btn { padding: 14px 24px; }
  .branch-card__actions .btn { flex: 1 1 100%; }
  .menu-row__head::after { display: none; }
  .chip { min-height: 44px; }
  .booking-modal { padding: 40px 20px 26px; border-radius: 20px; }
  .faq { padding-left: 18px; padding-right: 18px; }
}

/* ---------- 11. Motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .nav-cta, .hero-slide::before { animation: none !important; }
  .hero-content { opacity: 1 !important; transform: none !important; animation: none !important; }
  .category__media, .category__text { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Menu category chips: single swipeable row on phones instead of a tall wrapped block */
@media (max-width: 768px) {
  .page-intro__links {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    padding: 4px 16px 14px; scrollbar-width: none;
  }
  .page-intro__links::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
}
.local .section-para { margin-bottom: 40px; }
/* Contact bar: 4 equal boxes, centred, text never clipped */
.contact .contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  gap: 12px;
  padding: 12px;
}
.contact .contact-pill--label {
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 0 30px;          /* equal space left and right */
  min-width: 190px;         /* all 4 boxes the same width */
  white-space: nowrap;
}

/* Phones: 2 x 2 grid */
@media (max-width: 768px) {
  .contact .contact-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    border-radius: 28px;
    gap: 10px;
    padding: 10px;
  }
  .contact .contact-pill--label {
    min-width: 0;
    height: auto;
    min-height: 56px;
    padding: 10px 12px;
    font-size: .88rem;
    line-height: 1.25;
    white-space: normal;    /* long names wrap instead of clipping */
  }
}
