/* ==========================================================================
   AMSTEEL MIDWEST — State & City Page Section System
   Paste once into: Appearance > Customize > Additional CSS
   Every state and city page uses these classes. Change here, changes everywhere.
   ========================================================================== */

.am-page {
  --am-navy: #14263c;
  --am-navy-soft: #1d3350;
  --am-copper: #c8712c;
  --am-copper-light: #e08a3e;
  --am-red: #cc1f2a;
  --am-ink: #2c2c2c;
  --am-body: #4f5560;
  --am-alt-bg: #f1f5fd;
  --am-line: #dde3ee;
  --am-white: #ffffff;
  --am-radius: 4px;
  --am-max: 1180px;
  --am-narrow: 720px;

  color: var(--am-body);
  font-size: 17px;
  line-height: 1.75;
}

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

.am-page h2,
.am-page h3,
.am-page h4 {
  color: var(--am-ink);
  line-height: 1.2;
  margin: 0 0 16px;
}

.am-page h2 { font-size: 40px; font-weight: 700; }
.am-page h3 { font-size: 24px; font-weight: 700; }
.am-page h4 { font-size: 19px; font-weight: 700; }
.am-page p { margin: 0 0 20px; }
.am-page p:last-child { margin-bottom: 0; }
.am-page a { color: var(--am-copper); }

/* --- Full-bleed helper -----------------------------------------------------
   Use on hero and CTA band. If your theme adds a horizontal scrollbar,
   set the containing Gutenberg Group block to "Full width" and drop .am-full.
   -------------------------------------------------------------------------- */
.am-page .am-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* --- Section shell --------------------------------------------------------- */
.am-page .am-section { padding: 84px 24px; }
.am-page .am-section--alt { background: var(--am-alt-bg); }
.am-page .am-section--tight { padding: 56px 24px; }
.am-page .am-inner { max-width: var(--am-max); margin: 0 auto; }
.am-page .am-inner--narrow { max-width: var(--am-narrow); margin: 0 auto; }

/* --- Eyebrow (red rule + label, matches homepage) -------------------------- */
.am-page .am-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--am-ink);
  margin-bottom: 10px;
}
.am-page .am-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--am-red);
  flex: none;
}
.am-page .am-eyebrow--center { justify-content: center; }

/* --- Buttons --------------------------------------------------------------- */
.am-page .am-btn {
  display: inline-block;
  padding: 17px 34px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--am-radius);
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.am-page .am-btn--primary {
  background: var(--am-navy);
  color: var(--am-copper-light);
  border-color: var(--am-navy);
}
.am-page .am-btn--primary:hover,
.am-page .am-btn--primary:focus-visible {
  background: var(--am-copper);
  color: var(--am-white);
  border-color: var(--am-copper);
}
.am-page .am-btn--ghost {
  background: transparent;
  color: var(--am-white);
  border-color: rgba(255, 255, 255, 0.75);
}
.am-page .am-btn--ghost:hover,
.am-page .am-btn--ghost:focus-visible {
  background: var(--am-white);
  color: var(--am-navy);
  border-color: var(--am-white);
}
.am-page .am-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.am-page .am-btn:focus-visible { outline: 3px solid var(--am-copper-light); outline-offset: 3px; }

/* --- 1. Photo hero --------------------------------------------------------- */
.am-page .am-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.am-page .am-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 22, 36, 0.86) 0%, rgba(12, 22, 36, 0.62) 55%, rgba(12, 22, 36, 0.3) 100%);
}
.am-page .am-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--am-max);
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.am-page .am-hero__content { max-width: 640px; }
.am-page .am-hero h1 {
  color: var(--am-white);
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 18px;
}
.am-page .am-hero__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.65;
  margin: 0;
}
.am-page .am-hero .am-eyebrow { color: var(--am-white); margin-bottom: 14px; }

/* --- 2. Narrow intro ------------------------------------------------------- */
.am-page .am-intro { font-size: 18px; }
.am-page .am-intro p { margin-bottom: 22px; }

