/* ============================================================
   BookDriveTest UK — Main Stylesheet
   ============================================================ */

/* Google Fonts loaded in HTML */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #1e3a6e;
  --primary-dark: #142d55;
  --primary-light:#2a52a0;
  --accent:       #f5a623;
  --accent-dark:  #d4891a;
  --text:         #1a1a2e;
  --text-muted:   #5a6a85;
  --bg:           #f8f9fc;
  --white:        #ffffff;
  --border:       #dde3ef;
  --success:      #2e7d32;
  --radius:       10px;
  --shadow:       0 2px 16px rgba(30,58,110,.10);
  --shadow-lg:    0 8px 40px rgba(30,58,110,.15);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:        1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── UTILITY ────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.badge {
  display: inline-block;
  background: rgba(30,58,110,.10);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: var(--text); margin-bottom: 12px; line-height: 1.25; }
.section-sub   { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; }
.section-title + .section-sub, .section-header + .section-sub { margin-top: 10px; }
.section-header { margin-bottom: 48px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary   { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent    { background: var(--accent); color: var(--text); border-color: var(--accent); box-shadow: 0 4px 20px rgba(245,166,35,.35); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── DISCLAIMER BANNER ──────────────────────────────────────── */
.disclaimer-bar {
  background: #fff3cd; border-bottom: 1px solid #f0c030;
  font-size: .8rem; color: #7a5500; text-align: center;
  padding: 8px 20px; font-weight: 500; line-height: 1.4;
}

/* ── NAV ────────────────────────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--primary);
  text-decoration: none;
}
.nav-logo img { width: 36px; height: 36px; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem;
  color: var(--text); transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { background: var(--bg); color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .75rem; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: var(--shadow-lg); padding: 6px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 16px; border-radius: 6px; font-size: .9rem; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

.mobile-nav {
  display: none; background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 14px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary-dark);
  color: var(--white); padding: 80px 0 72px;
  min-height: 520px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  opacity: .32;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,45,85,.92) 45%, rgba(20,45,85,.55)); }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(2rem,4.5vw,3.1rem); font-weight: 900; line-height: 1.18; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; opacity: .85; margin-bottom: 28px; max-width: 520px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; opacity: .75; }
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar { background: var(--primary); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--white); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 2px; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card-text  { font-size: .93rem; color: var(--text-muted); line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── ICON BOX ───────────────────────────────────────────────── */
.icon-box { width: 52px; height: 52px; border-radius: 12px; background: rgba(30,58,110,.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.5rem; }
.icon-box-accent { background: rgba(245,166,35,.15); }

/* ── FEATURE ROW ────────────────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse .feature-img { order: -1; }
.feature-img img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; height: 380px; object-fit: cover; }

/* ── STEPS ──────────────────────────────────────────────────── */
.step { display: flex; gap: 20px; margin-bottom: 32px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.step-text  { font-size: .93rem; color: var(--text-muted); }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: .95rem; color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-location { font-size: .82rem; color: var(--text-muted); }

/* ── PRICING ────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }
.pricing-card {
  border: 2px solid var(--border); border-radius: 16px;
  padding: 32px 28px; background: var(--white);
  position: relative; transition: box-shadow .2s;
}
.pricing-card.featured {
  border-color: var(--primary); background: var(--primary);
  color: var(--white); box-shadow: 0 12px 40px rgba(30,58,110,.3);
  transform: scale(1.04);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--text); font-size: .78rem; font-weight: 800;
  padding: 4px 16px; border-radius: 50px; white-space: nowrap;
}
.pricing-name  { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.pricing-tagline { font-size: .88rem; opacity: .7; margin-bottom: 20px; }
.pricing-price { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 8px; }
.pricing-price small { font-size: .85rem; font-weight: 400; opacity: .7; }
.pricing-divider { border: none; border-top: 1px solid rgba(0,0,0,.08); margin: 20px 0; }
.pricing-card.featured .pricing-divider { border-color: rgba(255,255,255,.2); }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: .92rem; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.off { opacity: .4; }
.pricing-features li.off::before { content: '✗'; color: currentColor; }
.pricing-cta { margin-top: 24px; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-category { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 32px 0 12px; border-bottom: 2px solid var(--border); margin-bottom: 4px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-family: var(--font); font-size: 1rem; font-weight: 600;
  color: var(--text); gap: 16px;
}
.faq-question::after { content: '+'; font-size: 1.4rem; font-weight: 300; flex-shrink: 0; color: var(--primary); transition: .2s; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 18px; font-size: .95rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group.full { grid-column: 1/-1; }
label { font-size: .9rem; font-weight: 600; color: var(--text); }
input, select, textarea {
  font-family: var(--font); font-size: 1rem; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 12px 14px; width: 100%; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,110,.12);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* ── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  background: var(--primary); color: var(--white);
  padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-band h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900; margin-bottom: 12px; }
.cta-band p  { opacity: .8; max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ── PHOTO BAND ─────────────────────────────────────────────── */
.photo-band { position: relative; overflow: hidden; min-height: 360px; display: flex; align-items: center; }
.photo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band-overlay { position: absolute; inset: 0; background: rgba(20,45,85,.72); }
.photo-band-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 60px 20px; width: 100%; }
.photo-band-content h2 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 900; margin-bottom: 12px; }
.photo-band-content p  { opacity: .8; max-width: 540px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ── INFO BOX ───────────────────────────────────────────────── */
.info-box { border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.info-box-warning { background: #fff8e1; border-left: 4px solid var(--accent); }
.info-box-info    { background: #e8f0fe; border-left: 4px solid var(--primary); }
.info-box-success { background: #e8f5e9; border-left: 4px solid var(--success); }
.info-box strong  { display: block; margin-bottom: 6px; }

/* ── CHECKLIST ──────────────────────────────────────────────── */
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: .95rem; }
.checklist li::before { content: '✓'; color: var(--primary); font-weight: 800; flex-shrink: 0; margin-top: 2px; }

/* ── TEAM CARDS ─────────────────────────────────────────────── */
.team-card { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px 20px; }
.team-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--border); }
.team-name { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.team-role { color: var(--primary); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.team-bio  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; color: var(--text-muted); padding: 14px 0; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ── PAGE HERO (non-home) ───────────────────────────────────── */
.page-hero {
  background: var(--primary); color: var(--white);
  padding: 56px 0 52px; position: relative; overflow: hidden;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.8rem,3.5vw,2.7rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p  { opacity: .8; font-size: 1.05rem; max-width: 580px; }

/* ── BLOG ───────────────────────────────────────────────────── */
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-category { display: inline-block; background: rgba(30,58,110,.08); color: var(--primary); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; }
.blog-excerpt { font-size: .93rem; color: var(--text-muted); line-height: 1.65; }
.blog-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--primary); margin-top: 14px; }
.blog-link:hover { text-decoration: underline; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: #0d1f3c; color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: .88rem; line-height: 1.65; max-width: 280px; margin-top: 10px; }
.footer h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: rgba(255,255,255,.65); font-size: .88rem; text-decoration: none; transition: color .15s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; font-size: .82rem; color: rgba(255,255,255,.4);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-disclaimer { max-width: 800px; font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.55; margin-top: 6px; }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; background: rgba(30,58,110,.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-label { font-size: .82rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-weight: 600; font-size: .95rem; }

/* ── LEGAL CONTENT ──────────────────────────────────────────── */
.legal-content h2 { font-size: 1.3rem; font-weight: 800; margin: 32px 0 10px; color: var(--text); }
.legal-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.legal-content p  { color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; font-size: .95rem; }
.legal-content ul { margin: 10px 0 14px 20px; }
.legal-content ul li { list-style: disc; color: var(--text-muted); margin-bottom: 6px; font-size: .95rem; line-height: 1.7; }
.legal-last-updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 32px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .feature-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 56px 0 52px; min-height: auto; }
  .hero h1 { font-size: 1.9rem; }
  .hero-buttons { flex-direction: column; }
}
