:root {
  --sage: #839178;
  --sage-deep: #6f7e65;
  --cream: #f5f1e8;
  --beige: #d9d0c0;
  --charcoal: #151515;
  --white: #ffffff;
  /* one design pixel of the 1536px reference; overridden on desktop */
  --u: 1px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--white);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.header {
  position: relative;
  z-index: 10;
  background: var(--white);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 20px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  margin-right: auto;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.logo__main {
  font-weight: 700;
  letter-spacing: 0.2em;
}

.logo__a {
  font-weight: 500;
}

.logo__pro {
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.menu-toggle {
  display: grid;
  place-items: center;
  order: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--charcoal);
  cursor: pointer;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 20px 20px;
  background: var(--white);
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
}

.nav.is-open {
  display: block;
}

.nav__home {
  display: none;
}

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
}

.nav__list li + li {
  border-top: 1px solid var(--cream);
}

.nav__list a:hover,
.nav__home:hover {
  color: var(--sage-deep);
}

.header__divider {
  display: none;
}

.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  order: 2;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--sage-deep);
  border-radius: 999px;
  color: var(--charcoal);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.phone svg {
  color: var(--sage-deep);
  flex: none;
}

.phone:hover {
  background: var(--cream);
}

.phone__number {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
}

.hero__content {
  padding: 44px 20px 40px;
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 12.5vw, 72px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--sage-deep);
}

.hero__copy {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 4.4vw, 22px);
  line-height: 1.35;
}

.hero__copy strong {
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--sage-deep);
  color: var(--white);
}

.btn--primary:hover {
  background: #5f6d56;
}

.btn--secondary {
  background: var(--white);
  border-color: var(--sage);
  color: var(--charcoal);
  font-weight: 700;
}

.btn--secondary:hover {
  background: var(--cream);
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  object-position: 60% 50%;
}

/* ---------- Chat placeholder ---------- */

.chat-note {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 30;
  margin: 0;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4;
}

.chat-note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .header__inner {
    padding: 0 40px;
  }

  .nav {
    padding: 8px 40px 20px;
  }

  .phone {
    width: auto;
    padding: 0 22px;
  }

  .phone__number {
    display: inline;
  }

  .hero__content {
    padding: 64px 40px 56px;
  }

  .hero__cta {
    flex-direction: row;
  }

  .chat-note {
    left: auto;
    max-width: 360px;
  }
}

/* ---------- Desktop: proportional to the 1536 × 864 reference ---------- */

@media (min-width: 1024px) {
  :root {
    --u: calc(100vw / 1536);
  }

  .header__inner {
    gap: 0;
    height: calc(72 * var(--u));
    padding: 0 calc(92 * var(--u)) 0 calc(84 * var(--u));
  }

  .logo {
    font-size: calc(44 * var(--u));
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    position: static;
    padding: 0;
    border: 0;
  }

  .nav__home {
    display: grid;
    place-items: center;
    width: calc(40 * var(--u));
    height: calc(40 * var(--u));
    margin-right: calc(24 * var(--u));
  }

  .nav__home svg {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
  }

  .nav__list {
    display: flex;
    gap: calc(47 * var(--u));
  }

  .nav__list li + li {
    border-top: 0;
  }

  .nav__list a {
    padding: calc(10 * var(--u)) 0;
    font-size: calc(14 * var(--u));
  }

  .header__divider {
    display: block;
    width: 1.5px;
    height: calc(26 * var(--u));
    margin: 0 calc(46 * var(--u)) 0 calc(54 * var(--u));
    background: var(--charcoal);
  }

  .phone {
    order: 0;
    gap: calc(16 * var(--u));
    width: calc(196 * var(--u));
    height: calc(46 * var(--u));
    padding: 0;
    font-size: calc(17 * var(--u));
    letter-spacing: -0.01em;
  }

  .phone svg {
    width: calc(22 * var(--u));
    height: calc(22 * var(--u));
  }

  .hero {
    position: relative;
    height: calc(792 * var(--u));
    background: var(--cream) url("img/hero.jpg") center / cover no-repeat;
  }

  .hero__photo {
    display: none;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: calc(138 * var(--u)) 0 calc(116 * var(--u)) calc(90 * var(--u));
  }

  .hero__title {
    font-size: calc(76 * var(--u));
    line-height: calc(72 * var(--u));
  }

  .hero__title-accent {
    margin-left: calc(2 * var(--u));
  }

  .hero__copy {
    margin-top: calc(22 * var(--u));
    max-width: none;
    font-size: calc(23.5 * var(--u));
    line-height: calc(33 * var(--u));
    letter-spacing: 0.005em;
  }

  .hero__copy strong {
    font-size: calc(28.5 * var(--u));
    letter-spacing: -0.025em;
  }

  .hero__cta {
    gap: calc(18 * var(--u));
    margin-top: auto;
    margin-left: calc(-11 * var(--u));
  }

  .btn {
    gap: calc(16 * var(--u));
    min-height: calc(61 * var(--u));
    padding: 0;
    border-radius: calc(6 * var(--u));
    font-size: calc(16 * var(--u));
  }

  .btn--primary {
    width: calc(299 * var(--u));
  }

  .btn--secondary {
    width: calc(219 * var(--u));
  }

  .btn svg {
    width: calc(27 * var(--u));
    height: calc(27 * var(--u));
  }
}

