/* Peaceful Side Catering — shared styles */

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sarabun-500.woff2") format("woff2");
}
@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sarabun-700.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-caslon-text-700.woff2") format("woff2");
}

:root {
  --gutter: 16px;
  --wrap: 1080px;
  --slate: #4d5667;
  --ink: #3e4154;
  --text: #232323;
  --gold: #d0c752;       /* on slate backgrounds */
  --gold-light: #e0d86c; /* small accents on slate */
  --gold-dark: #857d2e;  /* gold that passes contrast on white */
  --green: #90b722;
  --green-ink: #2d3b0b;
  --muted: #5f636f;
  --white: #fff;
  --sans: "Sarabun", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  /* Zigzag section edge from the original design */
  --zigzag-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23fff'%3E%3Cpath d='M0 140l640-70 640 70V0L640 70 0 0v140z' fill-opacity='.5'/%3E%3Cpath d='M0 140h1280L640 70 0 140z'/%3E%3C/g%3E%3C/svg%3E");
  --zigzag-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23fff'%3E%3Cpath d='M1280 0L640 70 0 0v140l640-70 640 70V0z' fill-opacity='.5'/%3E%3Cpath d='M1280 0H0l640 70 640-70z'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 767px) {
  :root { --gutter: 24px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }

a { color: inherit; }
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark a:focus-visible { outline-color: var(--white); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { outline-color: var(--gold); outline-offset: 0; }

/* ---------- Promo bar ---------- */
.promo {
  background: var(--green);
  color: var(--green-ink);
  text-align: center;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, .8rem + 1vw, 1.5rem);
  line-height: 1.35;
}
.promo a { text-decoration: none; }
.promo a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Brand header ---------- */
.brand {
  position: relative;
  background: var(--slate);
  padding: clamp(2.5rem, 5vw, 4rem) 0 calc(clamp(2.5rem, 5vw, 4rem) + 29px);
}
.brand .wrap { display: grid; justify-items: center; gap: clamp(1.25rem, 3vw, 2rem); }
/* Explicit widths on the wrappers so image sizes never depend on load order (no CLS) */
.brand .wrap > * { display: block; width: min(800px, 100%); }
.brand .wrap > .brand__badge { width: min(400px, 80%); }
.brand picture, .brand img { display: block; width: 100%; }
.zigzag-bottom::after,
.zigzag-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 29px;
  background-size: 39px 100%;
  background-repeat: repeat-x;
  pointer-events: none;
}
.zigzag-bottom::after { bottom: 0; background-image: var(--zigzag-down); }
.zigzag-top::before { top: 0; background-image: var(--zigzag-up); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 2rem); text-align: center; color: var(--ink); }
.hero h1 { font-weight: 700; line-height: 1; }
.hero__lead,
.hero__sub { display: block; font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem); }
.hero__fresh {
  display: block;
  color: #a39b2f; /* ~2.9:1 on white; large text only */
  text-transform: uppercase;
  font-size: clamp(4.5rem, 2rem + 9vw, 8rem);
  line-height: 1.05;
}
.hero__sub { font-weight: 700; line-height: 1.1; margin-top: .25rem; }
.hero__divider { width: min(490px, 90%); height: auto; margin: clamp(1.25rem, 3vw, 2rem) auto; }
.tagline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2.1rem);
  line-height: 1.3;
}

/* ---------- Photo band ---------- */
.photo-band {
  position: relative;
  height: clamp(200px, 30vw, 315px);
  background: #e9e5dc;
  overflow: hidden;
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#fff 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 77%, #fff 100%);
}

/* ---------- Book CTA ---------- */
.book { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; color: var(--ink); }
.book .wrap { display: grid; justify-items: center; gap: 1.5rem; }
.button {
  display: inline-block;
  padding: .55rem 1.4rem;
  background: var(--slate);
  color: var(--white);
  border: 5px solid var(--gold);
  border-radius: 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.button:hover { background: var(--ink); transform: translateY(-2px); }

/* ---------- Section headings ---------- */
.section-title {
  font-weight: 700;
  font-size: clamp(2.75rem, 1.5rem + 5vw, 5rem);
  line-height: 1;
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- Services ---------- */
.services {
  position: relative;
  background: var(--slate);
  color: var(--white);
  padding: calc(29px + clamp(2.5rem, 5vw, 4rem)) 0;
}
.services .section-title { color: var(--gold); text-transform: uppercase; }
.services p,
.services ul {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  line-height: 1.4;
}
.services ul { margin-top: .5rem; padding-left: 1.25em; }

/* ---------- Packages ---------- */
.packages { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.packages .section-title { color: var(--gold-dark); }
.package-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5.5vw, 3.75rem);
}
@media (min-width: 768px) {
  .package-grid { grid-template-columns: 1fr 1fr; }
  .package:nth-child(even) { text-align: right; }
}
@media (max-width: 767px) {
  .package { text-align: center; }
}
.package__photo {
  margin: 0 10px 1.5rem 0;
  border: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  aspect-ratio: 2000 / 1331;
  background: #e9e5dc;
}
.package__photo img { width: 100%; height: 100%; object-fit: cover; }
.package h3 {
  color: var(--ink);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  line-height: 1.15;
  margin-bottom: .5rem;
}
.package p { font-weight: 500; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.3; }
.packages__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + .5vw, 1.5rem);
  line-height: 1.3;
}

/* ---------- How to order ---------- */
.order {
  background: var(--slate);
  color: var(--white);
  border-block: 5px solid var(--gold);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.order h2 {
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.order h2 em { color: var(--gold-light); }
.order ul {
  padding-left: 1.25em;
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  line-height: 1.45;
}
.order li + li { margin-top: .35rem; }
.order a { text-decoration: none; overflow-wrap: anywhere; }
.order a em { color: var(--gold-light); }
.order a:hover em,
.order a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.75rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.8;
}
.site-footer address { font-style: normal; font-weight: 700; }
.site-footer a { display: inline-block; padding-block: 4px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__meta { margin-top: .5rem; font-size: .9375rem; }
.site-footer__meta span[aria-hidden] { margin-inline: .5rem; }

/* ---------- 404 ---------- */
.not-found { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; color: var(--ink); }
.not-found h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); line-height: 1.1; margin-bottom: 1rem; }
.not-found p { margin-bottom: 2rem; font-size: 1.25rem; }
