/*
Theme Name: Radius Tools Limited
Theme URI: https://www.radiustools.co.uk/
Author: Radius Tools Limited
Author URI: https://www.radiustools.co.uk/
Description: A premium industrial WordPress theme for Radius Tools Limited, built for trade enquiries, tool manufacturing support and distribution.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radius-tools-limited
Tags: custom-logo, responsive-layout, business, manufacturing, one-column, two-columns
*/

:root {
  --ink: #0f1720;
  --ink-2: #152433;
  --ink-3: #1f3041;
  --steel: #6b7b8c;
  --muted: #7f8b99;
  --line: rgba(15, 23, 32, .12);
  --paper: #f7f3ec;
  --paper-2: #ffffff;
  --sand: #e9dfce;
  --gold: #d7a64a;
  --gold-2: #b9782c;
  --success: #2d7a5f;
  --shadow: 0 24px 60px rgba(15, 23, 32, .16);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-heading: "Inter", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.skip-link {
  position: absolute; top: -100px; left: 20px; z-index: 9999;
  background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 20px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-2); font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); display: inline-block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0 0 18px;
}
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4.1rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 18px; color: #526171; }
.lead { font-size: clamp(1.08rem, 2vw, 1.32rem); color: #304154; max-width: 760px; }
.text-light p, .text-light .lead { color: rgba(248, 250, 252, .78); }
.text-light h1, .text-light h2, .text-light h3 { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 32, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-shell {
  width: min(1240px, calc(100% - 34px)); margin: 0 auto;
  min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { width: 232px; height: auto; }
.primary-navigation { display: flex; align-items: center; justify-content: center; gap: 8px; }
.primary-navigation ul { list-style: none; display: flex; align-items: center; gap: 6px; padding: 0; margin: 0; }
.primary-navigation a {
  color: rgba(248,250,252,.84); font-weight: 750; padding: 12px 12px; border-radius: 999px; font-size: .96rem;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { background: rgba(255,255,255,.08); color: #fff; }
.header-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 19px; border-radius: 999px;
  font-weight: 850; border: 1px solid transparent; transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.header-cta { background: var(--gold); color: var(--ink); white-space: nowrap; box-shadow: 0 8px 24px rgba(215,166,74,.28); }
.header-cta:hover, .btn:hover { transform: translateY(-2px); color: var(--ink); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 16px 34px rgba(185,120,44,.25); }
.btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,.38); }
.btn-ghost { border-color: rgba(15,23,32,.18); color: var(--ink); background: rgba(255,255,255,.5); }
.btn-ghost:hover { color: var(--ink); background: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); border-radius: 14px; color: #fff; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 5px; transition: transform .2s ease; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 75% 10%, rgba(215,166,74,.18), transparent 34%), linear-gradient(130deg, #0f1720 0%, #152433 48%, #213141 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), transparent 86%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr); gap: clamp(34px, 6vw, 82px); align-items: center; padding: 98px 0 72px; }
.hero-copy h1 span { color: var(--gold); }
.hero-copy .lead { color: rgba(248,250,252,.78); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.metric { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.06); }
.metric strong { display: block; color: #fff; font-family: var(--font-heading); font-size: 1.18rem; }
.metric span { color: rgba(248,250,252,.68); font-size: .92rem; }
.hero-visual { position: relative; }
.hero-visual .image-shield { border-radius: 34px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.14); aspect-ratio: 4 / 3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; left: -32px; bottom: 28px; max-width: 290px;
  padding: 22px; border-radius: 22px;
  background: rgba(255,255,255,.94); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,.18); border: 1px solid rgba(15,23,32,.08);
}
.float-card strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 6px; }
.float-card span { color: var(--steel); font-size: .96rem; }
.trust-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-inline: 1px solid var(--line); }
.trust-item { background: var(--paper-2); padding: 24px; }
.trust-item strong { display: block; font-family: var(--font-heading); margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: .95rem; }

