/* =========================================================
   The Pizza Queens — main stylesheet
   Brand colours live in :root below. Change them once here
   and the whole site updates.
   ========================================================= */

/* ---------- Fonts (self-hosted, no Google tracking) ---------- */
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/caveat-brush-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("../fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --pink: #FF708F;
  --pink-dark: #E8506F;     /* hover state for pink buttons */
  --pink-soft: #FFE1E8;     /* pale pink section background */
  --green: #207C2E;
  --green-dark: #17591F;    /* footer + hover */
  --green-soft: #E2F2E4;    /* pale green section background */
  --ink: #1F2A22;           /* body text */
  --muted: #5E6B61;
  --white: #FFFFFF;
  --line: #D9E4DB;

  --font-display: "Caveat Brush", "Patrick Hand", cursive;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--pink-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.bg-pink { background: var(--pink-soft); }
.bg-green { background: var(--green-soft); }
.center { text-align: center; }
.lead { font-family: var(--font-hand); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.35; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Placeholder text for Jo to replace — shows as grey italic so it stands out.
   Delete class="todo" (or the whole element) once real text is in. */
.todo { color: var(--muted); font-style: italic; }

/* Little heart divider used under headings */
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -4px 0 28px; color: var(--pink); }
.divider::before, .divider::after { content: ""; width: 60px; height: 3px; border-radius: 3px; background: var(--pink); }
.divider.left { justify-content: flex-start; }
.divider svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 34px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-dark); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-small { font-size: 1.05rem; padding: 8px 18px; border-radius: 12px; line-height: 1.2; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--green-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo { display: block; flex-shrink: 0; align-self: flex-start; margin-top: 8px; margin-bottom: -48px; position: relative; z-index: 2; }
.logo img {
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 3vw, 44px); }
.main-nav a {
  font-family: var(--font-hand); font-size: 1.4rem; text-transform: uppercase;
  color: var(--green); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--pink-dark); border-bottom-color: var(--pink); }
.header-social { display: flex; align-items: center; gap: 10px; }
.icon-link { display: inline-flex; color: var(--pink); }
.icon-link:hover { color: var(--pink-dark); }
.icon-link svg { width: 34px; height: 34px; }
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 860px) {
  .header-inner { min-height: 68px; }
  .logo { margin-bottom: -30px; }
  .logo img { width: 92px; height: 92px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 2px solid var(--green); color: var(--green);
    border-radius: 10px; padding: 6px 12px; font-family: var(--font-hand); font-size: 1.15rem; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; border-radius: 2px;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 3px solid var(--pink);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 40px 20px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--pink); }
  .header-social { margin-left: auto; }
  .hero { padding-top: 40px; }
  .hero .ph.wide, .hero img { border-radius: var(--radius); }
  /* Without JavaScript the menu just stays open */
  .no-js .main-nav { display: block; position: static; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- Image placeholders ---------- */
/* Each grey box is a spot for a photo. To add a photo, replace the whole
   <div class="ph">…</div> with e.g. <img src="images/my-photo.jpg" alt="Describe the photo"> */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #E9ECEA; border: 2px dashed #B9C2BC; border-radius: var(--radius);
  color: var(--muted); font-family: var(--font-hand); font-size: 1.15rem; text-align: center;
  padding: 16px; aspect-ratio: 4 / 3; width: 100%;
}
.ph svg { width: 48px; height: 48px; opacity: .6; }
.ph.square { aspect-ratio: 1 / 1; }
.ph.wide { aspect-ratio: 16 / 7; }
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.fourthree { aspect-ratio: 4 / 3; }

/* ---------- Home ---------- */
.hero { padding-top: 0; }
.hero .ph.wide, .hero img { border-radius: 0 0 var(--radius) var(--radius); }
.hero-banner { position: relative; }
.hero-banner img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }

.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center;
  border-radius: var(--radius); padding: 28px;
}
.promo .tag { font-family: var(--font-hand); font-size: 1.4rem; margin-bottom: 18px; }

