/* Kiln Coffee House: warm and cosy, mobile first */
:root {
  --cream: #f6ece0;
  --paper: #fbf5ec;
  --latte: #ead6bf;
  --clay: #c4643a;
  --clay-dark: #a24d27;
  --espresso: #3b2418;
  --ink: #2c1c13;
  --muted: #6f5848;
  --honey: #f4b860;
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  padding-bottom: 72px; /* room for the phone quick bar */
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--clay-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; color: var(--espresso); }
h2 { font-size: clamp(2rem, 7vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--espresso); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.eyebrow {
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .6rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 8px 20px -8px rgba(164, 77, 39, .7); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 236, 224, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 36, 24, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--espresso); font: 700 1.5rem var(--serif); }
.nav-toggle {
  width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.nav-toggle .bar { display: block; width: 24px; height: 2.5px; background: var(--espresso); border-radius: 2px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
.nav {
  position: absolute; inset: 64px 0 auto 0; background: var(--paper);
  display: grid; padding: 8px 16px 20px; gap: 2px;
  border-bottom: 1px solid var(--latte); box-shadow: 0 20px 30px -20px rgba(59, 36, 24, .3);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a { padding: 14px 6px; text-decoration: none; color: var(--espresso); font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--latte); }
.nav a.nav-cta { border: 0; margin-top: 10px; background: var(--clay); color: #fff; border-radius: 999px; text-align: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 184, 96, .35), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(196, 100, 58, .18), transparent 45%),
    var(--cream);
}
.hero-inner { display: grid; gap: 8px; padding: 24px 0 56px; }
.hero h1 { font-size: clamp(2.8rem, 13vw, 5.4rem); letter-spacing: -.02em; margin-bottom: .3em; }
.tagline { font-size: 1.2rem; color: var(--muted); max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero-actions .btn { flex: 1 1 200px; }
/* On phones the illustration scales with screen height so both hero buttons stay above the quick bar */
.hero-art { width: max(110px, min(340px, 82%, 20vh)); width: max(110px, min(340px, 82%, 20svh)); margin: 0 auto; order: -1; }
.steam path { animation: rise 3.2s ease-in-out infinite; transform-origin: center; }
.steam path:nth-child(2) { animation-delay: .5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes rise { 0%, 100% { opacity: .35; transform: translateY(6px); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .steam path { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 64px 0; }
.about { background: var(--paper); }
.about-grid, .hours-grid, .find-grid, .contact-grid { display: grid; gap: 28px; }
.about-body p { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.features li {
  background: var(--cream); border-radius: 14px; padding: 12px 16px; font-weight: 600;
  display: flex; gap: .7rem; align-items: center;
}

/* Menu */
.menu { background: var(--espresso); color: var(--cream); }
.menu h2, .menu h3 { color: var(--cream); }
.menu .eyebrow { color: var(--honey); }
.menu-grid { display: grid; gap: 18px; margin-top: 28px; }
.menu-card {
  background: rgba(255, 248, 239, .06); border: 1px solid rgba(255, 248, 239, .12);
  border-radius: var(--radius); padding: 24px 22px;
}
.menu-card h3 small { font: 600 .8rem var(--sans); color: var(--honey); letter-spacing: .05em; margin-left: .4em; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.price-list li::after { content: none; }
.price-list span { flex: 1; display: flex; align-items: baseline; gap: 10px; }
.price-list span::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(255, 248, 239, .25); transform: translateY(-4px); min-width: 16px; }
.price-list b { color: var(--honey); font-weight: 700; }
.menu-note { margin-top: 24px; color: rgba(246, 236, 224, .7); font-size: .95rem; }

/* Hours */
.hours-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.hours-table th, .hours-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--latte); }
.hours-table td { text-align: right; font-weight: 700; color: var(--espresso); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.today { background: var(--latte); }
.hours-table tr.today th::after { content: "Today"; margin-left: .6em; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--clay); color: #fff; padding: 3px 8px; border-radius: 99px; vertical-align: middle; }
.open-now { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; padding: 6px 14px; border-radius: 99px; background: var(--paper); }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: #2e7d4f; }
.open-now.is-closed { color: var(--clay-dark); }

/* Find us */
.find { background: var(--paper); }
address { font-style: normal; font-size: 1.15rem; font-weight: 600; margin-bottom: 1rem; color: var(--espresso); }
.find-copy > p { color: var(--muted); }
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.2rem; }
.chip {
  display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 50px;
  border-radius: 14px; background: var(--cream); border: 1px solid var(--latte);
  color: var(--espresso); font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.chip:hover { background: var(--espresso); color: var(--cream); }
.map { border-radius: var(--radius); overflow: hidden; border: 6px solid var(--cream); box-shadow: 0 20px 40px -24px rgba(59, 36, 24, .5); aspect-ratio: 4 / 3.4; background: var(--latte); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Contact */
.contact p { color: var(--muted); }
.contact-form { background: var(--paper); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 16px; box-shadow: 0 20px 40px -30px rgba(59, 36, 24, .5); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--espresso); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--latte); border-radius: 12px; padding: 13px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(196, 100, 58, .15); }
.contact-form .btn { width: 100%; }
.form-status { margin: 0; font-weight: 600; color: var(--clay-dark); min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(246, 236, 224, .8); padding: 48px 0 32px; }
.site-footer a { color: var(--cream); }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { font: 700 1.6rem var(--serif); color: var(--cream); margin-bottom: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; font-weight: 700; }
.small { font-size: .85rem; opacity: .7; margin: 0; }

/* Phone quick bar */
.quick-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; padding: 6px;
  background: rgba(44, 28, 19, .94); backdrop-filter: blur(8px); border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.quick-bar a { display: grid; place-items: center; min-height: 44px; border-radius: 999px; color: var(--cream); font-weight: 700; text-decoration: none; font-size: .95rem; }
.quick-bar .qb-main { background: var(--clay); color: #fff; }

/* Larger screens */
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .contact-buttons { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .quick-bar { display: none; }
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; align-items: center; gap: 6px; padding: 0;
    background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav a { border: 0; padding: 8px 14px; font-size: 1rem; border-radius: 999px; }
  .nav a:hover { background: var(--latte); }
  .nav a.nav-cta { margin: 0 0 0 8px; padding: 10px 20px; }
  .nav a.nav-cta:hover { background: var(--clay-dark); }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 72px 0 96px; gap: 48px; }
  .hero-art { order: 0; width: 100%; margin: 0; }
  .hero-actions .btn { flex: 0 0 auto; }
  .section { padding: 96px 0; }
  .about-grid, .hours-grid, .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .find-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
  .contact-buttons { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 36px; }
  .footer-inner { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .footer-inner .small { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
