/*
Theme Name: Data Retrieval UK
Theme URI: https://dataretrieval.uk/
Author: Creative IT (UK) Ltd
Description: Theme for Data Retrieval UK (dataretrieval.uk) - red and black, built for the London data recovery lab.
Version: 1.0
Requires PHP: 7.4
Text Domain: dataretrieval-uk
*/

:root {
  --red: #c8102e;
  --red-d: #9e0c24;
  --red-50: #fdecee;
  --black: #111214;
  --ink: #1d1f23;
  --soft: #555b64;
  --line: #e3e5e8;
  --bg: #f6f6f7;
  --white: #fff;
  --radius: 6px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-d); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--black); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* top bar + header */
.topbar { background: var(--black); color: #c9cbcf; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a:first-child { margin-left: 0; }
.site-header { background: var(--white); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.brand img { height: 50px; width: auto; display: block; }
.brand-uk { font: 800 .8rem/1 var(--head); background: var(--red); color: #fff; padding: 5px 7px; border-radius: 4px; letter-spacing: .06em; align-self: flex-end; margin-bottom: 2px; }
.brand-text { font: 700 1.45rem/1 var(--head); letter-spacing: -.02em; }
.brand-text b { color: var(--red); font-weight: 800; }
.brand-text small { display: block; font: 600 .68rem/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-top: 3px; }
.custom-logo { max-height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: var(--radius); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--red); }
.site-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); list-style: none; margin: 0; padding: 6px; min-width: 240px; box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.head-book { margin-left: 8px; }
.nav-toggle { display: none; background: var(--black); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 14px; font: 700 .95rem var(--body); cursor: pointer; }

/* buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: var(--radius); font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; text-align: center; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #000; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-line { border-color: var(--black); color: var(--black); }
.btn-line:hover { background: var(--black); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero */
.hero { background: var(--black); color: #e7e8ea; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(200,16,46,.22); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 76px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: 1.2rem; color: #d2d4d8; max-width: 44ch; }
.hero .kicker, .kicker { display: inline-block; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.hero .kicker { color: #ff5a70; }
.hero-panel { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; border-top: 5px solid var(--red); }
.hero-panel h2 { font-size: 1.2rem; margin-bottom: 12px; }
.hero-panel ul { margin: 0 0 16px; padding: 0; list-style: none; }
.hero-panel li { padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); position: relative; }
.hero-panel li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; background: var(--red); border-radius: 2px; }
.hero-panel .btn { width: 100%; }
.hero.small .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
.hero.small .lead { max-width: 64ch; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: #a9acb2; }
.crumbs a { color: #fff; }

/* sections */
.section { padding: 64px 0; }
.section.grey { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--soft); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--soft); margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--red); transform: translateY(-2px); }
a.card h3 { color: var(--black); }
a.card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--red); }
.card .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red-50); color: var(--red); border-radius: var(--radius); margin-bottom: 14px; font: 800 1rem var(--head); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { counter-increment: s; border-top: 4px solid var(--black); padding-top: 18px; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font: 800 2rem/1 var(--head); color: var(--red); margin-bottom: 10px; }
.step p { color: var(--soft); }

/* stats strip */
.facts { background: var(--red); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.facts b { display: block; font: 800 1.35rem/1.2 var(--head); }
.facts span { font-size: .95rem; opacity: .92; }

/* prices */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--black); color: #fff; font: 700 .9rem var(--head); letter-spacing: .02em; }
.price-table td:last-child { font-weight: 700; white-space: nowrap; color: var(--black); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table small { display: block; color: var(--soft); font-weight: 400; }
.table-scroll { overflow-x: auto; }
.note { background: var(--red-50); border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font: 700 1.08rem/1.4 var(--head); color: var(--black); padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); }

/* plain pages */
.page-head { background: var(--black); color: #fff; padding: 46px 0; }
.page-head h1 { color: #fff; margin: 0; }
.prose { max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }

/* CTA band + footer */
.cta-band { background: var(--red); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #ffe3e7; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-red { background: var(--black); }
.cta-band .btn-red:hover { background: #000; }
.site-footer { background: var(--black); color: #b9bcc2; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff6b80; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.foot-brand { display: flex; align-items: flex-end; gap: 10px; }
.foot-brand img { height: 46px; width: auto; }
.foot-brand b { color: var(--red); }
.foot-brand span { font-size: .8rem; letter-spacing: .14em; color: #8d9097; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.foot-menu { list-style: none; margin: 0; padding: 0; }
.foot-menu li { margin-bottom: 8px; }
.foot-legal { border-top: 1px solid #2a2c31; padding-top: 18px; padding-bottom: 26px; font-size: .82rem; color: #8d9097; }
.foot-legal p { margin: 0 0 6px; }

/* model pages */
.drive-art { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,.14)); }
.spec td:first-child { color: var(--soft); font-weight: 600; width: 38%; }
.spec td:last-child { white-space: normal; }
.model-list { columns: 3; column-gap: 28px; padding-left: 1.1em; }
.model-list li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 620px) { .model-list { columns: 2; } }

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .g3, .g4, .steps, .facts .wrap { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 3px solid var(--red); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
  .site-nav.open { display: flex; }
  .site-nav .menu { flex-direction: column; }
  .site-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .head-book { margin: 10px 0 0; }
  .site-header .wrap { position: relative; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .g2, .g3, .g4, .steps, .foot-grid { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar a { margin: 0 8px; }
  .hero .wrap { padding-top: 46px; padding-bottom: 50px; }
  .section { padding: 46px 0; }
  .btns .btn, .cta-btns .btn { width: 100%; }
}
