/* ==========================================================================
   DaybookPro — landing page
   Sections in source order:
   0 Tokens · 1 Reset · 2 Utilities · 3 Buttons · 4 Header · 5 Hero
   6 Benefits · 7 Customers · 8 About · 9 Testimonials · 10 CTA band
   11 Footer · 12 Responsive
   ========================================================================== */

/* ---------- 0. Tokens ---------------------------------------------------- */
:root {
  --red: #e51921;
  --red-dark: #c31118;
  --pink: color-mix(in srgb, var(--red) 30%, white);
  --red-tint-16: color-mix(in srgb, var(--red) 16%, transparent);
  --red-tint-28: color-mix(in srgb, var(--red) 28%, transparent);
  --navy: #010f20;
  --ink: #001022;
  --ink-soft: #3c4652;
  --grey-bg: #f4f6f8;
  --grey-bg-alt: #f2f4f6;
  --hairline: #e2e5e9;
  --black: #000;
  --footer-bar: #14191f;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --shell: 1460px;
  --shell-wide: 1740px;
  --gutter: clamp(20px, 3.5vw, 44px);

  --radius: 4px;
  --radius-card: 6px;

  --header-h: 96px;
  --card-lift: 95px;          /* how far the benefits card rides up into hero */

  --shadow-card: 0 18px 40px -22px rgba(0, 22, 48, .35);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 1. Reset ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. Utilities ------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: var(--shell-wide); }

.text-red { color: var(--red); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.section-title {
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ---------- 3. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 15px 30px; font-size: .95rem; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d7dce1;
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

.icon-arrow { width: 20px; height: 12px; flex: none; }
.icon-play  { width: 15px; height: 15px; flex: none; color: var(--red); }

/* ---------- 4. Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand img { width: 200px; height: auto; }

.primary-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  margin-inline: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  transition: color .2s var(--ease);
}

.nav-link:hover { color: var(--red); }

.nav-link.is-current { color: var(--red); }
.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
}

.chevron { width: 11px; height: 7px; transition: transform .2s var(--ease); }
[aria-expanded="true"] > .chevron { transform: rotate(180deg); }

.has-submenu { position: relative; }

.nav-link-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.submenu-toggle:hover { color: var(--red); }

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 230px;
  padding: 8px 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 46px -18px rgba(0, 22, 48, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.submenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a,
.submenu a.nav-link {
  display: block;
  padding: 9px 22px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.submenu a:hover,
.submenu a.nav-link:hover { background: var(--grey-bg); color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.login-link {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.login-link:hover { color: var(--red); }

/* burger */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  border-radius: var(--radius);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 34vw, 650px);
  padding-block: 64px calc(var(--card-lift) + 48px);
  background-color: var(--navy);
  background-image: url("../img/hero-truck.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    var(--navy) 26%,
    rgba(1, 15, 32, .88) 36%,
    rgba(1, 15, 32, .38) 50%,
    rgba(1, 15, 32, 0) 64%
  );
}

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  max-width: 15ch;
  font-size: clamp(2rem, 3.1vw, 3.3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.015em;
  line-height: 1.16;
}

.hero__lead {
  max-width: 46ch;
  margin-top: 22px;
  font-size: clamp(.98rem, 1.02vw, 1.16rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, .88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

/* ---------- 6. Benefits card --------------------------------------------- */
.benefits { background: var(--grey-bg); }

.benefits > .shell {
  transform: translateY(calc(-1 * var(--card-lift)));
}

.benefits__card {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 22px;
  border-left: 1px solid var(--hairline);
}
.benefit:first-child { border-left: 0; }

.benefit__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grey-bg);
  color: #0d0d0d;
}
.benefit__icon svg { width: 28px; height: 28px; }

.benefit__icon--accent {
  background: var(--pink);
  color: var(--red);
}

