/* My Garage Deal: Garage Upgrade Pros landing page.
   Colours come from the client's flyer: navy footer, sky-blue and safety-yellow headline,
   and a concrete grey base for the garage floor. */

:root {
  --navy: #0F2340;
  --navy-deep: #0A1930;
  --sky: #1E9BD7;
  --yellow: #FFCC1A;
  --yellow-hover: #FFD84A;
  --red: #C8281E;
  --concrete: #E7E9E6;
  --concrete-deep: #D6DAD6;
  --white: #FFFFFF;
  --ink: #0F2340;
  --ink-soft: #3E4D63;
  --line: #B9C0C8;
  --flake-base: #9A8468;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--concrete);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons (with the SDM shine on hover) ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  font: 700 16px/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s ease;
}
.btn:active { transform: translateY(1px); }

.btn--yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}
.btn--yellow:hover { background: var(--yellow-hover); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy::after {
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
}
.btn--navy:hover { background: #18325A; }

.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--lg { padding: 18px 28px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- Price tag ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.16em 0.55em 0.16em 1.05em;
  background: var(--yellow);
  color: var(--navy);
  font: 800 22px/1.1 var(--font-display);
  letter-spacing: 0.01em;
  clip-path: polygon(0.6em 0, 100% 0, 100% 100%, 0.6em 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 0.66em 50%, transparent 0.13em, #000 0.15em);
  mask: radial-gradient(circle at 0.66em 50%, transparent 0.13em, #000 0.15em);
}
.tag--lg { font-size: 34px; }

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--concrete-deep);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand img { width: auto; height: 52px; }
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--sky); }
.header-phone:hover span { text-decoration: underline; }

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

.hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 72px) clamp(32px, 4vw, 48px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/flakes.svg") 0 0 / 180px;
  opacity: 0.05;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  grid-template-areas:
    "copy  deal"
    "media deal";
  gap: 32px clamp(32px, 5vw, 64px);
  align-items: start;
}
.hero__copy { grid-area: copy; }
.hero__media { grid-area: media; }
.hero__side { grid-area: deal; }

.hero__title {
  font: 900 clamp(52px, 7.4vw, 92px)/0.98 var(--font-display);
  letter-spacing: -0.005em;
  color: var(--navy);
  max-width: 12ch;
}
.hero__lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--ink-soft);
}

.hero__media img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 760 / 485;
  object-fit: cover;
}

/* ---------- Deal builder ---------- */

