/* Reel UK Rankings — shared styles */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

:root {
  --cream: #f7f3e8;
  --cream-deep: #ebe4d4;
  --cream-soft: #faf7f0;
  --ink: #1a221c;
  --ink-soft: #3d4a42;
  --muted: #6b756e;
  --green: #1b6b3a;
  --green-mid: #248a4a;
  --green-bright: #2fb35c;
  --green-soft: #d8f0e0;
  --green-glow: #a8e6bf;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(27, 107, 58, 0.08);
  --shadow-soft: 0 4px 16px rgba(26, 34, 28, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;
  --space-2xl: 4.5rem;
  --max: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --age-bar-h: 2.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: var(--age-bar-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

a::before {
  content: "· ";
  color: var(--green-bright);
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.btn::before,
a.site-logo::before,
a.nav__link::before,
a.card-op__cta::before,
a.safety-card::before,
.footer a::before,
.cookie-banner a::before,
.age-bar a::before,
.masthead a::before {
  content: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 var(--space-md);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
}

/* —— BEM layout —— */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.grid-swiss {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md) var(--space-lg);
}

.label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  font-variant: small-caps;
  color: var(--green);
  display: block;
  margin-bottom: var(--space-xs);
}

.divider-dot {
  border: none;
  border-top: 2px dotted var(--green-mid);
  opacity: 0.35;
  margin: var(--space-xl) 0;
}

.divider-dash {
  border: none;
  border-top: 1px dashed var(--green);
  opacity: 0.28;
  margin: var(--space-lg) 0;
}

.mark {
  background: linear-gradient(120deg, transparent 0%, var(--green-soft) 0%, var(--green-soft) 100%);
  background-size: 100% 42%;
  background-repeat: no-repeat;
  background-position: 0 85%;
  padding: 0 0.1em;
}

/* Age bar */
.age-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.82rem;
  line-height: 1.3;
  padding: 0.55rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.age-bar a {
  color: var(--green-glow);
  font-weight: 600;
}

.age-bar a:hover {
  color: #fff;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: calc(var(--age-bar-h) + 0.75rem);
  left: 1rem;
  right: 1rem;
  z-index: 999;
  max-width: 420px;
  margin-left: auto;
  background: var(--white);
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  font-size: 0.92rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Buttons — outlined/ghost */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--green-soft);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.96);
  background: var(--green);
  color: var(--cream);
}

.btn--fill {
  background: var(--green);
  color: var(--cream);
}

