/*
Theme Name: Colour Box Landing Page
Theme URI: https://colour-box.com/
Author: Colour Box
Description: One-page Colour Box WordPress theme using the newer logo, service and product assets.
Version: 1.5.0
Text Domain: colour-box
*/

@font-face {
  font-family: "Ubuntu";
  src: url("assets/Ubuntu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("assets/Ubuntu-B.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cb-dark: #202b39;
  --cb-card-dark: #2f3949;
  --cb-card-text: #ffffff;
  --cb-card-copy: #f57b83;
  --cb-card-gold: #f2b73a;
  --cb-card-cyan: #1eb6d3;
  --cb-red: #f16670;
  --cb-cyan: #23b8c8;
  --cb-text: #253140;
  --cb-grey: #ececec;
  --cb-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #d9dcdf;
  color: var(--cb-text);
  font-family: "Ubuntu", Arial, sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

body .cb-page {
  width: min(100%, 1324px);
  margin: 0 auto;
  background: var(--cb-white);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.cb-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px 76px 30px;
  background: var(--cb-dark);
  color: var(--cb-white);
}

.cb-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cb-brand img {
  width: clamp(260px, 31vw, 520px);
}

.cb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.cb-nav a {
  font-size: 25px;
}

.cb-store {
  width: 96px;
  flex: 0 0 auto;
}

.cb-hero {
  padding: 84px 24px 96px;
  background:
    linear-gradient(rgba(32, 43, 57, 0.78), rgba(32, 43, 57, 0.78)),
    url("assets/bg-hero.png") center / cover;
  color: var(--cb-white);
}

.cb-hero-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.cb-hero-copy p {
  margin: 0;
  font-size: 24px;
}

.cb-hero-copy h1 {
  margin: 8px 0 16px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
}

.cb-hero-copy img {
  width: min(100%, 420px);
  margin: 30px auto 0;
}

.cb-service-rail {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  width: calc(100% - 40px);
  margin: -50px auto 0;
}

.cb-service-rail > a {
  display: block;
}

.cb-service-rail a {
  transition: transform 160ms ease;
}

.cb-service-rail a:hover,
.cb-service-rail a:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.cb-service-rail img {
  width: 100%;
}

.cb-intro {
  padding: 72px 72px 48px;
  text-align: center;
}

.cb-intro h2 {
  margin: 0 0 22px;
  color: var(--cb-red);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.02;
}

.cb-intro p {
  max-width: 980px;
  margin: 0 auto 14px;
  font-size: 18px;
  line-height: 1.45;
}

.cb-intro .cb-lead {
  font-weight: 700;
}

.cb-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0px 0px 50px;
}

.cb-card {
  position: relative;
  padding-top: 58px;
}

.cb-card-top {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(78%, 170px);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  background: transparent;
  box-shadow: none;
}

.cb-card-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cb-card-body {
  min-height: 100%;
  padding: 74px 16px 21px;
  border-radius: 26px;
  background: var(--cb-card-dark);
  color: var(--cb-card-text);
  text-align: justify;
}

.cb-card-body h3 {
  margin: 0 0 18px;
  color: var(--cb-card-text);
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1;
  text-align: center;
}

.cb-card-body p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.25;
}

.cb-card-body ul {
  margin: 0;
  padding-left: 20px;
}

.cb-card-body li {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.cb-card-body li:last-child {
  margin-bottom: 0;
}

.cb-card img {
  width: 100%;
}

.cb-services {
  margin-top: 10px;
  color: var(--cb-white);
}

.cb-services-top,
.cb-services-bottom {
  width: 100%;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cb-services-top {
  height: 600px;
  background-image: url("assets/bg-services-top.jpg");
  margin-top:-300px;
}

.cb-services-bottom {
  height: 300px;
  background-image: url("assets/bg-services-bottom.jpg");
}

.cb-services-body {
  padding: 32px 32px 72px;
  background: #2b3443;
}

.cb-services-head {
  max-width: 900px;
  margin: 0 auto 54px;
  text-align: center;
}

.cb-services-head h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 72px);
  line-height: 1;
}

.cb-services-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.cb-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
  width: min(1080px, 100%);
  margin: 0 auto;
  align-items: start;
}

.cb-service-grid img {
  width: 100%;
}

.cb-contact {
  padding: 64px 24px 72px;
  text-align: center;
}

.cb-contact-mark {
  width: 88px;
  margin: 0 auto 22px;
}

.cb-phone {
  margin: 0;
  font-size: clamp(42px, 6vw, 96px);
  font-weight: 700;
  line-height: 1.02;
}

.cb-email {
  margin: 10px 0 0;
  font-size: clamp(28px, 4.3vw, 68px);
  line-height: 1.05;
}