/* --- 3. System cards ------------------------------------------------------- */
.am-page .am-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.am-page .am-card {
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.am-page .am-card--featured { border: 2px solid var(--am-copper); }
.am-page .am-card__media {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  display: block;
}
.am-page .am-card__body { padding: 26px 26px 30px; flex: 1; }
.am-page .am-card__flag {
  display: inline-block;
  background: var(--am-copper);
  color: var(--am-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.am-page .am-card h3 { font-size: 22px; margin-bottom: 6px; }
.am-page .am-card__meta {
  font-size: 14px;
  font-weight: 700;
  color: var(--am-copper);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.am-page .am-card p { font-size: 16px; line-height: 1.7; }

/* --- 4 & 5. Split image / text --------------------------------------------- */
.am-page .am-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}
.am-page .am-split + .am-split { margin-top: 76px; }
.am-page .am-split__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--am-radius);
  display: block;
}
.am-page .am-split--reverse .am-split__media { order: -1; }
.am-page .am-split h2 { font-size: 34px; }

/* --- 6. Icon row ----------------------------------------------------------- */
.am-page .am-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin-top: 46px;
}
.am-page .am-icon-item h4 { margin-bottom: 8px; }
.am-page .am-icon-item p { font-size: 15.5px; line-height: 1.65; }
.am-page .am-icon-item img,
.am-page .am-icon-item svg { width: 44px; height: 44px; margin-bottom: 16px; display: block; }

/* --- 7. City / metro link grid --------------------------------------------- */
.am-page .am-cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.am-page .am-city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--am-white);
  border: 1px solid var(--am-line);
  border-left: 3px solid var(--am-copper);
  border-radius: 0;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--am-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.am-page .am-city:hover,
.am-page .am-city:focus-visible { border-color: var(--am-copper); color: var(--am-copper); }
.am-page .am-city::after { content: "\2192"; color: var(--am-copper); font-weight: 400; }
.am-page .am-city--metro { background: var(--am-navy); color: var(--am-white); border-color: var(--am-navy); }
.am-page .am-city--metro:hover { color: var(--am-copper-light); border-color: var(--am-copper); }

/* --- 8. FAQ accordion (no JavaScript) -------------------------------------- */
.am-page .am-faq { margin-top: 38px; border-top: 1px solid var(--am-line); }
.am-page .am-faq details { border-bottom: 1px solid var(--am-line); }
.am-page .am-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 46px 24px 0;
  position: relative;
  font-size: 19px;
  font-weight: 700;
  color: var(--am-ink);
}
.am-page .am-faq summary::-webkit-details-marker { display: none; }
.am-page .am-faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 27px;
  font-weight: 400;
  color: var(--am-copper);
  line-height: 1;
}
.am-page .am-faq details[open] summary::after { content: "\2013"; }
.am-page .am-faq summary:focus-visible { outline: 3px solid var(--am-copper); outline-offset: 2px; }
.am-page .am-faq__answer { padding: 0 46px 26px 0; font-size: 16.5px; }

/* --- 9. CTA band ----------------------------------------------------------- */
.am-page .am-cta {
  background: var(--am-navy);
  padding: 76px 24px;
  text-align: center;
}
.am-page .am-cta h2 { color: var(--am-white); font-size: 36px; }
.am-page .am-cta p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 auto; font-size: 18px; }
.am-page .am-cta .am-btn-row { justify-content: center; }
.am-page .am-cta .am-btn--primary {
  background: var(--am-copper);
  color: var(--am-white);
  border-color: var(--am-copper);
}
.am-page .am-cta .am-btn--primary:hover { background: var(--am-white); color: var(--am-navy); border-color: var(--am-white); }
.am-page .am-cta__phone {
  display: block;
  margin-top: 26px;
  color: var(--am-white);
  font-size: 16px;
  text-decoration: none;
}
.am-page .am-cta__phone strong { color: var(--am-copper-light); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .am-page .am-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .am-page .am-split { gap: 40px; }
  .am-page .am-hero h1 { font-size: 46px; }
  .am-page h2 { font-size: 34px; }
}

@media (max-width: 820px) {
  .am-page .am-section { padding: 60px 20px; }
  .am-page .am-systems,
  .am-page .am-cities { grid-template-columns: 1fr; }
  .am-page .am-split { grid-template-columns: 1fr; gap: 28px; }
  .am-page .am-split--reverse .am-split__media { order: 0; }
  .am-page .am-split + .am-split { margin-top: 52px; }
  .am-page .am-hero { min-height: 420px; }
  .am-page .am-hero h1 { font-size: 36px; }
  .am-page .am-hero__sub { font-size: 17px; }
  .am-page h2 { font-size: 29px; }
  .am-page .am-split h2 { font-size: 27px; }
  .am-page .am-btn { padding: 15px 26px; font-size: 14px; }
  .am-page .am-btn-row .am-btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .am-page * { transition: none !important; }
}