@charset "UTF-8";
/* Homepage header only; load after index-renewal.css. */
.sun-home-renewal #wrapper #header.sun-header-v2 {
  box-sizing: border-box; width: 100%; height: auto; position: relative;
  margin: 0 0 20px; padding: 16px 24px 0; background: #fff;
  color: #39332f; border: 1px solid #e9e1d6; border-radius: 0 0 8px 8px;
  line-height: 1.5;
}
.sun-header-v2 *, .sun-header-v2 *::before, .sun-header-v2 *::after { box-sizing: border-box; }
.sun-home-renewal #header.sun-header-v2 .sun-header-kicker {
  display: block; margin: 0; padding: 0 0 10px; font-size: 12px;
  line-height: 1.5; font-weight: 500; color: #70594b; border-bottom: 1px solid #eee7df;
}
.sun-header-v2 .sun-header-main {
  display: grid; grid-template-columns: minmax(190px, 1fr) minmax(225px, 1fr) minmax(220px, .9fr);
  gap: 20px; align-items: center; padding: 16px 0 12px;
}
.sun-header-v2 .sun-header-logo { display: inline-flex; align-items: center; justify-self: start; max-width: 100%; }
.sun-header-v2 .sun-header-logo img { display: block; width: 190px; height: auto; max-width: 100%; }
.sun-header-v2 .sun-header-contact { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sun-header-v2 .sun-header-label { font-size: 13px; font-weight: 700; color: #523b2b; }
.sun-header-v2 .sun-header-phone { font-size: 26px; font-weight: 700; line-height: 1.25; color: #523b2b; text-decoration: none; white-space: nowrap; }
.sun-header-v2 .sun-header-hours, .sun-header-v2 .sun-header-company { font-size: 12px; color: #66564b; }
.sun-header-v2 .sun-header-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sun-header-v2 .sun-header-actions a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px; border: 1px solid #cdb9a6; border-radius: 5px;
  color: #80502e; font-size: 13px; font-weight: 700; text-decoration: none; background: #fff;
}
.sun-header-v2 .sun-header-actions .sun-header-cart { grid-column: 1 / -1; background: #a95024; border-color: #a95024; color: #fff; font-size: 15px; }
.sun-header-v2 .sun-header-actions a:hover { background: #f7f1e9; color: #523b2b; }
.sun-header-v2 .sun-header-actions .sun-header-cart:hover { background: #843e1c; color: #fff; }
.sun-header-v2 .sun-header-repair { margin: 0 0 12px; font-size: 12px; color: #66564b; text-align: right; }
.sun-header-v2 .sun-header-repair a { color: #523b2b; font-weight: 700; white-space: nowrap; }
.sun-header-v2 .sun-header-benefits {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 28px;
  background: #f7f1e9; color: #704521; padding: 10px 12px; border-radius: 5px;
  font-size: 14px; text-align: center;
}
.sun-header-v2 .sun-header-benefits strong { font-weight: 700; }
.sun-header-v2 .sun-header-nav { margin-top: 14px; border-top: 1px solid #e9e1d6; }
.sun-header-v2 .sun-header-nav ul { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; }
.sun-header-v2 .sun-header-nav li { min-width: 0; margin: 0; padding: 0; }
.sun-header-v2 .sun-header-nav a {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 8px 4px; text-align: center; font-size: 14px; font-weight: 700;
  color: #523b2b; border-bottom: 3px solid transparent; text-decoration: none;
}
.sun-header-v2 .sun-header-nav a:hover, .sun-header-v2 .sun-header-nav a[aria-current="page"] { background: #faf8f4; color: #a95024; border-bottom-color: #a95024; }
/* Retain the existing button styling supplied by the old header fragment. */
.sun-home-renewal .button-3 { display: flex; justify-content: center; align-items: center; width: 250px; max-width: 100%; margin: 0 auto; padding: .9em 2em; border: none; border-radius: 5px; box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%); background-color: #ff9d2e; color: #fff; font-weight: 600; font-size: 1em; }
.sun-home-renewal .button-3:hover { background-color: #ef8d1e; }
@media (max-width: 1023px) {
  .sun-header-v2 .sun-header-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
  .sun-header-v2 .sun-header-actions { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sun-header-v2 .sun-header-actions .sun-header-cart { grid-column: auto; }
  .sun-header-v2 .sun-header-nav ul { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .sun-home-renewal #wrapper #header.sun-header-v2 { padding: 12px 12px 0; margin-bottom: 12px; }
  .sun-header-v2 .sun-header-main { grid-template-columns: minmax(0,1fr); text-align: center; padding-top: 12px; }
  .sun-header-v2 .sun-header-logo { justify-self: center; }
  .sun-header-v2 .sun-header-contact { align-items: center; }
  .sun-header-v2 .sun-header-phone { font-size: 24px; }
  .sun-header-v2 .sun-header-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sun-header-v2 .sun-header-actions .sun-header-cart { grid-column: 1 / -1; }
  .sun-header-v2 .sun-header-repair { text-align: center; line-height: 1.7; }
  .sun-header-v2 .sun-header-benefits { font-size: 12px; gap: 4px; }
  .sun-header-v2 .sun-header-nav a { font-size: 12px; overflow-wrap: anywhere; }
}
@media (max-width: 359px) { .sun-header-v2 .sun-header-nav ul { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* v3: compact desktop header; keep existing mobile and tablet layout. */
@media (min-width: 1024px) {
  .sun-home-renewal #wrapper #header.sun-header-v2 {
    padding: 8px 24px 0;
    margin-bottom: 12px;
  }
  .sun-home-renewal #header.sun-header-v2 .sun-header-kicker {
    padding-bottom: 5px;
    line-height: 1.4;
  }
  .sun-header-v2 .sun-header-main {
    grid-template-columns: minmax(220px, 1fr) minmax(225px, 1fr) minmax(260px, .95fr);
    gap: 16px;
    padding: 7px 0 5px;
  }
  .sun-header-v2 .sun-header-logo img {
    width: 230px;
    height: auto;
    max-width: 100%;
  }
  .sun-header-v2 .sun-header-contact { gap: 2px; }
  .sun-header-v2 .sun-header-actions { gap: 5px; }
  .sun-header-v2 .sun-header-actions a {
    min-height: 44px;
    padding: 5px 8px;
    line-height: 1.35;
  }
  .sun-header-v2 .sun-header-repair {
    margin: 0 0 5px;
    line-height: 1.4;
  }
  .sun-header-v2 .sun-header-benefits {
    padding: 5px 12px;
    gap: 4px 24px;
  }
  .sun-header-v2 .sun-header-nav { margin-top: 6px; }
  .sun-header-v2 .sun-header-nav a {
    min-height: 44px;
    padding: 6px 4px;
  }
}

/* v4: compact mobile header. Desktop/tablet v3 layout is unchanged. */
.sun-header-v2 .sun-mobile-cart,
.sun-header-v2 .sun-mobile-menu { display: none; }
@media (max-width: 767px) {
  .sun-home-renewal #wrapper #header.sun-header-v2 {
    padding: 10px 12px 10px;
    margin-bottom: 8px;
    z-index: 10;
  }
  /* Keep the page heading available to assistive technologies. */
  .sun-home-renewal #header.sun-header-v2 .sun-header-kicker {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap;
    padding: 0; border: 0;
  }
  .sun-header-v2 .sun-header-main {
    grid-template-columns: minmax(0,1fr) 54px 62px;
    gap: 6px 8px; padding: 0 0 8px;
    text-align: center; align-items: center;
  }
  .sun-header-v2 .sun-header-logo {
    grid-column: 1; grid-row: 1; justify-self: start; min-width: 0;
  }
  .sun-header-v2 .sun-header-logo img { width: 190px; height: auto; max-width: 100%; }
  .sun-header-v2 .sun-mobile-cart,
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 48px; padding: 4px 2px; gap: 2px; border-radius: 5px;
    font-size: 11px; font-weight: 700; line-height: 1.2;
    color: #80502e; text-decoration: none; cursor: pointer;
  }
  .sun-header-v2 .sun-mobile-cart {
    grid-column: 2; grid-row: 1; background: #a95024; color: #fff;
    border: 1px solid #a95024;
  }
  .sun-header-v2 .sun-mobile-menu {
    display: block; grid-column: 3; grid-row: 1;
    position: relative; min-width: 0;
  }
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle {
    background: #fff; border: 1px solid #cdb9a6; list-style: none;
  }
  .sun-header-v2 .sun-mobile-menu-icon {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 22px; height: 16px; margin: 3px 0;
  }
  .sun-header-v2 .sun-mobile-menu-icon i {
    display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  }
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle[aria-expanded="true"] { background: #f7f1e9; }
  .sun-header-v2 .sun-mobile-menu-toggle[aria-expanded="true"] .sun-mobile-menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .sun-header-v2 .sun-mobile-menu-toggle[aria-expanded="true"] .sun-mobile-menu-icon i:nth-child(2) { opacity: 0; }
  .sun-header-v2 .sun-mobile-menu-toggle[aria-expanded="true"] .sun-mobile-menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle:focus-visible { outline: 3px solid #80502e; outline-offset: 2px; }
  .sun-header-v2 .sun-mobile-panel {
    position: absolute; z-index: 20; right: 0; top: calc(100% + 6px);
    width: calc(100vw - 26px); max-width: 340px;
    max-height: 75vh; overflow: auto; overscroll-behavior: contain;
    padding: 8px; text-align: left; border: 1px solid #e5dbcf; border-radius: 8px;
    background: #fff; box-shadow: 0 8px 28px rgba(67,42,26,.18);
  }
  .sun-header-v2 .sun-mobile-panel[hidden] { display: none; }
  .sun-header-v2 .sun-mobile-panel ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 0; padding: 0; }
  .sun-header-v2 .sun-mobile-panel li { min-width: 0; list-style: none; }
  .sun-header-v2 .sun-mobile-panel li a {
    display: flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 6px; border: 1px solid #e9e1d6; border-radius: 4px;
    text-align: center; color: #523b2b; font-size: 13px; font-weight: 700; text-decoration: none;
  }
  .sun-header-v2 .sun-mobile-panel li a[aria-current="page"] { color: #a95024; background: #faf8f4; }
  .sun-header-v2 .sun-mobile-support { padding: 10px 6px 4px; font-size: 12px; color: #66564b; line-height: 1.5; }
  .sun-header-v2 .sun-mobile-support a { display: inline-flex; align-items: center; min-height: 44px; color: #523b2b; font-size: 20px; font-weight: 700; }
  .sun-header-v2 .sun-mobile-company { margin-top: 8px; }
  .sun-header-v2 .sun-header-contact {
    grid-column: 1 / -1; grid-row: 2; gap: 1px;
    padding: 4px 6px; background: #faf8f4; border-radius: 5px;
  }
  .sun-header-v2 .sun-header-label { font-size: 12px; }
  .sun-header-v2 .sun-header-phone { font-size: 24px; min-height: 32px; display: inline-flex; align-items: center; }
  .sun-header-v2 .sun-header-hours { font-size: 12px; }
  .sun-header-v2 .sun-header-company { display: none; }
  .sun-header-v2 .sun-header-actions { grid-column: 1 / -1; grid-row: 3; gap: 6px; }
  .sun-header-v2 .sun-header-actions .sun-header-cart { display: none; }
  .sun-header-v2 .sun-header-actions a { min-height: 44px; font-size: 12px; padding: 5px 3px; }
  .sun-header-v2 .sun-header-repair, .sun-header-v2 .sun-header-nav { display: none; }
  .sun-header-v2 .sun-header-benefits {
    flex-direction: column; gap: 1px; padding: 6px 3px; font-size: 12px; line-height: 1.5;
  }
}
@media (max-width: 359px) {
  .sun-header-v2 .sun-header-main { grid-template-columns: minmax(0,1fr) 48px 58px; gap: 6px; }
  .sun-header-v2 .sun-header-benefits { font-size: 11px; }
}

/* v5: explicit button toggle for mobile browsers, including iOS Safari. */
@media (max-width: 767px) {
  .sun-header-v2 .sun-mobile-menu { z-index: 30; }
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle {
    -webkit-appearance: none; appearance: none;
    width: 100%; margin: 0; position: relative; z-index: 21;
    font-family: inherit; touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(169,80,36,.15);
  }
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle > span,
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle i { pointer-events: none; }
  .sun-header-v2 .sun-mobile-menu .sun-mobile-menu-toggle:hover { color: #80502e; }
  .sun-header-v2 .sun-mobile-panel[hidden] { display: none !important; }
}
