/* AMS — polish additions on top of styles.css.
   Hero split layout, marquee, carousel, parallax cards, photo service cards,
   filter tabs, FAQs, success state, map placeholder, animated header, page-hero actions.
*/

/* ───────── Header — sticky shrink + animated underline ───────── */
.ams-header { transition: padding 0.25s ease, background 0.25s ease; }
.ams-header.is-shrunk .ams-header-inner { padding-top: 10px; padding-bottom: 10px; }
.ams-header.is-shrunk .ams-logo img { height: 88px; transition: height 0.25s ease; }
.ams-logo img { transition: height 0.25s ease; height: 88px !important; }
.ams-header.is-shrunk .ams-logo img { height: 88px !important; }

.ams-nav-link { overflow: visible; }
.ams-nav-underline {
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--ams-orange);
  transition: right 0.32s cubic-bezier(0.22,1,0.36,1);
}
.ams-nav-link:hover .ams-nav-underline,
.ams-nav-link.is-active .ams-nav-underline { right: 0; }
.ams-nav-link.is-active::after { display: none; } /* replaced by animated underline */

/* ───────── Split hero ───────── */
.ams-hero-split { padding: 96px 0 112px; }
.ams-hero-split .ams-hero-grid {
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}
.ams-hero-photo {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 600px;
  align-items: stretch;
}
.ams-hero-photo-main {
  margin: 0;
  grid-row: 1 / 3;
  grid-column: 1 / 2;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  height: 100%;
}
.ams-hero-photo-main { aspect-ratio: auto; }
.ams-hero-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.ams-hero-photo-main figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  width: 100%;
}
.ams-hero-photo-tag {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ams-white);
  background: var(--ams-orange);
  padding: 5px 10px;
  border-radius: 2px;
}
.ams-hero-photo-card {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  margin: 0;
  min-height: 0;
}
.ams-hero-photo-card figure,
.ams-hero-photo-card-b figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  height: 100%;
  width: 100%;
}
.ams-hero-photo-card img,
.ams-hero-photo-card-b img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ams-hero-photo-card-b {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  margin: 0;
  position: relative;
  min-height: 0;
}
.ams-hero-photo-card-b figure figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  width: 100%;
}
.ams-hero-photo-tag-dark { background: var(--ams-black); }
.ams-hero-photo-stat {
  position: absolute;
  right: -18px; top: -18px;
  background: var(--ams-orange);
  color: var(--ams-white);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 2px;
  border: 3px solid var(--ams-black);
  z-index: 4;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.ams-hero-photo-stat strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--ams-white);
  letter-spacing: -0.01em;
  line-height: 1;
}
.ams-hero-photo-stat span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ams-white);
  opacity: 0.95;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

/* Parallax wrappers shouldn't add layout */
.ams-parallax-wrap, .ams-parallax-inner { display: contents; }
.ams-hero-photo .ams-parallax-wrap { display: block; }
.ams-hero-photo .ams-parallax-wrap.ams-hero-photo-card { display: block; }
.ams-hero-photo .ams-parallax-inner { display: block; }

/* ───────── About — capability lists (battery brands + roof types) ───────── */
.ams-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ams-capability {
  background: var(--ams-white);
  border: 1px solid var(--ams-gray-200);
  border-top: 3px solid var(--ams-orange);
  padding: 32px;
}
.ams-capability-eyebrow {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ams-orange);
  margin-bottom: 18px;
}
.ams-capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ams-capability-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ams-gray-200);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ams-black);
}
.ams-capability-list li:nth-last-child(-n+2) { border-bottom: 0; }

