/* rubik-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/rubik-v31-latin-300.woff2') format('woff2');
}

/* rubik-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/rubik-v31-latin-regular.woff2') format('woff2');
}

/* rubik-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 400;
  src: url('./fonts/rubik-v31-latin-italic.woff2') format('woff2');
}

/* rubik-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/rubik-v31-latin-800.woff2') format('woff2');
}

/* rubik-900 - latin */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 900;
  src: url('./fonts/rubik-v31-latin-900.woff2') format('woff2');
}

:root {
  --dcs-black: #191919;
  --dcs-white: #ffffff;
  --dcs-grey: #eaeaea;
  --dcs-accent: #0fb9e0;
  --dcs-light: #f0f4f8;
  --dcs-border-radius: 0;
  --dcs-box-shadow-normal: 0 4px 12px rgba(0, 0, 0, 0.06);
  --dcs-box-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.1);
  --dcs-small-font: 0.875rem;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #fff;
  color: var(--dcs-black);
}

p {
  margin-bottom: 1rem;
  text-wrap: pretty;
}

* > p:last-of-type {
  margin-bottom: 0;
}

.larger {
  font-size: 1.25rem;
}

.button {
  padding: 1.6rem 1.5rem 1.4rem 1.5rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 4px;
  font-weight: 300;
  transition: transform 0.2s ease;
  will-change: transform;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  transform: scale(1.05);
}

.button-1 {
  background: var(--dcs-black);
  text-shadow: 1px 1px 1px var(--dcs-black);
  color: var(--dcs-white);
}

.button-2 {
  background: var(--dcs-accent);
  color: var(--dcs-black);
}

.button-3 {
  background: var(--dcs-white);
  color: var(--dcs-black);
}

.uppercase {
  text-transform: uppercase;
}

.dark-fill {
  background-color: var(--dcs-black);
  color: var(--dcs-white);
  font-size: 1.1rem;
  line-height: 1.75;
}

.light-fill {
  background-color: var(--dcs-light);
}

.accent-fill {
  background-color: var(--dcs-accent);
  font-size: 1.1rem;
  line-height: 1.75;
}

.border-top {
  border-top: 1px solid #cccccc;
}

.thick-border {
  border: 5px solid var(--dcs-white);
  padding: 1.5rem;
}

.frosted-glass {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: 2rem;
}

@media screen and (min-width: 768px) {
  .frosted-glass {
    padding: 5rem;
  }
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  background: var(--dcs-white);
  padding: 1rem 0;
}

.navbar .logo img {
  max-width: 225px;
  height: auto;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.1;
}

.nav-links li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dcs-black);
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .hero {
    padding: 8rem 0;
    text-align: left;
  }
}

.hero h1 {
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 0px;
}

@media screen and (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero h1 .stronger {
  font-weight: 900;
  font-size: 2.2rem;
}

@media screen and (min-width: 768px) {
  .hero h1 .stronger {
    font-size: 3.8rem;
  }
}

.hero .container {
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

@media (min-width: 996px) {
  .hero .container {
    gap: 4rem;
    align-items: center;
    flex-direction: row;
  }

  .hero .content {
    flex: 1;
  }

  .hero .hero-right {
    width: 40%;
    overflow: visible;
  }
}

.hero .proof-points {
  display: flex;
  padding: 0;
  margin: 1rem 0 0 0;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1rem;
}

.hero .proof-points li {
  background-color: rgba(255, 255, 255, 0);
  color: var(--dcs-black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0rem;
  line-height: 1.1;
}

/* Image Mosaic */
.image-mosaic {
  margin: auto;
  width: 100%;
}

.mosaic-container {
  display: grid;
  gap: 1rem;
  min-height: 28rem;
}

@media (min-width: 768px) {
  .image-mosaic {
    width: 100%;
    max-width: 100%;
  }
}

.mosaic-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--dcs-box-shadow-normal);
}

.mosaic-large {
  grid-area: large;
}

.mosaic-small:nth-of-type(2) {
  grid-area: small1;
}

.mosaic-small:nth-of-type(3) {
  grid-area: small2;
}

/* Layout Variants */
.mosaic-left {
  grid-template-columns: 50% 50%;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    'large small1'
    'large small2';
}

.mosaic-right {
  grid-template-columns: 50% 50%;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    'small1 large'
    'small2 large';
}

.mosaic-top {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr 1fr;
  grid-template-areas:
    'large large'
    'small1 small2';
}

.mosaic-bottom {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 2fr;
  grid-template-areas:
    'small1 small2'
    'large large';
}

/* Problem section */

.problem {
  padding: 4rem 0;
}

@media screen and (min-width: 768px) {
  .problem {
    padding: 6rem 0;
  }
}

/* Solution section */

.solution {
  padding: 4rem 0;
}

@media screen and (min-width: 768px) {
  .solution {
    padding: 8rem 0;
  }
}

/* Sections */

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
    max-width: 768px;
  }
}

.layout {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .layout {
    flex-direction: row;
  }
}

@media screen and (min-width: 768px) {
  .col-2 {
    column-count: 2;
    column-gap: 2.5rem;
  }
}

