/*
Theme Name: What Is The Best UK
Theme URI: https://whatisthebest.uk/
Author: Maciej Skalinski
Description: Lightweight affiliate-ready WordPress theme for WhatIsTheBest.uk buying guides and product comparisons.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: witb
*/

:root {
  --witb-bg: #f7f8fb;
  --witb-surface: #ffffff;
  --witb-text: #172033;
  --witb-muted: #637083;
  --witb-border: #e5e9f0;
  --witb-primary: #1746a2;
  --witb-primary-dark: #113679;
  --witb-accent: #ffb703;
  --witb-success: #14804a;
  --witb-radius: 18px;
  --witb-shadow: 0 12px 36px rgba(23, 32, 51, .08);
  --witb-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--witb-bg);
  color: var(--witb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--witb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.witb-wrap { width: min(calc(100% - 32px), var(--witb-max)); margin: 0 auto; }
.witb-site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--witb-border); backdrop-filter: blur(10px); }
.witb-header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.witb-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--witb-text); }
.witb-brand:hover { text-decoration: none; }
.witb-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--witb-primary); color: white; font-weight: 900; font-size: 22px; }
.witb-brand-text strong { display: block; font-size: 18px; line-height: 1.05; }
.witb-brand-text span { display: block; font-size: 12px; color: var(--witb-muted); font-weight: 600; margin-top: 4px; }
.witb-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.witb-nav a { color: var(--witb-text); font-weight: 700; font-size: 14px; }
.witb-menu-toggle { display: none; border: 1px solid var(--witb-border); background: white; border-radius: 10px; padding: 9px 12px; font-weight: 700; }

.witb-hero { padding: 78px 0 62px; background: linear-gradient(135deg,#eff5ff 0%,#fff9e8 100%); border-bottom: 1px solid var(--witb-border); }
.witb-hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 38px; align-items: center; }
.witb-eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--witb-border); font-size: 13px; font-weight: 800; color: var(--witb-primary); }
.witb-hero h1 { font-size: clamp(42px, 7vw, 74px); line-height: .98; letter-spacing: -2.5px; margin: 18px 0 20px; max-width: 850px; }
.witb-hero p { font-size: 19px; color: var(--witb-muted); max-width: 740px; margin: 0 0 28px; }
.witb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.witb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 800; border: 1px solid transparent; }
.witb-btn:hover { text-decoration: none; }
.witb-btn-primary { background: var(--witb-primary); color: white; }
.witb-btn-primary:hover { background: var(--witb-primary-dark); }
.witb-btn-secondary { background: white; border-color: var(--witb-border); color: var(--witb-text); }
.witb-trust-card { background: var(--witb-surface); border: 1px solid var(--witb-border); border-radius: 22px; padding: 24px; box-shadow: var(--witb-shadow); }
.witb-trust-card h3 { margin-top: 0; }
.witb-checklist { margin: 0; padding: 0; list-style: none; }
.witb-checklist li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--witb-muted); }
.witb-checklist li:before { content: "✓"; position: absolute; left: 0; color: var(--witb-success); font-weight: 900; }

