/* Foster Fixes — site styles
   Design tokens pulled from the reference mockup. */

:root {
  --cream: #fbf7ef;
  --ink: #10272c;
  --teal-900: #0a4652;
  --teal-600: #00758a;
  --orange: #ffa51f;
  --orange-light: #ffc266;
  --line: #e4dccb;
  --field-line: #6f8286;
  --white: #ffffff;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1040px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--orange);
}

a:hover {
  color: var(--orange-light);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- Skip link ---- */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
  z-index: 100;
}

.skip-link:focus {
  transform: none;
}

/* ---- Display type ---- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}

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

.hero {
  background: var(--teal-900);
  color: var(--white);
}

.hero__inner {
  padding-block: 48px 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

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

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__logo {
  width: 104px;
  height: 96px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--white);
}

.brand__tag {
  margin-top: -3.5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  white-space: nowrap;
  color: var(--orange);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 4.5vw + 16px, 60px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero__lede {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__photo-wrap {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 340px;
}

.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--orange);
  background: var(--teal-600);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 26px;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: background-color 120ms ease, transform 120ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--orange-light);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
}

.btn--submit {
  align-self: flex-start;
  min-height: 52px;
  padding: 10px 28px;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

/* ---- Main ---- */

.main {
  padding-block: 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section__title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--teal-600);
}

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

.services,
.services--more {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--teal-900);
}

.services > li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.services--more {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.services--more > li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---- Form ---- */

.form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label {
  font-size: 16px;
  font-weight: 700;
}

.field__hint {
  font-size: 14px;
  color: var(--field-line);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: 4px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310272C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--orange);
  outline-offset: 0;
  border-color: var(--teal-600);
}

/* Only flag invalid fields once the user has touched them or tried to submit. */
.form.was-validated :invalid {
  border-color: #b3261e;
}

.form__status {
  margin: 0;
  font-weight: 700;
}

.form__status[data-state="error"] {
  color: #b3261e;
}

.form__status[data-state="success"] {
  color: var(--teal-600);
}

.form__status:empty {
  display: none;
}

.form__fineprint {
  margin: 0;
  font-size: 14px;
  color: var(--field-line);
}

/* Honeypot: hidden from people, present for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Netlify injects the reCAPTCHA widget into this div at build time. */
.recaptcha:empty {
  display: none;
}

@media (max-width: 360px) {
  /* The reCAPTCHA v2 iframe is 304px wide; shrink on tiny screens. */
  .recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }
}

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

.footer {
  background: var(--teal-900);
  color: var(--white);
}

.footer__inner {
  padding-block: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__title {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.06em;
}

.footer__cta p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw + 20px, 48px);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.footer__phone:hover,
.footer__phone:focus-visible {
  color: var(--orange-light);
}

.footer__phone svg {
  flex: none;
  width: 30px;
  height: 30px;
}

.footer__byline {
  padding-left: 40px;
  font-size: 16px;
  font-weight: 700;
}

.footer__byline a {
  color: inherit;
  text-decoration: none;
}

.footer__byline a:hover {
  color: var(--orange-light);
}

.footer__legal {
  padding-block: 0 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Small screens ---- */

@media (max-width: 640px) {
  .hero__inner {
    padding-block: 36px 44px;
    gap: 32px;
    justify-content: center;
  }

  .hero__copy {
    align-items: center;
    text-align: center;
  }

  .hero__text {
    align-items: center;
  }

  .hero__photo-wrap {
    max-width: 260px;
    order: -1;
  }

  .btn {
    font-size: 22px;
  }

  .main {
    padding-block: 40px;
    gap: 40px;
  }

  .services {
    font-size: 20px;
  }

  .footer__inner {
    padding-block: 36px;
  }

  .footer__byline {
    padding-left: 0;
  }
}

/* ---- Thanks page ---- */

.thanks {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 640px;
}

.thanks p {
  margin: 0;
  font-size: 18px;
}

/* ---- Print ---- */

@media print {
  .hero,
  .footer {
    background: none;
    color: var(--ink);
  }

  .brand__name {
    color: var(--ink);
  }

  .form,
  .skip-link {
    display: none;
  }
}
