/*
 * Speedy Sheds — shared site nav & portal strip
 * Based on Jacob's ssm2- design, fonts overridden to Saira Condensed + Roboto.
 * Fixes the hover-gap dropdown bug: gap is now an invisible padding bridge, not a real gap.
 *
 * Owner: Wyatt (styling/icons). Pair fixes here so every page gets them.
 * To roll back: each page also keeps its prior inline nav CSS for now — just remove the
 *   <link href="/assets/css/site.css"> to revert.
 */

/* Inline SVG icons (replaces emoji glyphs in buttons, nav portal, contact cards) */
.ss-icon { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.ss-icon--pin, .ss-icon--phone, .ss-icon--mail, .ss-icon--chat, .ss-icon--check { width: 1em; height: 1em; }
/* When used as the sole child of a sized icon container, scale up to fit nicely */
.ssm2-portal-icon .ss-icon, .contact-method__icon .ss-icon, .ss-light-card__icon .ss-icon, .contact-card__icon .ss-icon { width: 60%; height: 60%; }
/* PNG icons inside icon containers */
.ss-light-card__icon img, .ssm2-portal-icon img, .contact-method__icon img, .contact-card__icon img { width: 65%; height: 65%; object-fit: contain; }

/* Hero photo backdrop — !important needed because per-page inline <style> blocks
   come AFTER this stylesheet in cascade order and override otherwise. The
   inline .hero rules typically have a diagonal black gradient that hides the
   photo if we don't force-override here. */
.hero--has-image { position: relative !important; overflow: hidden !important; background: #040404 !important; }
.hero--has-image .hero__image { position: absolute !important; inset: 0 !important; z-index: 0 !important; pointer-events: none; width: 100%; height: 100%; }
.hero--has-image .hero__image img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 70% 35%; display: block !important; }
.hero--has-image .hero__overlay { position: absolute !important; inset: 0 !important; z-index: 1 !important; background: linear-gradient(to right, rgba(4,4,4,.72) 0%, rgba(4,4,4,.52) 32%, rgba(4,4,4,.22) 60%, rgba(4,4,4,0) 100%) !important; pointer-events: none; }
.hero--has-image > *:not(.hero__image):not(.hero__overlay) { position: relative; z-index: 2; }
@media (max-width: 768px) {
  /* On mobile, vertical gradient (darker bottom) since text now sits over photo full-width */
  .hero--has-image .hero__overlay { background: linear-gradient(180deg, rgba(4,4,4,.32) 0%, rgba(4,4,4,.55) 55%, rgba(4,4,4,.78) 100%); }
  /* Center the photo subject horizontally on portrait viewports so the shed is visible */
  .hero--has-image .hero__image img { object-position: center 30%; }
  /* Force hero typography down so it fits on phones */
  .hero--has-image h1, .hero h1 { font-size: clamp(38px, 10vw, 56px) !important; line-height: .92 !important; letter-spacing: -.025em !important; }
  .hero--has-image .hero__sub, .hero .hero__sub { font-size: 15px !important; line-height: 1.55 !important; max-width: 100% !important; }
  /* Hero credential tag — break tightly and hide separators when they wrap badly */
  .hero__tag { font-size: 11px !important; letter-spacing: .12em !important; gap: 8px !important; }
  .hero__tag-item { padding-right: 8px !important; }
  .hero__tag-item:not(:last-child)::after { height: 10px !important; }
  /* Hero padding — tighter on phones */
  .hero--has-image, .hero { padding: 56px 0 64px !important; min-height: auto !important; }
}
@media (max-width: 480px) {
  /* Extra-tight typography for narrow phones */
  .hero--has-image h1, .hero h1 { font-size: clamp(34px, 11vw, 44px) !important; }
  /* Hide hero tag separators on narrow phones — items wrap cleaner without them */
  .hero__tag-item:not(:last-child)::after { display: none !important; }
  .hero__tag-item { padding-right: 0 !important; }
}

/* ============ UNIVERSAL MOBILE POLISH ============
   Applies across every heroed page so we don't have to fix per-page CSS. */
@media (max-width: 768px) {
  /* Section heads — reduce mammoth typography on small screens */
  .section-head h2, .why__text h2 { font-size: clamp(30px, 7.5vw, 44px) !important; line-height: .94 !important; letter-spacing: -.02em !important; }
  .section-head p, .why__text p { font-size: 15px !important; }
  .section, .products { padding: 56px 0 !important; }

  /* Cards / grids that often need stacking */
  .product-grid, .style-grid, .use-grid, .values-grid, .options-2col, .team-grid, .ss-light-grid, .inventory-grid { grid-template-columns: 1fr !important; }

  /* Container side padding tighter on mobile */
  .container, .products__inner, .why__inner, .hero__inner, .ss-light-strip__inner { width: min(100% - 32px, 1200px) !important; }

  /* Footer — single column with breathing room */
  .ss-footer__grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .ss-footer { padding: 44px 0 100px !important; }
  .ss-footer__brand img { width: 110px !important; }

  /* CTA bands */
  .cta-band { padding: 48px 0 !important; }
  .cta-band h2 { font-size: clamp(28px, 7vw, 40px) !important; }

  /* Stats strip — full-width row with bottom borders, no margin shift */
  .stats { margin-top: 0 !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; width: 100% !important; }
  .stats__item { flex: 1 1 50% !important; min-width: 0 !important; border-right: 1px solid rgba(255,255,255,.08) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; padding: 18px 12px !important; }
  .stats__item:nth-child(2n) { border-right: 0 !important; }
  .stats__item:nth-last-child(-n+2) { border-bottom: 0 !important; }

  /* Why-Speedy-Sheds light section — stack visual under text */
  .why__inner { grid-template-columns: 1fr !important; gap: 30px !important; }
  .why__visual { min-height: 280px !important; }
}

@media (max-width: 480px) {
  /* Stats strip — single column on narrow phones */
  .stats__item { flex: 1 1 100% !important; border-right: 0 !important; }
  .stats__item:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.08) !important; }
}

