/* Shared stylesheet for every one-page site the generator produces.
 *
 * One file for all clients so it is cached once and nothing is duplicated per
 * sale. Only the accent colour changes, and it arrives as a custom property from
 * the page's own <head>.
 *
 * No framework, no webfont, no image: a professional's page has to open fast on a
 * cheap phone on mobile data, and every external request is a chance to lose the
 * enquiry.
 */

:root {
  --accent: #0f2a44;
  --accent-soft: #eef3f8;
  --ink: #16212d;
  --slate: #56677a;
  --slate-light: #8798a9;
  --line: #e4e8ed;
  --page: #ffffff;
  --tint: #f6f8fa;

  --radius: 14px;
  --content: 1080px;
  --gutter: clamp(20px, 5vw, 44px);
  --step-1: clamp(1rem, 1.5vw, 1.0625rem);
  --step-2: clamp(1.2rem, 2vw, 1.375rem);
  --step-3: clamp(1.55rem, 3.2vw, 2.125rem);
  --step-4: clamp(1.95rem, 5vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-1);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 20;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding-block: 10px;
}
.top__name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: clamp(0.9375rem, 4.1vw, 1.0625rem);
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.2;
}
.top__logo { flex: none; object-fit: contain; }
.top__wordmark { display: inline; }

.top__area {
  display: block;
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0;
  margin-top: 2px;
}
.top__call { margin-left: auto; flex: none; }
/* On a phone the number would squeeze the business name into two lines; it is in the
   contact card directly below, so the button only says what it does. */
@media (max-width: 560px) {
  .top__call-num { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(1.12); }
.btn--wa { background: #12b886; color: #06281e; }
.btn--wa:hover { background: #10a97a; }
.btn--ghost { border-color: var(--line); color: var(--accent); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { padding: 9px 15px; font-size: 0.8125rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(44px, 7vw, 76px) 0 clamp(40px, 6vw, 64px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: var(--step-4);
  letter-spacing: -0.033em;
  line-height: 1.05;
  margin-top: 16px;
}

.hero__lede {
  margin-top: 20px;
  color: var(--slate);
  max-width: 46ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--slate);
}
.hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* contact card */

.card-contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--tint);
}
.card-contact h2 { font-size: 1.0625rem; }
.card-contact p { margin-top: 8px; color: var(--slate); font-size: 0.9375rem; }
.card-contact .btn { width: 100%; margin-top: 14px; }
.card-contact__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--slate);
}
.card-contact__row:first-of-type { margin-top: 14px; }
.card-contact__row b { color: var(--ink); font-weight: 650; text-align: right; }
.card-contact__row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
/* A long published address gets its own line rather than breaking the label row. */
@media (max-width: 460px) {
  .card-contact__row { flex-wrap: wrap; }
  .card-contact__row a { flex-basis: 100%; text-align: left; }
}
.card-contact__row a:hover { text-decoration: underline; }

/* ---------- sections ---------- */

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }

.head { max-width: 620px; }
.head h2 { font-size: var(--step-3); margin-top: 12px; letter-spacing: -0.026em; }
.head p { margin-top: 12px; color: var(--slate); }

.grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(24px, 3.5vw, 36px);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid--2 { grid-template-columns: 1fr; } }

.svc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 24px);
  background: #fff;
}
.svc h3 { font-size: 1rem; letter-spacing: -0.01em; }
.svc p { margin-top: 7px; color: var(--slate); font-size: 0.9375rem; }
.svc__price {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 9px;
}

.steps { counter-reset: s; }
.step { border-top: 2px solid var(--accent); padding-top: 16px; }
.step::before {
  counter-increment: s;
  content: "Step " counter(s);
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 8px;
}
.step h3 { font-size: 1rem; }
.step p { margin-top: 6px; color: var(--slate); font-size: 0.9375rem; }

/* about */

.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p + p { margin-top: 14px; }
.facts { border-top: 1px solid var(--line); }
.facts div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.facts dt { color: var(--slate); }
.facts dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; }

/* faq */

.faq { max-width: 780px; margin-top: clamp(24px, 3.5vw, 34px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 0; font-weight: 650; font-size: 1rem; color: var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--slate-light);
  border-bottom: 2px solid var(--slate-light);
  transform: rotate(45deg); transition: transform 0.18s ease; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding-bottom: 18px; color: var(--slate); font-size: 0.9375rem; max-width: 68ch; }

/* final call */

.call {
  background: var(--accent);
  color: #e6eef6;
  border-radius: 18px;
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 780px) { .call { grid-template-columns: 1fr; } }
.call h2 { color: #fff; font-size: var(--step-3); }
.call p { margin-top: 10px; color: #c3d6e6; max-width: 46ch; }
.call__actions { display: flex; flex-direction: column; gap: 10px; }
.call__actions .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  font-size: 0.8125rem;
  color: var(--slate);
}
.foot__row { display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: space-between; }
.foot a { text-decoration: none; color: var(--slate); }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot__nap { margin-top: 18px; color: var(--slate-light); line-height: 1.7; max-width: 70ch; }
.foot__credit { margin-top: 14px; color: var(--slate-light); }
.foot__credit a { color: var(--slate); }

/* Social links sit under the contact line rather than as an icon row: brand icons are
   other companies' trademarks, and text is legible at any size without a webfont. */
.foot__social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
}
.foot__social a {
  font-weight: 600;
  color: var(--accent);
}
.foot__social a:hover { text-decoration: underline; }