.benefit__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.benefit__text {
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- 7. Customers ------------------------------------------------- */
.customers {
  background: var(--grey-bg);
  padding-block: 52px 46px;
  text-align: center;
}

.customers__powered-by {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
  letter-spacing: .01em;
}
.customers__powered-by a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.customers__powered-by a:hover { color: var(--red); }

.customers__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.customers__lead {
  margin-top: 6px;
  font-size: .92rem;
  color: var(--ink-soft);
}

.customers__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.customers__grid img {
  margin-inline: auto;
  max-height: 62px;
  width: auto;
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.customers__grid li:hover img { opacity: 1; }

/* ---------- 8. About ----------------------------------------------------- */
.about { background: #fff; padding-block: clamp(48px, 5vw, 76px); }

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
}

.about__text { max-width: 56ch; }

.about__text > p {
  margin-top: 22px;
  font-size: .95rem;
  line-height: 1.72;
}

.about__cta { margin-top: 30px; }

.about__media img {
  width: 100%;
  border-radius: 2px;
}

/* Stacked variant: image on top, centered text + button below (used on the About page) */
.about__inner--stacked {
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
}
.about__inner--stacked .about__text {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}
.about__inner--stacked .about__cta { display: flex; justify-content: center; }
.about__inner--stacked .about__media img {
  border-radius: var(--radius-card);
  max-width: 800px;
  margin-inline: auto;
}

/* ---------- 9. Testimonials ---------------------------------------------- */
.testimonials {
  background: var(--grey-bg-alt);
  padding-block: clamp(48px, 5vw, 78px) clamp(38px, 4vw, 58px);
}

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 38px);
  align-items: start;
}

.quote { position: relative; padding-bottom: 76px; }

.quote__bubble {
  position: relative;
  margin: 0;
  padding: 26px 28px 22px 62px;
  background: var(--black);
  color: #fff;
  border-radius: 3px;
}

/* speech-bubble tail */
.quote__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 15px solid var(--black);
}

.quote--accent .quote__bubble { background: var(--red); }
.quote--accent .quote__bubble::after { border-top-color: var(--red); }
.quote--accent { margin-top: -14px; }

.quote__mark {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.quote__bubble p {
  font-size: .9rem;
  line-height: 1.62;
}

.quote__author {
  margin-top: 18px;
  text-align: right;
  font-family: var(--font-display);
}
.quote__author strong { font-size: 1.05rem; font-weight: 700; }
.quote__author span { font-size: .68rem; letter-spacing: .06em; }

.quote__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  width: 100%;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
  transition: color .15s var(--ease), gap .15s var(--ease);
}
.quote__more svg { width: 14px; height: 9px; flex: none; }
.quote__more:hover { color: #fff; gap: 9px; }

.quote__avatar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 61px;
  height: 61px;
  border-radius: 50%;
  object-fit: cover;
}

.quote__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: #4a5a6b;
  opacity: .55;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.dot.is-active { background: var(--red); opacity: 1; }

/* ---------- 10. CTA band ------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: clamp(52px, 5vw, 86px);
  background-color: #0d1116;
  background-image: url("../img/cta-truck.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #0d1116 0%,
    #0d1116 26%,
    rgba(13, 17, 22, .88) 40%,
    rgba(13, 17, 22, .35) 56%,
    rgba(13, 17, 22, 0) 72%
  );
}

.cta-band__inner { position: relative; z-index: 1; }

.cta-band__title {
  font-size: clamp(1.9rem, 2.9vw, 3.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.015em;
}

.cta-band__lead {
  margin-top: 16px;
  max-width: 40ch;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.42;
  color: rgba(255, 255, 255, .93);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin-top: clamp(38px, 5vw, 74px);
}

.cta-band .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}

/* ---------- 11. Footer --------------------------------------------------- */
.site-footer { background: #fff; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1fr;
  gap: clamp(24px, 2.6vw, 44px);
  padding-block: clamp(44px, 4.5vw, 66px);
}

.footer__cols {
  display: contents;
}

.footer__brand img { width: 210px; }