/* ============ EXTRA MOBILE POLISH (refinement pass) ============ */
@media (max-width: 768px) {
  /* Card body padding — tighten so titles and text don't feel cramped */
  .product-card__body, .style-card__body, .inv-card__body, .team-card__body { padding: 18px !important; }
  .product-card__img, .style-card__img { height: 180px !important; }

  /* Eyebrow text - smaller, less letterspacing on mobile */
  .eyebrow { font-size: 10px !important; letter-spacing: .14em !important; margin-bottom: 8px !important; }

  /* Hero credentials tag - cleaner mobile layout */
  .hero__tag { margin-bottom: 18px !important; }

  /* Buttons - slightly smaller minimums on phones */
  .btn { min-height: 48px !important; font-size: 16px !important; padding: 12px 20px !important; }

  /* Generous breathing room above stats strip on mobile */
  .stats { margin-top: 24px !important; }

  /* Section-head spacing tighter */
  .section-head { margin-bottom: 28px !important; }

  /* Hero subheadline / paragraph margin tighter */
  .hero__sub { margin-bottom: 24px !important; }

  /* CTA grid on hero - stack to single column on phones (already in homepage but ensure universal) */
  .hero__ctas { grid-template-columns: 1fr !important; max-width: 100% !important; gap: 10px !important; margin-bottom: 24px !important; }

  /* Why Speedy Sheds light strip cards — tighter padding */
  .ss-light-card { padding: 18px !important; }
  .ss-light-card h3 { font-size: 18px !important; }
  .ss-light-card p { font-size: 13px !important; }

  /* Footer text smaller, link list tighter */
  .ss-footer__col h4 { margin-bottom: 10px !important; }
  .ss-footer__col ul { gap: 6px !important; }

  /* Inventory filter bar — stack & full width */
  .filter-bar { padding: 14px !important; gap: 10px !important; }

  /* Team grid card photo height */
  .team-card__photo { height: 280px !important; }
}

