/*
Theme Name: Go2Couriers
Theme URI: https://go2couriers.co.uk
Author: Go2Couriers Ltd
Description: Specialist veterinary pathology courier WordPress theme.
Version: 1.0.0
License: Private
Text Domain: go2couriers
*/

:root {
  --navy: #0f172a;
  --navy2: #111827;
  --blue: #1f75bc;
  --blue2: #0f5f9f;
  --cyan: #a5f3fc;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #eef6ff;
  --shadow: 0 18px 45px rgba(15,23,42,.10);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}
/* WordPress admin bar pushes body down — keep sticky nav correctly positioned */
.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ── Layout ── */
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ── Topbar / Nav ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 76px; display: flex;
  align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 260px; flex-shrink: 0; }
.logo-wrap {
  height: 50px; width: 148px;
  border: 1px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.06);
  overflow: hidden; padding: 4px; flex-shrink: 0;
}
.logo-wrap img {
  max-width: 136px; max-height: 44px;
  width: auto; height: auto;
  display: block; object-fit: contain;
}
.brand-text strong {
  display: block; color: var(--blue); font-size: 12px;
  text-transform: uppercase; letter-spacing: .22em; font-weight: 900; line-height: 1.1;
}
.brand-text span {
  display: block; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14px; font-weight: 800; color: #475569; cursor: pointer; }
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.mobile-toggle {
  display: none; border: 0; background: #fff;
  font-weight: 900; font-size: 24px; color: var(--navy); cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; border: 0; border-radius: 14px; padding: 13px 18px;
  font-weight: 900; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue2); transform: translateY(-1px); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: #1e293b; transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--blue); border: 1px solid var(--border); }
.btn.light:hover { background: var(--soft); transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn.ghost:hover { background: rgba(255,255,255,.18); }

/* ── Sections ── */
section { padding: 78px 0; }
.section-light { background: var(--bg); }
.section-dark {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
}
.section-dark::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 18% 15%, rgba(31,117,188,.42), transparent 24%),
              radial-gradient(circle at 92% 80%, rgba(34,211,238,.28), transparent 28%);
}
.section-dark .container { position: relative; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff; padding: 86px 0;
}
.hero::before {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(circle at 12% 22%, rgba(31,117,188,.65), transparent 26%),
              radial-gradient(circle at 88% 76%, rgba(34,211,238,.45), transparent 30%);
  opacity: .75;
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.badge {
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1);
  border-radius: 999px; padding: 8px 13px; font-size: 14px;
  font-weight: 800; color: #e2e8f0;
}
.eyebrow {
  font-size: 13px; font-weight: 950; text-transform: uppercase;
  letter-spacing: .24em; color: var(--blue); margin: 0 0 12px;
}
.eyebrow.light { color: var(--cyan); }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px,7vw,76px); line-height: .95; letter-spacing: -.055em; margin-bottom: 25px; font-weight: 950; }
h2 { font-size: clamp(34px,4.5vw,58px); line-height: 1; letter-spacing: -.045em; margin-bottom: 22px; font-weight: 950; }
h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.025em; font-weight: 950; margin-bottom: 12px; }

.lead { font-size: 20px; line-height: 1.75; color: #dbeafe; max-width: 720px; margin-bottom: 30px; }
.lead.dark { color: #475569; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Snapshot widget ── */
.snapshot {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.1);
  border-radius: 34px; padding: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
}
.snapshot-inner { background: #fff; border-radius: 24px; padding: 22px; color: var(--text); box-shadow: var(--shadow); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.stat { background: #f8fafc; border-radius: 18px; padding: 16px; }
.stat strong { display: block; font-size: 31px; line-height: 1; font-weight: 950; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; font-weight: 800; }
.sample-card {
  margin-top: 16px; background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 22px; color: #fff;
}
.sample-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sample-title b { font-size: 20px; }
.sample-card p { color: #cbd5e1; margin: 0; line-height: 1.75; }

/* ── Two-col ── */
.two-col { display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center; }
.two-col.top { align-items: start; }

/* ── Intro ── */
.intro { max-width: 760px; }
.intro.center { text-align: center; margin: 0 auto; }
.text-lg { font-size: 18px; line-height: 1.8; color: #475569; }
.section-dark .text-lg { color: #cbd5e1; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.cards.two { grid-template-columns: repeat(2,1fr); }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 8px 26px rgba(15,23,42,.05);
}
.card.soft { background: #f8fafc; }
.card.dark { background: var(--navy); color: #fff; border-color: #1e293b; box-shadow: var(--shadow); }
.card p { color: #64748b; margin-bottom: 0; }
.card.dark p { color: #cbd5e1; }
.icon {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: #dff1ff; color: var(--blue);
  font-size: 26px; font-weight: 950; margin-bottom: 22px;
}
.icon.white { background: #fff; color: var(--blue); }

/* ── Feature list ── */
.feature-list { display: grid; gap: 14px; }
.feature-item {
  display: flex; gap: 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 20px;
  padding: 16px; box-shadow: 0 6px 20px rgba(15,23,42,.04);
}
.check { color: var(--blue); font-weight: 950; flex: 0 0 auto; }

/* ── Forms ── */
.form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 900; color: #334155; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 14px;
  padding: 13px; background: #fff; color: var(--text); outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31,117,188,.12);
}
textarea { min-height: 130px; resize: vertical; }

/* ── CTA band ── */
.cta { background: var(--blue); color: #fff; padding: 58px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta p { color: #e0f2fe; margin: 0; max-width: 820px; }

/* ── Footer ── */
footer { background: var(--navy); border-top: 1px solid #1e293b; color: #fff; padding: 38px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.small { font-size: 14px; color: #94a3b8; margin: 6px 0 0; }

/* ── Admin badge ── */
.admin-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff7ed; color: #9a3412;
  border: 1px solid #fed7aa; border-radius: 999px;
  padding: 8px 12px; font-size: 13px; font-weight: 900; margin-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .brand { min-width: auto; }
  .brand-text { display: none; }
  .nav { height: auto; min-height: 70px; }
  .topbar.open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px; flex-direction: column; align-items: flex-start;
  }
  .topbar.open .nav-actions {
    display: flex; position: absolute; top: 320px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px; flex-direction: column; align-items: stretch;
  }
  .hero-grid, .two-col, .cta-grid { grid-template-columns: 1fr; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .hero { padding: 62px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 22px), 1180px); }
  h1 { font-size: 42px; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .btn { width: 100%; }
  .logo-wrap { width: 132px; }
}
