/* ==========================================================================
   A Dash Of Flavour — shared styles
   Palette: tomato red, cream/ivory, charcoal, sparing herb green.
   Signature motif: the red gingham "tablecloth" band (.gingham).
   ========================================================================== */

:root {
  --tomato: #C0362C;
  --tomato-dark: #992820;
  --cream: #FBF6EC;
  --ivory: #FFFDF8;
  --beige: #F0E6D2;
  --line: #E4D6BC;
  --charcoal: #2B2523;
  --muted: #655A53;
  --herb: #566B35;
  --focus: #1F5FBF;
  --radius: 18px;
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
img.site-logo {
    width: 120px;
    border-radius: 100px;
    height: 120px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.05rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { max-width: 68ch; }
a { color: var(--tomato-dark); text-underline-offset: 3px; }
a:hover { color: var(--tomato); }
img { max-width: 100%; height: auto; }
.lead { font-size: 1.2rem; color: var(--muted); }
.text-muted-2 { color: var(--muted); }
section[id], [id].anchor { scroll-margin-top: 90px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Skip link ---------- */
.skip-link:focus {
  position: fixed; top: .6rem; left: .6rem; z-index: 4000;
  background: #fff; color: var(--charcoal); padding: .6rem 1rem; border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

/* ---------- Gingham tablecloth motif ---------- */
.gingham {
  --g: rgba(192, 54, 44, .42);
  background-color: #fff;
  background-image:
    linear-gradient(90deg, var(--g) 50%, transparent 50%),
    linear-gradient(var(--g) 50%, transparent 50%);
  background-size: 28px 28px;
}
.gingham-soft { --g: rgba(192, 54, 44, .15); }
.band { height: 26px; width: 100%; }
.band-thin { height: 14px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .72rem 1.5rem; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-tomato { background: var(--tomato); border: 2px solid var(--tomato); color: #fff; }
.btn-tomato:hover, .btn-tomato:focus-visible { background: var(--tomato-dark); border-color: var(--tomato-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-tomato { background: transparent; border: 2px solid var(--tomato); color: var(--tomato-dark); }
.btn-outline-tomato:hover, .btn-outline-tomato:focus-visible { background: var(--tomato); color: #fff; }
.btn-cream { background: var(--ivory); border: 2px solid var(--ivory); color: var(--charcoal); }
.btn-cream:hover { background: #fff; color: var(--tomato-dark); }
.link-tomato { font-weight: 700; color: var(--tomato-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.link-tomato:hover { color: var(--tomato); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 253, 248, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 1030;
}
.site-header .navbar { padding: .7rem 0; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.1;
  color: var(--charcoal); text-decoration: none;
  display: inline-block;
}
.wordmark::after {
  content: ""; display: block; width: 2.4rem; height: 4px; margin-top: 4px;
  background: var(--tomato); border-radius: 4px; transition: width .3s;
}
.wordmark:hover { color: var(--charcoal); }
.wordmark:hover::after { width: 100%; }
.navbar .nav-link {
  color: var(--charcoal); font-weight: 600; padding: .5rem .85rem !important;
  border-radius: 8px; transition: color .2s;
}
.navbar .nav-link:hover { color: var(--tomato); }
.navbar .nav-link[aria-current="page"] { color: var(--tomato-dark); box-shadow: inset 0 -3px 0 var(--tomato); border-radius: 0; }
.navbar-toggler { border: 2px solid var(--charcoal); padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 1.25rem; }
  .navbar .nav-link { padding: .75rem .5rem !important; }
  .navbar .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--tomato); padding-left: .9rem !important; }
  .navbar .btn { width: 100%; margin-top: .75rem; }
}

/* ---------- Layout helpers ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-cream { background: var(--cream); }
.section-beige { background: var(--beige); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }
.kicker { color: var(--tomato-dark); font-weight: 700; font-size: .95rem; margin-bottom: .6rem; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--cream); padding-top: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.hero .container { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-motto { font-weight: 700; color: var(--herb); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-arch {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 540px;
  margin-inline: auto;
}
.hero-arch-img {
  width: 100%; height: 100%;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 18px 50px rgba(43, 37, 35, .18);
}
.hero-arch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.motto-card {
  position: absolute; left: 1rem; right: 1rem; bottom: -1.4rem;
  background: var(--ivory); border-radius: 14px; padding: 1rem 1.25rem;
  border-left: 6px solid var(--tomato);
  box-shadow: 0 10px 30px rgba(43, 37, 35, .14);
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3;
}
@media (min-width: 992px) {
  .motto-card { left: -2.5rem; right: auto; max-width: 17rem; bottom: 2.5rem; }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--beige); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero p.lead { margin-top: 1rem; }
.breadcrumb-lite { font-size: .95rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb-lite a { color: var(--muted); }

/* ---------- Image treatments ---------- */
.img-frame { border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.img-frame:hover img { transform: scale(1.04); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-11 { aspect-ratio: 1 / 1; }
img.img-fallback { object-fit: cover; }

/* ---------- Tags / badges ---------- */
.tag-sample {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--charcoal); color: #fff; font-size: .78rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 999px;
}
.sample-note {
  background: #fff; border: 1px dashed var(--tomato); border-radius: 12px;
  padding: .85rem 1.1rem; font-size: .98rem; color: var(--charcoal);
}
.sample-note i { color: var(--tomato); margin-right: .4rem; }

/* ---------- Recipe cards ---------- */
.recipe-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .3s, transform .3s;
}
.recipe-card:hover { box-shadow: 0 14px 34px rgba(43, 37, 35, .12); transform: translateY(-3px); }
.recipe-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.recipe-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.recipe-card:hover .recipe-card-img img { transform: scale(1.05); }
.recipe-card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.recipe-cat { color: var(--herb); font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.recipe-card h3 { margin-bottom: .5rem; }
.recipe-card h3 a { color: var(--charcoal); text-decoration: none; }
.recipe-card h3 a:hover { color: var(--tomato-dark); }
.recipe-card p.desc { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--muted); margin-top: auto; padding-bottom: 1rem; }
.recipe-meta i { color: var(--tomato); margin-right: .3rem; }

/* ---------- Category tiles ---------- */
.cat-tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; text-decoration: none; color: #fff; background: var(--charcoal);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; opacity: .92; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30, 22, 20, .82)); }
.cat-tile span {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1;
  font-family: var(--font-display); font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.15;
}
.cat-tile:hover { color: #fff; }
.cat-tile:hover img { transform: scale(1.06); opacity: 1; }

/* ---------- Philosophy ---------- */
.philosophy-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.philosophy-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.philosophy-list li:last-child { border-bottom: 1px solid var(--line); }
.philosophy-list i { color: var(--herb); font-size: 1.3rem; margin-top: .25rem; width: 1.6rem; text-align: center; flex: none; }
.philosophy-list h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.philosophy-list p { margin: 0; color: var(--muted); }

/* ---------- Collage (Beyond our kitchen) ---------- */
.collage { position: relative; padding-bottom: 3rem; }
.collage .img-frame:first-child { width: 78%; }
.collage .img-frame:last-child { position: absolute; right: 0; bottom: 0; width: 52%; border: 6px solid var(--beige); }

/* ---------- Gallery grids ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: var(--beige); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .3s; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(.92); }
.gallery-item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: .7rem; bottom: .7rem; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,253,248,.92); color: var(--charcoal);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.gallery-grid.static .gallery-item { cursor: pointer; }

/* ---------- Newsletter ---------- */
.newsletter-card { background: var(--ivory); border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3.25rem); border: 1px solid var(--line); max-width: 44rem; margin-inline: auto; text-align: center; }
.newsletter-card p { margin-inline: auto; color: var(--muted); }
.newsletter-card .form-control { min-width: 0; }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; margin-bottom: .35rem; }
.form-control, .form-select {
  border: 2px solid #D5C6A8; border-radius: 12px; padding: .75rem 1rem; background-color: #fff; color: var(--charcoal);
}
.form-control:focus, .form-select:focus { border-color: var(--tomato); box-shadow: 0 0 0 .25rem rgba(192, 54, 44, .18); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #B3261E; background-image: none; padding-right: 1rem; }
.invalid-feedback { color: #B3261E; font-weight: 600; }
.req { color: var(--tomato-dark); }
.form-status { border-radius: 12px; padding: 1rem 1.2rem; }
.form-status.ok { background: #EEF3E4; border: 1px solid #B9C99A; }
.form-status.err { background: #FBE9E7; border: 1px solid #E3A9A3; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list i { color: var(--tomato); width: 1.6rem; text-align: center; margin-top: .3rem; font-size: 1.15rem; flex: none; }
.contact-list strong { display: block; }
.contact-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Food adventures ---------- */
.adv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.adv-card .img-frame { border-radius: 0; position: relative; }
.adv-card-body { padding: 1.25rem 1.35rem 1.5rem; }
.adv-card dl { margin: 1rem 0 0; }
.adv-card dt { font-size: .88rem; color: var(--herb); font-weight: 700; }
.adv-card dd { margin: 0 0 .7rem; color: var(--muted); font-size: .98rem; }

/* ---------- Recipe list controls ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.chip {
  border: 2px solid var(--line); background: #fff; color: var(--charcoal);
  border-radius: 999px; padding: .35rem 1rem; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--tomato); }
.chip[aria-pressed="true"] { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state i { font-size: 2rem; color: var(--tomato); margin-bottom: .75rem; }

/* ---------- Recipe detail ---------- */
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0; }
.detail-meta > div { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; text-align: center; }
.detail-meta i { color: var(--tomato); display: block; margin-bottom: .25rem; font-size: 1.15rem; }
.detail-meta small { display: block; color: var(--muted); }
.detail-meta strong { font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { border-bottom: 1px solid var(--line); }
.check-list label { display: flex; gap: .75rem; padding: .7rem 0; cursor: pointer; align-items: flex-start; }
.check-list input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--tomato); flex: none; }
.check-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tomato); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.tips-box { background: #F1F4E7; border-left: 6px solid var(--herb); border-radius: 12px; padding: 1.1rem 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #E9E0D2; }
.site-footer .footer-body { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #F4EDE0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #F4C9C4; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark::after { background: #E0584D; }
.footer-motto { font-family: var(--font-display); font-size: 1.1rem; color: #fff; max-width: 20rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .25rem 0; overflow-wrap: anywhere; }
.footer-list i { color: #E98B82; width: 1.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.25rem; font-size: .92rem; color: #CFC5B6; }

/* ---------- Back to top, toast ---------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: var(--tomato); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--tomato-dark); }
.toast-lite {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 3500;
  background: var(--charcoal); color: #fff; padding: .75rem 1.25rem; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0,0,0,.3); max-width: calc(100vw - 2rem); text-align: center;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(24, 18, 16, .93);
  display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 2rem;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; border-radius: 10px; object-fit: contain; }
.lb-figure figcaption { color: #E9E0D2; margin-top: .75rem; font-size: .98rem; }
.lb-btn {
  position: absolute; border: 0; width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255,253,248,.14); color: #fff; font-size: 1.2rem; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255,253,248,.3); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: .9rem; right: .9rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .lb-prev, .lb-next { top: auto; bottom: .8rem; transform: none; }
  .lightbox { padding-bottom: 5rem; }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Print (recipe page) ---------- */
@media print {
  .site-header, .site-footer, .to-top, .no-print, .band, .toast-lite, #related-recipes { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .recipe-hero-img { max-height: 260px; object-fit: cover; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Gutter safety: wide row gutters only where the container has room ---------- */
.row.g-5 { --bs-gutter-x: 1.5rem; }
@media (min-width: 992px) { .row.g-5 { --bs-gutter-x: 3rem; } }