/* Footer brand icon — overrides per-page inline rules that sized for the old wide logo */
.ss-footer__brand img { width: 60px !important; height: 60px !important; margin-bottom: 14px !important; }

/* Footer social row (under brand tagline) */
.ss-footer__social { display: flex; gap: 16px; margin-top: 18px; align-items: center; }
.ss-footer__social a { display: inline-flex; color: rgba(255,255,255,.55); transition: color .18s ease, transform .18s ease; }
.ss-footer__social a:hover { color: var(--red); transform: translateY(-2px); }
.ss-footer__social svg { width: 22px; height: 22px; display: block; }

/* ============ TOKENS ============
   Locked to the Speedy Sheds brand palette v1.2.
   Reds:    Coral tint, Light red, Speedy red (primary), Deep red, Burgundy
   Accent:  Speedy gold
   Neutrals: Off-white, Charcoal black
*/
:root {
  /* Reds */
  --ss-coral: #F5B5B8;
  --ss-red-light: #E76268;
  --ss-red: #D6212A;           /* Speedy red — primary */
  --ss-red-dark: #AB1A22;       /* Deep red */
  --ss-burgundy: #6F1218;
  --ss-red-glow: rgba(214, 33, 42, .32);

  /* Accent */
  --ss-gold: #E8B13B;           /* Speedy gold */
  --ss-gold-dark: #8A6914;

  /* Neutrals */
  --ss-off-white: #FAFAF9;
  --ss-charcoal: #1C1C1C;
  --ss-black: #070707;
  --ss-white: #FFFFFF;

  /* Brand gradients */
  --ss-grad-ignite: linear-gradient(135deg, #F5B5B8, #D6212A);
  --ss-grad-ember: linear-gradient(135deg, #D6212A, #6F1218);
  --ss-grad-garnet: linear-gradient(135deg, #E76268, #AB1A22);
  --ss-grad-sunrise: linear-gradient(135deg, #F4CD6B, #C98F15);
  --ss-grad-antique: linear-gradient(135deg, #E9C97A, #8A6914);
  --ss-grad-bold: linear-gradient(135deg, #FFD24C, #B8821A);
}

.ssm2-wrapper,
.ssm2-wrapper * { box-sizing: border-box; }

.ssm2-wrapper {
  /* Aliases so existing ssm2 selectors keep working but map to brand tokens. */
  --ssm2-red: var(--ss-red);
  --ssm2-red-dark: var(--ss-red-dark);
  --ssm2-red-glow: var(--ss-red-glow);
  --ssm2-black: var(--ss-black);
  --ssm2-dark: #101010;
  --ssm2-dark2: #171717;
  --ssm2-dark3: #202020;
  --ssm2-white: var(--ss-white);
  --ssm2-muted: rgba(255, 255, 255, .66);
  --ssm2-soft: rgba(255, 255, 255, .46);
  --ssm2-dim: rgba(255, 255, 255, .28);
  --ssm2-line: rgba(255, 255, 255, .1);
  --ssm2-line-red: rgba(214, 33, 42, .32);
  --ssm2-gold: var(--ss-gold);
  /* Fonts: Saira Condensed for display/condensed, Roboto for body. Overriding Jacob's Barlow. */
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ssm2-wrapper a { color: inherit; }
.ssm2-wrapper img { max-width: 100%; display: block; }
.ssm2-wrapper button { font: inherit; }

.ssm2-wrapper .ssm2-condensed {
  font-family: 'Saira Condensed', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

/* ============ NAV BAR ============ */
.ssm2-wrapper .ssm2-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #1a1a1a;
  border-bottom: 3px solid var(--ssm2-red);
  box-shadow: 0 3px 18px rgba(0, 0, 0, .08);
}

.ssm2-wrapper .ssm2-nav__inner {
  width: min(100% - 40px, 1600px);
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.ssm2-wrapper .ssm2-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ssm2-wrapper .ssm2-logo img {
  height: clamp(36px, 4vw, 48px);
  width: auto;
}

.ssm2-wrapper .ssm2-menu-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, .25vw, 5px);
  margin: 0;
  padding: 0;
}

.ssm2-wrapper .ssm2-menu-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ssm2-wrapper .ssm2-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px clamp(8px, 1vw, 16px);
  color: #1a1a1a;
  text-decoration: none;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: clamp(13px, .9vw, 15px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .065em;
  white-space: nowrap;
  border-radius: 7px;
  transition: color .22s ease, background .22s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ssm2-wrapper .ssm2-menu-link:hover,
.ssm2-wrapper .ssm2-menu-item:focus-within > .ssm2-menu-link,
.ssm2-wrapper .ssm2-menu-item.is-open > .ssm2-menu-link {
  color: var(--ssm2-red);
  background: #f7f7f7;
}

.ssm2-wrapper .ssm2-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: .55;
  transition: transform .22s ease, opacity .22s ease;
}

.ssm2-wrapper .ssm2-menu-item:hover .ssm2-caret,
.ssm2-wrapper .ssm2-menu-item:focus-within .ssm2-caret,
.ssm2-wrapper .ssm2-menu-item.is-open .ssm2-caret {
  transform: rotate(225deg);
  margin-top: 3px;
  opacity: 1;
}

/* ============ DROPDOWNS ============
   Bug fix (round 2): the prior fix used translateY animation that slid the
   dropdown DOWN on close, creating a moving gap that broke hover continuity.
   Plus: when the cursor moves diagonally from a narrow button toward a wider
   mega dropdown, it briefly exits the <li>'s narrow column before reaching
   the dropdown. So we use a ::before pseudo on the dropdown that extends its
   hitbox UPWARD into the button area, bridging both vertical and diagonal
   cursor movement.
*/
.ssm2-wrapper .ssm2-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 290px;
  max-width: min(92vw, 760px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-top: 3px solid var(--ssm2-red);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  padding: 18px 22px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Opacity-only transition — no transform animation that could move the
     dropdown away from the cursor mid-hover. */
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 90;
}

/* Invisible hitbox extension UP into the button area + sideways so diagonal
   cursor movement from button to dropdown never leaves the hover zone. */
.ssm2-wrapper .ssm2-dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}

.ssm2-wrapper .ssm2-dropdown--mega {
  width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ssm2-wrapper .ssm2-dropdown--right {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.ssm2-wrapper .ssm2-dropdown--right.ssm2-dropdown--mega {
  width: 640px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssm2-wrapper .ssm2-menu-item:hover > .ssm2-dropdown,
.ssm2-wrapper .ssm2-menu-item:focus-within > .ssm2-dropdown,
.ssm2-wrapper .ssm2-menu-item.is-open > .ssm2-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ssm2-wrapper .ssm2-drop-label {
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--ssm2-red);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 10px;
}

.ssm2-wrapper .ssm2-drop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.ssm2-wrapper .ssm2-drop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: #1a1a1a;
  padding: 8px 10px;
  border-radius: 7px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ssm2-wrapper .ssm2-drop-link:hover,
.ssm2-wrapper .ssm2-drop-link:focus-visible {
  background: rgba(214, 33, 41, .07);
  color: var(--ssm2-red);
  transform: translateX(2px);
  outline: none;
}

.ssm2-wrapper .ssm2-drop-link--premium {
  color: #8b6914;
  background: linear-gradient(90deg, rgba(201, 161, 74, .12), rgba(201, 161, 74, 0));
  border-left: 3px solid var(--ssm2-gold);
  font-weight: 700;
}

/* ============ CTAs IN NAV ============ */
.ssm2-wrapper .ssm2-menu-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ssm2-wrapper .ssm2-nav__phone {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(214, 33, 41, .28);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  white-space: nowrap;
}

.ssm2-wrapper .ssm2-nav__phone:hover { color: var(--ssm2-red); }

.ssm2-wrapper .ssm2-nav__quote {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--ssm2-red);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  box-shadow: 0 10px 24px rgba(214, 33, 41, .28);
  white-space: nowrap;
  transition: background .22s ease, transform .22s ease;
}

.ssm2-wrapper .ssm2-nav__quote:hover {
  background: var(--ssm2-red-dark);
  transform: translateY(-1px);
}

/* ============ MOBILE TOGGLE + DRAWER ============ */
.ssm2-wrapper .ssm2-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
  padding: 0;
}

.ssm2-wrapper .ssm2-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: #111;
  margin: 5px auto;
  transition: transform .22s ease, opacity .22s ease;
}

.ssm2-wrapper.ssm2-mobile-open .ssm2-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ssm2-wrapper.ssm2-mobile-open .ssm2-menu-toggle span:nth-child(2) { opacity: 0; }
.ssm2-wrapper.ssm2-mobile-open .ssm2-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ssm2-wrapper .ssm2-mobile {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 10px 24px 20px;
  background: #fff;
}

.ssm2-wrapper .ssm2-mobile details {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ssm2-wrapper .ssm2-mobile summary,
.ssm2-wrapper .ssm2-mobile > a {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  color: #1a1a1a;
  text-decoration: none;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 15px;
}

.ssm2-wrapper .ssm2-mobile summary::-webkit-details-marker { display: none; }

.ssm2-wrapper .ssm2-mobile a.ssm2-mobile-link {
  display: block;
  padding: 9px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 7px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.ssm2-wrapper .ssm2-mobile a.ssm2-mobile-link:hover {
  background: rgba(214, 33, 41, .07);
  color: var(--ssm2-red);
}

.ssm2-wrapper.ssm2-mobile-open .ssm2-mobile { display: block; }

/* ============ PORTAL STRIP (the 6 SEO tiles below the nav) ============
   Brand off-white (#FAFAF9) on the strip — continues from the white nav
   cleanly without cream tones.
*/
.ssm2-wrapper .ssm2-portal {
  background: var(--ss-off-white);
  color: var(--ss-charcoal);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: 0 clamp(16px, 3vw, 36px);
}

.ssm2-wrapper .ssm2-portal-grid {
  width: min(100%, 1600px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid rgba(0, 0, 0, .07);
  border-right: 1px solid rgba(0, 0, 0, .07);
}

.ssm2-wrapper .ssm2-portal-item {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a1a;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, .07);
  position: relative;
  overflow: hidden;
  transition: background .22s ease, transform .22s ease, color .22s ease;
}

.ssm2-wrapper .ssm2-portal-item:last-child { border-right: 0; }

.ssm2-wrapper .ssm2-portal-item:before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--ssm2-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.ssm2-wrapper .ssm2-portal-item:hover {
  background: #fff;
  color: var(--ssm2-red);
  transform: translateY(-2px);
}

.ssm2-wrapper .ssm2-portal-item:hover:before { transform: scaleX(1); }

.ssm2-wrapper .ssm2-portal-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 33, 41, .09);
  color: var(--ssm2-red);
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-weight: 900;
  font-size: 18px;
}

.ssm2-wrapper .ssm2-portal-title {
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
}

/* ============ MOBILE / TABLET ============ */
@media (max-width: 1120px) {
  .ssm2-wrapper .ssm2-menu-list { display: none; }
  .ssm2-wrapper .ssm2-nav__phone { display: none; }
  .ssm2-wrapper .ssm2-menu-toggle { display: block; }
}

@media (max-width: 760px) {
  .ssm2-wrapper .ssm2-nav__inner { width: min(100% - 24px, 1600px); }
  .ssm2-wrapper .ssm2-portal { overflow: hidden; padding: 0; }
  /* On mobile we only show Sheds (1), Design Center (3), and Find a Dealer (6).
     Hide Premium (2), Inventory (4), Rent-to-Own (5) to keep the bar uncluttered. */
  .ssm2-wrapper .ssm2-portal-grid { grid-template-columns: repeat(3, 1fr); width: 100%; min-width: 0; }
  .ssm2-wrapper .ssm2-portal-item:nth-child(2),
  .ssm2-wrapper .ssm2-portal-item:nth-child(4),
  .ssm2-wrapper .ssm2-portal-item:nth-child(5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ssm2-wrapper * { animation: none !important; transition: none !important; }
}

/* ============ PAGE BASE + FOOTER ============
   Baseline page styles for city-fragment pages that don't have their own
   inline body/footer rules. Standalone pages already define these inline and
   will override these (cascade: their inline rules come later in <head>).
*/
body.ssm2-page {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #070707;
  color: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.ssm2-page img { max-width: 100%; display: block; }

/* Shared footer (used by both city wrappers and any page that wants it) */
.ss-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 56px 0 28px;
  color: rgba(255, 255, 255, .5);
  font-family: 'Roboto', sans-serif;
}

.ss-footer .container {
  width: min(100% - 44px, 1240px);
  margin: 0 auto;
}

.ss-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.ss-footer__brand img { width: 120px; margin-bottom: 14px; }
.ss-footer__tagline { font-size: 13px; color: rgba(255, 255, 255, .4); line-height: 1.65; max-width: 250px; }

.ss-footer__col h4 {
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .4);
  margin: 0 0 14px;
}

.ss-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ss-footer__col a { font-size: 14px; color: rgba(255, 255, 255, .5); text-decoration: none; }
.ss-footer__col a:hover { color: #fff; }

.ss-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .3);
}

@media (max-width: 960px) {
  .ss-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .ss-footer__grid { grid-template-columns: 1fr; }
}

/* ============ LIGHT STRIP SECTIONS ============
   Reuben asked for breaks in the dark theme. A `.ss-light-strip` is an off-white
   band that lives between dark sections to give the page rhythm. Use it for
   trust bars, process steps, stat strips — any "proof" content where light
   contrast helps readability.
   Pair with brand red/gold for accents.
*/
.ss-light-strip {
  background: var(--ss-off-white);
  color: var(--ss-charcoal);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-family: 'Roboto', system-ui, sans-serif;
}

.ss-light-strip__inner {
  width: min(100% - 44px, 1200px);
  margin: 0 auto;
}

.ss-light-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ss-red);
  margin-bottom: 12px;
}

.ss-light-strip__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ss-red);
}