/* ───────── About — working with us strip ───────── */
.ams-workstrip {
  background: var(--ams-soft);
  border-top: 1px solid var(--ams-gray-200);
  border-bottom: 1px solid var(--ams-gray-200);
  padding: 36px 0;
}
.ams-workstrip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ams-workstrip-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
}
.ams-workstrip-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ams-orange);
}
.ams-workstrip-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ams-black);
  letter-spacing: -0.005em;
}
.ams-workstrip-sep {
  width: 1px;
  height: 36px;
  background: var(--ams-gray-200);
}
@media (max-width: 980px) {
  .ams-capability-grid { grid-template-columns: 1fr; }
  .ams-workstrip-sep { display: none; }
}
.ams-section-glow { position: relative; overflow: hidden; isolation: isolate; }
.ams-section-glow > .ams-container { position: relative; z-index: 1; }
.ams-section-glow-bg {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.ams-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.ams-glow-a {
  width: 520px; height: 520px;
  left: -8%; top: -10%;
  background: radial-gradient(circle, rgba(240,127,33,0.55) 0%, rgba(240,127,33,0.0) 70%);
  animation: ams-glow-drift-a 22s ease-in-out infinite alternate;
}
.ams-glow-b {
  width: 640px; height: 640px;
  right: -10%; top: 35%;
  background: radial-gradient(circle, rgba(240,127,33,0.32) 0%, rgba(240,127,33,0.0) 70%);
  animation: ams-glow-drift-b 28s ease-in-out infinite alternate;
}
.ams-glow-c {
  width: 380px; height: 380px;
  left: 38%; bottom: -12%;
  background: radial-gradient(circle, rgba(255,182,99,0.22) 0%, rgba(255,182,99,0.0) 70%);
  animation: ams-glow-drift-c 18s ease-in-out infinite alternate;
}
.ams-glow-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: 0.6;
}
@keyframes ams-glow-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
@keyframes ams-glow-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-50px, -25px, 0) scale(0.95); }
}
@keyframes ams-glow-drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(20px, -30px, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .ams-glow-a, .ams-glow-b, .ams-glow-c { animation: none; }
}
.ams-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--ams-orange);
  font-size: 16px;
  letter-spacing: 1px;
}
.ams-shell .ams-stars,
.ams-shell .ams-stars span,
.ams-shell .ams-section-dark .ams-stars,
.ams-shell .ams-section-dark .ams-stars span,
.ams-shell .ams-hero .ams-stars,
.ams-shell .ams-hero .ams-stars span,
.ams-shell .ams-review .ams-stars,
.ams-shell .ams-review .ams-stars span { color: #F07F21 !important; }

/* ───────── Marquee ───────── */
.ams-marquee-section {
  background: var(--ams-black);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  overflow: hidden;
}
.ams-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ams-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation-name: ams-marquee-scroll;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  width: max-content;
}
.ams-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  text-transform: uppercase;
}
.ams-marquee-dot { color: var(--ams-orange); font-size: 8px; }
@keyframes ams-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ───────── Carousel ───────── */
.ams-carousel { position: relative; }
.ams-carousel-viewport { overflow: hidden; }
.ams-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}
.ams-carousel-slide { flex: 0 0 100%; min-width: 0; padding: 4px; }
.ams-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.ams-carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ams-carousel-dot.is-active { background: var(--ams-orange); transform: scale(1.3); }
.ams-carousel-dot:hover { background: rgba(255,255,255,0.5); }

.ams-review-large {
  padding: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--ams-orange);
}
.ams-review-large blockquote {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.32;
  margin: 16px 0 24px;
  color: var(--ams-white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ───────── Photo service cards (Home) ───────── */
.ams-service-card-photo .ams-service-thumb { position: relative; }
.ams-service-corner {
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 44px;
  background: var(--ams-orange);
  color: var(--ams-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.2s;
}
.ams-service-card-photo:hover .ams-service-corner {
  transform: scale(1.1);
  background: #ff8b30;
}

/* ───────── Filter tabs ───────── */
.ams-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--ams-gray-100);
  border-radius: 2px;
  width: fit-content;
}
.ams-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 10px 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ams-black);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.18s;
}
.ams-filter-tab:hover { background: rgba(0,0,0,0.06); }
.ams-filter-tab.is-active {
  background: var(--ams-black);
  color: var(--ams-white);
}
.ams-filter-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0,0,0,0.08);
  color: var(--ams-black);
}
.ams-filter-tab.is-active .ams-filter-count {
  background: var(--ams-orange);
  color: var(--ams-white);
}
.ams-filter-pane {
  animation: ams-fade-in 0.42s cubic-bezier(0.22,1,0.36,1);
}
@keyframes ams-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ───────── Form success ───────── */
.ams-form-success {
  text-align: center;
  padding: 56px 36px;
}
.ams-success-check { display: flex; justify-content: center; margin-bottom: 20px; }
.ams-success-circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: ams-stroke 0.7s cubic-bezier(0.65,0,0.45,1) forwards;
}
.ams-success-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: ams-stroke 0.5s 0.5s cubic-bezier(0.65,0,0.45,1) forwards;
}
@keyframes ams-stroke {
  to { stroke-dashoffset: 0; }
}
.ams-success-h {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 8px;
}
.ams-form-success p { font-size: 16px; margin-bottom: 24px; color: #1a1a1a; }
.ams-form-success .ams-form-actions { justify-content: center; }

/* ───────── Map (real Google embed) ───────── */
.ams-map {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
  border: 2px solid var(--ams-black);
}
.ams-map-real iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.ams-map-legend {
  position: absolute;
  left: 24px; bottom: 24px;
  background: var(--ams-white);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid var(--ams-orange);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 2;
}
.ams-map-legend strong {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ams-black);
}
.ams-map-legend span { font-size: 13px; color: var(--ams-black); }

