/* All redesign rules are restricted to Astra's mobile header or phone widths. */
@media (max-width: 921px) {
  #masthead { position: sticky; top: 0; z-index: 100; }
  #ast-mobile-header .ast-primary-header-bar {
    background: #fff; border-bottom: 1px solid #e9e8ef;
    padding: 0 20px; min-height: 76px;
  }
  #ast-mobile-header .ast-builder-grid-row { min-height: 76px; }
  #ast-mobile-header .site-branding { padding: 0; margin: 0; line-height: 1; }
  #ast-mobile-header .site-description,
  #ast-mobile-header .site-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  #ast-mobile-header .custom-logo { display: block; width: 208px; max-width: 100%; height: auto; }
  #ast-mobile-header .custom-logo-link { display: flex; align-items: center; gap: 14px; }
  #ast-mobile-header .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 12px;
    color: #373570; background: #f4f3f8; border: 1px solid #e9e7f1; border-radius: 10px;
  }
  #ast-mobile-header .menu-toggle svg { width: 23px; height: 23px; }
  #ast-mobile-header .ast-mobile-header-content {
    background: #fff; max-height: calc(100dvh - 76px); overflow-y: auto;
    border-bottom: 1px solid #e9e8ef; box-shadow: 0 16px 24px rgb(25 23 48 / 8%);
  }
  #ast-mobile-site-navigation { padding: 8px 20px 20px; }
  #ast-mobile-header .main-header-menu { background: #fff; }
  #ast-mobile-header .main-header-menu > .menu-item > .menu-link {
    min-height: 52px; display: flex; align-items: center; padding: 12px 12px;
    font-size: 16px; line-height: 1.5; font-weight: 500; color: #262438; border-bottom: 1px solid #efedf4;
  }
  #ast-mobile-header .main-header-menu > .current-menu-item:not(.awt-menu-pricing) > .menu-link { background: #f7f6fa; border-radius: 8px; }
  #ast-mobile-header .main-header-menu > .awt-menu-pricing > .menu-link {
    justify-content: center; background: #3b8530; color: white; border-radius: 10px;
    border: 0; margin: 8px 0 12px; font-weight: 600;
  }
  #ast-mobile-header .main-header-menu .ast-menu-toggle {
    width: 48px; height: 48px; padding: 12px; top: 2px; right: 0; border: 0;
    background: transparent; color: #514b87; border-radius: 8px;
  }
  #ast-mobile-header .main-header-menu .sub-menu { background: #f7f6fa; padding: 4px 0; border-radius: 10px; }
  #ast-mobile-header .main-header-menu .sub-menu .menu-link {
    min-height: 48px; display: flex; align-items: center; padding: 10px 20px;
    color: #514a70; font-size: 15px; line-height: 1.5;
  }
  #ast-mobile-header a:focus-visible, #ast-mobile-header button:focus-visible {
    outline: 3px solid #3b8530; outline-offset: 3px;
  }
}

