/* C & D Motors — patch 002. Design follows the client-supplied staff preview. */
:root {
  --ink: #202326;
  --muted: #626a70;
  --paper: #f5f3ef;
  --white: #fff;
  --red: #c93731;
  --red-dark: #a92723;
  --line: #dedbd5;
  --navy: #222a30;
  --green: #35594e;
  --max: 1180px;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
[hidden] { display: none !important; }
address { font-style: normal; }
:focus-visible { outline: 3px solid #176ab0; outline-offset: 4px; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 18px; background: #fff; color: var(--ink); border: 2px solid var(--red); }
.skip-link:focus { top: 12px; }
section[id], form[id] { scroll-margin-top: 24px; }

/* Header */
.header { background: var(--white); border-bottom: 1px solid #e8e5df; }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--red); display: grid; place-items: center; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: -.08em; }
.brand-name { font-size: 1.25rem; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.brand-sub { display: block; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; margin-top: .35rem; }
.navlinks { display: flex; align-items: center; gap: 1.7rem; font-size: .92rem; font-weight: 700; }
.navlinks a, .mobile-nav a { text-decoration: none; padding-block: 12px; }
.navlinks a:hover, .mobile-nav a:hover { color: var(--red-dark); }
.nav-phone, .btn { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; border-radius: 9px; font-weight: 800; text-decoration: none; line-height: 1.4; }
.nav-phone { padding: .72rem 1rem; border: 1px solid var(--line); white-space: nowrap; }
.nav-phone:hover { border-color: var(--red); }
.mobile-nav { display: none; }

/* Hero */
.hero { padding: 48px 0 30px; display: grid; grid-template-columns: 1fr .93fr; gap: 38px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { font-size: .73rem; text-transform: uppercase; letter-spacing: .15em; color: var(--red-dark); font-weight: 800; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.65rem, 5vw, 4.7rem); line-height: .99; letter-spacing: -.06em; margin: 0 0 20px; max-width: 660px; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 1.13rem; color: #4e565b; max-width: 530px; margin: 0 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.btn { padding: 13px 18px; min-height: 50px; border: 1px solid transparent; text-align: center; }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); }
.btn-light { background: white; border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: #99968f; background: #faf9f7; }
.trustline { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 9px 18px; color: #4c555a; font-size: .9rem; font-weight: 700; }
.trustline li::before { content: '✓'; color: var(--green); font-weight: 900; margin-right: 7px; }
.hero-photo { position: relative; min-height: 350px; height: 100%; overflow: hidden; border-radius: 22px; background: #d6d0c6; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; inset: 0; }
.service-strip { padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #ebe8e1; }
.strip-inner { display: flex; justify-content: center; gap: clamp(16px, 4vw, 54px); flex-wrap: wrap; font-size: .88rem; font-weight: 800; }
.strip-inner span::before { content: '•'; color: var(--red); font-size: 1.2rem; margin-right: 9px; }

/* Services and story */
.section { padding-block: 78px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.05em; margin: 0; }
.section-head > p { max-width: 460px; color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--white); padding: 22px; border: 1px solid #e7e3dc; border-radius: var(--radius); min-height: 180px; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #20232610; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #f9e8e6; color: var(--red); border-radius: 12px; font-size: .85rem; font-weight: 900; margin-bottom: 15px; }
.card-icon svg { width: 25px; height: 25px; }
.card h3 { margin: 0 0 7px; font-size: 1.05rem; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.service-note { margin: 17px 2px 0; color: #555d61; font-size: .94rem; }
.service-note strong { color: var(--ink); }
.service-note a { text-decoration-color: #9e9b96; }
.band { background: var(--navy); color: #fff; }
.band .eyebrow { color: #f29c94; }
.about-grid { display: grid; grid-template-columns: .82fr 1fr; gap: 60px; align-items: center; }
.about h2 { margin-bottom: 20px; }
.about-copy { color: #d9ddde; max-width: 600px; }
.about-copy p { margin: 0 0 14px; }
.about-copy p:last-child { margin-bottom: 0; }

/* Genuine review content is populated only when supplied in content.js. */
.review-box { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 30px 34px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.google-label { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.review-box h3 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.04em; margin: 0 0 8px; }
.review-box p { margin: 0; color: var(--muted); }
.review-link { display: inline-flex; align-items: center; gap: 8px; color: var(--red-dark); font-weight: 800; text-decoration: none; white-space: nowrap; padding-block: 12px; }
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; min-height: 218px; }
.stars { color: #a36b06; letter-spacing: .12em; font-size: 1.08rem; }
.review-card blockquote { margin: 18px 0 12px; color: #40494e; font-size: 1.16rem; line-height: 1.5; overflow-wrap: anywhere; }
.review-type { margin: 0 0 auto; color: var(--muted); font-size: .78rem; }
.reviews-source { color: var(--muted); font-size: .82rem; margin: 18px 0 0; }
.reviews-source a { color: var(--red-dark); }
.review-by { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; font-size: .84rem; }
.review-by time { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.review-by a, .all-reviews a { color: var(--red-dark); font-weight: 800; text-decoration: none; }
.all-reviews { text-align: right; margin: 18px 0 0; }

/* Contact details and enquiry */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-grid > div { min-width: 0; }
.contact-copy { color: var(--muted); max-width: 450px; }
.contact-copy a { color: var(--red-dark); overflow-wrap: anywhere; }
.contact-info { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 20px; }
.info-label { font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin: 0 0 6px; }
.info-main { font-size: 1.05rem; font-weight: 800; text-decoration: none; margin: 0; overflow-wrap: anywhere; }
.hours { margin: 0; font-size: .94rem; }
.hours > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.hours dt, .hours dd { margin: 0; }
.hours dd { font-weight: 700; }
.map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--red-dark); font-weight: 800; text-decoration: none; }
.vehicle-form { position: relative; margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.form-heading h3, .email-preview h3 { font-size: 1.5rem; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.form-heading > p { color: var(--muted); font-size: .85rem; margin: 0; }
.form-mode { background: #f5f3ef; border-left: 3px solid #cbc3b9; padding: 13px 16px; color: #4e565b; font-size: .94rem; margin: 0 0 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid label { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px 4px; font-size: .9rem; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea, .email-preview textarea { width: 100%; min-width: 0; border: 1px solid #b5b3ae; border-radius: 8px; background: #fff; padding: 12px 13px; color: var(--ink); font-size: 1rem; line-height: 1.5; font-weight: 400; }
.form-grid input, .form-grid select { min-height: 49px; }
.form-grid textarea, .email-preview textarea { resize: vertical; min-height: 140px; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #6b7073; opacity: 1; }
.form-grid .full { grid-column: 1 / -1; }
.registration { text-transform: uppercase; }
.optional, .field-hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field-hint { display: block; }
.form-submit { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.form-submit .btn { flex-shrink: 0; }
.form-submit p { color: var(--muted); font-size: .9rem; margin: 0; }
.form-submit p a { color: var(--red-dark); font-weight: 700; overflow-wrap: anywhere; }
.form-privacy { color: var(--muted); font-size: .83rem; margin: 18px 0 0; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { margin-top: 20px; padding: 16px; border-radius: 8px; background: #fbece9; color: #7c2721; border: 1px solid #e9bbb4; }
.form-status.is-success { color: #254b3d; background: #edf5ef; border-color: #bfd5c6; }
.email-preview { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.email-preview p { max-width: 800px; }
.preview-label { display: block; font-size: .9rem; color: var(--muted); margin: 22px 0 8px; }
.copy-status { color: var(--green); min-height: 1.5em; margin-bottom: 0; }
.result-page { max-width: 780px; }
.result-page h1 { line-height: 1.1; }
.result-page pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: white; }

/* Footer and mobile contact bar */
.footer { background: #171b1e; color: #d4d9da; padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer small { color: #b8c0c2; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { border: 1px solid #ffffff60; border-radius: 30px; padding: 10px 15px; font-size: .85rem; font-weight: 700; min-height: 44px; }
.footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid #ffffff35; margin-top: 24px; padding-top: 18px; color: #b8c0c2; font-size: .8rem; }
.mobilebar { display: none; }

@media (max-width: 1050px) {
  .nav { gap: .8rem; }
  .navlinks { gap: 1rem; font-size: .88rem; }
  .nav-phone { padding: .72rem .7rem; font-size: .9rem; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr .8fr; gap: 25px; }
  .about-grid { gap: 35px; }
  .contact-grid { gap: 28px; }
  .contact-info { grid-template-columns: 1fr; padding: 24px; }
  .navlinks { gap: .8rem; }
  .brand-sub { letter-spacing: .06em; }
  .nav-phone .icon { display: none; }
  .review-box { align-items: flex-start; }
  .review-link { white-space: normal; flex-shrink: 0; }
}
@media (max-width: 780px) and (min-width: 651px) {
  .nav { flex-wrap: wrap; padding-top: 14px; gap: 0 15px; }
  .navlinks { order: 3; width: 100%; justify-content: center; gap: 32px; }
  .hero .actions .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .review-box { flex-direction: column; gap: 12px; }
}
@media (max-width: 650px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav { min-height: 66px; flex-wrap: wrap; padding-top: 12px; gap: 9px; }
  .brand { gap: .6rem; }
  .mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .brand-name { font-size: 1.03rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .06em; }
  .nav-phone { font-size: .76rem; padding: .5rem .6rem; min-height: 44px; }
  .navlinks { display: none; }
  .mobile-nav { display: flex; flex-basis: 100%; justify-content: space-between; gap: 10px; border-top: 1px solid #eeebe6; font-size: .83rem; font-weight: 700; }
  .mobile-nav a { min-height: 44px; }
  .hero { padding: 34px 0 24px; grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-photo { min-height: 245px; height: clamp(245px, 62vw, 355px); }
  .lead { font-size: 1.06rem; }
  .hero .actions .btn { flex: 1 1 200px; }
  .trustline { font-size: .85rem; gap: 9px 15px; }
  .strip-inner { justify-content: flex-start; gap: 8px 17px; font-size: .83rem; }
  .section { padding-block: 56px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 14px; }
  .cards { gap: 10px; }
  .card { padding: 17px; min-height: 168px; }
  .card h3 { font-size: 1rem; }
  .card p { font-size: .94rem; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .review-list { grid-template-columns: 1fr; }
  .review-card { min-height: 185px; }
  .review-box { display: block; padding: 23px; }
  .review-link { margin-top: 12px; }
  .contact { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 17px; }
  .contact-info { padding: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .info-main { font-size: 1rem; }
  .vehicle-form { padding: 21px; margin-top: 23px; }
  .form-heading { display: block; }
  .form-heading > p { margin-top: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-submit { display: block; }
  .form-submit .btn { width: 100%; }
  .form-submit p { margin-top: 12px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .mobilebar { display: flex; position: sticky; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line); padding: 9px 12px; padding-bottom: max(9px, env(safe-area-inset-bottom)); gap: 9px; box-shadow: 0 -5px 20px #0000000b; }
  .mobilebar .btn { flex: 1; min-height: 46px; padding: 9px 10px; font-size: .9rem; }
  .mobilebar .icon { width: 17px; height: 17px; }
}
@media (max-width: 374px) {
  .nav { align-items: center; }
  .brand { flex: 1 1 100%; }
  .nav-phone { margin-left: 46px; font-size: .85rem; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .contact-info { grid-template-columns: 1fr; }
  .mobilebar .icon { display: none; }
  .vehicle-form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
@media print {
  .header, .mobilebar, .vehicle-form, .footer, .actions, .skip-link { display: none; }
  body { color: #000; background: #fff; }
  .wrap { width: 100%; }
  .section { padding-block: 24px; }
  .band { color: #000; background: #fff; }
  .about-copy, .band .eyebrow { color: #333; }
  .card { break-inside: avoid; }
}