/* ───────── Hero actions on light page hero ───────── */
.ams-page-hero .ams-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}

/* ───────── Mobile responsive — polish additions ───────── */
@media (max-width: 980px) {
  /* Force a flat single-column stack on mobile so the three hero photos
     render in DOM order: main (19.80 kW) → team-rooftop → sal-enphase.
     Desktop uses an asymmetric 2-col grid; on mobile we drop grid entirely
     and let flex column do the stacking — that way no child can be pinned
     to grid-row/grid-column 2/3 (which previously created a phantom second
     column and pushed the main photo behind the two cards). */
  .ams-hero-photo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: auto;
    min-height: 0;
  }
  .ams-hero-photo-main,
  .ams-hero-photo-card,
  .ams-hero-photo-card-b {
    grid-row: auto;
    grid-column: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  /* team-rooftop-cleaning-pole.jpg has the panels in the lower portion
     of the frame. Use a less-wide 4:3 container and bias the crop
     toward the bottom so the panels stay in frame. */
  .ams-hero-photo-card { aspect-ratio: 4 / 3; }
  .ams-hero-photo-card img { object-position: center 80%; }
  /* sal-enphase-portrait.jpg is portrait-oriented — give it a portrait
     container on mobile so object-fit: cover doesn't crop his head.
     Bias the crop toward the top as a belt-and-suspenders for any
     remaining overflow. */
  .ams-hero-photo-card-b { aspect-ratio: 4 / 5; }
  .ams-hero-photo-card-b img { object-position: center top; }
  .ams-hero-photo-main img,
  .ams-hero-photo-card img,
  .ams-hero-photo-card-b img,
  .ams-hero-photo-card figure,
  .ams-hero-photo-card-b figure { height: 100%; }
  .ams-hero-photo-stat {
    grid-row: auto;
    grid-column: auto;
    right: 10px;
    top: 10px;
    padding: 10px 12px;
    border-width: 2px;
  }
  .ams-hero-photo-stat strong { font-size: 20px; }
  .ams-hero-photo-stat span { font-size: 10px; }
  .ams-review-large { padding: 28px; }
  .ams-map { aspect-ratio: 4/3; }
}

/* ────────── Hero copy: more breathing room between eyebrow / title / lede / buttons ────────── */
.ams-hero-copy .ams-eyebrow { margin-bottom: 16px; }
.ams-hero-copy .ams-hero-title { margin: 0 0 36px; }
.ams-hero-copy .ams-hero-lede { margin-bottom: 40px; }
.ams-hero-copy .ams-hero-actions { margin-bottom: 64px; }
.ams-hero-copy .ams-hero-actions .ams-btn { margin-right: 4px; }
@media (max-width: 600px) {
  .ams-hero-copy .ams-eyebrow { margin-bottom: 14px; }
  .ams-hero-copy .ams-hero-title { margin: 0 0 28px; }
  .ams-hero-copy .ams-hero-lede { margin-bottom: 32px; }
  .ams-hero-copy .ams-hero-actions { margin-bottom: 44px; }
}

/* ────────── Mobile polish pass — header CTA + dropdown nav + stacking fixes ────────── */