.col-2 > * {
  break-inside: avoid-column;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.features .feature {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
}

/* Services section */
.services-section {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
}

@media screen and (min-width: 768px) {
  .services-section {
    padding: 8rem 0;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border: 1px solid var(--dcs-grey);
  border-radius: var(--dcs-border-radius);
  padding: 1.75rem;
  box-shadow: var(--dcs-box-shadow-normal);
  transition: box-shadow 0.2s ease;
  text-align: center;
  text-wrap: pretty;
}

.service-card .icon {
  margin-bottom: 0.5rem;
  color: var(--dcs-accent);
}

.service-card .icon svg {
  width: 3rem;
  height: auto;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.service-card p {
  font-size: 1rem;
  color: #444;
}

/* Mid-point CTA */

.mid-point-cta {
  text-align: center;
}

/* Testimonial section */

.testimonials-section {
  padding: 4rem 0;
}

@media screen and (min-width: 768px) {
  .testimonials-section {
    padding: 8rem 0;
  }
}

.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial {
  background: var(--dcs-light);
  padding: 1.5rem;
  border: 1px solid var(--dcs-grey);
  border-radius: var(--dcs-border-radius);
  box-shadow: var(--dcs-box-shadow-normal);
  transition: box-shadow 0.2s ease;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-wrap: pretty;
}

.testimonial .stars {
  color: #facc15;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  margin-bottom: 1rem;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between avatar and text */
  margin-top: 1rem;
}

.testimonial .avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial figcaption div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial figcaption cite {
  font-style: normal;
  font-weight: 600;
}

.testimonial figcaption span {
  font-size: var(--dcs-small-font);
}

.testimonial figcaption span a {
  color: inherit;
}

.testimonial figcaption span a:hover {
  opacity: 0.5;
}

/* Lead magnet */
.lead-magnet form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 1rem auto 0;
}

.lead-magnet input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.lead-magnet button {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Case study */
.case-study {
  position: relative;
  background-image: url(truck-fleet.jpg);
  background-size: cover;
  padding: 4rem 0;
}

@media screen and (min-width: 768px) {
  .case-study {
    padding: 8rem 0;
  }
}

.case-study::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--dcs-accent);
  opacity: 0.85;
  content: '';
}

.case-study > * {
  position: relative;
  z-index: 1;
}

/* FAQ section */
.faq {
  background: #fff;
  padding: 4rem 1rem;
}

@media screen and (min-width: 768px) {
  .faq {
    padding: 8rem 0;
  }
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.faq-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--dcs-light);
  padding: 1.5rem;
  border: 1px solid var(--dcs-grey);
  border-radius: var(--dcs-border-radius);
  box-shadow: var(--dcs-box-shadow-normal);
  transition: box-shadow 0.2s ease;
  color: var(--dcs-black);
  text-wrap: pretty;
}

.faq-icon svg {
  width: 1.5rem;
  height: auto;
  margin-top: 0.25rem;
}

.faq-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-content p {
  margin: 0;
  color: var(--dcs-black);
}

/* Final CTA */
.final-cta {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.3;
  padding: 4rem 0;
}

@media screen and (min-width: 768px) {
  .final-cta {
    padding: 8rem 0;
    font-size: 2rem;
  }
}

.final-cta .container {
  max-width: 800px;
}

.final-cta .supersize {
  display: block;
  font-size: clamp(20px, 15vmax, 300px);
  font-style: italic;
  color: var(--dcs-accent);
  font-weight: bold;
  letter-spacing: -5px;
  text-transform: uppercase;
  line-height: 1.1;
  transition: color 0.2s ease;
}

@media screen and (min-width: 768px) {
  .final-cta .supersize {
    letter-spacing: -10px;
    margin-bottom: 4rem;
  }
}

/* Footer */
footer {
  padding: 5rem 0;
  text-align: left;
  position: relative;
  background-color: var(--dcs-white);
  background-image: url(cogs.jpg);
  background-size: cover;
}

footer::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--dcs-white);
  opacity: 0.85;
  content: '';
}

footer > * {
  position: relative;
  z-index: 1;
}

footer a {
  color: inherit;
}

footer .border-top {
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: var(--dcs-small-font);
}

@media screen and (min-width: 768px) {
  footer .border-top {
    margin-top: 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
  align-items: start;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.footer-info .disclaimer {
  margin-top: 1rem;
}

.footer-social {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.social-buttons svg {
  width: 3rem;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  padding-right: 0.5rem;
}

.social-buttons a {
  transition: color 0.2s ease;
}

.social-buttons a:hover {
  color: var(--dcs-accent);
}

.footer-social h4 {
  margin-bottom: 0.5rem;
}

.footer-social a {
  color: inherit;
  text-decoration: none;
}

.contact-links {
  white-space: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-links li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
}

.footer-social img:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Cookie consent */

.cookie-consent {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 1rem;
  z-index: 999;
  background-color: var(--dcs-black);
  color: var(--dcs-white);
  padding: 1rem;
  max-width: 35rem;
  box-shadow: var(--dcs-box-shadow-normal);
}

.constent-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-consent a,
.cookie-consent a:visited {
  color: var(--dcs-grey);
}

.cookie-consent a:hover,
.cookie-consent a:active {
  color: var(--dcs-white);
}

.constent-btns button {
  margin: 0;
  flex: 1;
}

/* Application form */

dialog {
  border: none;
  border-radius: 0px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  padding: 2rem;
  background-color: var(--dcs-light);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  color: #555;
}

.dialog-close:hover {
  color: #000;
}

dialog::backdrop {
  background-color: var(--dcs-accent);
  opacity: 0.9;
}

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

form {
  display: grid;
  gap: 1.5rem;
}

fieldset {
  border: none;
  padding: 0;
  margin-bottom: 3rem;
}

fieldset:last-of-type {
  margin-bottom: 0;
}

legend {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .full-width {
    grid-column: 1 / -1;
  }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--dcs-grey);
  border-radius: 0px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--dcs-accent);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

form .button {
  margin-top: 1rem;
  width: 100%;
  cursor: pointer;
}
