/* ============================================================
   DineWaves · shared marketing layout
   One header, one footer and the consent banner for every
   marketing page. Self-contained: does not depend on Tailwind
   utilities or on the Material Symbols font being loaded.
   Brand red: #a62900 (dark #7f2108, tint #fff0eb).
   ============================================================ */

:root {
  --dw-red: #a62900;
  --dw-red-dark: #7f2108;
  --dw-red-light: #c8411a;
  --dw-red-tint: #fff0eb;
  --dw-red-on-dark: #ffb5a1;
}

/* ---------- Skip link ---------- */
.dw-skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: .75rem 1rem;
  border-radius: .75rem;
  color: #fff;
  background: #111827;
  font: 800 .875rem/1.2 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .18s ease;
}
.dw-skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.dw-header {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 50;
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid rgba(226, 232, 240, .7);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Space for the fixed header on pages whose content starts at the top. */
.dw-header-spacer { height: 6rem; }
.dw-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  padding: 0 1.5rem;
}
.dw-header-logo {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: #0f172a;
  text-decoration: none;
  flex: 0 0 auto;
}
.dw-header-logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  color: var(--dw-red);
  background: rgba(166, 41, 0, .1);
}
.dw-header-logo-mark svg { width: 1.375rem; height: 1.375rem; }
.dw-header-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.dw-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.dw-nav a {
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.dw-nav a:hover { color: var(--dw-red); }
.dw-nav a[aria-current="page"] { color: var(--dw-red); border-bottom-color: var(--dw-red); }
.dw-header-actions { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.dw-header-cta,
.dw-nav a.dw-nav-cta {
  display: inline-block;
  padding: .625rem 1.5rem;
  border: 0;
  border-radius: .75rem;
  color: #fff;
  background: var(--dw-red);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.dw-header-cta:hover,
.dw-nav a.dw-nav-cta:hover { color: #fff; background: var(--dw-red-dark); }
.dw-nav a.dw-nav-cta { display: none; }
.dw-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .75rem;
  color: #1e293b;
  background: transparent;
  cursor: pointer;
}
.dw-nav-toggle svg { width: 1.75rem; height: 1.75rem; }
.dw-nav-toggle .dw-icon-close { display: none; }
.dw-nav-toggle[aria-expanded="true"] .dw-icon-menu { display: none; }
.dw-nav-toggle[aria-expanded="true"] .dw-icon-close { display: block; }
.dw-header a:focus-visible,
.dw-nav-toggle:focus-visible,
.dw-footer a:focus-visible,
.dw-footer button:focus-visible {
  outline: 2px solid var(--dw-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header extras (homepage currency switch) */
.dw-currency { display: inline-flex; align-items: center; gap: .125rem; padding: .125rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; }
.dw-currency button {
  padding: .3rem .6rem;
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: transparent;
  font: 700 .6875rem/1 'DM Sans', system-ui, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
  cursor: pointer;
}
.dw-currency button[aria-pressed="true"] { color: #fff; background: var(--dw-red); }
.dw-currency button:focus-visible { outline: 2px solid var(--dw-red); outline-offset: 2px; }

/* Narrow desktops: tighten the bar so seven links, the currency switch and
   the CTA fit on one line (they overflowed between 900px and ~1100px). */
@media (min-width: 1024px) and (max-width: 1199px) {
  .dw-header-bar { gap: .75rem; padding: 0 1rem; }
  .dw-nav { gap: 1.05rem; }
  .dw-nav a { letter-spacing: .08em; }
  .dw-header-cta { padding: .625rem 1rem; letter-spacing: .08em; }
}

/* Phones and tablets: the navigation becomes a panel under the bar.
   Keep this breakpoint in sync with the media query in js/dw-layout.js. */
@media (max-width: 1023px) {
  .dw-header-bar { padding: 0 1rem; }
  .dw-nav-toggle { display: inline-flex; }
  .dw-header-cta { display: none; }
  .dw-nav {
    display: none;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .125rem;
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem);
    padding: .75rem 1.25rem 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  }
  .dw-nav.is-open { display: flex; }
  /* 44px tap targets. */
  .dw-nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .25rem 0; border-bottom: 0; font-size: .8125rem; }
  .dw-nav a[aria-current="page"] { border-bottom: 0; }
  .dw-nav .dw-currency { align-self: flex-start; margin: .5rem 0; }
  .dw-nav .dw-currency button { min-width: 4.25rem; min-height: 2.75rem; padding: .4rem .9rem; font-size: .75rem; }
  .dw-nav a.dw-nav-cta { display: flex; justify-content: center; min-height: 3rem; margin-top: .25rem; padding: .75rem 1.5rem; font-size: .75rem; }
  /* While the panel is open the page behind it does not scroll. */
  html.dw-nav-open, html.dw-nav-open body { overflow: hidden; }
}

/* ---------- Footer ---------- */
.dw-footer {
  position: relative;
  z-index: 3;
  clear: both;
  overflow: hidden;
  color: #475569;
  background: radial-gradient(circle at 85% 0, rgba(166, 41, 0, .09), transparent 30%), linear-gradient(180deg, #fffdfb, #f8fafc) !important;
  border-top: 1px solid #e5e7eb !important;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
}
.dw-footer::before { content: none !important; }
.dw-footer-shell { position: relative; width: min(100%, 1280px); margin: 0 auto; padding: 4.5rem 2rem 1.5rem; box-sizing: border-box; }
.dw-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-bottom: 3rem; border-bottom: 1px solid #e2e8f0; }
.dw-footer-logo { display: inline-flex; align-items: center; gap: .7rem; color: #0f172a; text-decoration: none; }
/* Same mark and wordmark as the header logo, one size up. */
.dw-footer-logo > span { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .9rem; color: var(--dw-red); background: rgba(166, 41, 0, .1); }
.dw-footer-logo > span svg { width: 24px; height: 24px; }
.dw-footer-logo strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.dw-footer-identity > p { max-width: 560px; margin: 1rem 0 0; color: #576577; font-size: .86rem; line-height: 1.7; }
.dw-footer-socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
/* One quiet, monochrome set: outlined circles that take the brand colour on hover. */
.dw-footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d6d3d1; border-radius: 999px; color: #1c1917; background: transparent; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.dw-footer-socials a:hover, .dw-footer-socials a:focus-visible { color: #fff; border-color: var(--dw-red); background: var(--dw-red); }
.dw-footer-socials a svg { width: 18px; height: 18px; color: currentColor; flex: 0 0 auto; }
.dw-footer-socials a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dw-footer-cta { padding: 1.4rem; border: 1px solid #f0c9bd; border-radius: 22px; background: linear-gradient(145deg, #fff8f5, #fff); box-shadow: 0 18px 40px -34px rgba(166, 41, 0, .45); }
.dw-footer-cta > span { color: var(--dw-red); font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.dw-footer-cta h3 { margin: .55rem 0 1.1rem; color: #0f172a; font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
.dw-footer-cta a { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-radius: 10px; color: #fff; background: var(--dw-red); font-size: .75rem; font-weight: 900; text-decoration: none; }
.dw-footer-cta a:hover { background: var(--dw-red-dark); }
.dw-footer-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 2rem; padding: 3rem 0; }
.dw-footer-nav > div { display: flex; min-width: 0; flex-direction: column; gap: .7rem; }
.dw-footer-nav h4 { margin: 0 0 .25rem; color: #172033; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.dw-footer-nav a { width: max-content; max-width: 100%; color: #475569; font-size: .8rem; text-decoration: none; }
.dw-footer-nav a:hover { color: var(--dw-red); }
.dw-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.dw-footer-bottom p,
.dw-footer-bottom a,
.dw-footer-bottom button { margin: 0; padding: 0; border: 0; color: #475569; background: none; font: inherit; font-size: .72rem; text-decoration: none; cursor: pointer; }
.dw-footer-bottom p { cursor: auto; }
.dw-footer-bottom a:hover,
.dw-footer-bottom button:hover { color: var(--dw-red); }
.dw-footer-bottom > div { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .9rem; }
.dw-footer-status { display: inline-flex; align-items: center; gap: .35rem; }
.dw-footer-status i { width: 6px; height: 6px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .1); }

@media (max-width: 767px) {
  .dw-footer-shell { padding: 3rem 1.1rem 1.25rem; }
  .dw-footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; }
  .dw-footer-cta { padding: 1.15rem; }
  .dw-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; padding: 2.25rem 0; }
  /* Roomier tap targets on touch screens. */
  .dw-footer-nav > div { gap: .15rem; }
  .dw-footer-nav h4 { margin-bottom: .5rem; }
  .dw-footer-nav a { padding: .45rem 0; }
  .dw-footer-bottom a, .dw-footer-bottom button { padding: .45rem 0; }
  .dw-footer-bottom { flex-direction: column; align-items: flex-start; }
  .dw-footer-bottom > div { justify-content: flex-start; gap: .65rem 1rem; }
}

/* ---------- Analytics consent banner (js/dw-consent.js) ---------- */
.dw-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(166, 41, 0, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.08);
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.32s cubic-bezier(.22,1,.36,1), transform 0.32s cubic-bezier(.22,1,.36,1);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.dw-cookie-banner.dw-cookie-visible { opacity: 1; transform: translateY(0); }
.dw-cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dw-cookie-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1a1c1c;
}
.dw-cookie-text strong { color: #a62900; font-weight: 700; }
.dw-cookie-link {
  color: #a62900;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
}
.dw-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.dw-cookie-btn {
  border: none;
  cursor: pointer;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9px;
  min-height: 40px;
  font-family: inherit;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.dw-cookie-btn--primary {
  background: #a62900;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(166, 41, 0, 0.22);
}
.dw-cookie-btn--primary:hover { background: #7f2108; transform: translateY(-1px); }
.dw-cookie-btn--ghost {
  background: transparent;
  color: #59413b;
  border: 1px solid #e2bfb6;
}
.dw-cookie-btn--ghost:hover { background: #faf9f6; color: #1a1c1c; }
.dw-cookie-btn:focus-visible { outline: 2px solid #a62900; outline-offset: 2px; }
@media (max-width: 480px) {
  .dw-cookie-banner { padding: 12px 14px; border-radius: 14px; }
  .dw-cookie-text { font-size: 12.5px; }
  .dw-cookie-actions { width: 100%; justify-content: flex-end; }
  .dw-cookie-btn { flex: 1 1 0; min-height: 44px; }
}

/* ---------- Motion / no-JS safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dw-cookie-banner, .dw-cookie-btn, .dw-skip-link, .dw-footer-socials a { transition: none !important; }
}