.ss-light-strip h2 {
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.022em;
  color: var(--ss-charcoal);
  margin: 0 0 14px;
}

.ss-light-strip h2 em {
  font-style: normal;
  color: var(--ss-red);
}

.ss-light-strip p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(28, 28, 28, .72);
  max-width: 720px;
  margin: 0 0 16px;
}

/* Card grid inside a light strip (e.g. trust bar, process steps) */
.ss-light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.ss-light-card {
  background: var(--ss-white);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 10px;
  padding: 24px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ss-light-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  border-color: rgba(214, 33, 42, .25);
}

.ss-light-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(214, 33, 42, .08);
  border: 1px solid rgba(214, 33, 42, .18);
  color: var(--ss-red);
  display: grid;
  place-items: center;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 14px;
}

.ss-light-card__icon--gold {
  background: rgba(232, 177, 59, .12);
  border-color: rgba(232, 177, 59, .35);
  color: var(--ss-gold-dark);
}

.ss-light-card h3 {
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ss-charcoal);
  margin: 0 0 8px;
}

.ss-light-card p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(28, 28, 28, .65);
  margin: 0;
}

/* Numbered process variant — replaces the icon with a big red numeral. */
.ss-light-card__num {
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--ss-red);
  line-height: 1;
  margin-bottom: 12px;
  opacity: .9;
}

