/* brianpugnali.com — one stylesheet, mobile first.
   Fluid sizes use cqi units against .page, which spans the viewport. */

:root {
  --font: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --text: #111418;
  --text-muted: #4A5260;
  --text-soft: #2B323C;
  --blue: #1769C8;
  --blue-hover: #0F4F9C;
  --navy: #0B3D6E;
  --grey: #F4F5F7;
  --hairline: #E3E7ED;
  --services-outline: #C9DDF5;
  --light-hover: #E6EFFA;
  --white: #FFFFFF;
  --error-bg: #FDECEC;
  --error-text: #8A1C1C;

  --radius-control: 8px;
  --radius-card: 12px;
  --radius-photo: 14px;
  --radius-block: 16px;

  --content-max: 1232px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
}

.page {
  container-type: inline-size;
  overflow-x: clip;
}

[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.navy a:focus-visible,
.navy button:focus-visible,
.navy input:focus-visible,
.navy textarea:focus-visible {
  outline-color: var(--white);
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5cqi, 64px);
}
/* Boxed sections run closer to the edge on phones. */
.container--tight { padding-inline: clamp(12px, 5cqi, 64px); }

/* ---------- Shared pieces ---------- */

.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-hover); color: var(--white); }

.btn--md { min-height: 52px; padding: 13px 26px; font-size: 17px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }

.btn--light { background: var(--white); color: var(--navy); font-weight: 700; padding-inline: 28px; }
.btn--light:hover { background: var(--light-hover); color: var(--navy); }

.navy {
  border-radius: var(--radius-block);
  background: var(--navy);
  color: var(--white);
}

.wordmark {
  font-weight: 800;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--blue); }
a.wordmark { padding: 11px 0; }
a.wordmark:hover { color: var(--text); }
.wordmark--small { font-size: 16px; }

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

.site-header { border-bottom: 1px solid var(--hairline); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  order: 3;
  flex-basis: 100%;
  justify-content: space-between;
}
.site-nav a {
  min-width: 44px;
  text-align: center;
  padding: 12px 3px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); }

@container (min-width: 900px) {
  .site-nav {
    order: 0;
    flex-basis: auto;
    justify-content: flex-start;
    gap: 0 8px;
    margin-left: auto;
  }
  .site-nav a { padding: 11px 12px; font-size: 16px; }
}

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

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px clamp(40px, 6cqi, 88px);
  padding-block: clamp(40px, 6cqi, 88px);
}

.hero__copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(32px, 3.7cqi, 52px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 52ch;
  font-size: clamp(16.5px, 1.3cqi, 18px);
  text-wrap: pretty;
}

.hero__cta { margin-top: 6px; }

.hero__note {
  max-width: 46ch;
  font-size: 15px;
  color: var(--text-muted);
}

.hero__media {
  flex: 1 1 380px;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline); /* defines the edge of light-background photos */
  border-radius: var(--radius-photo);
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Without a hero photo, keep the headline at the width of the design's text column. */
.hero__copy:only-child .hero__title { max-width: 16ch; }

/* ---------- Services ---------- */

.services { padding-block: clamp(24px, 3cqi, 40px); }

.services__panel {
  border: 1px solid var(--services-outline);
  border-radius: var(--radius-block);
  padding: clamp(28px, 4.4cqi, 64px) clamp(14px, 4.4cqi, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3cqi, 40px);
}

.services__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.services__title { font-weight: 700; font-size: clamp(28px, 2.8cqi, 38px); line-height: 1.2; }
.services__lede { max-width: 48ch; font-size: 18px; color: var(--text-soft); }

.services__list { display: flex; flex-direction: column; gap: 20px; }

