/* =========================================================
   Catering Pages CSS — clean baseline for gallery + header
   ========================================================= */

/* ---------- Base / reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Theme tokens ---------- */
:root {
  --brand: #c85daa;
  --text: #222;
  --muted: #5c5c5c;
  --bg: #fff;
  --bg-alt: #fafafa;

  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --container: 1100px;
  --pad: clamp(16px, 3vw, 24px);
}

/* ---------- Typography & links ---------- */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); color: var(--brand); }
h2 { font-size: clamp(22px, 3vw, 30px); color: var(--brand); }
h3 { font-size: clamp(18px, 2.5vw, 24px); color: var(--brand); }
p { margin: 0 0 16px; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 40px var(--pad); }
.page-head { text-align: center; margin-bottom: 28px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }

/* ---------- Gallery rows (image + text) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
  margin: 32px 0 48px;
}

/* Figure as the 16:9 frame */
.feature-row figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
}

/* 16:9 using padding trick (works everywhere) */
.feature-row figure::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

/* Image fills the frame */
.feature-row figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prefer native aspect-ratio if supported */
@supports (aspect-ratio: 16 / 9) {
  .feature-row figure::before { display: none; padding-top: 0; }
  .feature-row figure { aspect-ratio: 16 / 9; }
  .feature-row figure > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

/* Text column spacing */
.feature-row .content h2,
.feature-row .content h3 { margin: 0 0 12px; }
.feature-row .content p { margin: 0 0 14px; }

/* Stack on mobile */
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand span { font-weight: 700; color: var(--text); letter-spacing: .2px; }

/* Desktop nav */
.nav { display: flex; gap: 18px; justify-content: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { background: #f4f4f4; }
.nav a[aria-current="page"] { background: #f0e6f3; }

/* CTA */
.cta { display: inline-flex; gap: 10px; align-items: center; }
.btn { appearance: none; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(.95); }

/* Hamburger visibility (mobile only) */
.menu-toggle {
  display: none;
  position: relative; z-index: 60;
  border: 0; background: transparent;
  font-size: 28px; line-height: 1; cursor: pointer;
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; justify-self: end; }
}

/* ---------- Drawer + backdrop (mobile) ---------- */
.drawer-open { overflow: hidden; }

.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 55;
}
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(80vw, 360px);
  transform: translateX(100%);
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,.15);
  transition: transform .25s ease;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 60;
}
.drawer-open .mobile-drawer { transform: translateX(0); }

.drawer-header { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.drawer-title { font-weight: 700; }
.drawer-close { appearance: none; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }

/* Never show drawer/backdrop on desktop */
@media (min-width: 901px) {
  .drawer-backdrop, .mobile-drawer { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #eee; background: var(--bg-alt); margin-top: 48px; }
.site-footer .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--pad);
  display: grid;
  gap: 18px;
  color: var(--muted);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: center; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* Offset anchored sections so sticky header doesn't cover them */
.feature-row {
  scroll-margin-top: 80px; /* adjust to match your header height */
}
/* --- Dropdown navigation styles --- */
.dropdown { position: relative; display: inline-block; }
.dropdown > a {
  cursor: pointer;
  display: inline-flex;
  align-items: center;  /* vertically align text + arrow */
  line-height: 1.4;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
}
.dropdown-menu a:hover { background: #f4f4f4; }
.dropdown:hover .dropdown-menu { display: block; }

/* --- Mobile submenu styles --- */
.mobile-submenu {
  margin: 10px 0;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-submenu strong {
  margin-bottom: 4px;
  color: var(--brand);
  font-weight: 600;
}