/* WORKPRO'S marketing homepage — base elements, design-system components,
   and page sections. Implements ui_kits/website from the design system. */

/* ============ Base ============ */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-h1); font-weight: var(--fw-heavy); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-heavy); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); }

p { margin: 0 0 var(--sp-4); }

a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: var(--fw-semibold);
}
a:hover { color: var(--wp-blue-300); }

img { max-width: 100%; }

/* Lucide icon sizing (attributes on <i data-lucide> carry over to the svg) */
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-24 { width: 24px; height: 24px; }
.ic-28 { width: 28px; height: 28px; }
.ic-48 { width: 48px; height: 48px; }

.wp-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============ Button ============ */
/* Sturdy, high-contrast, senior-friendly (large hit area).
   Flat fills, 2px borders, small radius. No gradients. */
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  font-size: 18px;
  padding: 13px 24px;
  min-height: 52px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.wp-btn--lg {
  gap: 12px;
  font-size: 20px;
  padding: 17px 32px;
  min-height: 60px;
}
.wp-btn--block { width: 100%; }

.wp-btn[data-variant="primary"] {
  background: var(--wp-blue);
  color: #fff;
  border: 2px solid var(--wp-blue);
}
.wp-btn[data-variant="outline"] {
  background: transparent;
  color: var(--wp-charcoal-900);
  border: 2px solid var(--wp-charcoal);
}
.wp-btn--on-dark[data-variant="outline"] {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.wp-btn:hover { color: inherit; }
.wp-btn[data-variant="primary"]:hover:not(:disabled) {
  background: var(--wp-blue-700);
  border-color: var(--wp-blue-700);
  color: #fff;
}
.wp-btn[data-variant="outline"]:hover:not(:disabled) { background: var(--wp-charcoal-100); }
.wp-btn--on-dark[data-variant="outline"]:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.wp-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wp-btn:active { transform: translateY(1px); }

/* ============ Badge ============ */
.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.wp-badge--blue-solid { background: var(--wp-blue); color: #fff; }
.wp-badge--on-dark    { background: rgba(255,255,255,0.12); color: #fff; }

/* ============ Section heading (roof-peak motif) ============ */
.wp-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}
.wp-heading--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.wp-heading .wp-peak { display: block; }
.wp-heading .wp-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 14px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--wp-blue);
}
.wp-heading h2 {
  margin: 0;
  font-weight: var(--fw-heavy);
  font-size: var(--fs-h2);
  line-height: 1.1;
}
.wp-heading p {
  margin: 0;
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 620px;
}
.wp-heading--on-dark h2 { color: var(--wp-white); }
.wp-heading--on-dark p  { color: rgba(255,255,255,0.8); }

/* ============ Header ============ */
.wp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border-default);
}
.wp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wp-header__logo { height: 46px; display: block; }
.wp-nav { display: flex; gap: 28px; margin-left: 24px; }
.wp-nav a {
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  font-size: 17px;
}
.wp-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.wp-header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-bold);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--wp-charcoal-900);
}
.wp-header__phone .lucide { color: var(--wp-blue); }

/* ============ Hero ============ */
.wp-hero {
  background: var(--wp-charcoal-900);
  color: #fff;
}
.wp-hero__grid {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.wp-hero__badges { display: flex; gap: 8px; margin-bottom: 20px; }
.wp-hero h1 {
  font-weight: var(--fw-black);
  font-size: 56px;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.wp-hero h1 .accent { color: var(--wp-blue-300); }
.wp-hero__lead {
  font-size: 21px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 32px;
  max-width: 520px;
}
.wp-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.wp-hero__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255,255,255,0.75);
  font-size: 17px;
}
.wp-hero__rating .stars { color: #F5B400; font-size: 20px; letter-spacing: 2px; }
.wp-hero__rating strong { color: #fff; }

/* Photo in a bordered white "frame" card (no full-bleed photo washes) */
.wp-hero__frame {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.wp-hero__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--wp-blue-50);
  position: relative;
}
.wp-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Services ============ */
.wp-services { background: #fff; }
.wp-services__inner { padding-top: 80px; padding-bottom: 80px; }
.wp-services .wp-heading { margin-bottom: 44px; }
.wp-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ServiceCard — the signature service tile. Square icon badge, bold title,
   short description, action row. Flat, sturdy. */
.wp-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-top: 4px solid var(--wp-blue);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.wp-card { position: relative; overflow: hidden; }
.wp-card > * { position: relative; z-index: 1; }
/* Trade watermark drawn behind each card's content */
.wp-card__bg,
svg.wp-card__bg {
  position: absolute;
  z-index: 0;
  right: -22px;
  bottom: -22px;
  width: 150px;
  height: 150px;
  color: var(--wp-blue-100);
  transform: rotate(-8deg);
  pointer-events: none;
}
.wp-card--charcoal .wp-card__bg,
.wp-card--charcoal svg.wp-card__bg { color: var(--wp-charcoal-100); }

/* Photo cards: real job photo as background, charcoal scrim keeps text readable */
.wp-card--photo {
  background-size: cover;
  background-position: center;
}
.wp-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 28, 0.72);
  z-index: 0;
}
.wp-card--photo .wp-card__icon { background: var(--wp-blue); color: #fff; }
.wp-card--photo h3 { color: #fff; }
.wp-card--photo .wp-card__desc { color: rgba(255, 255, 255, 0.85); }
.wp-card--interactive { cursor: pointer; }
.wp-card--interactive:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--wp-blue-300);
  border-top-color: var(--wp-blue);
  transform: translateY(-2px);
}
.wp-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wp-blue);
  color: #fff;
}
.wp-card--charcoal .wp-card__icon { background: var(--wp-charcoal-900); }
.wp-card h3 {
  margin: 0 0 6px;
  font-size: var(--fs-h4);
  font-weight: var(--fw-heavy);
}
.wp-card__desc {
  margin: 0;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ Why us ============ */
.wp-why { background: var(--wp-paper); }
.wp-why__grid {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.wp-why__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.wp-why__point { display: flex; gap: 14px; }
.wp-why__point-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--wp-blue-100);
  color: var(--wp-blue);
  display: grid;
  place-items: center;
}
.wp-why__point h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: var(--fw-bold);
}
.wp-why__point p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ Quote form ============ */
.wp-quote { background: var(--wp-charcoal-900); }
.wp-quote__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 80px 24px;
}
.wp-quote .wp-heading { margin-bottom: 36px; }
.wp-quote__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.wp-quote__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.wp-quote__row { margin-bottom: 20px; }
.wp-quote__consent { margin-bottom: 24px; }