.cb-address {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.cb-opening-times {
  width: min(460px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 22px 28px;
  border: 2px solid var(--cb-grey);
  border-radius: 18px;
  background: var(--cb-white);
  text-align: left;
}

.cb-opening-times h2 {
  margin: 0 0 14px;
  color: var(--cb-text);
  font-size: 26px;
  line-height: 1;
}

.cb-opening-times p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.cb-opening-times p:last-child {
  margin-bottom: 0;
}

.cb-products {
  padding: 52px 32px 72px;
  background: var(--cb-grey);
  text-align: center;
}

.cb-products h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1;
}

.cb-products p {
  margin: 0 0 34px;
  font-size: 18px;
}

.cb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.cb-product-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--cb-white);
  box-shadow: 0 0 0 1px rgba(32, 43, 57, 0.08);
}

.cb-product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  padding: 0 12px;
  background: var(--cb-white);
}

.cb-product-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cb-product-card-image-poster img {
  width: auto;
  max-width: 84%;
  height: 92%;
}

.cb-product-card-image-card img {
  width: 96%;
  height: auto;
  transform: translateY(6px);
}

.cb-product-card-image-banner img {
  width: auto;
  max-width: 40%;
  height: 88%;
}

.cb-product-card-image-flyer img {
  width: 88%;
  height: auto;
  transform: translate(4px, 4px);
}

.cb-product-card h3 {
  margin: 0;
  padding: 18px 12px 19px;
  background: var(--cb-dark);
  color: var(--cb-white);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.1;
}

.cb-site-footer {
  padding: 44px 78px 40px;
  color: var(--cb-white);
  background:
    linear-gradient(rgba(32, 43, 57, 0.94), rgba(32, 43, 57, 0.94)),
    url("assets/bg-footer.jpg") center / cover;
}

.cb-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cb-footer-brand {
  width: min(100%, 520px);
}

.cb-footer-store {
  width: 96px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .cb-header,
  .cb-intro,
  .cb-services-body,
  .cb-products,
  .cb-site-footer {
    padding-inline: 24px;
  }

  .cb-service-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(860px, calc(100% - 40px));
    margin-top: -60px;
    gap: 12px;
  }

  .cb-cards,
  .cb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-cards {
    padding-inline: 10px;
  }

  .cb-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    background: var(--cb-white);
  }

  body .cb-page {
    box-shadow: none;
  }

  .cb-header {
    padding: 20px 16px;
    gap: 12px;
  }

  .cb-brand img {
    width: clamp(180px, 44vw, 235px);
  }

  .cb-nav {
    margin-left: auto;
  }

  .cb-nav a {
    font-size: 18px;
  }

  .cb-store {
    width: 58px;
  }

  .cb-hero {
    padding: 56px 16px 68px;
  }

  .cb-hero-copy p {
    font-size: 17px;
  }

  .cb-hero-copy h1 {
    font-size: 42px;
  }

  .cb-hero-copy img {
    width: min(100%, 280px);
  }

  .cb-service-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 24px);
    margin-top: -30px;
  }

  .cb-intro {
    padding: 42px 6px 24px;
  }

  .cb-intro p {
    font-size: 15px;
  }

  .cb-cards {
    grid-template-columns: 1fr;
  }

  .cb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-cards {
    gap: 18px;
    padding: 20px 6px 48px;
  }

  .cb-card {
    padding-top: 44px;
  }

  .cb-card-top {
    width: min(72%, 130px);
    height: 92px;
  }

  .cb-card-body h3 {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .cb-services-top,
  .cb-services-bottom {
    height: 88px;
  }

  .cb-services {
    margin-top: 250px;
  }

  .cb-services-body {
    padding: 20px 16px 56px;
  }

  .cb-services-head,
  .cb-service-grid {
    width: calc(100% - 12px);
    margin-left: auto;
    margin-right: auto;
  }

  .cb-services-head p {
    font-size: 15px;
  }

  .cb-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cb-contact {
    padding: 42px 6px 48px;
  }

  .cb-contact-mark {
    width: 64px;
  }

  .cb-phone {
    font-size: 40px;
  }

  .cb-email {
    font-size: 25px;
  }

  .cb-footer-top {
    gap: 16px;
  }

  .cb-footer-brand {
    width: min(100%, 230px);
  }

  .cb-footer-store {
    width: 58px;
  }

  .cb-address {
    font-size: 16px;
  }

  .cb-opening-times {
    width: min(460px, calc(100% - 12px));
    margin-inline: auto;
    padding: 20px 18px;
  }

  .cb-opening-times h2 {
    font-size: 22px;
  }

  .cb-opening-times p {
    font-size: 15px;
  }

  .cb-products {
    padding: 38px 6px 42px;
  }

  .cb-products p {
    font-size: 15px;
  }

  .cb-product-grid {
    width: calc(100% - 12px);
    margin-left: auto;
    margin-right: auto;
  }

  .cb-product-grid {
    gap: 14px;
  }

  .cb-product-card-image {
    height: 170px;
    padding: 0 8px;
  }

  .cb-product-card-image-banner img {
    max-width: 42%;
    height: 84%;
  }

  .cb-product-card h3 {
    padding: 14px 10px 15px;
    font-size: 16px;
  }

  .cb-site-footer {
    padding: 24px 16px 28px;
  }

  .cb-footer-top {
    justify-content: space-between;
    align-items: center;
  }

  .cb-footer-brand {
    width: min(100%, 230px);
  }

  .cb-footer-store {
    width: 58px;
  }
}
