/* Fine Thyme Café — styles
   Colors come from their logo: black hand-drawn ink, a green thyme sprig, a white circle.
   Change a color once here and it changes everywhere. */

:root {
  --paper: #F6F8F3;      /* background: a leafy white, not cream */
  --white: #FFFFFF;
  --ink: #1F2A22;        /* text and drawn lines */
  --ink-soft: #46524A;   /* secondary text (passes contrast on paper) */
  --thyme: #4E7A3A;      /* the one accent: buttons, today's hours */
  --thyme-dark: #3C6130; /* button hover */
  --sage: #E1EAD8;       /* hours band, photo slots */
  --line: #C9D3C1;       /* thin dividers */
  --leaf: #6E9A4F;       /* leaves in the drawing only */

  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1140px;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 84px; /* room for the phone call bar */
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, p, ul, table, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--thyme); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--hand); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 6vw, 3rem); }
h3, h4, h5 { font-family: var(--sans); font-weight: 700; line-height: 1.3; }
.section-lede { color: var(--ink-soft); font-size: 1.125rem; margin-top: 6px; max-width: 46ch; }
.text-link { color: var(--thyme); font-weight: 700; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-thyme { background: var(--thyme); color: var(--white); }
.btn-thyme:hover { background: var(--thyme-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- concept banner (concept only) ---------- */
.concept-banner {
  background: var(--ink); color: var(--paper);
  font-size: .875rem; text-align: center; padding: 7px var(--gutter);
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.logo-sprig { width: 28px; height: 48px; }
.logo-word { font-family: var(--hand); font-weight: 700; font-size: 1.55rem; line-height: 1; padding-top: 4px; }
.nav { display: none; }
.header-call { min-height: 44px; padding: 10px 18px; }
.header-call-text { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 44px; }
.hero-grid { position: relative; }
.hero-text { position: relative; z-index: 1; }
.hero-kicker { font-weight: 700; color: var(--thyme); max-width: 22ch; }
.hero h1 {
  font-size: clamp(3.3rem, 14vw, 6.75rem);
  margin-top: 10px;
  max-width: 6.2em;
}
.hero-lede { font-size: 1.15rem; margin-top: 16px; max-width: 34ch; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 8px 16px;
  background: var(--sage); border-radius: 999px;
  font-weight: 600; font-size: 1rem;
}
.hero-status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--thyme); flex: none;
}
.hero-status.is-closed::before { background: var(--ink-soft); }
.hero-actions { display: grid; gap: 12px; margin-top: 20px; }
.hero-small { margin-top: 16px; color: var(--ink-soft); font-size: 1rem; }

/* The drawn sprig: tucked into the top-right corner on phones, big beside the words on desktop */
.hero-sprig {
  position: absolute; z-index: 0;
  top: -26px; right: -46px;
  width: 160px; height: 288px;
  overflow: visible;
}
.hero-sprig .stem { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; }
.hero-sprig .leaf { fill: var(--leaf); stroke: var(--ink); stroke-width: 1.4; }

/* The one moment of motion: the sprig draws itself once when the page opens */
@media (prefers-reduced-motion: no-preference) {
  .hero-sprig .stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out .15s forwards; }
  .hero-sprig .leaf { opacity: 0; animation: grow .35s ease-out forwards; animation-delay: calc(.55s + var(--i) * 22ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { opacity: 1; } }

/* ---------- hours ---------- */
.hours-band { background: var(--sage); padding: 44px 0; }
.hours-grid { display: grid; gap: 22px; }
.hours-notes { margin-top: 10px; display: grid; gap: 4px; font-weight: 600; }
.hours-notes li::before { content: "– "; color: var(--thyme); }
.hours { width: 100%; max-width: 460px; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); padding: 6px; }
.hours th, .hours td { padding: 11px 14px; text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--thyme); color: var(--white); font-weight: 700; border-top-color: transparent; }
.hours tr.is-today + tr th, .hours tr.is-today + tr td { border-top-color: transparent; }
.hours tr.is-today th { border-radius: 10px 0 0 10px; }
.hours tr.is-today td { border-radius: 0 10px 10px 0; }
.today-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--white); color: var(--thyme); font-size: .75rem; font-weight: 700; vertical-align: 2px;
}

/* ---------- notes for the owners (concept only, removed at launch) ---------- */
.owner-note {
  background: #FBF3C4; border-left: 4px solid #C9A227;
  padding: 14px 16px; border-radius: 6px;
  font-size: .9375rem; line-height: 1.5; max-width: 560px;
}
.section .owner-note { margin-top: 28px; }

/* ---------- placeholders (filled in once the owners send them) ---------- */
.placeholder {
  border: 2px dashed var(--thyme); border-radius: var(--radius);
  padding: 18px 20px; color: var(--ink-soft); background: var(--white);
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }

