/* book.cloveandcapital.coffee - The Nook at Haraz New Brunswick
 *
 * Palette and type follow harazcoffeehouse.com (white ground, Nunito Sans,
 * near-black ink, gold accent, charcoal buttons, dark brown footer, tan
 * copy panels beside big rounded photos). The Nook partners can restyle
 * from the tokens below without touching layout. */

:root {
  --ink: #252525;
  --muted: rgba(37, 37, 37, .72);
  --gold: #cbac6a;
  --gold-dark: #a4873f;
  --tan: #c69c6d;
  --tan-ink: #fff;
  --cream: #f7f2eb;
  --line: #e6e0d6;
  --charcoal: #2c332f;
  --brown: #2a1e14;
  --white: #fff;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.eyebrow {
  display: inline-block; margin-bottom: .6rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark);
}
.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }

/* ---- buttons ---- */
.btn, .btn-primary {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-primary:hover { background: #1d221f; }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #d8bb7c; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost.on-dark:hover { background: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand .mark { font-weight: 900; letter-spacing: .22em; font-size: 1.05rem; color: var(--gold-dark); }
.brand .sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 1.5rem; font-size: .92rem; font-weight: 700; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dark); }
.topbar .btn { padding: .55rem 1.1rem; font-size: .85rem; white-space: nowrap; }
@media (min-width: 760px) { .nav { display: flex; } }

/* ---- hero ---- */
.hero { position: relative; color: var(--white); background: var(--brown); overflow: hidden; }
.hero .photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: .55; }
.hero .photo .todo { top: 12px; bottom: auto; right: 12px; left: auto; }
.hero .wrap { position: relative; padding: clamp(4rem, 12vw, 8.5rem) 0; max-width: 780px; margin-left: max(20px, (100% - var(--max)) / 2); }
.hero .eyebrow { color: var(--gold); }
.hero p { font-size: 1.15rem; max-width: 34em; color: rgba(255,255,255,.9); }
.hero.compact .wrap { padding: clamp(3rem, 8vw, 5.5rem) 0; }

/* ---- photo slots (until the store's photography is in) ---- */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 20% 10%, #d9b985 0, transparent 55%),
    radial-gradient(90% 80% at 90% 90%, #6b4a2f 0, transparent 60%),
    linear-gradient(160deg, #b5895a, #3f2a1b);
}
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 7; }
.photo .todo {
  position: absolute; left: 12px; bottom: 12px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.45); color: #fff; padding: .3rem .6rem; border-radius: 999px;
}