/* Services dropdown — desktop */
.ams-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ams-nav-link-trigger {
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.85;
  position: relative;
  transition: opacity 0.15s;
}
.ams-nav-link-trigger:hover,
.ams-nav-link-trigger.is-active { opacity: 1; }
.ams-nav-caret {
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease;
  opacity: 0.85;
}
.ams-nav-dropdown.is-open .ams-nav-caret { transform: rotate(180deg); }
.ams-nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--ams-black);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.22s cubic-bezier(0.22,1,0.36,1);
  z-index: 60;
}
.ams-nav-dropdown.is-open .ams-nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ams-nav-menu-link {
  display: block;
  padding: 11px 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.ams-nav-menu-link:hover {
  background: rgba(240,127,33,0.14);
  color: var(--ams-white);
}
.ams-nav-menu-link.is-active { color: var(--ams-orange); }

/* Hover-open the dropdown on devices that can hover (desktop pointers) */
@media (hover: hover) and (pointer: fine) {
  .ams-nav-dropdown:hover .ams-nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .ams-nav-dropdown:hover .ams-nav-caret { transform: rotate(180deg); }

  /* Invisible "hover bridge" between the trigger and the menu so the
     menu doesn't snap shut when the cursor crosses the 14px gap. The
     pseudo is part of .ams-nav-dropdown, so hovering it counts as
     hovering the wrapper and keeps :hover alive on the trigger. */
  .ams-nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 18px;
  }
}

/* Desktop header: logo left, nav centered, CTA right */
@media (min-width: 981px) {
  .ams-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
  }
  .ams-logo { justify-self: start; }
  .ams-nav {
    justify-self: center;
    margin-left: 0;
    gap: 32px;
  }
  .ams-header-cta {
    justify-self: end;
    margin-left: 0;
  }
}

/* Mobile-only / desktop-only CTA labels */
.ams-header-cta-short { display: none; }
.ams-header-cta-full { display: inline; }

/* Mobile burger menu — section header + sub-link indent */
.ams-mobile-section {
  display: block;
  padding: 16px 0 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ams-orange);
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 6px;
}
.ams-mobile-nav .ams-mobile-section:first-child { border-top: 0; margin-top: 0; padding-top: 4px; }
.ams-mobile-sublink { padding-left: 14px; }

/* ----- Mobile header restructure (≤980px): logo | CTA centered | burger ----- */
@media (max-width: 980px) {
  .ams-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 10px;
    padding: 8px 18px;
    align-items: center;
  }
  .ams-logo { justify-self: start; line-height: 0; }
  .ams-logo img { height: 64px; transition: height 0.18s; }
  .ams-header.is-shrunk .ams-logo img { height: 52px; }

  /* Override styles.css `.ams-header-cta { display: none }` at this breakpoint */
  .ams-header-cta {
    display: inline-flex;
    justify-self: center;
    margin: 0;
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
    gap: 8px;
    white-space: nowrap;
  }
  .ams-header-cta-full { display: none; }
  .ams-header-cta-short { display: inline; }

  .ams-burger {
    display: block;
    justify-self: end;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .ams-header-inner { padding: 8px 14px; column-gap: 6px; }
  .ams-header-cta { padding: 9px 12px; font-size: 12px; gap: 6px; }
  .ams-logo img { height: 56px; }
}

/* ----- Hero mobile: enforce a true stack + readable scale ----- */
@media (max-width: 980px) {
  .ams-hero-split { padding: 64px 0 80px; }
  .ams-hero-split .ams-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .ams-hero-split { padding: 48px 0 64px; }
  .ams-hero-grid { gap: 36px; }
  .ams-hero-title { font-size: clamp(34px, 9vw, 48px); }
  .ams-hero-actions { gap: 10px; }
  .ams-hero-actions .ams-btn { width: 100%; justify-content: center; }
  .ams-hero-photo { gap: 12px; }
  .ams-hero-trust { gap: 12px 16px; }
}

/* ----- Trust strip / CTA strip / section heads — mobile readability ----- */
@media (max-width: 980px) {
  .ams-trust-strip-inner { gap: 18px 24px; }
  .ams-trust-strip-inner > div { flex-basis: calc(50% - 12px); }
  .ams-cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 600px) {
  .ams-trust-strip-inner > div { flex-basis: 100%; }
  .ams-cta-strip-actions { width: 100%; }
  .ams-cta-strip-actions .ams-btn { flex: 1 1 auto; justify-content: center; }
  .ams-section-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ams-h2 { font-size: clamp(28px, 7vw, 36px); }
  .ams-page-title { font-size: clamp(34px, 8vw, 48px); }
}

/* Filter tabs — horizontal scroll on phones instead of awkward wrap */
@media (max-width: 600px) {
  .ams-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 8px;
  }
  .ams-filter-tabs::-webkit-scrollbar { display: none; }
  .ams-filter-tab { flex: 0 0 auto; }

  .ams-form-actions { flex-direction: column; align-items: stretch; }
  .ams-form-actions .ams-btn { width: 100%; justify-content: center; }
}
