/* Country Desserts - site styles.
   Colors, fonts and spacing are variables at the top. Brand direction:
   "Butter & Pecan" (see docs/brand.md). */

@font-face { font-family: "Caprasimo"; src: url("/fonts/caprasimo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FFF7E8;
  --paper: #FFFDF7;
  --cocoa: #3A2219;
  --cocoa-soft: #6B4A3A;
  --accent: #A8471B;       /* Burnt Orange */
  --accent-dark: #7A3312;
  --blueberry: #34418F;
  --apricot: #F4B887;
  --honey: #EECB7A;
  --pecan: #B98A5B;
  --kraft: #E2C59A;

  --gingham: rgba(168, 71, 27, 0.55);

  --font-display: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 26px;
  --border: 2px solid var(--cocoa);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cocoa); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--blueberry); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 14px; border: var(--border); border-radius: 999px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------------- Pattern + type helpers */

.gingham {
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, var(--gingham) 50%, transparent 50%),
    linear-gradient(var(--gingham) 50%, transparent 50%);
  background-size: 16px 16px;
}
.gingham-band { height: 16px; }
.gingham-band.top { border-bottom: var(--border); }
.gingham-band.bottom { border-top: var(--border); }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.hand { font-family: var(--font-hand); font-weight: 700; line-height: 1; color: var(--accent); }
.section-title { font-size: clamp(38px, 4.4vw, 60px); }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px; border: var(--border);
  background: var(--accent); color: var(--cream);
  font: 700 18px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--cocoa);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--cream); background: var(--accent-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--cocoa); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-outline {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid currentColor; color: inherit;
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.btn-outline:hover { color: inherit; background: rgba(255, 247, 232, 0.12); }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 17px; }

/* ---------------------------------------------------------------- Header */

.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--cocoa); text-decoration: none; }
.brand:hover { color: var(--cocoa); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; font-size: 16px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.site-nav .phone { gap: 8px; padding: 0 18px; margin-left: 8px; border: var(--border); border-radius: 999px; }
@media (max-width: 560px) {
  .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; flex-shrink: 0; }
}

/* ---------------------------------------------------------------- Hero */

.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .hand { font-size: 34px; transform: rotate(-2deg); transform-origin: left center; }
.hero h1 { font-size: clamp(46px, 6.2vw, 86px); line-height: 1; letter-spacing: -0.01em; }
.hero-copy > p { font-size: 20px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.hours-line { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-top: 4px; }
.nowrap { white-space: nowrap; }

.hero-art { flex: 1 1 440px; min-width: 0; position: relative; padding: 24px 24px 40px 0; }
.hero-photo { height: 500px; border-radius: 32px; border: 3px solid var(--cocoa); overflow: hidden; background: var(--honey); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.stamp { position: absolute; right: -8px; top: -10px; width: 150px; height: 150px; transform: rotate(12deg); }

.tag {
  position: relative; display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--kraft); border: var(--border); border-radius: 10px 30px 30px 10px;
  padding: 16px 30px 16px 50px;
}
.tag::before { content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--cream); border: var(--border); }
.tag .hand { color: var(--cocoa); font-size: 32px; }
.tag .hand.accent { color: var(--accent); font-size: 28px; }
.hero-art .tag { position: absolute; left: -12px; bottom: 8px; transform: rotate(-4deg); }

@media (max-width: 560px) {
  .hero-photo { height: 340px; }
  .stamp { width: 110px; height: 110px; }
}

/* ---------------------------------------------------------------- Info strip */

.strip { background: var(--cocoa); color: var(--cream); padding: 18px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------------------------------------------------------------- The case */

.case .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-head p { max-width: 380px; }
.case-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: minmax(0, 1fr); } }
.card { border: var(--border); border-radius: var(--radius); padding: 14px 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.card img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; border: var(--border); }
.card h3 { font-size: 32px; line-height: 1; margin: 0 8px; }
.card p { font-size: 16px; line-height: 1.5; margin: 0 8px; }
.card.honey { background: var(--honey); }
.card.apricot { background: var(--apricot); }
.card.pecan { background: var(--pecan); }
.card.kraft { background: var(--kraft); }

/* ---------------------------------------------------------------- Signature */