/* Approved Header D / Nightfall. Existing artwork remains unchanged. */
@media (max-width: 921px) {
  .awt-header-genie { object-fit: contain; }
  :is(.awt-header-genie,.awt-header-meta) { flex-shrink: 0; }
  .awt-header-meta { font: 500 10px/1.6 Roboto,sans-serif; letter-spacing: .1em; color: #55516d; }
  .awt-header-meta span { display: block; font-size: 9px; letter-spacing: .14em; color: #77718d; }
  :is(.awt-header-genie,.awt-header-meta) + .custom-logo { flex-shrink: 1; }
  :is(.awt-header-genie,.custom-logo) { transition: none; }
  .awt-header-genie ~ .awt-header-meta { text-align: left; }
  .awt-header-genie ~ .custom-logo { display: none !important; }
  :is(.awt-header-genie,.awt-header-meta) { max-width: none; }
  body.awt-header-nightfall #ast-mobile-header .ast-primary-header-bar {
    min-height: 96px; position: relative; background: radial-gradient(ellipse at 15% 0%,#44416d 0%,#242333 46%,#171923 100%);
    border: 0; box-shadow: inset 0 -1px #8a83ad55;
  }
  body.awt-header-nightfall #ast-mobile-header .ast-primary-header-bar::after {
    content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;
    background: linear-gradient(90deg,#74b951,#8b83bc 48%,transparent); opacity: .9;
  }
  body.awt-header-nightfall #ast-mobile-header .ast-builder-grid-row { min-height: 96px; }
  body.awt-header-nightfall #ast-mobile-header .custom-logo-link { position: relative; gap: 12px; padding-bottom: 10px; }
  body.awt-header-nightfall #ast-mobile-header .awt-header-genie { display: block !important; width: 64px; height: 64px; }
  body.awt-header-nightfall #ast-mobile-header .custom-logo { display: block !important; width: clamp(124px,37vw,160px); filter: invert(1); }
  body.awt-header-nightfall #ast-mobile-header .awt-header-meta { display: block !important; position: absolute; left: 76px; bottom: 5px; color: #c7c0dc; font-size: 8px; letter-spacing: .16em; }
  body.awt-header-nightfall #ast-mobile-header .awt-header-meta span { display: inline; color: #a6b8a6; font-size: 8px; letter-spacing: .08em; margin-left: 10px; }
  body.awt-header-nightfall #ast-mobile-header .menu-toggle { color: #c4dcb7; background: #ffffff08; border: 1px solid #78718f; border-radius: 50%; }
  body.awt-header-nightfall #ast-mobile-header .menu-toggle svg { fill: currentColor; }
  body.awt-header-nightfall #ast-mobile-header .ast-mobile-header-content { max-height: calc(100dvh - 96px); }
}

@media (max-width: 921px) {
  body.page-id-92 { --awt-ink: #232234; --awt-purple: #3b3c84; --awt-muted: #666477; }
  body.page-id-92 #primary { margin: 0; padding: 0; }
  body.page-id-92 #content > .ast-container { padding-inline: 0; }
  body.page-id-92 #primary, body.page-id-92 .entry-content { width: 100%; }
  body.page-id-92 .entry-content > :is(.alignfull,.alignwide) {
    width: 100% !important; max-width: 100% !important; margin-inline: 0 !important;
  }
  body.page-id-92 .entry-content > .awt-home-hero {
    margin: 0 !important; width: 100%; left: auto; min-height: 0 !important;
    display: block; padding: 0; background: #181923; overflow: hidden;
  }
  body.page-id-92 .awt-home-hero > .wp-block-cover__image-background {
    height: 250px; object-fit: cover; object-position: 50% 53% !important;
  }
  body.page-id-92 .awt-home-hero > .wp-block-cover__background {
    height: 270px; opacity: 1; background: linear-gradient(180deg, rgb(24 25 35 / 0%) 40%, #181923 98%) !important;
  }
  body.page-id-92 .awt-home-hero .awt-hero-content {
    padding: 240px 24px 36px !important; display: flex; flex-direction: column;
    align-items: stretch; gap: 0; max-width: 580px; margin: 0 auto;
  }
  body.page-id-92 .awt-hero-content::before {
    content: "PEORIA, ARIZONA  /  SINCE 2014"; color: #b9bcdd;
    font: 500 10px/1.5 Roboto, sans-serif; letter-spacing: .14em;
    margin-bottom: 14px;
  }
  body.page-id-92 .awt-hero-content > h1 {
    order: 0; margin: 0 0 16px; color: #fff;
    font-size: clamp(32px, 8.7vw, 40px); line-height: 1.12; font-weight: 400; letter-spacing: -.025em; text-wrap: balance;
  }
  body.page-id-92 .awt-hero-content > p {
    margin: 0; font-size: 15px; line-height: 1.65; color: #bfc0cb; max-width: none;
  }
  body.page-id-92 .awt-hero-content > p:first-of-type {
    order: 1; color: #e2e2e8; font-size: 16px; line-height: 1.55; margin-bottom: 22px;
  }
  body.page-id-92 .awt-hero-content > .wp-block-buttons {
    order: 2; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    margin: 0 0 24px; width: 100%;
  }
  body.page-id-92 .awt-hero-content > p:not(:first-of-type) { order: 3; margin-top: 12px; }
  body.page-id-92 .awt-hero-content .wp-block-button { width: 100%; }
  body.page-id-92 .awt-hero-content .wp-block-button__link {
    display: flex; justify-content: center; align-items: center; min-height: 50px;
    width: 100%; padding: 13px 18px; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1.4;
  }
  body.page-id-92 .awt-hero-content .is-style-fill .wp-block-button__link { background: #3b8530; color: #fff; }
  body.page-id-92 .awt-hero-content .is-style-outline .wp-block-button__link { border: 1px solid #575869 !important; color: #f4f3fa; background: transparent; }
  body.page-id-92 .awt-trust { padding: 28px 24px !important; }
  body.page-id-92 .awt-trust .trust-strip-grid { gap: 22px 16px !important; }
  body.page-id-92 .awt-trust p { margin: 0; font-size: 12px; line-height: 1.5; color: #6a687c; }
  body.page-id-92 .awt-trust p:first-child { margin-bottom: 4px; font-size: 15px; color: #49447a; }
  body.page-id-92 .entry-content > :is(.awt-services,.awt-areas,.awt-next-step,.awt-story,.awt-visit,.awt-reviews,.awt-faq,.awt-final) {
    padding: 48px 24px !important; margin-block: 0;
  }
  body.page-id-92 :is(.awt-services,.awt-areas,.awt-next-step,.awt-story,.awt-visit,.awt-reviews,.awt-faq,.awt-final) h2 {
    font-size: 29px; line-height: 1.17; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 18px;
  }
  body.page-id-92 :is(.awt-services,.awt-areas,.awt-next-step,.awt-story,.awt-visit,.awt-reviews,.awt-faq) p { font-size: 15px; line-height: 1.65; }
  /* Match approved slate copy despite host-injected section contrast colors. */
  body.page-id-92 :is(.awt-areas,.awt-next-step,.awt-visit,.awt-reviews,.awt-faq) p:not(.has-text-color) { color: #334155; }
  body.page-id-92 .awt-services > p { color: #666477; text-align: left; margin-bottom: 28px; }
  body.page-id-92 .awt-services > h2 { text-align: left; color: #3b3c84; }
  body.page-id-92 .awt-services :is(.wp-block-columns,.wp-block-group) { padding: 0 !important; gap: 16px; margin-block: 16px 0; }
  body.page-id-92 .awt-services .awt-service-card {
    padding: 24px !important; border: 1px solid #e7e5ef; border-radius: 14px;
    background: #fff; margin: 0; width: 100%; box-shadow: none;
  }
  body.page-id-92 .awt-service-card h3 { font-size: 24px; line-height: 1.2; margin-bottom: 12px; color: #34315f; }
  body.page-id-92 .awt-service-card p { color: #646170; margin-bottom: 20px; }
  body.page-id-92 .awt-service-card .wp-block-button { width: 100%; }
  body.page-id-92 .awt-service-card .wp-block-button__link {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px;
    font-size: 13px; line-height: 1.4; border-radius: 8px; padding: 12px 14px; text-align: left;
  }
  body.page-id-92 .awt-service-card .wp-block-button__link::after { content: "↗"; margin-left: 10px; font-size: 18px; }
  body.page-id-92 :is(.awt-areas,.awt-next-step,.awt-visit,.awt-reviews,.awt-final) .wp-block-group { padding: 0 !important; }
  body.page-id-92 :is(.awt-areas,.awt-next-step,.awt-reviews) .wp-block-columns { gap: 18px; }
  body.page-id-92 :is(.awt-areas,.awt-next-step,.awt-reviews) .wp-block-column { padding: 24px !important; border-radius: 12px; }
  body.page-id-92 :is(.awt-areas,.awt-next-step,.awt-visit,.awt-reviews) h3 { font-size: 22px; line-height: 1.25; }
  body.page-id-92 :is(.awt-areas,.awt-next-step,.awt-story,.awt-visit,.awt-reviews,.awt-final) .wp-block-button__link {
    min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 16px; line-height: 1.4; border-radius: 9px;
  }
  body.page-id-92 .awt-faq details { border-bottom: 1px solid #e2dfeb; padding: 14px 0; margin: 0; }
  body.page-id-92 .awt-faq summary { font-size: 15px; line-height: 1.5; min-height: 44px; padding-block: 10px; }
  body.page-id-92 .awt-final .wp-block-buttons { gap: 12px; }
  body.page-id-92 a:focus-visible, body.page-id-92 summary:focus-visible { outline: 3px solid #3b8530; outline-offset: 3px; }
}

/* Keep existing CF7 page backgrounds inside the viewport; fields stay untouched. */
@media (max-width: 921px) {
  body.ast-plain-container.awt-form-page #content > .ast-container { padding-inline: 0; }
  body.ast-plain-container.awt-form-page .entry-content > :is(.alignfull,.alignwide) {
    width: 100% !important; max-width: 100% !important; margin-inline: 0 !important;
  }
}

/* Restyle the existing Astra footer and its original widgets only on phones. */
@media (max-width: 921px) {
  #colophon { background: #181923; color: #c6c4d2; position: relative; text-align: left; }
  #colophon::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg,#6caa43,#8275b7 65%,transparent); }
  #colophon .site-primary-footer-wrap { background: transparent; padding: 0; border: 0; }
  #colophon .ast-builder-grid-row-container-inner { padding: 0 24px; width: 100%; box-sizing: border-box; max-width: 580px; margin: auto; }
  #colophon .site-primary-footer-inner-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 24px; padding: 42px 0 34px; align-items: start; }
  #colophon .site-primary-footer-inner-wrap { width: 100%; }
  #colophon .site-footer-section { text-align: left; margin: 0; padding: 0; min-width: 0; }
  #colophon .footer-widget-area-inner { margin: 0; padding: 0; text-align: left; }
  #colophon .widget { margin: 0; padding: 0; }
  #colophon p { font: 400 14px/1.65 Roboto,sans-serif; color: #c6c4d2 !important; margin: 0; }
  #colophon a { color: #e6e3ef !important; text-decoration: none; font-weight: 400; }
  #colophon a:focus-visible { outline: 3px solid #96c778; outline-offset: 4px; }
  #colophon h3 { font: 600 11px/1.5 Roboto,sans-serif; text-transform: uppercase; letter-spacing: .13em; color: #ada5c9 !important; margin: 0 0 14px; }
  #colophon .site-footer-primary-section-1 { grid-column: 1 / -1; padding: 0 0 30px; border-bottom: 1px solid #ffffff21; }
  #colophon .awt-footer-logo { display: block !important; width: 220px; height: auto; filter: invert(1); margin: 0 0 20px; }
  #colophon #block-3 h3 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #colophon #block-4 { margin-bottom: 24px; }
  #colophon #block-4 p { font-size: 14px; max-width: 42ch; }
  #colophon #block-6::before { content: 'VISIT OUR PEORIA SHOP'; display: block; color: #ada5c9; font: 600 10px/1.5 Roboto,sans-serif; letter-spacing: .13em; margin-bottom: 7px; }
  #colophon #block-6 p { color: #eceaf1 !important; font-size: 15px; }
  #colophon #block-7 { margin-top: 12px; }
  #colophon #block-7 a { display: inline-flex; align-items: center; min-height: 44px; font: 400 24px/1.3 'Roboto Condensed',sans-serif; letter-spacing: -.015em; }
  #colophon .site-footer-primary-section-2 { grid-column: 1 / -1; }
  #colophon .site-footer-primary-section-2 aside { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  #colophon #block-8 { grid-column: 1 / -1; }
  #colophon .site-footer-primary-section-2 a { display: flex; align-items: center; min-height: 48px; line-height: 1.45; padding: 8px 0; }
  #colophon #block-14 { display: flex; align-items: center; min-height: 48px; padding: 8px 0; }
  #colophon .site-footer-primary-section-3 { grid-column: 1 / -1; grid-row: 2; padding-bottom: 28px; border-bottom: 1px solid #ffffff21; }
  #colophon .site-footer-primary-section-3 aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  #colophon :is(#block-17,#block-19,#block-20,#block-23) { grid-column: 1 / -1; }
  #colophon :is(#block-19,#block-20) a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
  #colophon #block-19 a { background: #467f31; color: #fff !important; margin-bottom: 10px; }
  #colophon #block-20 a { border: 1px solid #6a647b; margin-bottom: 14px; }
  #colophon :is(#block-19,#block-20) a::after { content: '↗'; font-size: 18px; }
  #colophon :is(#block-21,#block-22,#block-23) a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  #colophon .site-footer-primary-section-4 { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #ffffff21; }
  #colophon .site-footer-primary-section-4 aside { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px 16px; }
  #colophon #block-24 { grid-column: 1 / -1; }
  #colophon :is(#block-26,#block-32,#block-27) { grid-column: span 2; }
  #colophon :is(#block-28,#block-29,#block-30,#block-31) { grid-column: span 3; }
  #colophon :is(#block-26,#block-32,#block-27) a { display: flex; align-items: center; min-height: 44px; }
  #colophon #block-32 a { text-transform: capitalize; }
  #colophon .wp-block-social-links { margin: 0; padding: 0; display: block; }
  #colophon .wp-social-link { background: none; margin: 0; padding: 0; border-radius: 0; }
  #colophon .wp-social-link a { display: flex; gap: 8px; align-items: center; padding: 0; min-height: 44px; font: 400 13px/1.5 Roboto,sans-serif; }
  #colophon .wp-social-link svg { width: 17px; height: 17px; fill: #a9a2c3; }
  #colophon .wp-block-social-link-label { font: inherit; font-size: 13px !important; margin: 0; padding: 0; }
  #colophon .site-below-footer-wrap { background: transparent; border: 0; padding: 0; }
  #colophon .site-below-footer-inner-wrap { display: block; border-top: 1px solid #ffffff21; padding: 24px 0 28px; }
  #colophon .ast-footer-copyright { display: block; margin: 0; text-align: left; }
  #colophon .ast-footer-copyright p { color: #a6a1b6 !important; font-size: 12px; line-height: 1.8; }
  #colophon .ast-footer-copyright a { text-decoration: underline; text-underline-offset: 3px; color: #c6c0d9 !important; }
}

/* Portrait tablets share the approved mobile language without narrow columns. */
@media (min-width: 768px) and (max-width: 921px) {
  body.page-id-92 .awt-home-hero > .wp-block-cover__image-background { height: 320px; }
  body.page-id-92 .awt-home-hero > .wp-block-cover__background { height: 340px; }
  body.page-id-92 .awt-home-hero .awt-hero-content { padding-top: 310px !important; max-width: 680px; }
  body.page-id-92 .awt-trust .trust-strip-grid { flex-wrap: wrap !important; }
  body.page-id-92 .awt-trust .trust-strip-grid > .wp-block-column { flex: 0 0 calc(50% - 8px) !important; }
  body.page-id-92 :is(.awt-services,.awt-areas,.awt-next-step,.awt-reviews) .wp-block-columns {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px;
  }
  body.page-id-92 :is(.awt-services,.awt-areas,.awt-next-step,.awt-reviews) .wp-block-columns > .wp-block-column:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #colophon .ast-builder-grid-row-container-inner { max-width: 680px; }
}