.service {
  display: flex;
  flex-wrap: wrap;
  border-radius: var(--radius-card);
  background: var(--grey);
  overflow: hidden;
}
.service__number {
  flex: 1 1 180px;
  min-height: 120px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 76px;
  line-height: 1;
}
.service__body {
  flex: 4 1 360px;
  min-width: 0;
  padding: clamp(24px, 3cqi, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service__body p { max-width: 70ch; text-wrap: pretty; }
.service__title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.service__link { font-weight: 600; font-size: 15px; }
/* Taller tap target without adding space under the paragraph. */
.service__link a { display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ---------- CTA banner ---------- */

.cta-banner { padding-block: clamp(24px, 3cqi, 40px); }

.cta-banner__panel {
  padding: clamp(32px, 4.4cqi, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.cta-banner__text {
  flex: 1 1 380px;
  max-width: 26ch;
  font-weight: 700;
  font-size: clamp(24px, 2.4cqi, 32px);
  line-height: 1.25;
  text-wrap: balance;
}

/* ---------- How it works ---------- */

.steps {
  padding-block: clamp(48px, 6cqi, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3cqi, 40px);
}
.steps__title {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px;
}
.step {
  border: 1px solid var(--text);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step p:last-child { text-wrap: pretty; }
.step__title { font-weight: 700; font-size: 22px; line-height: 1.25; }

/* ---------- Pricing ---------- */

.pricing {
  padding-block: 0 clamp(48px, 6cqi, 88px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3cqi, 40px);
}
.pricing__title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(28px, 2.8cqi, 38px);
  line-height: 1.2;
  text-wrap: balance;
}
.pricing__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.price-card {
  border-radius: var(--radius-card);
  background: var(--grey);
  padding: clamp(26px, 3cqi, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card p:last-child { max-width: 52ch; text-wrap: pretty; }
.price-card__label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.price-card__figure {
  font-weight: 700;
  font-size: clamp(26px, 2.4cqi, 32px);
  line-height: 1.2;
  color: var(--navy);
}
.price-card__figure span { font-size: 0.6em; font-weight: 600; color: var(--text-muted); }

.pricing__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.pricing__footer p { max-width: 46ch; font-size: 18px; color: var(--text-soft); text-wrap: pretty; }

/* ---------- About ---------- */

.about { background: var(--grey); }

.about__inner {
  padding-block: clamp(48px, 6cqi, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px clamp(40px, 6cqi, 88px);
}
.about__photo {
  flex: 1 1 300px;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--white);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__copy {
  flex: 1.4 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.about__copy p { max-width: 62ch; text-wrap: pretty; }
.about__copy .about__lede {
  font-weight: 600;
  font-size: clamp(18px, 1.5cqi, 21px);
  line-height: 1.5;
}
.about__cta { margin-top: 8px; }

/* Without an About photo, centre the text column in the band (text stays left-aligned). */
.about__copy:only-child { max-width: 62ch; margin-inline: auto; }

/* ---------- FAQ ---------- */

.faq {
  padding-block: clamp(48px, 6cqi, 88px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3cqi, 40px);
}
.faq__title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(28px, 2.8cqi, 38px);
  line-height: 1.2;
  text-wrap: balance;
}
.faq__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.faq-item {
  border-radius: var(--radius-card);
  background: var(--grey);
  padding: clamp(26px, 3cqi, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item__question { font-weight: 700; font-size: 20px; line-height: 1.3; text-wrap: balance; }
.faq-item p { max-width: 62ch; text-wrap: pretty; }
/* Four questions sit in two columns rather than three plus one. */
.faq__list--pairs { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

/* ---------- Service pages ---------- */

.page-intro {
  padding-block: clamp(20px, 3cqi, 40px) clamp(8px, 1cqi, 16px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.page-intro__title { max-width: 22ch; }

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { display: inline-block; padding-block: 12px; }

.page-section {
  padding-block: clamp(32px, 4cqi, 56px) 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-section__title {
  font-weight: 700;
  font-size: clamp(24px, 2.4cqi, 32px);
  line-height: 1.25;
  text-wrap: balance;
}
.page-section > p { max-width: 62ch; text-wrap: pretty; }
.page-section .steps__list,
.page-section .faq__list { margin-top: 8px; }

.page-list {
  max-width: 62ch;
  margin: 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-list li::marker { color: var(--blue); }

.related { padding-block: clamp(32px, 4cqi, 56px) 0; color: var(--text-muted); }
.related__label { font-weight: 600; color: var(--text); }
.related a { display: inline-block; padding-block: 10px; }

.page-cta { padding-block: clamp(32px, 4cqi, 56px) clamp(40px, 5cqi, 72px); }
.page-cta__copy {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-cta__copy .cta-banner__text { flex: none; }
.page-cta__copy p { max-width: 40ch; font-size: 18px; text-wrap: pretty; }

/* ---------- Contact ---------- */

.contact { padding-block: clamp(40px, 5cqi, 72px); }

.contact__panel {
  padding: clamp(28px, 4.8cqi, 72px) clamp(20px, 4.8cqi, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px clamp(40px, 6cqi, 88px);
}
.contact__intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact__title {
  font-weight: 700;
  font-size: clamp(28px, 3cqi, 42px);
  line-height: 1.2;
  text-wrap: balance;
}
.contact__lede { max-width: 40ch; font-size: 18px; text-wrap: pretty; }
.contact__email,
.contact__email:hover {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  padding: 10px 0;
}

.contact__form-area { flex: 1.2 1 360px; min-width: 0; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.contact-form__submit[disabled] { opacity: 0.7; cursor: progress; }
.contact-form__note { font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 16.5px;
}
.field textarea { line-height: 1.5; resize: vertical; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #D93636; }

.field__optional { font-weight: 400; opacity: 0.85; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

/* Radio choices as wrapping pills: one tap on phones, no dropdown. */
.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-group legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.choice-group__options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 15.5px;
  cursor: pointer;
}
.choice:hover { border-color: var(--white); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.choice:has(input:checked) { background: var(--white); border-color: var(--white); color: var(--navy); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }
.choice-group[aria-invalid="true"] .choice { border-color: #FF8A8A; }

.field__error {
  font-weight: 600;
  font-size: 15px;
}

/* Honeypot: hidden from people, visible to naive bots. */
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  border-radius: var(--radius-control);
  background: var(--error-bg);
  color: var(--error-text);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
}
.form-error a { color: var(--error-text); }

.contact-sent__card {
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--text);
  padding: clamp(26px, 3.6cqi, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact-sent__card p { max-width: 40ch; }
.contact-sent__title { font-weight: 700; font-size: 30px; line-height: 1.2; }
.contact-sent__title:focus { outline: none; }

.link-button {
  margin-top: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--blue-hover); }
.navy .link-button:focus-visible { outline-color: var(--blue); }

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

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer__inner {
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer__inner a { padding: 12px 0; }
.site-footer__about { display: flex; flex-direction: column; gap: 2px; }
.site-footer__links { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__nav a { color: var(--text); text-decoration: none; }
.site-footer__nav a:hover { color: var(--blue); }

@container (min-width: 900px) {
  .site-footer__links { align-items: flex-end; }
}