/* Form fields — large, high-contrast, 2px focus. Senior-friendly sizing. */
.wp-field { display: flex; flex-direction: column; gap: 6px; }
.wp-field > label {
  font-weight: var(--fw-semibold);
  font-size: 16px;
  color: var(--text-strong);
}
.wp-field__control { position: relative; display: flex; align-items: center; }
.wp-field__icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: var(--text-faint);
  pointer-events: none;
}

.wp-input, .wp-textarea, .wp-select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-strong);
  background: #fff;
  padding: 13px 14px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wp-input, .wp-select { min-height: 52px; }
.wp-input--with-icon { padding-left: 44px; }
.wp-textarea { resize: vertical; line-height: 1.5; padding: 12px 14px; }
.wp-select { appearance: none; padding-right: 44px; cursor: pointer; }
.wp-select:invalid { color: var(--text-faint); }
.wp-field__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--wp-charcoal-600);
  pointer-events: none;
}
.wp-input:focus, .wp-textarea:focus, .wp-select:focus {
  border-color: var(--border-focus);
  box-shadow: var(--focus-ring);
}
.wp-input::placeholder, .wp-textarea::placeholder { color: var(--text-faint); }

/* Checkbox — square check with blue fill. Large 24px box. */
.wp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-body);
}
.wp-check {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 2px solid var(--wp-charcoal-400);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: inherit;
  display: grid;
  place-items: center;
  transition: background .12s ease, border-color .12s ease;
}
.wp-check:checked { background: var(--wp-blue); border-color: var(--wp-blue); }
.wp-check:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.wp-check:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Alert — flat tinted background, left keyline (success state) */
.wp-alert[hidden] { display: none; }
.wp-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--wp-success-bg);
  border-left: 4px solid var(--wp-success);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: #1E5A31;
}
.wp-alert__icon {
  display: inline-flex;
  color: var(--wp-success);
  flex: 0 0 auto;
  margin-top: 1px;
}
.wp-alert__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 17px;
  margin-bottom: 3px;
}
.wp-alert__body { font-size: 16px; line-height: 1.5; }

/* ============ Footer ============ */
.wp-footer {
  background: var(--wp-black);
  color: rgba(255,255,255,0.72);
}
.wp-footer-grid {
  padding-top: 56px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.wp-footer__logo { height: 52px; margin-bottom: 16px; display: block; }
.wp-footer__blurb {
  font-size: 16px;
  line-height: 1.55;
  max-width: 300px;
  margin: 0;
}
.wp-footer h4 {
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.wp-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wp-footer ul a {
  color: rgba(255,255,255,0.72);
  font-weight: var(--fw-medium);
  font-size: 16px;
}
.wp-footer ul a:hover { color: #fff; }
.wp-footer__legal { border-top: 1px solid rgba(255,255,255,0.12); }
.wp-footer__legal-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .wp-hero__grid, .wp-why__grid { grid-template-columns: 1fr; }
  .wp-svc-grid { grid-template-columns: 1fr 1fr; }
  .wp-footer-grid { grid-template-columns: 1fr 1fr; }
  .wp-nav { display: none; }
}

@media (max-width: 640px) {
  .wp-hero h1 { font-size: 42px; }
  .wp-svc-grid { grid-template-columns: 1fr; }
  .wp-quote__fields { grid-template-columns: 1fr; }
  .wp-footer-grid { grid-template-columns: 1fr; }
  .wp-header__phone span { display: none; } /* keep the phone icon, drop the number */
}