.footer__pitch {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.75vw, 1.95rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.footer__col ul li,
.footer__contact ul li { margin-bottom: 7px; }

.footer__col a,
.footer__contact a,
.footer__contact li {
  font-size: .84rem;
  color: var(--ink-soft);
  transition: color .18s var(--ease);
}
.footer__col a:hover,
.footer__contact a:hover { color: var(--red); }

.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.icon-phone { width: 13px; height: 13px; flex: none; color: var(--red); }

/* separators, matching the mockup's hairlines */
.footer__col:first-child,
.footer__contact { border-left: 1px solid var(--hairline); padding-left: clamp(18px, 2vw, 34px); }

.footer__bar {
  background-color: var(--footer-bar);
  background-image: url("../img/footer-strip.png");
  background-size: cover;
  background-position: center;
}

.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 26px;
}

.footer__copy { font-size: .82rem; color: rgba(255, 255, 255, .82); }

.footer__legal { display: flex; gap: 34px; }
.footer__legal a { font-size: .82rem; color: rgba(255, 255, 255, .82); }
.footer__legal a:hover { color: #fff; }

/* ---------- 12. Responsive ----------------------------------------------- */
@media (max-width: 1280px) {
  .benefits__card { grid-template-columns: repeat(3, 1fr); }
  .benefit:nth-child(3n + 1) { border-left: 0; }
  .benefit:nth-child(n + 4) { border-top: 1px solid var(--hairline); }

  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:first-child { border-left: 0; padding-left: 0; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; --card-lift: 0px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-top: 1px solid var(--hairline);
    box-shadow: 0 22px 40px -24px rgba(0, 22, 48, .5);
    display: none;
  }
  .primary-nav.is-open { display: flex; }

  .header-inner { position: relative; flex-wrap: wrap; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
  }
  .nav-list > li { border-bottom: 1px solid var(--hairline); }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 2px;
  }
  .nav-link.is-current::after { display: none; }

  .nav-link-group {
    width: 100%;
    justify-content: space-between;
  }
  .nav-link-group .nav-link {
    width: auto;
    flex: 1;
    justify-content: flex-start;
  }
  .submenu-toggle { padding: 14px 2px; }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 10px;
    display: none;
  }
  .submenu.is-open { display: block; }
  .submenu a { padding: 9px 14px; }

  .header-actions {
    justify-content: space-between;
    margin-top: 20px;
  }

  .hero { padding-block: 56px 56px; background-size: cover; }
  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(1, 15, 32, .97) 0%,
      rgba(1, 15, 32, .9) 46%,
      rgba(1, 15, 32, .55) 100%
    );
  }

  .benefits > .shell { transform: none; }
  .benefits { padding-top: 42px; }

  .customers__grid { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }

  .cta-band { background-size: cover; }
  .cta-band::before {
    background: linear-gradient(
      90deg,
      rgba(13, 17, 22, .95) 0%,
      rgba(13, 17, 22, .82) 50%,
      rgba(13, 17, 22, .4) 100%
    );
  }
  .cta-band__actions { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .benefits__card { grid-template-columns: repeat(2, 1fr); }
  .benefit { border-left: 1px solid var(--hairline); border-top: 1px solid var(--hairline); }
  .benefit:nth-child(odd) { border-left: 0; }
  .benefit:nth-child(-n + 2) { border-top: 0; }

  .about__inner { grid-template-columns: 1fr; }
  .about__media { order: -1; }

  /* testimonials become a swipeable row */
  .testimonials__track {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .testimonials__track::-webkit-scrollbar { display: none; }

  .quote {
    flex: 0 0 min(85%, 420px);
    scroll-snap-align: center;
  }
  .quote--accent { margin-top: 0; }

  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { border-left: 0; padding-left: 0; }
}

@media (max-width: 560px) {
  .brand img { width: 168px; }

  .benefits__card { grid-template-columns: 1fr; }
  .benefit { border-left: 0; border-top: 1px solid var(--hairline); }
  .benefit:first-child { border-top: 0; }

  .customers__grid { grid-template-columns: repeat(2, 1fr); }

  .hero__actions .btn,
  .cta-band__actions .btn { flex: 1 1 100%; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: 22px; }
}

/* ---------- Motion preferences ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .dots, .cta-band__actions, .hero__actions { display: none; }
  body { color: #000; }
}
