/* Mangia Event Catering — one-page site.
   Every colour the page uses is a token here; the values come from the
   brand palette card (sampled 2026-11-01). Fonts are self-hosted from
   /fonts/ (Open Font License; licences sit beside the files). */

:root {
  --bg: #0F1715;          /* near-black with a green cast */
  --green: #26504A;       /* palette: dark green */
  --burgundy: #57161F;    /* palette: burgundy */
  --mint: #50AD90;        /* palette: mint */
  --mint-soft: #A9D9C6;
  --red: #CB313C;         /* palette: red */
  --red-deep: #B2282F;    /* buttons at rest; they brighten to --red on hover */
  --pale: #E0E7E8;        /* palette: pale grey */
  --white: #FFFFFF;       /* palette: white */
  --text: #E0E7E8;
  --text-soft: #C9D3D1;
  --muted: #A9B5B3;
  --rose: #F2E9E6;        /* text on burgundy */
  --rose-soft: #DCC9C5;
  --line: rgba(80, 173, 144, 0.35);
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Kaushan Script', cursive;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- fonts ------------------------------------------------------------ */
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/dm-serif-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/kaushan-script-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/source-sans-3-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }

/* ---- base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Room for the fixed top bar: link jumps and keyboard focus both stop
   below it, never under it. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); }
a:hover { color: #8CD3BA; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
img { display: block; max-width: 100%; }
/* <picture> only chooses the file; the <img> inside lays out as if the
   wrapper were not there. Its <source> lines must then be hidden, or each
   becomes an empty grid or flex item (it took the contact photo's column).
   Hiding them does not change which file the browser picks. */
picture { display: contents; }
picture > source { display: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--white); margin: 0; letter-spacing: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.script { font-family: var(--font-script); color: var(--mint); font-size: 34px; line-height: 1.2; display: block; margin-bottom: 10px; font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--bg); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }
/* Read by screen readers, hidden on screen. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Dark surfaces are never flat: a soft mint glow top-right plus one
   worn-wall detail per section (.accent). Subtle on purpose, only in
   spots, and never red. */
.tx { position: relative; isolation: isolate; }
.tx::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(ellipse 36% 40% at 92% 6%, rgba(80, 173, 144, 0.17), transparent 70%);
}
.accent { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.accent svg { position: absolute; display: block; }
/* Worn-wall detail, after an old tiled wall: a patch of faded mosaic tiles
   in two corners only, with a few stained ones, and the middle of each
   section stays clean. The stain is low-frequency SVG noise, not grain. */
.accent .a-tiles-bl { bottom: 0; left: 0; }
.accent .a-tiles-tr { top: 0; right: 0; }

/* ---- header (sits on the hero) ---------------------------------------- */
/* The bar stays at the top while the page scrolls under it, so the red
   button is always one tap away. */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 5; background: rgba(15, 23, 21, 0.9); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; position: relative; }
/* The logo is an SVG traced from the owner's file, so it stays sharp at
   any size; the box is cropped tight to the artwork. */
.brand { display: block; flex: none; }
.brand img { width: auto; height: 50px; }
.nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
/* Section links and the phone number keep the base mint, like the footer
   links. */
.nav a { text-decoration: none; padding: 12px 0; }
.right { display: flex; align-items: center; gap: 26px; }
.tel { text-decoration: none; font-size: 16px; padding: 12px 0; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 2px;
  background: var(--red-deep); color: var(--white); text-decoration: none;
  /* "font: inherit" resets every font setting, so size and weight follow it. */
  letter-spacing: 0.04em; border: 0; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--red); color: var(--white); }

/* ---- hero (full-width photo) ----------------------------------------- */
.hero { position: relative; min-height: 86vh; max-height: 860px; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 21, 0.97) 0%, rgba(15, 23, 21, 0.9) 34%, rgba(15, 23, 21, 0.45) 56%, rgba(15, 23, 21, 0.06) 74%, rgba(15, 23, 21, 0) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { font-size: 74px; line-height: 1.04; font-weight: 400; max-width: 680px; }
.hero h1 em { font-style: italic; font-weight: 400; }
.lede { font-size: 21px; color: var(--text-soft); max-width: 520px; margin: 28px 0 36px; }
.ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* ---- sections --------------------------------------------------------- */
/* Top and bottom only, so the side gutter of .wrap stays. */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-head h2 { font-size: 50px; line-height: 1.08; font-weight: 400; }
.section-head > p { margin: 0 0 6px; max-width: 435px; font-size: 21px; color: var(--muted); }

/* ---- carousel --------------------------------------------------------- */
.carousel { position: relative; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  /* The first slide lines up with the section title: the same left edge
     as the 1136px content column (1200px minus the gutters), and the next
     slide peeks in on the right. */
  scroll-padding: 0 max(32px, calc((100% - 1136px) / 2));
  padding: 0 max(32px, calc((100% - 1136px) / 2)) 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(1136px, 100%); scroll-snap-align: start; margin: 0; position: relative; }
.slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 901px) {
  /* Two photos per view, a third peeking in, so the variety shows at a glance. */
  .slide { flex-basis: calc((min(1136px, 100%) - 20px) / 2); }
}
.slide figcaption { position: absolute; left: 0; bottom: 0; padding: 14px 18px; font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--white); background: linear-gradient(90deg, rgba(15, 23, 21, 0.8), rgba(15, 23, 21, 0)); width: 70%; }
.car-nav { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.car-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; }
.car-btn:hover { background: rgba(255, 255, 255, 0.12); }
.car-btn svg { width: 20px; height: 20px; }

/* ---- call to action: full-width photo -------------------------------- */
/* A fixed 700px strip. The photo (landscape, the board right of centre on
   marble) fills it; the dark veil sits on top. On wider screens the photo
   is drawn 115% of the strip's width from its left edge and the strip cuts
   off the rest, which moves the board right, clear of the words: a photo
   that already fills the width can only move right if it is wider. Only
   the middle band of its height shows, so 45% keeps the olive bowl in it.
   Phones go back to the strip's own width, where 70% keeps the board in
   view (see the phone block). max-width: none lifts the base img cap of
   100%, which would otherwise hold the 115% back. */
.cta-photo { position: relative; height: 700px; display: flex; align-items: center; overflow: hidden; }
.cta-photo img { position: absolute; top: 0; left: 0; width: 115%; max-width: none; height: 100%; object-fit: cover; object-position: 0 45%; }
/* A dark veil over the photo on a diagonal: deepest in the top-left corner,
   fading lighter toward the bottom-right. A soft shade behind the words
   (left-aligned, so the shade sits left of centre) keeps them readable
   where the veil thins out. */
.cta-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 60% at 30% 50%, rgba(15, 23, 21, 0.35), transparent 75%),
    linear-gradient(135deg, rgba(15, 23, 21, 0.94) 0%, rgba(15, 23, 21, 0.72) 40%, rgba(15, 23, 21, 0.4) 75%, rgba(15, 23, 21, 0.15) 100%);
}
.cta-photo .wrap { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.cta-photo .inner { width: 100%; max-width: 640px; text-align: left; }
.cta-photo h2 { font-size: 50px; line-height: 1.08; font-weight: 400; }
.cta-photo h2 em { font-style: italic; font-weight: 400; }
.cta-photo .btn { margin-top: 34px; }

/* ---- contact: photo left, burgundy panel with the form right --------- */
.contact-split { display: grid; grid-template-columns: 5fr 7fr; }
.contact-split > picture > img { width: 100%; height: 100%; object-fit: cover; }
.contact-split .panel { background: var(--burgundy); color: var(--rose); padding: 88px 80px 88px 72px; position: relative; isolation: isolate; }
.contact-split .panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(ellipse 36% 40% at 92% 6%, rgba(203, 49, 60, 0.24), transparent 70%),
    radial-gradient(ellipse 34% 36% at 6% 98%, rgba(15, 23, 21, 0.5), transparent 70%);
}
.contact-split .script { color: var(--mint-soft); }
.contact-split .contact-title { font-size: 50px; margin-bottom: 14px; }
.contact-split h2 { font-size: 50px; line-height: 1.08; font-weight: 400; }
.contact-split .intro { margin: 18px 0 20px; max-width: 520px; color: var(--rose-soft); font-size: 19px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.full { grid-column: 1 / -1; }
label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-soft); }
/* The asterisk is for the eye; screen readers hear "required" from the
   input's own required attribute. */
.req { color: var(--mint-soft); }
.req-note { margin: 0 0 20px; font-size: 14px; color: var(--rose-soft); }
input, textarea {
  background: rgba(255, 255, 255, 0.06); border: 0; border-bottom: 1px solid rgba(242, 233, 230, 0.55);
  color: var(--white); font: inherit; font-size: 18px; padding: 10px 12px; border-radius: 0; min-height: 44px; width: 100%;
}
/* 0.7 keeps the hint lighter than typed text yet above 4.5:1 on the field,
   even under the panel's red glow (0.5 was 3.6:1). */
input::placeholder, textarea::placeholder { color: rgba(242, 233, 230, 0.7); }
textarea { min-height: 130px; resize: vertical; }
/* Focus is a thicker mint underline; one pixel comes off the padding so
   the field keeps its height. focus-within, because Chrome's date field
   counts as focused "within" (not :focus) while its calendar button is. */
