/* ══════════════════════════════════════════════════════════════
   Capital Septic Supply — MOBILE Layout
   Source: mobile.css  |  Version: 2.0.0  |  2026-06-03
   ──────────────────────────────────────────────────────────────
   Loaded via: <link media="(max-width: 768px)">

   ✅  STATUS: PRODUCTION — Mockup Approved
   ──────────────────────────────────────────────────────────────
   Based on 8-screen mobile mockup approved by user.
   Features: Bottom nav bar, compact header with cart icon,
   optimized hero, responsive cards, and mobile-first layout.
   ══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   PAGE WRAPPER — Mobile (full-width, no side margins)
   ═══════════════════════════════════════════════════════════ */
.page-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 80px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: #f8fafc; /* Match mockup light background */
}


/* ═══════════════════════════════════════════════════════════
   HEADER — Seamless navy bar (flows into hero)
   NO bottom radius — hero continues below
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background: #243146; /* Match mockup exact navy */
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "hamburger logo cart";
  min-height: 56px;
  /* Respect iPhone Notch / Dynamic Island */
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
  align-items: center;
  gap: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1); /* Make logo white */
}

/* Header actions — completely hidden on mobile */
.header-actions {
  display: none;
}

/* Cart icon on header — right side */
.cart-header-icon {
  display: none;
}

/* Mobile cart link (right of header) */
.cart-link {
  grid-area: cart;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
}

.cart-link svg {
  width: 22px;
  height: 22px;
}

.cart-link .cart-badge-count,
.cart-link .bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--brand-red, #a01530);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ═══════════════════════════════════════════════════════════
   NAV MENU — Full-screen overlay (mobile)
   ═══════════════════════════════════════════════════════════ */
.nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 60px 24px;
  border-radius: 0;
  max-width: none;
  height: auto;
}

