﻿/* ============================================================
   KSS — Responsive & Contact Redesign Layer  (v2 — full fix)
   Loaded AFTER styles.css to override where needed.
   Covers: hero, header/nav, every section, calculator,
           contact, staff-login admin page.
   Phone ≤480  |  Tablet ≤760  |  Laptop ≤1280  |  Wide ≥1281
   ============================================================ */

/* ── Fluid design tokens ──────────────────────────────────── */
:root {
  --kss-radius-card:    clamp(14px, 1.4vw, 22px);
  --kss-radius-pill:    999px;
  --kss-pad-section-y:  clamp(48px, 7vw, 96px);
  --kss-pad-section-x:  clamp(16px, 5vw, 72px);
  --kss-gap-grid:       clamp(14px, 2vw, 22px);
  --kss-text-body:      clamp(0.95rem, 0.85rem + 0.3vw, 1.06rem);
  --kss-text-small:     clamp(0.78rem, 0.72rem + 0.2vw, 0.86rem);
  --kss-text-eyebrow:   clamp(0.7rem, 0.65rem + 0.15vw, 0.78rem);
  --kss-text-h2:        clamp(1.6rem, 1.1rem + 2.4vw, 2.85rem);
  --kss-text-h3:        clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --kss-shadow-card:    0 1px 2px rgba(13,74,42,.04), 0 8px 24px -8px rgba(13,74,42,.12);
  --kss-shadow-lift:    0 2px 4px rgba(13,74,42,.06), 0 18px 40px -12px rgba(13,74,42,.22);
}

/* Stop ALL horizontal scroll */
html, body { overflow-x: hidden; }

/* ── Section base ─────────────────────────────────────────── */
.section { padding: var(--kss-pad-section-y) var(--kss-pad-section-x); }