/* ---- sections ---- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
section.cream { background: var(--cream); }
.section-head { max-width: 40em; margin-bottom: 2rem; }

/* alternating photo + tan panel (the Haraz catering-page pattern) */
.band { display: grid; gap: 1.25rem; align-items: stretch; }
.band .panel {
  background: var(--tan); color: var(--tan-ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex; flex-direction: column; justify-content: center;
}
.band .panel h2 { color: var(--white); }
.band .panel .eyebrow { color: rgba(255,255,255,.85); }
.band .panel .price { font-size: 1.05rem; font-weight: 800; margin: .25rem 0 1rem; }
.band .panel .btn { align-self: flex-start; }
.band .panel .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.band .panel .btn-primary:hover { background: var(--cream); }
@media (min-width: 820px) {
  .band { grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
  .band.flip .photo { order: 2; }
}

/* steps */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 900; font-size: .9rem; margin-bottom: .6rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.step p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* facts row (price / notice / delivery tiles) */
.facts { display: grid; gap: 1rem; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--white); }
.fact strong { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.fact span { font-size: .92rem; color: var(--muted); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* price table */
.menu { width: 100%; border-collapse: collapse; margin: 1rem 0 .5rem; }
.menu th, .menu td { text-align: left; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
.menu th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.menu td:last-child, .menu th:last-child { text-align: right; white-space: nowrap; font-weight: 800; }

/* menu as a list (no prices on the site) */
.menu-list { list-style: none; padding: 0; margin: 1rem 0 .75rem; }
.menu-list li { padding: .8rem .25rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.menu-list li span { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; margin-top: .15rem; }
.menu-list + .muted { margin-bottom: 2rem; }

/* plain lists */
.list { padding-left: 1.2rem; margin: 0 0 1rem; }
.list li { margin: .3rem 0; }
.rules { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: 0; margin: 0; list-style: none; font-weight: 700; font-size: .95rem; }
.rules li::before { content: "\2014\00a0"; color: var(--gold-dark); }

/* quantity grid in the catering form (boxes / urns per beverage) */
.qty-grid { display: grid; gap: .6rem; margin-bottom: .75rem; }
.qty-row { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .75rem; border: 1.5px solid var(--line); border-radius: 10px; }
.qty-row .qty-name strong { display: block; }
.qty-row .qty-name .hint { margin: 0; }
.qty-row label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 700; font-size: .9rem; }
.qty-row input[type="number"] { width: 5.5rem; min-height: 42px; }
@media (min-width: 560px) { .qty-row { grid-template-columns: 1.6fr 1fr 1fr; align-items: center; } .qty-row label { flex-direction: column; align-items: stretch; } }

/* two-column content */
.cols { display: grid; gap: 2rem; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-dark); font-weight: 900; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: .6rem 0 0; color: var(--muted); }

/* gallery */
.gallery { display: grid; gap: 1rem; }
.gallery figure { margin: 0; }
.gallery .photo { aspect-ratio: 1 / 1; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* closing call to action */
.closing { background: var(--charcoal); color: var(--white); text-align: center; }
.closing .wrap { max-width: 640px; }
.closing .eyebrow { color: var(--gold); }
.closing h2 { color: var(--white); }
.closing p { color: rgba(255,255,255,.85); }
.closing .actions { justify-content: center; }

/* ---- footer ---- */
.footer { background: var(--brown); color: rgba(255,255,255,.85); padding: 3rem 0 2rem; font-size: .95rem; }
.footer .wrap { display: grid; gap: 2rem; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .6rem; }
.footer a { color: var(--white); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .35rem 0; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; font-size: .8rem; color: rgba(255,255,255,.55); }
@media (min-width: 700px) { .footer .wrap { grid-template-columns: 1.4fr 1fr; } }

/* ================= form (rendered by /js/form.js) ================= */
#inquiry { max-width: 680px; }
#inquiry form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); }
.field { margin: 0 0 1.1rem; }
.field label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: .35rem; }
.field label .req { color: #b3261e; }
.field .hint { font-size: .85rem; color: var(--muted); margin: .25rem 0 0; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #cfc7ba; border-radius: 10px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:not([type="radio"]):not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(203,172,106,.3); }
.field .error { display: none; color: #b3261e; font-size: .85rem; margin-top: .3rem; font-weight: 700; }
.field.invalid input:not([type="radio"]):not([type="checkbox"]), .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .error { display: block; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1rem .25rem; margin: 0 0 1.1rem; }
legend { font-weight: 800; padding: 0 .4rem; }
fieldset .hint { font-size: .85rem; color: var(--muted); margin: -.25rem 0 .75rem; }

.checkbox-grid { display: grid; gap: .5rem; margin-bottom: .75rem; }
@media (min-width: 520px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.checkbox-grid label {
  display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
}
.checkbox-grid label:has(input:checked) { border-color: var(--gold-dark); background: #fbf6ec; }
.checkbox-grid input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold-dark); }
.checkbox-grid .price { margin-left: auto; font-weight: 800; }

.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-row label {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .92rem; cursor: pointer;
}
.radio-row label:has(input:checked) { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.radio-row input[type="radio"] { accent-color: var(--charcoal); margin: 0; }
.radio-row input[type="date"] { min-height: 42px; font: inherit; font-size: 16px; padding: .4rem .6rem; border: 1.5px solid #cfc7ba; border-radius: 10px; }
.field .radio-row + .hint { margin-top: .5rem; }

.availability { margin: .5rem 0 0; padding: .55rem .8rem; border-radius: 10px; font-size: .9rem; font-weight: 700; background: var(--cream); color: var(--muted); }
.availability.ok { background: #edf5e6; color: #2f5a1e; }
.availability.partial { background: #fbf6ec; color: #6b4f1d; }
.availability.warn { background: #fdecea; color: #7a1d16; }
.availability-list .availability { margin-top: .4rem; }

.cf-turnstile { margin: .5rem 0 1rem; }
#inquiry .btn-primary { width: 100%; }
@media (min-width: 520px) { #inquiry .btn-primary { width: auto; } }

.form-error { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 10px; background: #fdecea; color: #7a1d16; font-weight: 700; }
.form-error:empty { display: none; }
.form-success { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); }
.form-success h3 { font-size: 1.4rem; }
.memo-code {
  display: inline-block; margin: .5rem 0 1rem; padding: .6rem 1rem; border: 2px dashed var(--gold-dark); border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; user-select: all;
}
