/* Cordec Ltd website
   Mobile-first. Palette: black, white, off-white and the red of the logo. */
:root {
  --black: #000;
  --ink: #111;
  --white: #fff;
  --off: #f3f0f1;
  --line: #dcd7d8;
  --grey: #616161;
  --red: #e4312b;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; font-weight: 500;
  color: var(--ink); background: var(--white);
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
picture { background: var(--off); overflow: hidden; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 7vw, 60px); }
h1 strong { display: block; color: var(--red); font-weight: 800; }
h2 { font-size: clamp(26px, 4.5vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #333; max-width: 36em; }
.small { font-size: 13px; color: var(--grey); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--black); color: var(--white); text-decoration: none;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  padding: 15px 26px; border: 2px solid var(--black); border-radius: var(--radius); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .actions .btn { flex: 0 0 auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--off); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: block; margin-right: auto; }
.logo img { height: 38px; width: auto; }
.bar-call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.bar-call svg { width: 20px; height: 20px; fill: var(--red); }
.bar-call span { display: none; }
.nav-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--black); transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav { display: none; }
.site-header.open .nav {
  display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--header-h, 64px); bottom: 0;
  background: var(--off); padding: 8px var(--gutter) 32px; overflow-y: auto; border-top: 1px solid var(--line);
}
body.menu-open { overflow: hidden; }
.nav a { text-decoration: none; font-weight: 700; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .nav-cta { border: 0; margin-top: 12px; background: var(--black); color: var(--white); text-align: center; padding: 14px; border-radius: var(--radius); }
@media (min-width: 900px) {
  .bar { min-height: 80px; gap: 28px; }
  .logo img { height: 46px; }
  .nav-toggle { display: none; }
  .nav, .site-header.open .nav { display: flex; flex-direction: row; position: static; align-items: center; gap: 26px; padding: 0; background: none; box-shadow: none; }
  .nav a { font-size: 15px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); color: inherit; }
  .nav .nav-cta { margin: 0 0 0 6px; padding: 11px 18px; border-bottom: 0; }
  .nav .nav-cta:hover { background: var(--red); border-bottom: 0; }
  .bar-call span { display: inline; }
  .bar-call { font-size: 16px; }
}