.deal {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
}
.deal__title {
  font: 800 30px/1 var(--font-display);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.deal__options {
  display: grid;
  gap: 12px;
}

.deal-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.deal-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.deal-option__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.deal-option:hover .deal-option__body { border-color: rgba(255, 255, 255, 0.4); }
.deal-option input:focus-visible + .deal-option__body {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.deal-option input:checked + .deal-option__body {
  border-color: var(--sky);
  background: rgba(30, 155, 215, 0.16);
}

.deal-option__check {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
}
.deal-option input:checked + .deal-option__body .deal-option__check {
  border-color: var(--sky);
  background: var(--sky);
}
.deal-option input:checked + .deal-option__body .deal-option__check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 13px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.deal-option__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.deal-option__name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.deal-option__note { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.deal-option__body .tag { margin-left: auto; }
.deal-option input:not(:checked) + .deal-option__body .tag {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.deal__total {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
}
.deal__total-label { font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.deal__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
}
.deal__price {
  font: 900 clamp(68px, 8vw, 96px)/1 var(--font-display);
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.deal__was {
  font: 700 28px/1 var(--font-display);
  color: rgba(255, 255, 255, 0.6);
}
.deal__was[hidden] { display: none; }
.deal__note {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.deal__cta {
  width: 100%;
  margin-top: 22px;
}
.deal__cta[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Trust strip ---------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-inline: 4px;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.trust .icon { color: var(--sky); width: 1.4em; height: 1.4em; }

/* ---------- Cool and Clean ---------- */

.upgrades {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.upgrade {
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.upgrade__inner { max-width: 520px; }
.upgrade--cool .upgrade__inner { margin-left: auto; }
.upgrade--clean .upgrade__inner { margin-right: auto; }

.upgrade--cool {
  background: var(--navy-deep);
  color: var(--white);
}
.upgrade--clean {
  background: var(--concrete-deep);
  color: var(--ink);
}

.upgrade__word {
  font: 900 clamp(100px, 13vw, 176px)/0.8 var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.upgrade--cool .upgrade__word { color: var(--sky); }
.upgrade--clean .upgrade__word {
  color: transparent;
  background: url("../img/flakes.svg") 0 0 / 110px, var(--flake-base);
  -webkit-background-clip: text;
  background-clip: text;
}

.upgrade__title {
  font: 800 clamp(30px, 3.2vw, 38px)/1.05 var(--font-display);
  letter-spacing: 0.005em;
}
.upgrade__lede {
  margin-top: 10px;
  max-width: 44ch;
  font-size: 18px;
}
.upgrade--cool .upgrade__lede { color: rgba(255, 255, 255, 0.82); }
.upgrade--clean .upgrade__lede { color: var(--ink-soft); }

.upgrade__list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.upgrade__list li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
}
.upgrade__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky);
}
.upgrade__list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(0.15em + 5px);
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.upgrade--clean .upgrade__list li::before { background: var(--navy); }

.upgrade__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 18px;
}

.upgrade__photo {
  margin-top: 32px;
  border-radius: 16px;
}
.upgrade--cool .upgrade__photo { width: min(100%, 360px); }
.upgrade--clean .upgrade__photo { width: 100%; }

/* ---------- Get both band ---------- */

.both {
  background: var(--yellow);
  color: var(--navy);
  padding-block: clamp(32px, 5vw, 52px);
}
.both__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.both__title {
  font: 900 clamp(42px, 5.6vw, 70px)/0.98 var(--font-display);
}
.both__text {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 500;
}

/* ---------- Steps ---------- */

.steps { padding-block: clamp(56px, 8vw, 96px); }
.section-title {
  font: 900 clamp(40px, 5vw, 58px)/0.95 var(--font-display);
  margin-bottom: clamp(24px, 4vw, 40px);
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 18px;
  border-top: 3px solid var(--navy);
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  font: 900 64px/0.9 var(--font-display);
  color: var(--navy);
}
.step__title {
  font: 800 26px/1.1 var(--font-display);
  margin-bottom: 6px;
}
.step p { color: var(--ink-soft); max-width: 32ch; }

/* ---------- Estimate (HubSpot form) ---------- */

.estimate {
  scroll-margin-top: 12px;
  padding-block: clamp(56px, 8vw, 100px);
  background: var(--navy);
  color: var(--white);
}
.estimate__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.estimate__title {
  font: 900 clamp(46px, 6vw, 76px)/0.98 var(--font-display);
}
.estimate__lede {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
}

.pick {
  position: relative;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 6px solid var(--yellow);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}
.pick__label { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.pick__name { font-weight: 700; font-size: 20px; line-height: 1.3; padding-right: 64px; }
.pick__price {
  font: 800 32px/1.1 var(--font-display);
  color: var(--yellow);
}
.pick__change {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.estimate__call {
  margin-top: 24px;
  font-size: 18px;
}
.estimate__call a {
  color: var(--yellow);
  font-weight: 700;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.badges .icon { color: var(--sky); width: 1.4em; height: 1.4em; }

.form-card {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

/* Design-preview form (shown until the HubSpot IDs are set) */
.preview-form {
  display: grid;
  gap: 16px;
}
.preview-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.preview-form label,
.hubspot-slot .hs-form-field > label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.preview-form input,
.preview-form select,
.hubspot-slot .hs-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.3 var(--font-body);
}
.preview-form input:focus,
.preview-form select:focus,
.hubspot-slot .hs-input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(30, 155, 215, 0.3);
}
.preview-form button { margin-top: 4px; }
.preview-form__note {
  padding: 8px 12px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
.preview-form__note.is-alert {
  border-color: var(--red);
  color: var(--red);
}

/* HubSpot's own form markup (embed v2, rendered on the page) */
.hubspot-slot .hs-form fieldset { max-width: none !important; }
.hubspot-slot .hs-form .input { margin-right: 0 !important; }
.hubspot-slot .hs-form-field { margin-bottom: 16px; }
.hubspot-slot .hs-form .form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hubspot-slot .hs-form .form-columns-2 .hs-form-field {
  width: auto !important;
  float: none !important;
}
.hubspot-slot .hs-input:not([type="checkbox"]):not([type="radio"]) { width: 100% !important; }
.hubspot-slot textarea.hs-input { min-height: 110px; padding-block: 12px; }
.hubspot-slot input[type="checkbox"].hs-input,
.hubspot-slot input[type="radio"].hs-input { width: auto; min-height: 0; margin-right: 8px; }
.hubspot-slot .hs-error-msgs { margin-top: 4px; color: var(--red); font-size: 13px; }
.hubspot-slot .hs-form-required { color: var(--red); margin-left: 2px; }
.hubspot-slot .legal-consent-container { font-size: 12px; color: var(--ink-soft); }
.hubspot-slot .hs_submit .actions { margin-top: 8px; }
.hubspot-slot .hs-button {
  width: 100%;
  padding: 18px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font: 700 18px/1.2 var(--font-body);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.hubspot-slot .hs-button:hover { background: var(--yellow-hover); }
.hubspot-slot .submitted-message {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 24px 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}
.site-footer__inner {
  display: grid;
  gap: 6px;
}
.site-footer__name {
  font: 800 24px/1.1 var(--font-display);
  color: var(--white);
  margin-bottom: 4px;
}
.site-footer a { color: var(--white); font-weight: 600; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 10px;
}
.site-footer__small { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Policy pages ---------- */

.legal {
  padding-block: clamp(40px, 6vw, 80px);
  background: var(--white);
}
.legal__inner { max-width: 760px; }
.legal__title {
  font: 900 clamp(44px, 6vw, 68px)/0.98 var(--font-display);
  color: var(--navy);
}
.legal__updated {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.legal__intro {
  margin-top: 24px;
  font-size: 19px;
  color: var(--ink-soft);
}
.legal h2 {
  margin-top: 40px;
  font: 800 28px/1.1 var(--font-display);
  color: var(--navy);
}
.legal p,
.legal li { max-width: 68ch; }
.legal h2 + p,
.legal h2 + ul { margin-top: 10px; }
.legal p + p,
.legal p + ul,
.legal ul + p { margin-top: 12px; }
.legal ul {
  padding-left: 1.25em;
  list-style: disc;
}
.legal li + li { margin-top: 6px; }
.legal a { color: var(--navy); font-weight: 600; }
.legal__contact {
  margin-top: 40px;
  padding: 20px 22px;
  border-left: 6px solid var(--yellow);
  border-radius: 12px;
  background: var(--concrete);
}

/* ---------- Phone sticky bar ---------- */

.sticky-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "deal";
  }
  .hero__title { max-width: 14ch; }
  .upgrades { grid-template-columns: 1fr; }
  .upgrade__inner,
  .upgrade--cool .upgrade__inner,
  .upgrade--clean .upgrade__inner { margin-inline: auto; max-width: 620px; }
  .estimate__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand img { height: 40px; }
  .site-header__cta { display: none; }
  .header-phone { font-size: 16px; }

  /* SDM standard: no call-to-action button in the phone hero; the sticky bar, pinned to the
     bottom from the first screen, does that job. */
  .deal__cta { display: none; }

  .hero__lede { font-size: 17px; }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .both__inner .btn { width: 100%; }

  .sticky-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 25, 48, 0.96);
    transition: transform 0.25s ease;
  }
  /* Shown from the first screen on phones (even without JavaScript); main.js adds is-hidden only
     while the estimate form itself is on screen. */
  .sticky-bar.is-hidden { transform: translateY(110%); }
  .sticky-bar .btn--navy { background: #1C3A66; }
  .site-footer { padding-bottom: calc(40px + 76px); }
}

@media (max-width: 480px) {
  .header-phone span { font-size: 15px; }
  .deal-option__body { padding: 14px 12px; gap: 12px; }
  .deal-option__name { font-size: 16px; }
  .deal-option__body .tag { font-size: 20px; }
  .preview-form__row,
  .hubspot-slot .hs-form .form-columns-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover::after { transform: translateX(-120%); }
}