input:focus-within, textarea:focus-within { outline: 0; border-bottom: 2px solid var(--mint); padding-bottom: 9px; }
input[type="date"] { color-scheme: dark; }
.hidden { display: none; }
.form-status { margin: 0; min-height: 1.5em; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--mint-soft); }
.form-status[data-state="error"] { color: #F3A6AC; }
/* A field the browser refused to send: js/script.js adds the note under it
   and ties it to the field, so screen readers hear it too. */
.field-error { margin: 0; font-size: 15px; color: #F3A6AC; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom-color: #F3A6AC; }
/* Focus stays mint on a flagged field too; the note under it still says
   what's wrong. */
input[aria-invalid="true"]:focus-within, textarea[aria-invalid="true"]:focus-within { border-bottom-color: var(--mint); }
/* The licence, certification, insurance and CRA line, right where people
   decide to get in touch. */
.assurance { margin: 0 0 36px; font-size: 14px; font-style: italic; line-height: 1.65; color: var(--rose-soft); max-width: 640px; }
.assurance strong { color: var(--rose); font-weight: 600; }

/* ---- footer ----------------------------------------------------------- */
.footer { background: var(--bg); color: var(--text); }
/* Two columns side by side: the logo spot and the contact details. */
.foot-grid { display: flex; align-items: flex-start; gap: 120px; padding: 72px 0 48px; }
.foot-grid h2 { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mint-soft); font-family: var(--font-body); font-weight: 600; margin-bottom: 18px; }
.foot-grid p { margin: 0; color: var(--text-soft); max-width: 380px; }
/* Links keep the base mint, the same as the Instagram icon. */
.foot-contact p { font-size: 16px; }
.foot-contact a { text-decoration: none; }
.foot-contact p + p { margin-top: 10px; }
/* The Instagram icon on its own: padding makes a 44px tap area, the
   negative margin keeps it lined up with the links above. */
.social a { display: inline-flex; padding: 10px; margin: -10px; }
.social svg { flex: none; }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 28px 0 40px; border-top: 1px solid rgba(224, 231, 232, 0.2); }
.foot-bottom .script { font-size: 42px; margin: 0; }
.foot-bottom small { color: var(--text-soft); font-size: 14px; display: block; line-height: 1.7; }
.foot-bottom .links { display: flex; gap: 22px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; flex-wrap: wrap; }
.foot-bottom .links a { color: var(--text-soft); text-decoration: none; }
.foot-bottom .links a:hover { color: var(--mint); }

/* ---- small pages (thanks, 404) --------------------------------------- */
/* Top and bottom only, so the side gutter of .wrap stays. */
.plain { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 80px; }
.plain h1 { font-size: 60px; font-weight: 400; line-height: 1.05; }
.plain p { font-size: 21px; color: var(--text-soft); max-width: 560px; }
.plain .btn { margin-top: 8px; }
.header-solid { position: static; background: var(--bg); }
.header-solid .top { padding-bottom: 22px; }

/* ---- our story ------------------------------------------------------- */
/* Heading column one third wide, the paragraphs take the rest. */
.story .section-head { align-items: flex-start; }
.story .section-head > div:first-child { flex: 0 0 33.333%; }
.story .section-head > div:last-child { flex: 1 1 auto; }
.story .section-head .btn { margin-top: 28px; }
.story .section-head p { max-width: none; color: var(--text-soft); }
.story .section-head p + p { margin-top: 16px; }
.story blockquote { margin: 28px 0 0; max-width: 760px; }
.story blockquote p { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.25; color: var(--white); }

/* ---- tablet and phone ------------------------------------------------- */
/* Up to 1024px (every tablet held upright, smaller iPads on their side,
   and phones) the contact form takes the full width and its photo is left
   out. The markup gives these screens a 1-pixel stand-in for the photo, so
   the hidden one is not downloaded either. */
@media (max-width: 1024px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split > picture > img { display: none; }
}

/* ---- phone ------------------------------------------------------------ */
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  /* One row: logo on the left, the red button on the right. The section
     links are desktop only. */
  .top { padding: 12px 0; gap: 12px; }
  .nav { display: none; }
  .brand img { height: 40px; }
  .top .tel { display: none; }
  .top .btn { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .hero { min-height: 0; max-height: none; }
  .hero-img { object-position: 62% 50%; }
  .accent .a-tiles-bl { transform: scale(0.6); transform-origin: bottom left; }
  .accent .a-tiles-tr { transform: scale(0.6); transform-origin: top right; }
  .hero::after { background: linear-gradient(180deg, rgba(15, 23, 21, 0.6) 0%, rgba(15, 23, 21, 0.86) 45%, rgba(15, 23, 21, 0.96) 100%); }
  .hero .wrap { padding-top: 220px; padding-bottom: 48px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 18px; margin: 22px 0 28px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .section-head h2 { font-size: 36px; }
  .track { gap: 12px; padding: 0 16px 8px; scroll-padding: 0 16px; }
  .slide { flex-basis: calc(100vw - 48px); }
  .slide figcaption { width: 85%; font-size: 16px; }
  .cta-photo img { width: 100%; object-position: 70% 45%; }
  .cta-photo .wrap { padding-top: 40px; padding-bottom: 40px; }
  .cta-photo .inner { width: 100%; }
  .cta-photo h2 { font-size: 34px; }
  .contact-split .panel { padding: 52px 16px 60px; }
  .contact-split h2 { font-size: 36px; }
  .form { grid-template-columns: 1fr; }
    .foot-grid { flex-direction: column; gap: 36px; padding: 52px 0 32px; }
  .foot-bottom .script { font-size: 36px; }
  .plain { padding-top: 60px; padding-bottom: 60px; }
  .plain h1 { font-size: 40px; }
  .story blockquote p { font-size: 24px; }
}