.ss-light-strip__cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ss-light-strip .ss-light-strip__cta-row a.btn-red {
  background: var(--ss-red);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding: 13px 24px;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, transform .2s ease;
}

.ss-light-strip .ss-light-strip__cta-row a.btn-red:hover {
  background: var(--ss-red-dark);
  transform: translateY(-1px);
}

.ss-light-strip .ss-light-strip__cta-row a.btn-ghost {
  background: transparent;
  color: var(--ss-charcoal);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 5px;
  padding: 12px 22px;
  font-family: 'Saira Condensed', Impact, sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
  transition: background .2s ease, border-color .2s ease;
}

.ss-light-strip .ss-light-strip__cta-row a.btn-ghost:hover {
  background: rgba(0, 0, 0, .04);
  border-color: var(--ss-red);
  color: var(--ss-red);
}

/* ============ MOBILE POLISH PASS 3 (Reuben review)
   Fixes the "zigzag" button layout in CTA bands when 3+ buttons wrap,
   collapses stat strips cleanly, ensures mobile sticky bar doesn't
   cover content, tightens spec grids on the Why Choose Us page,
   and patches a few page-specific overflow issues.
============ */
@media (max-width: 768px) {
  /* CTA band button groups — most use inline flex with wrap that splits 3 buttons
     into 2+1. Force single-column stack with full-width buttons on phones. */
  .cta-band > .container > div,
  .cta-band .btn-group,
  .cta-band [style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 10px !important;
  }
  .cta-band .btn { width: 100% !important; justify-content: center !important; }

  /* Hero CTA rows — same flex-wrap split. Stack single column on phones. */
  .hero__ctas { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  .hero__ctas .btn { width: 100% !important; justify-content: center !important; }

  /* Stat strips (the 3-column ones on shed style pages) — stack cleanly. */
  .stat-strip { flex-wrap: wrap !important; }
  .stat-strip__item { flex: 1 1 50% !important; min-width: 0 !important; border-right: 1px solid rgba(255,255,255,.08) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; padding: 16px 12px !important; }
  .stat-strip__item:nth-child(2n) { border-right: 0 !important; }
  .stat-strip__item:last-child { flex-basis: 100% !important; border-bottom: 0 !important; }

  /* Why Choose Us page — three-column spec grid was already stacking at 960px
     (via inline page CSS) but force here too for safety. Tighten internal padding. */
  .spec-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .spec-card { padding: 22px !important; }
  .spec-card h3 { font-size: 24px !important; }

  /* Why Choose Us pillars grid */
  .pillars-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .pillar { padding: 22px !important; }

  /* Horizontal timeline on About page — narrower cards on phones so they don't feel huge */
  .timeline-h-item { flex-basis: 240px !important; padding: 56px 18px 18px !important; }
  .timeline-h::before { top: 70px !important; }
  .timeline-h-item::before { font-size: 22px !important; }

  /* Mobile sticky CTA bar — ensure 80px clearance so content above isn't hidden.
     The page-level "padding-bottom:72px" doesn't account for safe-area on newer iOS. */
  body:has(.mobile-cta-bar) { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
  .mobile-cta-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }

  /* Contact page method cards — left-icon row, allow text to wrap without pushing right */
  .contact-method { gap: 12px !important; }
  .contact-method__value { font-size: 17px !important; word-break: break-word !important; }

  /* Footer brand tagline doesn't need a max-width on phones */
  .ss-footer__tagline { max-width: 100% !important; }

  /* Warranty page two-card grid stacks cleanly */
  .warranty-grid { grid-template-columns: 1fr !important; }
  .warranty-card__years { font-size: 56px !important; }

  /* Generic .btn--outline and .btn--red inside any centered-flex container should stretch */
  section.cta-band a.btn,
  section.cta-band button.btn { min-height: 50px !important; }

  /* Stats num — keep readable on phones. The about page hero stat that uses MPH
     was overflowing into label area on small screens. */
  .stats__num { font-size: clamp(22px, 6.5vw, 32px) !important; }
  .stats__label { font-size: 10px !important; }
}

@media (max-width: 480px) {
  /* Stat strip — full single column on narrow phones */
  .stat-strip__item { flex: 1 1 100% !important; border-right: 0 !important; }
  .stat-strip__item:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.08) !important; }

  /* Tighten spec card list typography */
  .spec-card ul li { font-size: 13px !important; }
  .spec-card h4 { font-size: 12px !important; }

  /* Timeline-h on very narrow screens — cards take more of the viewport */
  .timeline-h-item { flex-basis: calc(100vw - 80px) !important; max-width: 320px !important; }
}
