/*
Theme Name: Derbyshire Resin Drives
Theme URI: https://derbyshireresindrives.co.uk
Author: eWebz
Author URI: https://ewebz.co.uk
Description: A conversion-focused WordPress theme for Just Driveways' Derbyshire resin driveway and patio service.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: derbyshire-resin-drives
*/

:root {
  --drd-burgundy: #831731;
  --drd-burgundy-dark: #651025;
  --drd-blue: #00547d;
  --drd-blue-dark: #003f5f;
  --drd-ink: #1e2933;
  --drd-muted: #5f6d76;
  --drd-bg: #f3f7f8;
  --drd-line: #dbe5e8;
  --drd-white: #ffffff;
  --drd-radius: 18px;
  --drd-shadow: 0 18px 50px rgba(22, 35, 45, 0.12);
  --drd-max: 1220px;
}

* { box-sizing: border-box; }

body, button, input, select, textarea { font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif; }
h1, h2, h3, h4, strong, b { font-weight: 700; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--drd-ink);
  background: var(--drd-white);
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--drd-max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--drd-bg); }
.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--drd-burgundy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0 0 18px; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.45rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 20px; }
.lead { color: var(--drd-muted); font-size: 1.15rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 9999; padding: 10px 14px; background: #fff; }

.topbar { background: var(--drd-burgundy); color: #fff; font-size: 0.9rem; }
.topbar__inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__items { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.topbar__discount { color: #fff0a8; }
.topbar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(219,229,232,0.9);
  backdrop-filter: blur(12px);
}
.topbar .container, .site-header .container { width: min(calc(100% - 48px), 1420px); }
.header__inner { min-height: 94px; display: grid; grid-template-columns: 238px minmax(0, 1fr) auto; align-items: center; gap: 30px; }
.site-branding img { width: 225px; max-height: 68px; object-fit: contain; object-position: left center; }
.main-nav { min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; align-items: center; gap: clamp(18px, 1.65vw, 29px); }
.main-nav li { flex: 0 0 auto; }
.main-nav a { position: relative; display: flex; align-items: center; min-height: 94px; padding: 3px 0 0; white-space: nowrap; font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: #263640; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 20px; height: 3px; border-radius: 99px; background: var(--drd-burgundy); transition: left .2s ease, right .2s ease; }
.main-nav a:hover, .main-nav a:focus { color: var(--drd-burgundy); }
.main-nav a:hover::after, .main-nav a:focus::after { left: 0; right: 0; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: grid; gap: 1px; min-width: 132px; text-align: right; white-space: nowrap; font-weight: 700; color: var(--drd-burgundy); }
.header__phone small { color: var(--drd-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--drd-line); border-radius: 12px; background: #fff; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--drd-ink); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--drd-burgundy);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); background: var(--drd-burgundy-dark); box-shadow: 0 10px 24px rgba(131,23,49,.22); }
.button--blue { background: var(--drd-blue); }
.button--blue:hover, .button--blue:focus { background: var(--drd-blue-dark); }
.button--outline { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.button--outline:hover, .button--outline:focus { background: #fff; color: var(--drd-burgundy); }
.button--light { background: #fff; color: var(--drd-burgundy); }
.button--light:hover, .button--light:focus { background: #f7eef1; }

.hero { position: relative; min-height: 700px; color: #fff; background-size: cover; background-position: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,24,.88) 0%, rgba(10,18,24,.68) 48%, rgba(10,18,24,.25) 76%, rgba(10,18,24,.12) 100%); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.68fr); gap: 70px; align-items: center; min-height: 700px; padding: 65px 0; }
.hero__content { max-width: 700px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.11); font-size: .88rem; font-weight: 700; }
.hero h1 { max-width: 760px; text-wrap: balance; }
.hero__intro { max-width: 670px; color: rgba(255,255,255,.91); font-size: 1.18rem; }
.hero__locations { color: #fff; font-weight: 700; }
.hero__ticks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; margin: 28px 0 34px; padding: 0; list-style: none; }
.hero__ticks li { position: relative; padding-left: 29px; font-weight: 700; }
.hero__ticks li::before { content: "✓"; position: absolute; left: 0; color: #fff0a8; font-weight: 700; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.quote-card { padding: 30px; border-top: 7px solid var(--drd-burgundy); border-radius: var(--drd-radius); background: var(--drd-blue); box-shadow: var(--drd-shadow); color: #fff; }
.quote-card h2 { font-size: 1.8rem; text-align: center; }
.quote-card__intro { margin-top: -7px; color: rgba(255,255,255,.82); text-align: center; font-size: .92rem; }
.quote-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quote-grid .full { grid-column: 1 / -1; }
.quote-card label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 700; }
.quote-card input, .quote-card select, .quote-card textarea {
  width: 100%; min-height: 49px; padding: 12px 13px; border: 0; border-radius: 5px; background: #fff; color: var(--drd-ink); outline: none;
}
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.quote-card textarea { min-height: 92px; resize: vertical; }
.quote-card .button { width: 100%; margin-top: 4px; border: 0; }
.quote-card__small { margin: 11px 0 0; color: rgba(255,255,255,.8); text-align: center; font-size: .76rem; }
.quote-check { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; }
.quote-check input { width: 18px; min-height: 18px; margin-top: 2px; }
.quote-check label { margin: 0; font-weight: 700; }
.quote-honeypot { position: absolute !important; left: -9999px !important; }

.trust-strip { position: relative; z-index: 3; margin-top: -1px; background: #fff; border-bottom: 1px solid var(--drd-line); }
.trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.trust-item { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: center; min-height: 128px; padding: 24px 28px; border-right: 1px solid var(--drd-line); }
.trust-item:last-child { border-right: 0; }
.icon-circle { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #f7e9ee; color: var(--drd-burgundy); }
.icon-circle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.trust-item strong { display: block; margin-bottom: 2px; font-size: .94rem; }
.trust-item span { color: var(--drd-muted); font-size: .82rem; line-height: 1.4; }

.area-section { padding: 68px 0 62px; background: linear-gradient(180deg,#fff 0%,#f4f8f9 100%); }
.area-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; margin-top: 32px; }
.area-card { position: relative; min-height: 170px; overflow: hidden; border-radius: 14px; background: #ddd; box-shadow: 0 9px 25px rgba(22,35,45,.09); }
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(10,18,24,.75),rgba(10,18,24,.05) 70%); }
.area-card span { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-weight: 700; }
.area-card:hover img { transform: scale(1.04); }

.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 70px; align-items: center; }
.split--reverse { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.split__image { position: relative; }
.split__image img { width: 100%; min-height: 510px; object-fit: cover; border-radius: var(--drd-radius); box-shadow: var(--drd-shadow); }
.split__badge { position: absolute; left: -24px; bottom: 35px; width: 170px; padding: 20px; border-radius: 14px; background: var(--drd-burgundy); color: #fff; box-shadow: 0 14px 30px rgba(131,23,49,.26); }
.split__badge strong { display: block; font-size: 2rem; line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 31px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--drd-burgundy); font-weight: 700; }

.projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.project-card { overflow: hidden; border: 1px solid var(--drd-line); border-radius: 15px; background: #fff; box-shadow: 0 12px 30px rgba(22,35,45,.08); }
.project-card img { width: 100%; aspect-ratio: 1.48; object-fit: cover; transition: transform .3s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card__body { padding: 21px 22px 24px; }
.project-card__area { display: inline-flex; margin-bottom: 10px; padding: 5px 9px; border-radius: 99px; background: #f7e9ee; color: var(--drd-burgundy); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.project-card h3 { margin-bottom: 7px; }
.project-card p { margin: 0; color: var(--drd-muted); font-size: .92rem; }

.discount-band { position: relative; overflow: hidden; background: var(--drd-burgundy); color: #fff; }
.discount-band::after { content: "55+"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.07); font-size: 12rem; font-weight: 700; line-height: 1; }
.discount-inner { position: relative; z-index: 2; min-height: 210px; display: grid; grid-template-columns: 150px 1fr auto; gap: 34px; align-items: center; }
.discount-roundel { width: 132px; height: 132px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; text-align: center; font-weight: 700; line-height: 1.05; }
.discount-roundel strong { display: block; font-size: 2rem; }
.discount-copy h2 { font-size: clamp(1.8rem,3vw,2.7rem); margin-bottom: 9px; }
.discount-copy p { margin: 0; color: rgba(255,255,255,.88); }

.benefits-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.benefit { padding: 31px 25px; border: 1px solid var(--drd-line); border-radius: 14px; background: #fff; text-align: center; }
.benefit .icon-circle { margin: 0 auto 18px; }
.benefit p { margin: 0; color: var(--drd-muted); font-size: .9rem; }

.colours-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.colour { text-align: center; }
.colour img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: 0 8px 24px rgba(22,35,45,.13); }
.colour strong { display: block; margin-top: 13px; font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; counter-reset: step; }
.step { position: relative; padding: 25px 18px 12px; text-align: center; counter-increment: step; }
.step::before { content: counter(step); width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--drd-burgundy); color: #fff; font-weight: 700; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 43px; left: calc(50% + 38px); width: calc(100% - 76px); height: 1px; background: #c7d4d8; }
.step p { margin: 0; color: var(--drd-muted); font-size: .86rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.review { padding: 30px; border: 1px solid var(--drd-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(22,35,45,.07); }
.review__stars { color: #e0a000; letter-spacing: 3px; }
.review blockquote { margin: 16px 0 18px; font-size: .95rem; }
.review strong { color: var(--drd-burgundy); }
.review small { display: block; color: var(--drd-muted); }

.final-cta { background: linear-gradient(120deg,var(--drd-blue-dark),var(--drd-blue)); color: #fff; }
.final-cta__inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 62px; align-items: center; }
.final-cta h2 { color: #fff; }
.final-cta .lead { color: rgba(255,255,255,.84); }
.final-cta .quote-card { background: #fff; color: var(--drd-ink); border-top-color: var(--drd-burgundy); }
.final-cta .quote-card h2 { color: var(--drd-ink); }
.final-cta .quote-card__intro, .final-cta .quote-card__small { color: var(--drd-muted); }
.final-cta .quote-card input, .final-cta .quote-card select, .final-cta .quote-card textarea { border: 1px solid var(--drd-line); background: #f8fbfb; }
.final-cta .quote-check label { color: var(--drd-ink); }

.site-footer { background: var(--drd-burgundy-dark); color: rgba(255,255,255,.85); }
.footer-main { display: grid; grid-template-columns: 1.3fr .75fr .85fr 1fr; gap: 45px; padding: 62px 0 48px; }
.footer-logo { width: 250px; margin-bottom: 20px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 11px; }
.footer-contact a { display: flex; gap: 10px; align-items: flex-start; }
.footer-badge { margin-top: 22px; max-width: 145px; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 20px; }

.mobile-cta { display: none; }
.page-shell { min-height: 60vh; padding: 90px 0; }
.notice { margin-bottom: 25px; padding: 15px 18px; border-radius: 8px; background: #fff4d5; color: #6f5110; }

@media (max-width: 1240px) {
  .header__inner { grid-template-columns: 215px minmax(0,1fr) auto; gap: 22px; }
  .site-branding img { width: 205px; }
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: .78rem; }
  .header__phone { display: none; }
  .hero__inner { gap: 38px; grid-template-columns: 1fr 390px; }
  .area-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--drd-line); }
  .benefits-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .topbar__items span:nth-child(2) { display: none; }
  .header__inner { min-height: 78px; grid-template-columns: 1fr auto auto; gap: 16px; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 10px 24px 24px; background: #fff; border-bottom: 1px solid var(--drd-line); box-shadow: 0 18px 30px rgba(22,35,45,.11); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; gap: 0; }
  .main-nav a { min-height: 0; padding: 15px 3px; border-bottom: 1px solid #edf2f3; font-size: .94rem; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header__actions .button { display: none; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; padding: 72px 0; }
  .hero__content { max-width: 760px; }
  .hero .quote-card { max-width: 620px; }
  .split, .split--reverse, .final-cta__inner { grid-template-columns: 1fr; gap: 42px; }
  .split__image { order: -1; }
  .projects-grid, .reviews-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .discount-inner { grid-template-columns: 120px 1fr; padding: 34px 0; }
  .discount-inner .button { grid-column: 1 / -1; justify-self: start; margin-left: 154px; }
  .discount-roundel { width: 110px; height: 110px; }
  .colours-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .step::after { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .container { width: min(calc(100% - 28px), var(--drd-max)); }
  .section { padding: 64px 0; }
  .topbar__inner { justify-content: center; min-height: 36px; }
  .topbar__items { gap: 10px; }
  .topbar__item:not(.topbar__discount) { display: none; }
  .header__inner { grid-template-columns: 1fr auto; gap: 12px; }
  .site-branding img { width: 190px; }
  .header__actions { display: none; }
  .hero::before { background: rgba(10,18,24,.72); }
  .hero__inner { padding: 56px 0 48px; }
  .hero__ticks { grid-template-columns: 1fr; }
  .hero__buttons .button { width: 100%; }
  .quote-card { padding: 23px 18px; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-grid .full { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--drd-line); min-height: 105px; }
  .trust-item:last-child { border-bottom: 0; }
  .area-grid, .projects-grid, .reviews-grid, .benefits-grid { grid-template-columns: 1fr; }
  .area-card { min-height: 210px; }
  .split__image img { min-height: 350px; }
  .split__badge { left: 12px; bottom: 12px; }
  .discount-inner { grid-template-columns: 1fr; text-align: center; }
  .discount-roundel { margin: 0 auto; }
  .discount-inner .button { grid-column: auto; margin: 0 auto; }
  .colours-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom__inner { flex-direction: column; }
  .mobile-cta { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -8px 25px rgba(22,35,45,.22); }
  .mobile-cta a { min-height: 68px; display: grid; place-items: center; padding: 8px; background: var(--drd-blue); color: #fff; font-weight: 700; text-align: center; }
  .mobile-cta a:last-child { background: var(--drd-burgundy); }
}