/* Cards and sections */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading .lead { max-width: 590px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius-md); background: #fff; padding: 30px;
  border: 1px solid rgba(15,23,32,.08); box-shadow: 0 16px 40px rgba(15,23,32,.07);
}
.card::after { content: ""; position: absolute; inset: auto 24px 0 24px; height: 4px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .8; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #f4ead8; color: var(--gold-2); font-weight: 900; margin-bottom: 20px; }
.card p { margin-bottom: 0; }
.card .small-link { display: inline-flex; margin-top: 18px; color: var(--gold-2); font-weight: 850; }
.split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 6vw, 80px); align-items: center;
}
.panel-dark { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.panel-dark .split { padding: clamp(26px, 4vw, 48px); }
.image-shield {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius-md); background: #d6d6d6;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.image-shield::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(255,255,255,0); pointer-events: auto; }
.image-shield img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.image-framed { padding: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.image-framed img { border-radius: 16px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: steps; }
.process-card { padding: 26px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; counter-increment: steps; }
.process-card::before { content: counter(steps, decimal-leading-zero); display: inline-flex; color: var(--gold); font-weight: 900; margin-bottom: 16px; }
.process-card p { color: rgba(248,250,252,.72); margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.why-item { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.why-item .tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 900; }
.why-item p { margin: 0; }
.cta-band { background: linear-gradient(135deg, var(--ink), #24374a); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 58px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; overflow: hidden; position: relative; }
.cta-band::after { content: ""; position: absolute; right: -130px; top: -150px; width: 320px; height: 320px; border: 48px solid rgba(215,166,74,.16); border-radius: 50%; }
.cta-band p { color: rgba(248,250,252,.76); max-width: 780px; }

/* Inner pages */
.page-hero { background: linear-gradient(135deg, #0f1720, #223344); color: #fff; padding: 78px 0 68px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 270px; height: 270px; border: 40px solid rgba(215,166,74,.15); border-radius: 50%; }
.page-hero .lead { color: rgba(248,250,252,.76); }
.breadcrumb-lite { color: rgba(248,250,252,.55); font-size: .92rem; margin-bottom: 20px; }
.content-block { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(15,23,32,.07); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.list-check { list-style: none; padding: 0; margin: 18px 0 0; }
.list-check li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #526171; }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-2); font-weight: 900; }

/* Product filter */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; padding: 16px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 24px; }
.filter-bar input { width: min(100%, 420px); border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; outline: none; }
.filter-bar input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,166,74,.14); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 38px rgba(15,23,32,.07); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(15,23,32,.12); }
.product-card .tag { display: inline-flex; width: fit-content; background: #f3eadb; color: var(--gold-2); border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: .8rem; margin-bottom: 18px; }
.product-card p { margin-bottom: 20px; }
.product-card[hidden] { display: none; }
.note-box { border-left: 4px solid var(--gold); background: #fff8eb; padding: 18px 20px; border-radius: 14px; color: #4a3b25; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: 0 16px 44px rgba(15,23,32,.07); }
.contact-row { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .contact-icon { width: 46px; height: 46px; border-radius: 14px; background: #f2e7d4; color: var(--gold-2); display: grid; place-items: center; font-weight: 900; }
.contact-row a { font-weight: 850; }
.map-frame { overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: #d9d9d9; min-height: 340px; }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }
.enquiry-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label { display: block; font-weight: 850; margin-bottom: 7px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid rgba(15,23,32,.14); border-radius: 15px; padding: 13px 14px; background: #fff; color: var(--ink); outline: none;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,166,74,.14); }
.form-note { color: var(--muted); font-size: .92rem; }
.notice { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 750; }
.notice.success { background: #e8f7ef; color: #1d6b4d; }
.notice.error { background: #fff0f0; color: #a23636; }

/* Legal */
.legal-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 32px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { color: #526171; }
.legal-meta { color: var(--muted); font-weight: 750; margin-bottom: 28px; }

/* Footer */
.site-footer { background: #0d141c; color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .9fr; gap: 34px; align-items: start; }
.footer-logo img { width: 226px; margin-bottom: 18px; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(248,250,252,.68); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; color: rgba(248,250,252,.55); font-size: .92rem; }

@media (prefers-reduced-motion: no-preference) {
  .card, .why-item, .product-card, .contact-card { animation: riseIn .55s ease both; }
  @keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1060px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .primary-navigation {
    position: fixed; inset: 86px 16px auto 16px; display: none; background: rgba(15,23,32,.98); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 18px; box-shadow: var(--shadow);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; gap: 4px; }
  .primary-navigation a { display: block; }
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; }
  .float-card { left: 18px; bottom: 18px; }
  .trust-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--max)); }
  .nav-shell { min-height: 76px; }
  .brand img { width: 196px; }
  .primary-navigation { inset-top: 76px; }
  .hero-inner { padding: 66px 0 48px; }
  .hero-metrics, .trust-grid, .card-grid, .product-grid, .process-grid, .why-grid, .two-col, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .section, .section-tight { padding: 58px 0; }
  .section-heading { display: block; }
  .filter-bar { display: grid; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .float-card { position: static; margin-top: 14px; max-width: none; }
}
