/* www.grprecycling.co.uk: the old MyWebsite NOW look (blue bands, slanted
   heroes, Playfair Display headings, Source Sans body) as plain CSS. */

@font-face { font-family: "Playfair Display"; src: url(/fonts/playfair-display.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/fonts/source-sans-3.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --blue: #005c99;
  --navy: #02426b;
  --sand: #e9e5e6;
  --orange: #e17a00;
  --text: #f3f1f1;
  --head: "Playfair Display", Georgia, serif;
  --body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  --slant: 6vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--text); font: 17px/1.5 var(--body); }
img { max-width: 100%; height: auto; display: block; }
main { background: var(--blue); }
a { color: inherit; text-underline-offset: 2px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: #fff; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2.small { font-family: var(--body); font-size: 1.25rem; font-weight: 400; }
h2 b { font-weight: 700; }
h3 { font-size: 1.5rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
.center { text-align: center; }

.wrap { width: min(1000px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(860px, 100% - 32px); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--blue); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.brand img { width: 150px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-size: 15px; padding: 6px 12px; border: 2px solid transparent; border-radius: 999px; }
.top nav a:hover { border-color: rgba(255,255,255,.5); }
.top nav a[aria-current] { border-color: #fff; }
.menu-toggle { display: none; background: none; color: #fff; border: 2px solid #fff; border-radius: 999px; font: 600 15px var(--body); padding: 6px 14px; cursor: pointer; }

/* Bands and slanted edges */
.band { padding: 70px 0; }
.band-blue { background: var(--blue); }
.band-dark { background: var(--navy); }
.band-sand { background: var(--sand); color: #383838; }
.band-sand h2 { color: var(--orange); }
.slant-top { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * var(--slant)); padding-top: calc(70px + var(--slant)); position: relative; }

.hero { position: relative; color: #fff; text-align: center; padding: 110px 0 120px; background: linear-gradient(rgba(56,56,56,var(--shade)), rgba(56,56,56,var(--shade))), linear-gradient(var(--tint, transparent), var(--tint, transparent)), var(--hero) center / cover no-repeat; }
.hero h1 { margin-bottom: .4em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero .sub { font: 400 clamp(1.3rem, 2.4vw, 1.9rem) var(--head); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero .small-sub { max-width: 680px; margin: 0 auto; }
.hero-short { padding: 90px 0 70px; }
.hero.slant { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); padding-bottom: calc(110px + var(--slant)); }
.hero.slant-bottom, .hero.slant-top-only { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); }
.hero .social { justify-content: center; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split + .wrap, .wrap + .wrap { margin-top: 70px; }
.split.reverse > img { order: 2; }
.plant { width: min(300px, 80%); justify-self: center; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.lede { font: 400 1.1rem var(--head); margin-bottom: 1.6em; }
.intro { max-width: 860px; margin: 0 auto 30px; }
.text-col { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 8px; }
.cards article { padding-bottom: 20px; }
.cards article p { padding-right: 6px; }
.cards img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Customers */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.logos img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }

/* Social icons */
.social { display: flex; gap: 8px; margin: 1em 0 0; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.88); display: grid; place-items: center; }
.social a:hover { background: #fff; }
.social svg { width: 19px; height: 19px; fill: var(--navy); }

/* Form */
.enquiry { display: grid; gap: 16px; }
.enquiry label { display: grid; gap: 4px; font-size: 15px; }
.enquiry input:not([type=checkbox]), .enquiry textarea { width: 100%; font: inherit; color: #fff; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.85); padding: 8px 2px; }
.form-split .enquiry input:not([type=checkbox]), .form-split .enquiry textarea { border: 2px solid rgba(255,255,255,.85); padding: 8px 10px; }
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.enquiry .consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.enquiry .consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .note { margin: 0; font-size: 15px; }
.enquiry button { font: 600 16px var(--body); color: var(--navy); background: var(--orange); border: 2px solid var(--orange); border-radius: 999px; padding: 10px; cursor: pointer; }
.enquiry button:hover { background: #f08d17; }
.enquiry button[disabled] { opacity: .6; cursor: wait; }
.enquiry .status { margin: 0; padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.12); }
.enquiry .status.err { background: #ffd9d9; color: #7a0000; }
.enquiry [aria-invalid=true] { border-color: #ffb0b0 !important; }
#quote .split, .form-split { align-items: start; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* Footer */
.foot { background: var(--navy); text-align: center; padding: 60px 0 40px; font-size: 16px; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; justify-items: center; margin-bottom: 40px; }
.badges img { width: 180px; }
.recycle { width: 96px; margin: 0 auto 24px; }
.foot .social { justify-content: center; }
.foot .social a { width: 26px; height: 26px; }
.foot .social svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; padding: 6px 0 4px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 10px 12px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > img { order: 0; }
  .split > img:not(.plant) { max-width: 520px; width: 100%; justify-self: center; }
  .plant { width: 170px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .logos { grid-template-columns: 1fr 1fr; }
  .band { padding: 50px 0; }
  .hero { padding: 80px 0 90px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; gap: 18px; }
  .badges img { width: 150px; }
  :root { --slant: 9vw; }
}
