/* Shared shell for the public site (zerogapmigration.com).
   Loaded by app/templates/site/_base.html before each page's own <style>,
   so page styles can override tokens (e.g. --max-w) and components.
   Shell rules are scoped under .site-header / .site-footer so a page's own
   component styles (e.g. .btn-primary) can't override them. */

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

:root {
  --orange: #F26522;
  --orange-light: #fff3ec;
  --charcoal: #2D2D2D;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: #e5e5e2;
  --bg: #f9f9f7;
  --surface: #ffffff;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-w: 1080px;
  --header-h: 56px;
}

html { scroll-behavior: smooth; }
section { scroll-margin-top: var(--header-h); }
body { font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--orange); color: #fff; border: none; border-radius: 8px;
  padding: .75rem 1.5rem; font: 700 .95rem var(--font);
  cursor: pointer; transition: opacity .15s; text-decoration: none;
}
.btn-primary:hover { opacity: .88; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; color: var(--charcoal); white-space: nowrap; }
.site-logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.site-nav-links { display: flex; align-items: center; gap: 1.25rem; }
.site-nav-link { font-size: .86rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.site-nav-link:hover, .site-nav-link.is-current { color: var(--orange); }
.site-header .site-nav-cta { padding: .5rem 1rem; font-size: .85rem; white-space: nowrap; }
.cta-short { display: none; }

@media (max-width: 920px) { .site-nav-link { display: none; } }
@media (max-width: 480px) {
  .site-logo { font-size: .86rem; gap: .4rem; }
  .site-header .site-nav-cta { padding: .45rem .7rem; font-size: .78rem; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 380px) {
  .site-header .site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
  .site-header .site-logo-sub { font-size: .66rem; font-weight: 600; color: var(--muted); }
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--muted); }
.site-footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2rem;
}
.site-footer-brand p { margin: .75rem 0 1.1rem; line-height: 1.65; max-width: 320px; }
.site-footer .site-footer-cta { padding: .6rem 1.1rem; font-size: .85rem; }
.site-footer-col h2 { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); margin-bottom: .8rem; }
.site-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; line-height: 1.5; }
.site-footer-col a:hover { color: var(--orange); }
.site-footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 1.1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border); font-size: .78rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } .site-footer-brand { grid-column: span 2; } }
@media (max-width: 480px) { .site-footer-grid { grid-template-columns: 1fr; } .site-footer-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Logo ── */
.site-logo-mark { width: 24px; height: 24px; flex-shrink: 0; color: var(--charcoal); }
.site-logo-accent { color: var(--orange); }
@media (max-width: 480px) { .site-logo-mark { width: 21px; height: 21px; } }

/* ── Footer: credentials strip + social icons ── */
.site-creds { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-creds-inner { max-width: var(--max-w); margin: 0 auto; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.site-creds-lead { font-size: .9rem; color: var(--muted); text-align: center; }
.site-creds-lead strong { color: var(--charcoal); }
.site-creds-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.site-creds-list li, .site-creds-list a { display: flex; flex-direction: column; justify-content: center; text-align: center; line-height: 1.3; }
.site-creds-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .6rem; }
.site-creds-list li:has(a) { padding: 0; }
.site-creds-list a { padding: .75rem .6rem; height: 100%; border-radius: var(--radius); transition: background .15s; }
.site-creds-list a:hover { background: var(--orange-light); }
.site-creds-list b { font-size: 1rem; font-weight: 800; color: var(--charcoal); }
.site-creds-list span { font-size: .74rem; color: var(--muted); margin-top: .15rem; }
@media (max-width: 860px) { .site-creds-list { grid-template-columns: repeat(2, 1fr); } .site-creds-list li:last-child { grid-column: span 2; } }
.site-social { list-style: none; display: flex; gap: .5rem; margin-top: 1.1rem; }
.site-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--charcoal); transition: color .15s, border-color .15s, background .15s; }
.site-social a:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
.site-social svg { width: 17px; height: 17px; }

/* ── Dofeeds badge (on Jennifer's video, and any client migrated with Dofeeds) ── */
.df-badge {
  position: absolute; top: .65rem; left: .65rem; z-index: 2; max-width: calc(100% - 1.3rem);
  display: inline-flex; align-items: center; gap: .45rem; text-align: left;
  background: rgba(255,255,255,.96); color: var(--muted); border-radius: 999px;
  padding: .3rem .75rem .3rem .4rem; font-size: .68rem; font-weight: 500; line-height: 1.25;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none;
}
.df-badge .site-logo-mark { width: 18px; height: 18px; }
.df-badge b { color: var(--charcoal); font-weight: 800; margin-right: .2rem; }
.df-badge.is-inline { position: static; box-shadow: none; border: 1px solid var(--border); max-width: none; }

/* ── Dofeeds section ── */
.df-section { background: var(--charcoal); color: #fff; padding: 5rem 0; }
.df-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.df-label { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.df-label-chip { background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.df-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 900; line-height: 1.15; margin-bottom: 1rem; color: #fff; }
.df-section h2 span { color: var(--orange); }
.df-copy > p { color: rgba(255,255,255,.75); line-height: 1.75; margin-bottom: 1.4rem; }
.df-copy > p a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.df-points { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; }
.df-points li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,.78); line-height: 1.6; font-size: .95rem; }
.df-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 900; }
.df-points b { color: #fff; }
.df-link { display: inline-block; color: var(--orange); font-weight: 700; border-bottom: 2px solid var(--orange); padding-bottom: 1px; }
.df-link:hover { color: #fff; border-color: #fff; }
.df-proof { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 1.75rem; }
.df-proof-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--charcoal); font-size: .76rem; font-weight: 800; border-radius: 999px; padding: .35rem .8rem .35rem .45rem; margin-bottom: 1.25rem; }
.df-proof-badge .site-logo-mark { width: 18px; height: 18px; }
.df-proof blockquote { font-size: 1rem; line-height: 1.7; color: #fff; }
.df-proof figcaption { font-size: .8rem; color: rgba(255,255,255,.6); margin: .5rem 0 1.4rem; }
.df-proof figcaption:last-child { margin-bottom: 0; }
.df-proof figcaption strong { color: #fff; }
@media (max-width: 860px) { .df-inner { grid-template-columns: 1fr; gap: 2rem; } .df-section { padding: 3.5rem 0; } }

/* ── Consent banner (EU/UK only, when any tag is configured) ── */
.zg-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 560px; margin: 0 auto;
  background: var(--charcoal); color: #fff; border-radius: 12px; padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .86rem; line-height: 1.5;
}
.zg-consent p { flex: 1 1 260px; }
.zg-consent-btns { display: flex; gap: .5rem; }
.zg-consent button { border: 0; border-radius: 8px; padding: .55rem 1rem; font: 700 .85rem var(--font); cursor: pointer; }
.zg-consent-no { background: rgba(255,255,255,.12); color: #fff; }
.zg-consent-yes { background: var(--orange); color: #fff; }

/* ── Booking embed (after a successful lead submit, when BOOKING_URL is set) ── */
.zg-booking { margin-top: 1.25rem; text-align: left; }
.zg-booking-title { font-weight: 700; color: var(--charcoal); margin-bottom: .6rem; font-size: .95rem; }
.zg-booking-frame { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

/* ── Landing layout header (campaign pages): logo + one CTA ── */
.site-header.is-landing .site-nav-links { gap: 0; }