/* ---------- menu ---------- */
.favorite {
  margin-top: 28px; padding: 26px 22px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.favorite-label { color: #B9D9A0; font-weight: 700; }
.favorite h3 { font-family: var(--hand); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.05; margin-top: 4px; }
.favorite p:last-child { margin-top: 10px; max-width: 46ch; }

.tabs { margin-top: 34px; }
.tab-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  position: sticky; top: 8px; z-index: 5;
}
.tab-list[hidden] { display: none; }
.tab {
  min-height: 46px; border: 0; border-radius: 999px; background: transparent;
  font: 700 1rem/1 var(--sans); color: var(--ink); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab:hover:not([aria-selected="true"]) { background: var(--sage); }

.panel { margin-top: 28px; }
.panel[hidden] { display: none; }
.panel + .panel { margin-top: 44px; }
.tabs.is-ready .panel + .panel { margin-top: 28px; }
.panel-title { font-family: var(--hand); font-size: 2rem; line-height: 1.1; }
.panel-title span { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.panel-intro { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }
.group-title { margin-top: 30px; font-size: 1.15rem; color: var(--thyme); }
.dishes { margin-top: 12px; display: grid; column-gap: 40px; }
.dishes li { padding: 14px 0; border-top: 1px solid var(--line); }
.dishes h4, .dishes h5 { font-size: 1.0625rem; }
.dishes p { color: var(--ink-soft); margin-top: 2px; }
.panel-foot, .menu-foot { margin-top: 22px; color: var(--ink-soft); }
.menu-foot a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- about + photos ---------- */
.about { background: var(--white); }
.about-grid { display: grid; gap: 34px; }
.about-text p { margin-top: 14px; font-size: 1.125rem; max-width: 50ch; }
.about-text .placeholder { margin-top: 22px; }
.about-text .placeholder p { margin: 0; font-size: 1rem; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* One column on phones, and never wider than the screen */
.hours-grid, .about-grid, .visit-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
.photo {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--sage);
  border: 2px dashed var(--line);
  display: grid; place-items: center; align-content: center; gap: 10px;
  padding: 12px; text-align: center; font-size: .875rem; color: var(--ink-soft);
}
.photo-sprig { width: 30px; height: 54px; opacity: .8; }

/* ---------- reviews ---------- */
.rating { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1.125rem; }
.stars { display: inline-flex; gap: 2px; color: var(--thyme); }
.stars .icon { width: 22px; height: 22px; }
.reviews-placeholder { margin-top: 24px; max-width: 640px; }

/* ---------- find us ---------- */
.visit { padding-top: 0; }
.visit-grid { display: grid; gap: 28px; }
.visit address { margin-top: 18px; font-size: 1.125rem; }
.visit-hours { margin-top: 10px; color: var(--ink-soft); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.map {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  background: var(--sage); border: 1px solid var(--line);
}
.map-facade { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px; text-align: center; }
.map-pin { width: 36px; height: 36px; color: var(--thyme); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.map.is-loaded iframe { opacity: 1; }

/* ---------- closing band ---------- */
.cta-band { background: var(--thyme); color: var(--white); text-align: center; padding: 52px 0; }
.cta-number {
  display: inline-block; margin-top: 10px;
  font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1;
  color: var(--white); text-decoration: none; padding: 4px 8px;
}
.cta-number:hover { text-decoration: underline; text-underline-offset: 6px; }
.cta-band p { margin-top: 8px; }
.cta-band :focus-visible { outline-color: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D5DDD3; padding: 44px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 26px; }
.footer-logo { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--paper); line-height: 1.1; margin-bottom: 6px; }
.foot-h { font-weight: 700; color: var(--paper); margin-bottom: 6px; }
.foot-links { display: grid; gap: 4px; }
.foot-links a { text-underline-offset: 3px; display: inline-block; padding: 10px 0; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid #3A473E; display: flex; flex-wrap: wrap; gap: 6px 24px; color: #AEB9AC; }
.site-footer :focus-visible { outline-color: #B9D9A0; }

/* ---------- phone call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(31, 42, 34, .08);
  transition: transform .2s ease;
}
.call-bar .btn-thyme { flex: 1; min-height: 52px; }
.call-bar .btn-dir { width: 52px; min-height: 52px; padding: 0; flex: none; }
.call-bar.is-hidden { transform: translateY(110%); }

/* ================= bigger screens ================= */
@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-sprig { width: 190px; height: 340px; right: -20px; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .dishes { grid-template-columns: 1fr 1fr; }
  .hours-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .hours-grid .owner-note { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr; }
  .favorite { padding: 34px 40px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .nav { display: flex; gap: 6px; }
  .nav a { text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; }
  .nav a:hover { background: var(--sage); }
  .header-call-text { display: inline; }
  .header-call-short { display: none; }

  .hero { padding: 64px 0 80px; }
  .hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 40px; }
  .hero-sprig { position: static; width: 100%; height: auto; max-height: 520px; aspect-ratio: 170 / 305; justify-self: center; }
  .hero-sprig .stem { stroke-width: 2.4; }
  .hero-sprig .leaf { stroke-width: 1.1; }
  .hero-lede { font-size: 1.25rem; }

  .section { padding: 84px 0; }
  .hours-band { padding: 64px 0; }
  .visit { padding-top: 0; }
  .visit-grid { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; }
  .map { min-height: 380px; }
}