.witb-section { padding: 62px 0; }
.witb-section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.witb-section-title h2 { margin: 0; font-size: 34px; letter-spacing: -.8px; }
.witb-section-title p { margin: 0; color: var(--witb-muted); max-width: 620px; }
.witb-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.witb-card { background: var(--witb-surface); border: 1px solid var(--witb-border); border-radius: var(--witb-radius); overflow: hidden; box-shadow: 0 5px 18px rgba(23,32,51,.04); }
.witb-card-body { padding: 22px; }
.witb-card h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.25; }
.witb-card p { color: var(--witb-muted); margin: 0; }
.witb-card .witb-meta { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--witb-primary); }
.witb-card-thumb { aspect-ratio: 16/9; background: #eef2f7; overflow: hidden; }
.witb-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.witb-category-card { padding: 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.witb-category-card .witb-icon { font-size: 28px; }
.witb-category-card small { color: var(--witb-muted); }

.witb-main { padding: 48px 0 70px; }
.witb-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; align-items: start; }
.witb-article { background: white; border: 1px solid var(--witb-border); border-radius: 22px; padding: clamp(22px,4vw,44px); }
.witb-article h1 { font-size: clamp(34px,5vw,54px); line-height: 1.06; letter-spacing: -1.5px; margin-top: 10px; }
.witb-article h2 { margin-top: 38px; font-size: 30px; }
.witb-article h3 { margin-top: 28px; }
.witb-entry-meta { color: var(--witb-muted); font-size: 14px; margin-bottom: 24px; }
.witb-disclosure { border: 1px solid #f0d98b; background: #fff8dc; border-radius: 14px; padding: 14px 16px; margin: 18px 0 28px; font-size: 14px; }
.witb-sidebar { position: sticky; top: 94px; }
.witb-sidebar-box { background: white; border: 1px solid var(--witb-border); border-radius: 18px; padding: 20px; margin-bottom: 18px; }
.witb-sidebar-box h3 { margin-top: 0; }

.witb-product-card { display: grid; grid-template-columns: 132px minmax(0,1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--witb-border); border-radius: 18px; padding: 18px; margin: 22px 0; }
.witb-product-image { width: 132px; height: 132px; border-radius: 12px; background: #f0f3f8; object-fit: contain; }
.witb-product-card h3 { margin: 0 0 7px; }
.witb-product-price { font-size: 22px; font-weight: 900; margin: 6px 0; }
.witb-product-merchant { color: var(--witb-muted); font-size: 13px; }
.witb-product-badge { display: inline-block; margin-bottom: 6px; padding: 5px 9px; border-radius: 999px; background: #e9f1ff; color: var(--witb-primary); font-size: 12px; font-weight: 800; }
.witb-product-cta { min-width: 150px; text-align: center; }
.witb-affiliate-note { display: block; color: var(--witb-muted); font-size: 11px; margin-top: 7px; }

.witb-footer { background: #111827; color: #dbe3ef; padding: 46px 0 22px; }
.witb-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.witb-footer h3, .witb-footer h4 { color: white; }
.witb-footer a { color: #e6edf7; }
.witb-footer ul { list-style: none; margin: 0; padding: 0; }
.witb-footer li { margin: 8px 0; }
.witb-footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #aab6c7; font-size: 13px; }

.witb-search-form { display: flex; gap: 8px; }
.witb-search-form input { flex: 1; min-width: 0; border: 1px solid var(--witb-border); border-radius: 11px; padding: 11px 12px; background: white; }
.witb-search-form button { border: 0; background: var(--witb-primary); color: white; font-weight: 800; border-radius: 11px; padding: 0 14px; }

@media (max-width: 900px) {
  .witb-hero-grid, .witb-content-layout { grid-template-columns: 1fr; }
  .witb-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .witb-sidebar { position: static; }
  .witb-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: white; border-bottom: 1px solid var(--witb-border); padding: 18px 16px; }
  .witb-nav.is-open { display: block; }
  .witb-nav ul { flex-direction: column; align-items: flex-start; }
  .witb-menu-toggle { display: inline-block; }
  .witb-product-card { grid-template-columns: 100px minmax(0,1fr); }
  .witb-product-image { width: 100px; height: 100px; }
  .witb-product-cta { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .witb-wrap { width: min(calc(100% - 22px), var(--witb-max)); }
  .witb-hero { padding: 52px 0 42px; }
  .witb-hero h1 { letter-spacing: -1.5px; }
  .witb-grid, .witb-footer-grid { grid-template-columns: 1fr; }
  .witb-section { padding: 44px 0; }
  .witb-section-title { display: block; }
  .witb-section-title p { margin-top: 8px; }
}