.section-heading h2, .split-section h2, .about-layout h2 {
  font-size: var(--kss-text-h2);
  line-height: 1.14;
}
.section-heading p, .about-layout p {
  font-size: var(--kss-text-body);
  line-height: 1.65;
}
.eyebrow {
  font-size: var(--kss-text-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Better focus rings ───────────────────────────────────── */
.kss-contact-card .mini-button:focus-visible,
.kss-contact-value:focus-visible {
  outline: 2px solid #1a7a45;
  outline-offset: 3px;
  border-radius: var(--kss-radius-pill);
}

/* ============================================================
   HEADER / NAV
   Hamburger fires at ≤900 (not 1280!) so wide laptops keep
   the full nav bar.
   ============================================================ */

/* ── Wide (≥1281): full nav, generous header ── */
@media (min-width: 1281px) {
  .site-header { padding: 12px clamp(24px, 4vw, 64px); }
  .nav-toggle  { display: none !important; }
  .site-nav    { display: flex !important; }
}

/* ── Laptop (1025–1280): compact but still full nav ── */
@media (min-width: 901px) and (max-width: 1280px) {
  .site-header { gap: 10px; padding: 10px 18px; }
  .brand { flex: 0 0 auto; }
  .brand strong { font-size: 1.1rem; }
  .brand small  { font-size: 0.82rem; white-space: nowrap; }
  .site-nav { gap: 2px; margin-left: auto; }
  .site-nav a,
  .nav-dropdown > a { padding: 9px 10px; font-size: 0.9rem; }
  .auth-link { padding: 9px 12px; font-size: 0.9rem; }
  .nav-toggle { display: none !important; }
  .site-nav   { display: flex !important; }
}

/* ── Tablet + Phone (≤900): hamburger menu ── */
@media (max-width: 900px) {
  body[data-page="home"] {
    padding-top: 66px;
  }

  .site-header {
    gap: 8px;
    padding: 10px 16px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  .brand span {
    min-width: 0;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width: 42px;
    min-height: 42px;
  }

  .site-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(24,36,43,.12);
    display: none;
    left: 50%;
    margin-left: 0;
    max-height: min(74svh, calc(100svh - 84px));
    max-width: calc(100vw - 20px);
    overflow-y: auto;
    padding: 10px;
    position: absolute;
    right: auto;
    top: 66px;
    transform: translateX(-50%);
    width: min(calc(100vw - 20px), 440px);
    z-index: 25;
  }

  .site-nav.open {
    animation: kssMenuDrop .25s ease both;
    display: grid;
  }

  .site-nav a,
  .nav-dropdown > button,
  .nav-dropdown > a {
    border-radius: 8px;
    justify-content: flex-start;
    min-height: 44px;
    width: 100%;
  }

  .nav-dropdown {
    display: grid;
    gap: 6px;
  }

  .nav-dropdown > button,
  .nav-dropdown > a {
    background: var(--band);
    font-weight: 800;
  }

  .nav-dropdown .dropdown-menu {
    box-shadow: none;
    display: none;
    max-height: min(42svh, 280px);
    min-width: 0;
    overflow-y: auto;
    padding: 0 0 0 12px;
    position: static;
  }

  .nav-dropdown.mobile-open .dropdown-menu {
    display: grid;
    padding: 4px 0 8px 12px;
  }
}

/* ── Small phone header ── */
@media (max-width: 480px) {
  body[data-page="home"] {
    padding-top: 58px;
  }

  .site-header { padding: 8px 14px; }
  .brand img   { height: 40px; width: 40px; border-radius: 6px; }
  .brand strong { font-size: 1rem; }
  .brand small  { font-size: 0.75rem; }
  .auth-link   { padding: 7px 10px; font-size: 0.82rem; }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }
}

/* Hide brand tagline on very tiny phones to avoid overflow */
@media (max-width: 360px) {
  .brand small { display: none; }
}

/* ============================================================
   HERO SECTION — the main fix
   Problem: .quote-panel is absolute with max-width: 52% and
   4vw font → too small on phone, text spills/compresses.
   Fix: on mobile, panel sits at the bottom of the slider with
   full width, smaller type, and simpler layout.
   ============================================================ */

/* Laptop hero */
@media (min-width: 1025px) and (max-width: 1400px) {
  .hero { padding: 14px 18px 24px; }
  .hero-slider { min-height: min(760px, calc(100svh - 92px)); }
  .quote-panel {
    gap: 12px;
    left: clamp(18px, 2.5vw, 40px);
    max-width: min(600px, 54%);
    top: clamp(72px, 10vh, 112px);
  }
  .quote-panel p  { font-size: clamp(2.4rem, 3.8vw, 3.9rem); }
  .hero-actions .button { min-height: 42px; padding: 10px 14px; }
  .hero-metrics { bottom: 18px; right: 18px; }
}

/* Tablet hero */
@media (max-width: 1024px) and (min-width: 761px) {
  .hero { min-height: auto; padding: 12px; }
  .hero-slider { min-height: min(640px, calc(100svh - 80px)) !important; }
  .quote-panel {
    left: clamp(18px, 3vw, 36px);
    max-width: min(520px, 56%);
    top: clamp(60px, 9vh, 100px);
    gap: 10px;
  }
  .quote-panel p  { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.07; }
  .quote-panel small { font-size: clamp(0.9rem, 1.1vw, 1rem); }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 40px; padding: 9px 12px; font-size: 0.9rem; }
  .hero-metrics {
    bottom: -44px !important;
    left: 12px !important;
    right: 12px !important;
    max-width: none !important;
    width: auto !important;
  }
  .hero-metrics div { padding: 9px 12px !important; }
  .hero-metrics strong { font-size: 1.2rem !important; }
  .slider-dots { bottom: 16px !important; }
}

/* Phone hero — full-width bottom panel */
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 8px;
  }

  .hero-slider {
    min-height: min(480px, calc(100svh - 68px)) !important;
    margin-bottom: 0 !important;
    border-radius: 12px;
  }

  /* Override the left-anchored absolute panel */
  .quote-panel {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    padding: 20px 18px 56px !important; /* extra bottom for dots */
    gap: 8px !important;
    background: linear-gradient(to top, rgba(3,12,18,.88) 0%, rgba(3,12,18,.72) 60%, transparent 100%);
    border-radius: 0 0 12px 12px;
  }

  .hero-title {
    font-size: clamp(0.75rem, 3.2vw, 1rem);
    letter-spacing: .05em;
  }

  .quote-kicker {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .quote-panel p {
    font-size: clamp(1.55rem, 6.5vw, 2.4rem) !important;
    line-height: 1.09;
    text-wrap: balance;
    margin: 0 !important;
  }

  .quote-panel small {
    font-size: clamp(0.82rem, 3.2vw, 1rem) !important;
    line-height: 1.45;
    opacity: .9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-actions {
    gap: 7px;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.83rem;
  }

  /* Hide the floating metric box on phone — it overlaps */
  .hero-metrics { display: none !important; }

  /* Dots sit at bottom of panel */
  .slider-dots {
    bottom: 22px !important;
    left: 18px !important;
  }
}

/* Extra-small phone hero */
@media (max-width: 400px) {
  .hero-slider { min-height: min(420px, calc(100svh - 60px)) !important; }
  .quote-panel p { font-size: clamp(1.35rem, 6vw, 1.8rem) !important; }
  /* Show only 2 action buttons */
  .hero-actions .button:nth-child(n+3) { display: none; }
}

/* ============================================================
   HOME SERVICES PREVIEW
   ============================================================ */
.home-services-preview { padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px); }