.nav-menu.open {
  display: flex;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  padding: 16px 24px;
  height: auto;
  border-radius: var(--radius-pill);
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-menu a.active {
  background: var(--brand-red);
  color: var(--text-white);
  font-weight: 800;
}


/* ═══════════════════════════════════════════════════════════
   HAMBURGER — Left side, white bars on navy
   ═══════════════════════════════════════════════════════════ */
.hamburger {
  display: flex;
  grid-area: hamburger;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-mid);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Seamless navy block with header
   Straight cut at bottom to allow cards to overlap
   ═══════════════════════════════════════════════════════════ */
.hero-outer {
  margin-top: 0;
  background: #243146;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.hero-inner {
  position: relative;
  min-height: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0; /* Straight edge per mockup */
  box-shadow: none;
  padding: 32px 28px 70px; /* Extra bottom padding for overlap */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  overflow: visible;
}

/* Subtle glow removed to keep solid navy look of mockup */
.hero-inner::before {
  display: none;
}

/* No bottom bar */
.hero-inner::after {
  display: none;
}

/* ─── Hero Copy ─── */
.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

/* Hide the label chip on mobile */
.hero-label {
  display: none;
}

.hero-title {
  margin: 0 auto 12px; /* Fixed: 'auto' horizontally centers the block */
  max-width: 280px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.hero-description {
  max-width: 300px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

/* Buttons — single centered red CTA */
.hero-buttons {
  display: flex;
  flex-direction: row; /* Side by side looks premium */
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.hero-button {
  width: auto;
  height: auto !important; /* Override shared.css fixed height */
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.hero-button.primary {
  background: #a01530 !important; /* Brand Red */
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important; /* Nice pill shape */
  padding: 12px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(160, 21, 48, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-button.primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(160, 21, 48, 0.25) !important;
}

/* Secondary Button — Outlined Pill matching Primary */
.hero-button.secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 20px !important; /* Same pill shape */
  padding: 10.5px 28px !important; /* Compensate for border */
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  box-shadow: none !important;
  transition: background 0.2s, transform 0.2s;
}

.hero-button.secondary:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ─── Product Card — HIDDEN on mobile hero ─── */
.product-card {
  display: none;
}


/* ═══════════════════════════════════════════════════════════
   FEATURED PRODUCT BANNER — Styled as Mockup Category Cards
   ═══════════════════════════════════════════════════════════ */
.featured-banner {
  margin-top: -45px; /* OVERLAP the navy background */
  padding: 0 20px;
  background: none;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

.banner-section-title {
  display: none; /* Hide title to match mockup */
}

.banner-slides {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.banner-slide {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  border-radius: 14px; /* Mockup specified 14px */
  padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(16, 32, 55, 0.08);
  opacity: 1 !important;
  transition: none;
}

.banner-product-image {
  display: none; /* Hide large product images */
}

.banner-product-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.banner-product-copy h2 {
  font-size: 16px;
  font-weight: 700;
  color: #243146;
  margin: 0;
}

/* Hide extra metadata */
.banner-desc,
.banner-cat,
.banner-price {
  display: none !important;
}

/* Make CTA look like a right chevron */
.banner-cta {
  font-size: 0 !important; /* Hide text */
  background: none;
  padding: 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-cta svg {
  width: 22px;
  height: 22px;
  display: none; /* Hide original cart icon */
}

/* Inject right arrow icon */
.banner-cta::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2.5px solid #cbd5e1;
  border-right: 2.5px solid #cbd5e1;
  transform: rotate(45deg);
}

.banner-controls {
  display: none !important; /* Hide slider dots/arrows */
}

/* ═══════════════════════════════════════════════════════════
   MOCKUP CATEGORIES (Mobile Only)
   ═══════════════════════════════════════════════════════════ */
.mobile-categories-mockup {
  margin-top: -45px; /* OVERLAP the navy background */
  padding: 0 20px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-card {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(16, 32, 55, 0.08);
  text-decoration: none;
  transition: transform 0.2s;
}

.mockup-card:active {
  transform: scale(0.98);
}

.mockup-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  width: 24px;
  height: 24px;
}

.mockup-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #243146;
  margin: 0;
  flex-grow: 1;
}

.mockup-card-arrow {
  width: 8px;
  height: 8px;
  border-top: 2.5px solid #cbd5e1;
  border-right: 2.5px solid #cbd5e1;
  transform: rotate(45deg);
}

/* Hide the old featured banner on mobile to avoid duplicates */
.featured-banner {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════
   INNER PAGES — Mobile Layouts
   ═══════════════════════════════════════════════════════════ */

/* ─── Page Hero Mobile ─── */
.page-hero {
  padding: 36px 20px 28px;
  border-radius: 0 0 24px 24px;
}

.page-hero h1 {
  font-size: 24px;
}

.page-hero p {
  font-size: 14px;
}

/* ─── Content Section Mobile ─── */
.content-section {
  padding: 32px 20px;
  margin: 0 0 16px;
  border-radius: 22px;
}

.content-section h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

/* ─── Cards Mobile ─── */
.services-grid,
.ossf-info-grid,
.referrals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ─── Contact Mobile ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── Referral Cards Mobile ─── */
.referral-card {
  text-align: center;
}

.referral-card .ref-icon {
  margin: 0 auto;
}

/* ─── CTA Banner Mobile ─── */
.cta-banner {
  flex-direction: column;
  text-align: center;
  padding: 28px 22px;
  gap: 18px;
}

.cta-banner .hero-button {
  align-self: center;
}

/* ─── Partner Spotlight Mobile ─── */
.partner-spotlight {
  flex-direction: column;
  text-align: center;
  gap: 18px;
  padding: 28px 22px;
}

.partner-contact {
  flex-direction: column;
  width: 100%;
}

.btn-call,
.btn-email {
  justify-content: center;
  width: 100%;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER — Mobile Layout
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  display: block;
  position: relative;
  overflow: hidden;
  margin-top: 40px; /* Space between content and footer */
  padding: 60px 24px 100px; /* Extra bottom padding for mobile safe area */
  background: #A01530; /* Ensure fallback background if SVG fails */
}

.footer-bg-svg {
  display: none !important; /* Hide massive weird shape on mobile */
}

/* Footer grid — single column */
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 46px;
}

/* Footer brand — row layout */
.footer-brand {
  position: relative;
  z-index: 2;
  min-height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  width: 100%;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Nice separator */
  margin-bottom: -10px; /* Adjust spacing to the next section */
}

.footer-logo {
  width: 110px !important; /* Force smaller size */
  max-width: 45% !important;
  height: auto;
  display: block;
  margin-bottom: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Reduce circle size slightly on mobile for more breathing room */
.footer-social {
  width: 44px !important;
  height: 44px !important;
}

.footer-social svg {
  width: 20px !important;
  height: 20px !important;
}

/* Footer titles */
.footer-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  color: var(--text-white);
  font-size: 20px; /* Reduced from 24px */
  line-height: 1;
  font-weight: 800; /* Reduced from 900 for elegance */
  font-style: italic;
}

.footer-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
}

/* Footer contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 18px;
  color: var(--text-white);
}

/* Force icons to platform blue on mobile so they show over the red background */
.footer-contact-item .footer-icon {
  color: #243146 !important;
}

.footer-contact-item .footer-icon svg {
  color: #243146 !important;
  stroke: #243146 !important;
}

.footer-contact-item p {
  margin: 0;
  color: var(--text-white);
  font-size: 14px; /* Reduced from 16px to match hero description */
  line-height: 1.45;
  font-weight: 400;
}

.footer-contact-item strong {
  display: block;
  margin-top: 4px;
  color: var(--text-white);
  font-size: 18px; /* Reduced from 24px */
  line-height: 1.15;
  font-weight: 800; /* Reduced from 900 */
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Tighter gap */
}

.footer-links a {
  font-size: 14px !important; /* Force smaller size */
}

/* Footer bottom */
.footer-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 68px;
  background: transparent;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ═══════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: auto; /* Let padding dictate height */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(200, 205, 215, 0.35);
  box-shadow: 0 -4px 20px rgba(16, 32, 55, 0.06);
  /* Respect iPhone Home Indicator */
  padding-top: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  position: relative;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--brand-red, #a01530);
}

.bottom-nav-item.active svg {
  transform: scale(1.1);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--brand-red, #a01530);
  border-radius: 0 0 4px 4px;
}

/* Cart icon wrapper with badge */
.bottom-nav-cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--brand-red, #a01530);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