/* ---------- Sections ---------- */

.section,
.footer {
  --pad: 20px;
  padding: 64px var(--pad);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section__head {
  max-width: 760px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: #a9b59f;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section p {
  margin: 0;
  line-height: 1.5;
}

.section .eyebrow {
  margin-bottom: 14px;
}

.section .lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
}

.services,
.b2b,
.tips,
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li,
.tips li,
.b2b li {
  padding: 24px 0;
  border-top: 1px solid var(--beige);
}

.services__no {
  display: block;
  margin-bottom: 14px;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.split__img {
  display: block;
  width: 100%;
  height: auto;
}

.steps {
  margin-top: 28px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 0 18px 52px;
  border-top: 1px solid var(--beige);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--sage-deep);
  border-radius: 50%;
  color: var(--sage-deep);
  font-size: 14px;
  font-weight: 700;
}

.prices {
  width: 100%;
  max-width: 860px;
  border-collapse: collapse;
  font-size: 17px;
}

.prices th,
.prices td {
  padding: 16px 0;
  border-top: 1px solid var(--beige);
  text-align: left;
  font-weight: 500;
}

.prices td,
.prices thead th:last-child {
  text-align: right;
  white-space: nowrap;
}

.prices td {
  font-weight: 700;
}

.prices thead th {
  border-top: 0;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--dark .b2b li {
  border-top-color: #3a3a3a;
}

.section--dark .b2b p {
  color: #cfcfcf;
}

.btn--light {
  margin-top: 28px;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 700;
}

.btn--light:hover {
  background: var(--cream);
}

.section--dark :focus-visible {
  outline-color: var(--white);
}

.contact {
  display: grid;
  gap: 40px;
}

.contact__phone {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.contact__phone:hover {
  color: var(--sage-deep);
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--beige);
  border-radius: 6px;
  color: var(--charcoal);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--sage-deep);
  outline-offset: 1px;
}

.form .btn {
  justify-self: start;
}

.form__status a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  background: var(--white);
  border-top: 1px solid var(--beige);
  font-size: 14px;
}

.footer .logo {
  margin-right: 0;
  font-size: 22px;
}

.footer p {
  margin: 0;
}

@media (min-width: 640px) {
  .section,
  .footer {
    --pad: 40px;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .services,
  .tips,
  .b2b {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}

@media (min-width: 1024px) {
  .section,
  .footer {
    --pad: calc(90 * var(--u));
  }

  .section {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .section__head {
    margin-bottom: 56px;
  }

  .services,
  .tips,
  .b2b {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 56px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .split--reverse {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .btn--light,
  .form .btn {
    padding: 0 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