.signature { border-top: var(--border); border-bottom: var(--border); padding: 88px var(--gutter); background-size: 36px 36px; }
.signature-card { max-width: 1000px; margin: 0 auto; background: var(--cream); border: 3px solid var(--cocoa); border-radius: 32px; padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.signature-card img { flex: 1 1 300px; min-width: 0; height: 340px; object-fit: cover; object-position: 50% 40%; border-radius: 20px; border: var(--border); }
.signature-card > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.signature-card .hand { font-size: 32px; }
.signature-card h2 { font-size: clamp(38px, 4vw, 54px); }

/* ---------------------------------------------------------------- Custom cakes */

.cakes .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.cakes-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cakes-copy > p:first-of-type { font-size: 19px; max-width: 520px; }
.note { font-size: 16px; font-weight: 600; }
.collage { flex: 1 1 440px; min-width: 0; position: relative; height: 440px; }
.collage img { position: absolute; object-fit: cover; border-radius: 24px; border: var(--border); }
.collage img:first-child { left: 0; top: 0; width: 64%; height: 340px; transform: rotate(-3deg); }
.collage img:last-child { right: 0; bottom: 0; width: 56%; height: 280px; transform: rotate(3deg); object-position: 50% 35%; }
@media (max-width: 560px) {
  .collage { height: 360px; }
  .collage img:first-child { height: 260px; }
  .collage img:last-child { height: 220px; }
}

/* ---------------------------------------------------------------- Holidays */

.holidays { background: var(--accent); color: var(--cream); border-top: var(--border); border-bottom: var(--border); }
.holidays .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.holidays-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.holidays .eyebrow { color: var(--cream); }
.holidays-copy > p { font-size: 19px; max-width: 500px; }
.holidays a:not(.btn-outline) { color: var(--cream); }
.holiday-list { flex: 0 1 440px; min-width: 0; background: var(--cream); color: var(--cocoa); border: var(--border); border-radius: 24px; padding: 8px 28px; margin: 0; list-style: none; }
.holiday-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 20px 0; }
.holiday-list li + li { border-top: 1px solid var(--cocoa); }
.holiday-list .name { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.holiday-list .date { font-size: 15px; font-weight: 600; margin-top: 4px; }
.holiday-list .by { font-size: 16px; font-weight: 700; }

/* ---------------------------------------------------------------- Visit */

.visit .wrap { padding-top: 104px; padding-bottom: 104px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: center; }
.visit-copy { display: flex; flex-direction: column; gap: 24px; }
.visit address { font-style: normal; font-size: 19px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.hours { margin: 0; border-top: var(--border); font-size: 18px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--cocoa); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.directions { height: clamp(240px, 36vw, 440px); border-radius: 28px; border: 3px solid var(--cocoa); background: var(--pecan); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.directions .btn { box-shadow: none; }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--cocoa); color: var(--cream); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.site-footer .brand { color: var(--cream); font-size: 44px; }
.site-footer small { display: block; margin-top: 12px; font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.site-footer p { max-width: 420px; }
.site-footer a { color: var(--cream); }

/* ---------------------------------------------------------------- Inner pages + forms */

.page .wrap { padding-top: 56px; padding-bottom: 104px; }
.page-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(42px, 5vw, 68px); }
.page-head p { font-size: 19px; }

.form-card { max-width: 760px; background: var(--paper); border: 3px solid var(--cocoa); border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
.site-form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 16px; }
.field .req, .field .opt { font-weight: 500; color: var(--cocoa-soft); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--font-body); color: var(--cocoa);
  background: var(--cream); border: var(--border); border-radius: 14px;
  padding: 12px 14px; min-height: 52px; width: 100%;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #9B1C1C; box-shadow: 0 0 0 2px #9B1C1C; }
.field-error { color: #9B1C1C; font-size: 15px; font-weight: 600; margin: 0; }
.hint { font-size: 15px; color: var(--cocoa-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; color: var(--cocoa-soft); }
.form-status:empty { display: none; }
.form-status { font-weight: 600; }
.form-status.error { color: #9B1C1C; }
.form-success { font-size: 19px; }

/* ---------------------------------------------------------------- Holiday order pages */

.holiday-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.holiday-layout .form-card { flex: 1 1 520px; min-width: 0; }
.terms { flex: 1 1 280px; min-width: 0; max-width: 400px; background: var(--honey); border: var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.terms h2 { font-size: 30px; }
.terms ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .terms { position: sticky; top: 24px; } }

.menu { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu legend { font-family: var(--font-display); font-size: 30px; padding: 0; margin-bottom: 4px; }
.menu .hint { margin-bottom: 8px; }
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid rgba(58, 34, 25, 0.25); }
.menu-row label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 17px; }
.item-name { font-weight: 700; }
.item-meta { color: var(--cocoa-soft); font-weight: 600; }
.nuts { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); border: 1.5px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.menu-row input { width: 84px; flex: 0 0 auto; min-height: 48px; font: 700 18px/1 var(--font-body); color: var(--cocoa); background: var(--cream); border: var(--border); border-radius: 12px; padding: 8px 10px; text-align: center; }
.menu-row input[aria-invalid="true"] { border-color: #9B1C1C; box-shadow: 0 0 0 2px #9B1C1C; }
.menu-row .field-error { grid-column: 1 / -1; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 700; font-size: 20px; padding: 6px 0 2px; }
.total-line output { font-family: var(--font-display); font-weight: 400; font-size: 32px; }

.closed-card { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.closed-card .btn[disabled] { cursor: not-allowed; box-shadow: none; opacity: 1; background: var(--pecan); color: var(--cocoa); }
.page-head .xmas-hand { font-size: 34px; }
.holidays .holiday-list a.name { display: inline-block; color: var(--cocoa); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.holidays .holiday-list a.name:hover { color: var(--accent); }
