/**
 * Styles written for the static site.
 *
 * core.css and site.css are the compiled stylesheets from the WordPress
 * themes, copied over unchanged. Anything new goes here, so those two files
 * can be diffed against the theme if ever needed. Sizes follow the theme's
 * convention: a clamp's upper bound is the px value in the 1600px design
 * frame, the vw figure is that value divided by 1600.
 */

/* --- Things WordPress used to print inline ----------------------------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.m-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--m-color-accent);
  color: var(--m-color-on-accent);
  font-weight: 600;
}

.m-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* =====================================================================
 * Contact page
 * ================================================================== */

.atm-contact {
  padding-block: clamp(4rem, 6.25vw, 100px);
  scroll-margin-top: 6rem;
}

.atm-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 96px);
  align-items: start;
}

.atm-contact__intro .atm-label {
  margin-bottom: 1rem;
}

.atm-contact__intro .atm-h2 {
  font-size: clamp(2rem, 2.875vw, 46px);
  line-height: 1;
}

.atm-contact__lede {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.125vw, 18px);
  line-height: 1.5;
  color: var(--m-color-muted);
}

.atm-contact__details {
  margin-top: 2rem;
}

.atm-contact__details a {
  color: var(--m-color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* The form sits on a white card against the tinted section, like the plan
   cards on the Investment page. */
.atm-contact__card {
  padding: clamp(1.5rem, 2.5vw, 40px);
  border: 1px solid var(--m-color-line);
  border-radius: var(--m-radius-lg);
  background: var(--m-color-bg);
  box-shadow: var(--m-shadow-sm);
}

.atm-contact__form {
  display: grid;
  gap: 1.25rem;
}

.atm-contact__form .m-field {
  margin: 0;
}

.atm-contact__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.atm-contact__optional {
  font-weight: 400;
  color: var(--m-color-faint);
}

.atm-contact__form .m-btn {
  justify-self: start;
}

.atm-contact__form .m-field__hint {
  margin: 0;
}

.atm-contact__form .m-field__hint a {
  color: var(--m-color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.atm-contact__form .m-form__status {
  margin: 0;
}

@media (max-width: 960px) {
  .atm-contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .atm-contact__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================
 * Fixes to the carried-over theme CSS
 * ================================================================== */

/* Insight articles and topic pages ran 40px wider than a phone screen. The
   column is content-box with side padding, so 100% plus the gutters overflowed.
   Same bug existed on the WordPress site. */
.insight__col {
  width: min(100% - 2 * var(--ins-gutter), var(--ins-col));
}

/* Westfield location page (/westfield-web-design/) */
.page-local #local .atm-h2 { margin-bottom: clamp(1.25rem, 2vw, 2rem); }

/* Footer social links, styled like the contact block above them. */
.atm-footer__social { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(13, 19, 32, 0.66); }
.atm-footer__social a { color: inherit; }

/* Pricing page: per-page add-on prices under the build tiers. */
.atm-addons { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.atm-addon { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 1.5rem; border: 1px solid var(--m-color-line); border-radius: var(--m-radius-lg); background: var(--m-color-bg); }
.atm-addon p { margin: 0; min-width: 0; font-size: 1rem; line-height: 1.45; }
.atm-addon small { display: block; margin-top: .25rem; font-size: .875rem; color: var(--m-color-muted); }
.atm-addon strong { font-size: clamp(1.5rem, 2vw, 28px); font-weight: 400; white-space: nowrap; }

/* Pricing page: one centered card (Website Care). */
.atm-pricing--single .atm-pricing__grid { max-width: 44rem; margin-inline: auto; }
.atm-pricing--single .atm-pricing__head { text-align: center; margin-inline: auto; }
.atm-pricing--single .atm-pricing__lede { margin-inline: auto; }
