/* Websites for local businesses (/websites). Loaded after styles.css and pages.css, and built from their parts:
   .hero and .hero-panel, the teal .work band, .eyebrow, .offer, .jump-link and .button. This file only adds
   what those don't cover. The page is three short parts: hero, what you get, and how it works with contact.
   Kept separate because Auto copies the other two. */

nav > a[aria-current="page"] { border-color: var(--vermilion); }

.service-page h2 {
  margin: 14px 0 20px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

/* Hero: sized to its content rather than the whole screen, with a smaller panel than the homepage's.
   The launch offer badge (.offer) is in styles.css, shared with the homepage's websites card. */

.service-hero { min-height: auto; padding: 64px 0 72px; }

.service-hero h1 {
  font-size: clamp(2.8rem, min(5.2vw, 9.5vh), 4.6rem);
  line-height: 1;
}

.service-hero .hero-panel { width: min(100%, 400px); }
.service-hero .prompt-output { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 32px;
}

.hero-actions .jump-link { margin-top: 0; }

/* What you get: a two-column checklist on the teal band, headed by an eyebrow-sized h2. */

.service-page .work { padding-top: 64px; padding-bottom: 64px; }
.service-page h2.eyebrow { margin: 0 0 24px; font-size: .74rem; line-height: 1.4; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 48px;
  max-width: 1000px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  line-height: 1.55;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  color: rgba(243, 245, 240, .78);
}

.checklist strong { color: var(--paper); font-weight: 600; }

/* A drawn tick, so screen readers don't announce a symbol. */
.checklist li::before {
  position: absolute;
  top: .2em;
  left: 4px;
  width: 7px;
  height: 13px;
  border: solid var(--amber);
  border-width: 0 3px 3px 0;
  content: "";
  transform: rotate(45deg);
}

/* How it works and contact: one closing section on paper, the header's Contact target.
   The three steps sit in a row on desktop and stack at 900 px and below. */

.service-close {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 1.05rem;
  line-height: 1.55;
}

.steps li {
  position: relative;
  padding: 16px 18px 16px 52px;
  border-radius: 14px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 19px;
  left: 18px;
  color: var(--vermilion-deep);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  content: "0" counter(step);
}

.steps strong { color: var(--ink); font-weight: 600; }

/* Call-back form: name and mobile side by side, then what they need. account.js sends it to the account service. */
.callback {
  max-width: 640px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.callback h3 { margin: 0 0 24px; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.25; }
.callback-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.callback .optional { color: var(--ink-soft); font-weight: 500; }
.callback .notice { margin: 0; }
.callback .form[hidden] { display: none; }

/* Where I'm based: one quiet line under the contact links, for people and for local search. */
.service-areas {
  max-width: 720px;
  margin: 40px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .service-hero { padding: 48px 0 56px; }
  .service-hero .hero-panel { display: none; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .service-hero { padding: 32px 0 48px; }
  .service-hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  /* Stacked: a full-width button with its link centred under it, so the pill's rounded end
     doesn't make the link look out of line. */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions .jump-link { align-self: center; }
  .service-page .work { padding-top: 44px; padding-bottom: 44px; }
  .service-close { width: min(100% - 32px, 1240px); padding: 48px 0 56px; }
  .checklist { grid-template-columns: 1fr; gap: 12px; font-size: 1rem; }
  .steps { font-size: 1rem; }
  .callback { margin-top: 40px; padding-top: 32px; }
  .callback-fields { grid-template-columns: 1fr; }
  .callback .button { width: 100%; }
}