@media (min-width: 900px) {
  .home-services-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .home-services-inner { gap: 18px; }
  .home-services-copy h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .service-step-card { padding: 14px; }
}

/* ============================================================
   HOME PRODUCTS PREVIEW
   ============================================================ */
.home-products-preview { padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px); }

@media (min-width: 900px) {
  .home-products-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .home-products-inner { gap: 18px; }
  .product-feature-row { padding: 14px !important; }
}

/* ============================================================
   WHY SOLAR SECTION
   ============================================================ */
.why-content h2, .about-copy h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.08;
}

.why-card-grid { gap: var(--kss-gap-grid); }

@media (min-width: 761px) and (max-width: 980px) {
  .why-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid, .choose-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .why-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .why-card-grid article { padding: 14px !important; }
  .why-card-grid h3 { font-size: 1rem; }
  .why-card-grid p  { font-size: 0.86rem; }
  .why-stats { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 420px) {
  .why-card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SAVINGS CALCULATOR
   ============================================================ */
@media (max-width: 768px) {
  .kss-calc-wrap {
    grid-template-columns: 1fr !important;
    padding: 0 clamp(12px, 4vw, 20px) 1rem !important;
    gap: 14px !important;
  }
}
@media (max-width: 480px) {
  .kss-input-card,
  .kss-payback-card,
  .kss-hero-result { padding: 1.25rem !important; border-radius: 16px !important; }
  .kss-result-kw   { font-size: 36px !important; }
  .kss-metric-val  { font-size: 20px !important; }
  .kss-metric-card { padding: 1rem !important; border-radius: 14px !important; }
  .kss-metrics-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .kss-metrics-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   ABOUT + PROCESS + CHOOSE STRIP
   ============================================================ */
@media (max-width: 760px) {
  .about-pro-layout  { grid-template-columns: 1fr !important; }
  .about-stat-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .process-grid, .choose-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .choose-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .choose-strip article { padding: 14px !important; }
}

/* Mobile scroll lanes (already in HTML) */
@media (max-width: 760px) {
  :root {
    --kss-pad-section-y: clamp(30px, 5.2vw, 38px);
    --kss-pad-section-x: clamp(12px, 3.7vw, 16px);
  }

  .section { padding: var(--kss-pad-section-y) var(--kss-pad-section-x); }

  .home-services-preview, .home-products-preview { padding: 34px 14px; }

  .mobile-scroll-lane {
    display: flex !important;
    gap: 10px;
    grid-template-columns: none !important;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-scroll-lane > article {
    flex: 0 0 min(84vw, 320px);
    scroll-snap-align: start;
  }

  .mobile-scroll-lane::-webkit-scrollbar { height: 6px; }
  .mobile-scroll-lane::-webkit-scrollbar-thumb {
    background: #c8dfd1;
    border-radius: 999px;
  }

  #about .reviews-marquee { display: none !important; }

  .kss-mobile-hidden { display: none !important; }

  body[data-page="home"] { padding-bottom: 86px; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
@media (max-width: 760px) {
  .reviews-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rating-summary  { grid-template-columns: 1fr !important; gap: 14px; }
}
@media (max-width: 640px) {
  .rating-score strong { font-size: 2.2rem !important; }
  .review-feature-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.kss-contact-section { background: linear-gradient(180deg, #fbfbf3 0%, #f5faf2 100%); }
.kss-contact-section .section-heading { margin-bottom: clamp(20px, 3vw, 36px); }

.kss-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--kss-gap-grid);
  max-width: 1180px;
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .kss-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kss-contact-grid .kss-contact-card--office {
    grid-column: 1 / -1;
    max-width: 540px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .kss-contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kss-contact-grid .kss-contact-card--office {
    grid-column: auto;
    max-width: none;
  }
}

/* Contact card */
.kss-contact-card {
  background: #fff;
  border: 1px solid #dfeae0;
  border-radius: var(--kss-radius-card);
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 12px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--kss-shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-width: 0;
}

.kss-contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d4a2a 0%, #22a85a 100%);
  opacity: .85;
}

.kss-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--kss-shadow-lift);
  border-color: #c8dfd1;
}

.kss-contact-icon {
  width: clamp(40px, 4.4vw, 52px);
  height: clamp(40px, 4.4vw, 52px);
  border-radius: 14px;
  background: linear-gradient(135deg, #ecf7ef 0%, #d4ecdc 100%);
  color: #0d4a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  flex: 0 0 auto;
}

.kss-contact-icon svg { width: 58%; height: 58%; display: block; }

.kss-contact-card--mail .kss-contact-icon { background: linear-gradient(135deg, #eef4ff 0%, #d6e3ff 100%); color: #1d4794; }
.kss-contact-card--office .kss-contact-icon { background: linear-gradient(135deg, #fff3df 0%, #ffe1b0 100%); color: #8a5400; }

.kss-contact-label {
  font-size: var(--kss-text-eyebrow);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green, #12764a);
}

.kss-contact-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.05rem, 0.9rem + .55vw, 1.32rem);
  font-weight: 600;
  color: #0f1f14;
  line-height: 1.25;
  letter-spacing: -.01em;
  word-break: break-word;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.kss-contact-value--mail {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.88rem, 0.78rem + .38vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0;
}

.kss-contact-hint {
  font-size: var(--kss-text-small);
  color: #7a9b85;
  line-height: 1.5;
}

/* Action buttons — always visible (no hover-only on mobile) */
.kss-contact-card .kss-contact-actions {
  max-height: none;
  opacity: 1;
  transform: none;
  overflow: visible;
  transition: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(6px, 1vw, 12px);
  width: 100%;
}

.kss-contact-card .mini-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--kss-radius-pill);
  font-size: clamp(0.8rem, 0.74rem + .18vw, 0.9rem);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: "DM Sans", system-ui, sans-serif;
}

.kss-contact-card .mini-button:hover  { transform: translateY(-1px); }
.kss-contact-card .mini-button:active { transform: none; }

.kss-contact-card .kss-mini-primary { background: #0d4a2a; color: #fff; border-color: #0d4a2a; }
.kss-contact-card .kss-mini-primary:hover { background: #145e36; }
.kss-contact-card .kss-mini-wa      { background: #25d366; color: #fff; border-color: #25d366; }
.kss-contact-card .kss-mini-wa:hover { background: #1fb858; }
.kss-contact-card .kss-mini-ghost   { background: #fff; color: #0d4a2a; border-color: #c8dfd1; }
.kss-contact-card .kss-mini-ghost:hover { background: #f0faf4; border-color: #0d4a2a; }

.kss-contact-card .mini-button svg { flex: 0 0 auto; }

/* Keep cards styled on mobile (override legacy collapse) */
@media (max-width: 820px) {
  .kss-contact-section .contact-card,
  .kss-contact-section .kss-contact-card {
    background: #fff;
    border: 1px solid #dfeae0;
    border-radius: var(--kss-radius-card);
    padding: clamp(16px, 4vw, 22px);
  }
  .kss-contact-section .contact-grid,
  .kss-contact-section .kss-contact-grid { gap: 12px; }
  #contact .contact-card {
    background: #fff;
    border: 1px solid #dfeae0;
    border-radius: var(--kss-radius-card);
    padding: clamp(16px, 4vw, 22px);
  }
  #contact .section-heading { background: transparent; padding: 0; margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .kss-contact-section .contact-actions,
  .kss-contact-section .contact-card.open .contact-actions { max-height: none; display: flex; }
  .kss-contact-card .mini-button {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 42px;
  }
  .kss-contact-card--office .mini-button { flex: 0 0 auto; }
}

/* ============================================================
   FLOATING CONTACT BUTTON
   ============================================================ */
@media (max-width: 480px) {
  .contact-float { right: 14px; bottom: 78px; }
  .contact-float-main { width: 52px; height: 52px; }
  .contact-float-main svg { width: 22px; height: 22px; }
}

@media (max-width: 760px) {
  body[data-page="home"] .contact-float { bottom: 132px !important; }
}

/* ============================================================
   MOBILE QUICK JUMP BAR (bottom sticky on home)
   ============================================================ */
.mobile-quick-jump, .mobile-reveal-btn { display: none; }

@media (max-width: 760px) {
  body[data-page="home"] .mobile-quick-jump {
    align-items: center;
    background: rgba(13, 74, 42, .96);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 10px;
    padding: 8px;
    position: fixed;
    right: 10px;
    z-index: 38;
  }

  body[data-page="home"] .mobile-quick-jump a {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 700;
    justify-content: center;
    min-height: 36px;
    text-decoration: none;
  }

  body[data-page="home"] .mobile-quick-jump a:active { background: rgba(255, 255, 255, .26); }

  .mobile-reveal-btn.show {
    align-items: center;
    background: #fff;
    border: 1px solid #c8dfd1;
    border-radius: 999px;
    color: #0d4a2a;
    cursor: pointer;
    display: inline-flex;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: .86rem;
    font-weight: 700;
    justify-content: center;
    margin: 10px auto 0;
    min-height: 38px;
    padding: 0 16px;
  }
}

/* ============================================================
   HOME NAV ICON (in header-actions)
   ============================================================ */
.header-actions .home-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line, #d8e3dd);
  background: var(--white, #fff);
  color: var(--ink, #16232a);
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .15s;
  flex: 0 0 auto;
}

.header-actions .home-nav-link:hover {
  background: var(--band, #edf7f0);
  border-color: var(--green, #12764a);
  color: var(--green, #12764a);
}

.header-actions .home-nav-link:active { transform: scale(.96); }

.header-actions .home-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  margin: 0;
}

.header-actions .home-nav-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .header-actions .home-nav-link { width: 36px; height: 36px; border-radius: 8px; }
  .header-actions .home-nav-icon svg { width: 16px; height: 16px; }
}

/* Hide duplicate home link if it gets inserted into the nav */
.site-nav .home-nav-link, [data-nav] .home-nav-link { display: none !important; }

/* ============================================================
   CARD GRID (products/services page)
   ============================================================ */
@media (max-width: 820px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STAFF LOGIN PAGE  — make it fully responsive
   ============================================================ */

/* The staff-login.html already has scoped <style> inside it.
   These rules target data-page="auth" to not collide with home. */

body[data-page="auth"] nav,
.staff-nav {
  flex-wrap: wrap;
  gap: .75rem;
}

/* On very small phones the nav links may crowd; hide them */
@media (max-width: 480px) {
  body[data-page="auth"] nav,
  .staff-nav {
    padding: .9rem 1rem;
  }
  /* Staff login card is already well-sized but tighten padding */
  body[data-page="auth"] .wrap {
    padding: 1.75rem 1rem 3rem;
  }
  body[data-page="auth"] h1 {
    font-size: 1.6rem;
  }
  body[data-page="auth"] .card {
    padding: 1.25rem;
  }
  body[data-page="auth"] .card-head {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-page="auth"] .switch {
    align-self: stretch;
    justify-content: center;
  }
  body[data-page="auth"] .switch button {
    flex: 1;
  }
  body[data-page="auth"] .btn-primary {
    padding: 14px;
    font-size: 15px;
  }
  body[data-page="auth"] .back-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
  }
}

/* ============================================================
   PROCESS GRID & CHOOSE STRIP  — shared responsive
   ============================================================ */
.process-grid, .choose-strip { gap: var(--kss-gap-grid); }

@media (max-width: 640px) {
  .choose-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .choose-strip article { padding: 14px !important; }
}

/* ============================================================
   REVIEWS SUMMARY
   ============================================================ */
@media (max-width: 640px) {
  .rating-score strong { font-size: 2.2rem !important; }
  .review-feature-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   GENERAL BODY COMFORT
   ============================================================ */
@media (max-width: 480px) {
  body { font-size: 15px; }
}

/* ============================================================
   KEYFRAMES (used by nav open animation)
   ============================================================ */
@keyframes kssMenuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .button, .mini-button, .quote-panel, .hero-shade,
  .slider-dots button.active, .contact-card,
  .service-step-card, .product-feature-row,
  .contact-float-main::before, .site-header {
    animation: none !important;
    transition: none !important;
  }

  .button.primary::after, .site-nav a::after { transition: none !important; }

  [data-reveal], [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