.btn--fill:hover {
  background: var(--green-mid);
  color: var(--cream);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* Header */
.masthead {
  background: var(--cream-soft);
  border-bottom: 1px dashed rgba(27, 107, 58, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.85rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-logo__text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  font-variant: small-caps;
  color: var(--green);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--green);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.nav__toggle:active {
  transform: scale(0.96);
}

/* Compliance strip */
.compliance-strip {
  background: var(--green-soft);
  border-bottom: 1px dashed var(--green);
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.compliance-strip strong {
  color: var(--green);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* Hero — colour-blocked accent band */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 45%, var(--green-bright) 100%);
  color: var(--cream);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 48%;
  height: 140%;
  background: radial-gradient(circle, rgba(168, 230, 191, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero .label {
  color: var(--green-glow);
}

.hero h1 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.hero p {
  color: rgba(247, 243, 232, 0.92);
  font-size: 1.08rem;
  max-width: 36ch;
  margin-bottom: var(--space-md);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hero__meta span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(247, 243, 232, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px dashed rgba(247, 243, 232, 0.35);
}

.hero--minimal .hero__grid {
  grid-template-columns: 1fr;
}

.hero--minimal h1 {
  max-width: 18ch;
}

.hero--minimal .hero__visual {
  display: none;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.stats__item {
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.28);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stats__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stats__cap {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tint {
  background: var(--cream-deep);
}

.section__head {
  margin-bottom: var(--space-lg);
  max-width: 58ch;
}

.section__head h2 .mark {
  color: var(--green-dark, var(--green));
}

/* Showcase — featured + list */
.showcase-featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  background: var(--white);
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.showcase-featured__facts {
  padding: var(--space-lg);
  border-right: 2px dotted rgba(27, 107, 58, 0.3);
}

.showcase-featured__action {
  padding: var(--space-lg);
  background: linear-gradient(180deg, var(--green-soft), var(--cream-soft));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  align-items: flex-start;
}

.op-logo {
  width: 120px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-sm);
  background: var(--cream-soft);
  border: 1px dashed rgba(27, 107, 58, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
}

.op-logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
}

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
  background: var(--white);
  border: 2px dashed var(--green);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
}

.score__val {
  font-size: 1.6rem;
  line-height: 1;
}

.score__max {
  font-size: 0.9rem;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-sm) 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(27, 107, 58, 0.15);
}

.op-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: var(--space-xs) 0 0;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-op {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-op__facts {
  padding: var(--space-md) var(--space-lg);
}

.card-op__action {
  padding: var(--space-md);
  background: var(--cream-soft);
  border-left: 2px dotted rgba(27, 107, 58, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-sm);
}

.card-op h3 {
  margin-bottom: 0.25rem;
}

.card-op p {
  margin-bottom: var(--space-sm);
  font-size: 0.98rem;
}

.card-op__cta {
  /* inherits .btn */
}

.disclosure-inline {
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.35);
  border-radius: var(--radius);
  padding: var(--space-md);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: var(--space-lg) 0;
}

/* Criterion comparison */
.criteria {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.criterion {
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.28);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.criterion__ranks {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: grid;
  gap: 0.65rem;
}

.criterion__ranks li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--cream-soft);
  border: 1px dashed rgba(27, 107, 58, 0.2);
  border-radius: var(--radius-sm);
}

.criterion__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green);
}

.criterion__why {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Sidebar layout */
.split {
  display: grid;
  grid-template-columns: 1fr 0.38fr;
  gap: var(--space-lg);
  align-items: start;
}

.sidebar-card {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 2px dashed rgba(247, 243, 232, 0.35);
  position: sticky;
  top: 5rem;
}

.sidebar-card .label {
  color: var(--green-glow);
}

.sidebar-card h3 {
  color: var(--cream);
}

.sidebar-card p,
.sidebar-card li {
  color: rgba(247, 243, 232, 0.9);
  font-size: 0.95rem;
}

.sidebar-card a {
  color: var(--green-glow);
}

/* Methodology */
.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.method__item {
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.25);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

/* Safety cards */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.3);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  min-height: 140px;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.safety-card:hover {
  text-decoration: none;
  border-color: var(--green);
  transform: translateY(-2px);
}

.safety-card:active {
  transform: scale(0.98);
}

.safety-card img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.safety-card span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-list li {
  background: var(--white);
  border: 2px dashed rgba(27, 107, 58, 0.25);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.faq-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.faq-list p:last-child {
  margin-bottom: 0;
}

/* Page hero (inner) */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--cream);
}

.page-hero h1 {
  color: var(--cream);
}

.page-hero p {
  color: rgba(247, 243, 232, 0.92);
  max-width: 48ch;
}

.page-hero .label {
  color: var(--green-glow);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: var(--space-xl);
}

.prose img.float-art {
  float: right;
  width: min(280px, 40%);
  margin: 0 0 var(--space-md) var(--space-md);
  border-radius: var(--radius);
  border: 2px dashed rgba(27, 107, 58, 0.25);
  box-shadow: var(--shadow-soft);
}

.content-art {
  border-radius: var(--radius);
  border: 2px dashed rgba(27, 107, 58, 0.25);
  box-shadow: var(--shadow-soft);
  margin: var(--space-lg) 0;
}

/* Contact form */
.form {
  display: grid;
  gap: var(--space-md);
  max-width: 480px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px dashed rgba(27, 107, 58, 0.35);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(247, 243, 232, 0.85);
  padding: var(--space-xl) 0 calc(var(--space-xl) + 0.5rem);
  margin-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 120px;
  height: 120px;
  background: url("/images/brand-mark.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.footer a {
  color: var(--green-glow);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.4rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}

.footer__brand img {
  width: 36px;
  height: 36px;
}

.footer__copy {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(247, 243, 232, 0.2);
  font-size: 0.88rem;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--cream-deep);
  border: 1px dashed rgba(27, 107, 58, 0.25);
  border-radius: var(--radius);
  padding: var(--space-md);
}

/* Honesty note / glossary chips */
.note-box {
  background: var(--white);
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .showcase-featured,
  .card-op,
  .split,
  .footer__grid,
  .method {
    grid-template-columns: 1fr;
  }

  .showcase-featured__facts {
    border-right: none;
    border-bottom: 2px dotted rgba(27, 107, 58, 0.3);
  }

  .card-op__action {
    border-left: none;
    border-top: 2px dotted rgba(27, 107, 58, 0.3);
  }

  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-card {
    position: static;
  }

  .prose img.float-art {
    float: none;
    width: 100%;
    margin: 0 0 var(--space-md);
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: var(--space-sm);
  }

  .nav.is-open {
    display: flex;
  }

  .masthead__inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: calc(var(--age-bar-h) + 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:active,
  .safety-card:active,
  .nav__toggle:active {
    transform: none;
  }
}
