/* Raise the Flag Store — SEO landing pages shared stylesheet.
   Brand tokens ported from the main site's theme.css so these pages match the shop.
   Mobile-first: base styles target 320px+, media queries scale up. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand — Union Jack palette (from main site theme.css) */
  --navy: #00247D;
  --navy-deep: #001A5C;
  --red: #CF142B;
  --red-deep: #A01020;
  --white: #FFFFFF;

  --ink: #1A1A1A;
  --soft: #4a4a4a;
  --muted: #707070;
  --surface: #F8F8F8;
  --surface-2: #EDEDED;
  --border: #DADADA;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1120px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 16px rgba(0, 36, 125, 0.12);
  --shadow-red: 0 6px 20px rgba(207, 20, 43, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --gradient-hero: linear-gradient(135deg, #00247D 0%, #001A5C 55%, #CF142B 130%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

section { padding: clamp(2.5rem, 8vw, 4.5rem) 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 26px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn--accent { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--accent:hover { background: var(--red-deep); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 12px 20px; gap: 16px;
  position: relative;
}
bbl-header {
  position: sticky; top: 0; z-index: 100; display: block;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav__logo { height: 44px; width: auto; }
.site-nav__links { display: flex; align-items: center; gap: 4px; }
.site-nav__links > a {
  padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: .95rem; border-radius: 8px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav__links > a:hover { background: var(--surface); }
.site-nav__links > a[aria-current="page"] { color: var(--red); }
.site-nav__cta { margin-left: 8px; min-height: 44px; padding: 10px 18px; }
.site-nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer; min-width: 44px; min-height: 44px;
}
.site-nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Nav now carries four links + CTA — hamburger up to 960px so it never wraps */
@media (max-width: 960px) {
  .site-nav__toggle { display: flex; }
  .site-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px;
    box-shadow: var(--shadow); display: none;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero); color: #fff; position: relative; overflow: hidden;
  padding: clamp(2.5rem, 9vw, 5rem) 0;
}
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.15); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: rgba(255,255,255,.92); max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero__img { border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,.3); }

@media (min-width: 820px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy-deep); color: #fff; padding: 20px 0;
}
.trust__row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px;
  text-align: center;
}
.trust__item strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.trust__item span { font-size: .85rem; color: rgba(255,255,255,.8); }
@media (min-width: 720px) { .trust__row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Content blocks ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.5em; }
.lead { font-size: 1.15rem; color: var(--soft); }

.features { display: grid; gap: 18px; margin-top: 1.5rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.feature-card__icon { font-size: 1.8rem; }
.feature-card h3 { margin: 10px 0 6px; }
.feature-card p { margin: 0; color: var(--soft); font-size: .96rem; }

/* Product cards */
.products { display: grid; gap: 22px; margin-top: 1.5rem; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.product__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.product__price small { font-size: .8rem; color: var(--muted); font-family: var(--font-body); }
.product ul { margin: 0; padding-left: 1.1em; color: var(--soft); font-size: .92rem; }
.product .btn { margin-top: auto; }

/* Section tints */
.tint { background: var(--surface); }
.stripe {
  height: 6px; background: var(--gradient-union, linear-gradient(90deg,#00247D 0%,#fff 50%,#CF142B 100%));
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 1.5rem auto 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px;
  background: #fff; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--red); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-hero); color: #fff; text-align: center; border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3rem); margin-top: 1.5rem;
}
.cta-band h2 { color: #fff; }
.cta-band .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 40px 20px 24px;
  display: grid; gap: 28px;
}
.site-footer__logo { height: 42px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; }
.site-footer__nap { margin: 14px 0 0; font-size: .92rem; line-height: 1.7; }
.site-footer__nap a { color: #fff; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.15); padding: 18px 20px; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.6);
}
.site-footer__legal p { margin: 0 0 6px; }
.site-footer__credit a { color: rgba(255,255,255,.8); }
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; }
  .site-footer__links { text-align: right; }
}

/* Cross-links inline */
.xlink { color: var(--red); font-weight: 600; }

/* ---------- Size-guide table ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.size-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .95rem; }
.size-table th, .size-table td {
  border: 1px solid var(--border); padding: 10px 12px; text-align: left;
  vertical-align: top;
}
.size-table th { background: var(--surface); font-weight: 700; }
.size-table tr:nth-child(even) td { background: var(--surface); }

/* ---------- Notify / register-interest form ---------- */
.notify-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin-top: 1rem; }
.notify-form label { font-weight: 600; }
.notify-form input[type="email"] {
  width: 100%; max-width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; border: 2px solid var(--border); border-radius: var(--radius);
}
.notify-form input[type="email"]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.hidden-field { position: absolute; left: -9999px; }

/* Coming-soon notice */
.notice {
  background: #FFF7E6; border: 1px solid #E8C97A; border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 1.25rem; font-size: .96rem;
}

/* Ordered how-to steps */
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 16px 58px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