.meet { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.meet > * { min-width: 0; }
.meet img { width: 100%; max-width: 420px; margin: 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery .ph, .gallery img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; font-size: 1rem; }

@media (max-width: 960px) {
  .promo-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .promo { grid-template-columns: 1fr; text-align: center; }
  .meet { grid-template-columns: 1fr; text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Page banner (top of inner pages) ---------- */
.page-banner { padding: 70px 0 44px; }
.page-banner-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .page-banner-split { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Bake at Home product cards ---------- */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product {
  display: flex; flex-direction: column; text-align: center;
  border-radius: var(--radius); padding: 16px; border: 1px solid var(--line);
}
.product:nth-child(odd) { background: var(--pink-soft); }
.product:nth-child(even) { background: var(--green-soft); }
.product h3 { margin-top: 14px; }
.product p { flex: 1; }
.product .btn { margin-top: 14px; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .products { grid-template-columns: 1fr; } }

.cta-strip {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-radius: var(--radius); padding: 28px 32px;
}
.cta-strip .pin { width: 64px; height: 64px; color: var(--pink); flex-shrink: 0; }
.cta-strip .text { flex: 1; min-width: 220px; }
.cta-strip h2 { margin-bottom: 0; }

/* ---------- Nutrition page ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.jump-links a {
  font-family: var(--font-hand); font-size: 1.15rem; text-decoration: none;
  background: var(--white); border: 2px solid var(--green); border-radius: 999px; padding: 4px 16px;
}
.jump-links a:hover { background: var(--green); color: var(--white); }
.nutri-item { scroll-margin-top: 110px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px); box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.card h4 {
  font-family: var(--font-hand); font-weight: 400; font-size: 1.45rem; color: var(--green);
  margin: 1.4em 0 .4em;
}
.card h4:first-child { margin-top: 0; }
.allergens { font-weight: 700; }
.nutri-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
@media (max-width: 760px) { .nutri-grid { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table.nutrition { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 340px; }
table.nutrition caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: 6px; }
table.nutrition th, table.nutrition td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; }
table.nutrition th:first-child, table.nutrition td:first-child { text-align: left; }
table.nutrition thead th { background: var(--green); color: var(--white); font-weight: 700; }
table.nutrition thead th:first-child { border-radius: 8px 0 0 0; }
table.nutrition thead th:last-child { border-radius: 0 8px 0 0; }
table.nutrition td.sub { padding-left: 26px; color: var(--muted); }

/* ---------- Stockists ---------- */
.stockist { display: grid; grid-template-columns: 1fr 1.8fr; gap: 28px; align-items: start; }
.stockist + .stockist { margin-top: 28px; }
.stockist-logo { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stockist .meta { font-family: var(--font-hand); font-size: 1.2rem; margin-bottom: 14px; }
@media (max-width: 700px) { .stockist { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.events { display: flex; gap: 30px; align-items: center; }
.events svg { width: 120px; height: 120px; flex-shrink: 0; color: var(--pink); }
@media (max-width: 600px) { .events { flex-direction: column; text-align: center; } }

/* ---------- FAQs ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative;
  font-weight: 700; color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--pink);
}
.faq[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 16px; }

/* ---------- Order (coming soon) ---------- */
.coming-soon { padding: 70px 0 90px; text-align: center; }
.coming-soon svg { width: 200px; height: 200px; color: var(--pink); margin: 0 auto 10px; display: block; }
.coming-soon h1 { text-transform: uppercase; margin-bottom: 0; }
.coming-soon .soon { font-family: var(--font-display); color: var(--pink-dark); font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; text-transform: uppercase; margin: 0 0 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-details li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-details svg { width: 24px; height: 24px; color: var(--pink); flex-shrink: 0; margin-top: 2px; }

.form-row { margin-bottom: 18px; }
.form-row.half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row.half { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--green); }
label .opt { font-weight: 400; color: var(--muted); font-size: .9em; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white);
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,124,46,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green); }
.consent label { font-weight: 400; color: var(--ink); margin: 0; }
/* Spam trap — hidden from people, bots fill it in */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-weight: 700; }
.notice.error { background: #FDE7EA; color: #A3122F; border: 1px solid #F5B5C2; }
.notice.success { background: var(--green-soft); color: var(--green-dark); border: 1px solid #B6DCBB; }
[hidden] { display: none !important; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 2rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #E9F5EB; padding: 30px 0; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.footer-follow { display: flex; align-items: center; gap: 10px; font-family: var(--font-hand); font-size: 1.3rem; }
.footer-follow svg { width: 30px; height: 30px; }
.footer-legal { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.footer-address { grid-column: 1 / -1; text-align: center; font-size: .88rem; opacity: .85; margin: 0; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-follow, .footer-legal { justify-content: center; }
}
a:has(> .ph), a .ph { text-decoration: none; }