/* Hero */
.hero, .page-hero { background: var(--white); }
.hero-grid { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
.hero-text { order: 1; }
.hero-media { order: 2; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.hero-contact { margin-top: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--grey); }
.hero-contact svg { width: 18px; height: 18px; fill: var(--red); flex: none; }
.hero-contact a { color: var(--ink); font-weight: 700; text-decoration: none; }
.hero-contact a:hover { color: var(--red); text-decoration: underline; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
  .hero-media { aspect-ratio: 5 / 4; }
}

/* Trust strip */
.trust { padding-top: 0; padding-bottom: 8px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust li { background: var(--off); padding: 18px 20px; border-radius: var(--radius); display: grid; gap: 4px; border-left: 4px solid var(--red); }
.trust strong { font-size: 17px; }
.trust span { font-size: 15px; color: #333; }
@media (min-width: 600px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--grey); margin: 0; }
.services { padding-top: 56px; padding-bottom: 40px; }
.cards { display: grid; gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card picture { border-radius: 0; }
.card-body { padding: 20px 20px 24px; display: grid; gap: 6px; }
.card-body p { margin: 0; color: #333; font-size: 16px; }
.card h3 { margin: 0; }
.more { font-weight: 700; color: var(--red); margin-top: 8px; }
.more::after { content: " \2192"; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.feature { background: var(--black); color: var(--white); border-top: 4px solid var(--red); }
.feature-also { font-size: 15px; margin-top: 18px; }
.feature-also a { color: var(--white); font-weight: 700; }
.feature-also a:hover { color: #ff6b66; }
.feature-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
.feature-media { border-radius: var(--radius); }
.feature-text p { color: #ddd; max-width: 34em; }
.feature .eyebrow { color: #ff6b66; }
.feature .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.feature .btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 72px; } }

.reviews { padding-top: 24px; padding-bottom: 64px; }
.reviews ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.reviews blockquote { margin: 0; background: var(--off); padding: 26px 24px; border-radius: var(--radius); height: 100%; display: flex; flex-direction: column; }
.reviews blockquote::before { content: "\201C"; font-size: 56px; line-height: .6; color: var(--red); font-weight: 800; display: block; margin-bottom: 10px; }
.reviews p { font-size: 16px; flex: 1; }
.reviews cite { font-style: normal; font-weight: 700; font-size: 15px; }
@media (min-width: 800px) { .reviews ul { grid-template-columns: repeat(3, 1fr); } }

/* Enquiry */
.enquire { background: var(--off); }
.enquire-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.contact-card { background: var(--white); padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); align-self: start; }
.contact-card .big { font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; margin-bottom: 4px; word-break: break-word; }
.contact-card .big a { text-decoration: none; }
.contact-card .big a:hover { color: var(--red); }
.contact-card p { font-size: 15px; color: #333; }
@media (min-width: 900px) { .enquire-grid { grid-template-columns: 3fr 2fr; gap: 56px; padding-top: 72px; padding-bottom: 80px; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; }
.form legend { font-weight: 800; font-size: 18px; margin-bottom: 14px; padding: 0; }
.row { display: grid; gap: 16px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field label span { font-weight: 500; color: var(--grey); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px;
  border: 1px solid #9a9a9a; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--black); }
.form .btn { width: 100%; }
@media (min-width: 600px) { .form .btn { width: auto; justify-self: start; } }
.form .hp { position: absolute; left: -9999px; top: -9999px; }
.form .status { margin: 0; font-weight: 700; min-height: 1.4em; }
.form .status.ok { color: #1b7f3b; }
.form .status.err { color: #b3261e; }
.form .small { margin: 0; }

/* Service pages */
.points { padding-top: 8px; padding-bottom: 24px; }
.points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding: 14px 16px 14px 48px; background: var(--off); border-radius: var(--radius); font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.points li::after { content: ""; position: absolute; left: 22px; top: 22px; width: 6px; height: 9px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (min-width: 800px) { .points ul { grid-template-columns: 1fr 1fr; } }

.gallery-wrap { padding-top: 40px; padding-bottom: 48px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gallery li { margin: 0; }
.gallery picture { border-radius: var(--radius); }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.video-band { background: var(--black); color: var(--white); margin: 24px 0 8px; }
.video-band .feature-text p { color: #ddd; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta-band { background: var(--off); border-top: 4px solid var(--red); }
.cta-band .wrap { padding-top: 48px; padding-bottom: 56px; text-align: center; }
.cta-band p { max-width: 34em; margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* Details page */
.details { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.details-side { display: grid; gap: 20px; align-content: start; }
.details-side picture { border-radius: var(--radius); }
@media (min-width: 900px) { .details { grid-template-columns: 3fr 2fr; gap: 64px; padding-top: 64px; } }

/* Terms */
.terms { max-width: 820px; padding-top: 40px; padding-bottom: 64px; font-size: 15px; }
.terms h1 { font-size: clamp(30px, 5vw, 44px); }
.terms h2 { font-size: 24px; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.terms h3 { font-size: 16px; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--black); color: #cfcfcf; font-size: 15px; }
.foot { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 30em; margin: 0; }
.foot-nav { display: grid; gap: 10px; }
.foot-nav a, .foot-contact a { color: var(--white); text-decoration: none; font-weight: 700; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--red); }
.foot-contact { display: grid; gap: 8px; }
.foot-contact p { margin: 0; }
.legal { border-top: 1px solid #333; padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: #9a9a9a; }
.legal p { margin: 0; }
@media (min-width: 800px) { .foot { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
