/* =========================
   Colors and base styles
   ========================= */

:root {
  --red: #f53730;
  --ink: #202421;
  --muted: #606561;
  --line: #dedfdb;
  --paper: #f7f7f3;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #337bbc;
  outline-offset: 5px;
}

/* =========================
   Accessibility
   ========================= */

.skip {
  position: absolute;
  top: -80px;
}

.skip:focus {
  top: 8px;
  z-index: 10;
  background: white;
  padding: 12px;
}

/* =========================
   Header and navigation
   ========================= */

.header {
  padding: 22px 5%;
  display: flex;
  align-items: center;
  gap: 35px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 178px;
  height: 58px;
  object-fit: contain;
}

.header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.header nav a,
.contact-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.contact-link {
  border-bottom: 1px solid;
  white-space: nowrap;
}

.contact-link span {
  margin-left: 10px;
}

/* =========================
   Typography
   ========================= */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 23px;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(48px, 5.5vw, 84px);
}

h1 span {
  color: var(--red);
}

h2 {
  font-size: clamp(36px, 4vw, 58px);
}

h3 {
  font-size: 34px;
  margin: 23px 0;
  letter-spacing: -0.04em;
}

.small {
  font-size: 14px;
}

/* =========================
   Hero
   ========================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 680px;
}

.hero-content {
  padding: 70px 8% 70px 9%;
}

.intro {
  max-width: 500px;
  color: var(--muted);
  margin: 27px 0;
  font-size: 18px;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  background: #353b39;
}

.hero-image > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #0009);
}

.image-caption {
  position: absolute;
  bottom: 42px;
  left: 35px;
  right: 25px;
  color: #fff;
  z-index: 1;
}

.image-caption span {
  display: block;
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 10px;
}

.image-caption strong {
  font-size: 23px;
  line-height: 1.2;
}

/* =========================
   Buttons and links
   ========================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 16px 22px;
  line-height: 1.3;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  min-height: 52px;
  text-align: center;
}

.button:hover {
  background: #d82621;
  border-color: #d82621;
  transform: translateY(-2px);
}

.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.outline:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.text-link {
  font-weight: 700;
  text-underline-offset: 6px;
}

.text-link span {
  margin-left: 15px;
}

/* =========================
   Service highlights
   ========================= */

.service-bar {
  padding: 22px 5%;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   Sections and services
   ========================= */

.section {
  padding: 85px 6%;
}

.section-top {
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service {
  padding: 42px;
  background: white;
  border: 1px solid var(--line);
}

.number {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--red);
}

.service p {
  color: var(--muted);
  max-width: 550px;
}

.service ul {
  padding-left: 19px;
  margin: 25px 0 32px;
}

.service li {
  padding: 5px 0;
}

.service-dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.service-dark p {
  color: #d6d9d6;
}

.service-dark .number {
  color: #ff827c;
}

/* =========================
   The Top Deals difference
   ========================= */

.edge {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eeefea;
}

.edge p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.edge a {
  text-underline-offset: 4px;
}

/* =========================
   Benefits — four columns
   ========================= */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefits-grid article {
  padding-top: 1.25rem;
  border-top: 2px solid currentColor;
}

.benefits-grid h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.benefits-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   Process tabs and steps
   ========================= */

.process-tabs {
  display: flex;
  gap: 8px;
  margin: 30px 0 42px;
}

.process-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 13px 27px;
  cursor: pointer;
  font-weight: 700;
}

.process-tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.steps[hidden] {
  display: none;
}

.steps article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.steps span {
  color: var(--red);
  font-weight: 700;
}

.steps h3 {
  font-size: 25px;
  margin: 20px 0 14px;
}

.steps p {
  color: var(--muted);
  max-width: 360px;
}

/* =========================
   Closing call to action
   ========================= */

.closing {
  text-align: center;
  border-top: 1px solid var(--line);
}

.closing .actions {
  justify-content: center;
  margin-top: 30px;
}

#form-status {
  font-size: 14px;
  min-height: 24px;
}

/* =========================
   Footer
   ========================= */

footer {
  background: var(--ink);
  color: #fff;
  padding: 50px 6% 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
}

footer p {
  margin: 0;
  color: #c8cdc9;
  font-size: 14px;
}

footer div > a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  font-size: 14px;
}

.footer-brand {
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  color: var(--red);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.footer-brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.13em;
  font-style: normal;
  margin-top: 9px;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid #ffffff25;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #c8cdc9;
}

.footer-bottom a {
  font-size: 12px;
}

/* =========================
   Large screens
   ========================= */

@media (min-width: 1500px) {
  body {
    max-width: 1680px;
    margin: auto;
  }
}

/* =========================
   Tablets
   ========================= */

@media (max-width: 900px) {
  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding: 45px 8%;
  }

  h1 {
    font-size: 55px;
  }

  .header nav {
    gap: 17px;
  }

  .header {
    gap: 20px;
  }

  .service {
    padding: 30px;
  }

  .service h3 {
    font-size: 30px;
  }

  .section {
    padding: 65px 5%;
  }

  .edge {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

/* =========================
   Mobile
   ========================= */

@media (max-width: 640px) {
  .header {
    padding: 15px 5%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand img {
    width: 145px;
    height: 43px;
  }

  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .contact-link {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 43px 6%;
  }

  h1 {
    font-size: 52px;
  }

  .desktop-break {
    display: none;
  }

  .intro {
    font-size: 17px;
  }

  .hero-image {
    min-height: 350px;
  }

  .image-caption {
    bottom: 28px;
    left: 25px;
  }

  .service-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    font-size: 12px;
    padding: 18px 5%;
  }

  .section {
    padding: 55px 6%;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 28px;
  }

  .service h3 {
    font-size: 31px;
  }

  .edge p:not(.eyebrow) {
    font-size: 16px;
  }

  .steps {
    gap: 23px;
  }

  .steps p {
    max-width: none;
  }

  .closing .button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 6% 22px;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .actions .button {
    flex: 1 1 auto;
  }

  .eyebrow {
    font-size: 11px;
  }

  h2 {
    font-size: 37px;
  }
}

/* =========================
   Benefits — small screens
   ========================= */

@media (max-width: 540px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Reduced motion
   ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}