/* ===== Base ===== */
body {
  background: rgb(34, 34, 34);
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
}

/* ===== Global Buttons ===== */
.btn {
  background: rgb(34, 34, 34);
  background-size: cover;  
  color:#fff;
  border-bottom:1px solid rgb(34, 34, 34);;
  position: relative;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 800;
  margin-right: 8px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn:hover {  background: #ff0000; opacity: 0.9; } 
 
/* ===== Top header ===== */
.top-header {
  position: relative; z-index: 250;
  background: rgb(34, 34, 34);
  display:flex;
  align-items:center;
  padding: 0.5rem 1rem;
  gap:2rem; 
}
.top-header > * {
  align-self: stretch;      
  display: flex;
  align-items: center;      
}
.top-header__inner {
  display:flex;
  flex:1;                       
  justify-content:flex-end;      
  align-items:center;
  margin-right: 2em;
  gap:8rem;                     
}
.info-item {
  display:flex;
  align-items:center;
  gap:.6rem;
}
.icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.info-text {
  display:flex;
  flex-direction:column;
}
.value {
  font-size: 1.2rem;
  font-weight:600;
  color:#ffffff;
  text-decoration:none;
}
.value:hover {
  color:#f33;
}
.top-header .logo-fixed {
  width: 40px;
  margin-top: 0.3rem;
  margin-left: 1rem;
  margin-right: 1rem;
}
.quote-btn {
  background: #f33;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0 1.25rem;      
  display: flex;
  align-items: center;      
  justify-content: center;
  align-self: stretch;      
  line-height: 1;           
  transition: background .25s ease;
  margin-left: .5rem;       
}
.quote-btn:hover { background: #c00; }

/* ===== Second Header / Nav ===== */
.hero-header {
  background: #ffffff;
  background-size: cover;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 0px 5px rgba(0,0,0,0.08);
  overflow: visible;
  padding: 1.6rem 1rem;      
  position: relative;
  text-align: center;
  z-index: 200;     
}

.desktop-nav {
  display: flex;
  gap: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  
}
.desktop-nav a {
  color: #000;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-item { display: inline-flex; }
.has-sub {
  align-items: center;
  display: inline-flex;
  position: relative;
}
.has-sub > .parent-link::after {
  content: '▾';
  font-size: .8em;
  margin-left: 3px;
  opacity: .75;
}
.sub-menu {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  display: none;
  flex-direction: column;
  left: 50%;
  max-height: 1500vh;
  min-width: 200px;
  overflow: auto;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 1000;
}
.sub-menu a {
  color: #000;
  font-size: .98em;
  font-weight: 400;
  line-height: 1;
  padding: 8px;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.sub-menu a:hover,
.sub-menu a:focus-visible,
.sub-menu a:active {
  background: rgb(34, 34, 34);
  color: #fff;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { display: flex; }
.has-sub::after {
  content: "";
  height: 22px;
  left: -16px;
  position: absolute;
  right: -16px;
  top: 100%;
}
.has-sub > .sub-menu::before {
  content: "";
  height: 22px;
  left: -16px;
  position: absolute;
  right: -16px;
  top: -22px;
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  height: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.carousel-image {
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.carousel-arrow {
  background: none;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  padding: 10px 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.carousel-arrow.left  { left: 20px; }
.carousel-arrow.right { right: 20px; }
.carousel-dots {
  bottom: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  position: absolute;
  width: 100%;
}
.carousel-dots span {
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  height: 10px;
  width: 10px;
}
.carousel-dots span.active { background: #fff; }


.banner-text {
  position: absolute;
  left: 5rem;
  bottom: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100ch;
  text-align: left;
}

.banner-title {
  margin: 0;
  line-height: 1.3;
}
.banner-title .line1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
}
.banner-title .line2 {
  color: #e82420;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
}

.banner-lead {
  margin: 0.2rem 0 0;
  color: #e9eef2;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
  max-width: 50ch;
}

.banner-cta {
  margin-top: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}
.btn--primary {
  background: #e82420;
  color: #fff;
}
.btn--primary:hover {
  background: #c81e1b;
}


/* ========= Home sections ========= */
.home-sections {
  display: grid;
  gap: 0;
  padding: 0;
}
.home-section-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0;
}
.home-section-media { margin: 0; }
.feature-card .home-section-media { margin: 0; height: 100%; }
.home-section-photo {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;      
  border-radius: 8px;
}
.feature-card .home-section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;      
  background: none;      
}
.home-section-content h2 {
  color: #475467;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  margin: 0 0 6px;
}
.home-lead { margin: 6px 0 10px; }
.home-list { margin: 0 0 6px; padding-left: 18px; }
.home-list li { margin: 6px 0; }
.home-list a {
  color: #000;
  font-size: clamp(1.15rem, 2.2vw, 1.1rem);
  text-decoration: none;      
}
.home-list a:hover { color: #e82420; }
.home-cta { margin-top: 8px; }
.home-cta a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.home-cta a:hover { border-bottom-color: currentColor; }
.feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;  
  min-height: 360px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.feature-card--reverse {                 
  grid-template-columns: 1fr 1.1fr;
}
.feature-card--reverse .home-section-media { order: 2; }
.feature-card--reverse .home-section-content { order: 1; }
.feature-card .home-section-content {
  background: #fff;
  padding: clamp(18px,3.2vw,44px) clamp(18px,3.6vw,52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card .home-section-content h2 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: .2px;
  color: #e82420; 
}
.feature-card .home-lead {
  margin: 8px 0 14px;
  color: #475467;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.2;
}
.feature-card--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  box-shadow: none;
}
.home-section-inner:has(.feature-card--bleed),
.home-section-inner--bleed {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}
.home-section-contact-banner {
  background: #ffffff;   
  border-left: 4px solid #d41010;
  color: #333;
  font-size: 14pt;
  font-weight: 600;
  padding: 8px 8px;
  border-radius: 4px;
}
.feature-card .map-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.feature-card .map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f2f4f7;
  color: #101828;
  text-decoration: none;
  font-weight: 700;
}

/* ===== Featured Products Grid ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.featured-grid .image-card img {
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover;    
  border-radius: .5rem;
  display: block;
}

/* ===== Subpages (Products / Services / Warranty / About / Contact) ===== */
.page-wrap {
  display: grid;
  gap: 50px;
  grid-template-columns: 240px 1fr;
  margin: 20px 0 0 15px;
  width: 90%;
}
.page-wrap--single { grid-template-columns: 1fr; }
.intro-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: .25rem 0 1rem;
}
.intro-note {
  color: #666;
  font-size: .95rem;
  margin: 0 0 1.25rem;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: start;
}
.image-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.image-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;       
  object-fit: cover;         
}
.image-caption {
  padding: .6rem .75rem;
  font-size: .95rem;
  line-height: 1.4;
  color: #333;
}
.image-card:hover,
.image-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.12);
}
.image-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.image-card a:focus-visible {
  outline: 3px solid #4c9ffe;
  outline-offset: 2px;
}
.image-grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subpage {
  background: #fff;
  padding: 12px 0 48px;
}
.side-nav { margin: 10px 0 0 0; position: relative; }
.side-nav nav { display: flex; flex-direction: column; gap: 8px; }
.side-nav a {
  background: #eee;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  color: #333;
  display: block;
  font-weight: 400;
  line-height: 1.2;
  padding: 10px 12px;
  text-decoration: none;
}
.side-nav a:hover  { background: #e2e2e2; }
.side-nav a.active {
  background: #000;
  border-color: #000;
  color: #fff;
}
.content { margin-left: 8px; }
.content h1 {
  color: #000;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin: 6px 0 12px;
}
.content p,
.content li {
  color: #333;
  font-size: 0.98rem;
  line-height: 1.6;
}
.content ul { margin: 12px 0 0; padding-left: 30px; }
.content--full { width: 100%; }
.lead-img {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  display: block;
  height: auto;
  margin: 8px 0 12px;
  object-fit: contain;
  width: 100%;
}
.intro-lead { margin: 10px 0; }
.intro-list { margin: 8px 0 0; padding-left: 22px; }
.intro-note { margin: 10px 0; }

/* ===== Contact Page ===== */
.contact-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}
.contact-left .contact-banner {
  background: #f8f9fa;   
  border-left: 4px solid #d62828; 
  color: #333;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 4px;
}
.contact-left .contact-block p {
  color: #495057;
  line-height: 1.7;
  margin: .6rem 0 0;
}
.contact-right .contact-panel {
  background: #eee;
  border-radius: 8px;
  padding: 24px;
}
.contact-panel h2 { margin-top: 0; }
.contact-form .form-grid {
  align-items: center;
  display: grid;
  gap: 12px 14px;
  grid-template-columns: 210px 1fr;
}
.contact-form .label-cell {
  background: #e6e8f0;
  border-radius: 4px;
  font-weight: 700;
  padding: 10px 12px;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 4px;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}
.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}
.contact-form .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.req { color: #d11; }
.hidden-honeypot,
.hidden-honeypot-input { display: none; }
.contact-block p:last-of-type {
  margin-bottom: 1rem;  
}
.contact-map,
.contact-map-link {
  margin-top: 1rem;     
  display: block;
}
.contact-map iframe {
  width: 100%;
  height: 400px;  
  border: 0;
}

/* ===== Warranty Request Form (center without changing width) ===== */
.warranty-page .page-wrap.page-wrap--single {
  margin: 20px auto 0;
  display: block;             
}
.warranty-section h1 {
  text-align: center;
}
.form-warranty {
  margin-left: 0;
  margin-right: 0;
  margin-inline: auto;
  display: grid;               
  gap: 18px;
}
.form-warranty.form-two-col {
  gap: 18px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-warranty #formErrors,
.form-warranty #captchaContainer,
.form-warranty #captchaError {
  grid-column: 1 / -1;
}

.form-warranty .form-col {
  align-content: start;
  display: grid;
  gap: 14px;
}
.form-warranty .wf {
  display: grid;
  gap: 6px;
}
.form-section-title {
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.form-warranty label {
  color: #000000;
  font-size: 0.95rem;
}
.form-warranty .req { color: #d11; }
.form-warranty input,
.form-warranty select,
.form-warranty textarea {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 4px;
  box-sizing: border-box;
  color: #333;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.form-warranty textarea {
  min-height: 220px;
  resize: vertical;
}

.form-warranty input:focus,
.form-warranty select:focus,
.form-warranty textarea:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.form-warranty ::placeholder { color: #9aa0a6; }
.form-warranty .span-2 { grid-column: 1 / -1; }

.form-error {
  color: #c00;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ===== Footer ===== */
footer {
  background: rgb(34, 34, 34);
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
}

/* ================================
   RESPONSIVE MEDIA QUERIES
   ================================ */
.has-sub.open > .sub-menu { display: flex; }

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .top-header__inner { gap: 3rem; margin-right: 1rem; }
  .desktop-nav { gap: 60px; }
  .desktop-nav a { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
  .hero-header { padding: 1.2rem 1rem; }
}

/* Tablets and down */
@media (max-width: 992px) {
  .top-header__inner .info-item { display: none; }   
  .top-header__inner { gap: 1.5rem; margin-right: 0; }

  .page-wrap {
    grid-template-columns: 1fr;
    width: 94%;
    margin: 16px auto 0;
    gap: 28px;
  }
  .side-nav nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .side-nav a { padding: 8px 10px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .image-grid.cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 20px; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .contact-map iframe { height: 320px; }
  .form-warranty.form-two-col { grid-template-columns: 1fr; }
  .form-warranty {
    margin-left: 0;
    justify-self: center;
    width: 100%;
    max-width: 760px;
  }
  .banner-text { left: 1rem; right: 1rem; bottom: 1.2rem; max-width: none; }
  .desktop-nav {
    gap: clamp(18px, 5vw, 36px);
  }
  .desktop-nav a {
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  }
}

/* Large phones / small tablets */
@media (max-width: 720px) {
  .top-header { padding: 0.45rem 0.75rem; }
  .top-header__inner { gap: 1.25rem; margin-right: 0; }
  .icon-img { width: 24px; height: 24px; }
  .value { font-size: 1rem; }
  .hero-header { position: relative; z-index: 900; overflow: visible; }
  .desktop-nav { position: relative; z-index: 950; overflow: visible; }
  .sub-menu    { z-index: 1000; }
  .desktop-nav {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    gap: clamp(14px, 4vw, 24px);
    flex-wrap: nowrap;
    overflow: visible;                 
    -webkit-overflow-scrolling: touch; 
  }
  .desktop-nav a {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .feature-card,
  .feature-card--reverse { grid-template-columns: 1fr; min-height: auto; }
  .feature-card .home-section-content { padding: 16px; }
  .featured-grid { grid-template-columns: 1fr; }
  .feature-card--reverse .home-section-media { order: 0; }
  .feature-card--reverse .home-section-content { order: 1; }
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-warranty h1 {font-size: 1.2rem;}
  .contact-map iframe { height: 280px; }
  .hero-carousel { aspect-ratio: 16 / 10; min-height: 300px; position: relative; z-index: 100; }
  .carousel-image { object-position: center top; }
  .btn { padding: 0.5rem 1rem; font-size: 0.9rem; width: auto; }
  .quote-btn { font-size: 0.85rem; padding: 0.3rem 0.75rem; width: auto; }
  .actions { display: flex; justify-content: center; }
}

/* Small phones */
@media (max-width: 500px) {
  .top-header { padding: 0.4rem 0.6rem; gap: .75rem; }
  .top-header .logo-fixed { width: 32px; margin: 0 6px; }
  .hero-header { position: relative; z-index: 900; overflow: visible; }
  .desktop-nav { position: relative; z-index: 950; overflow: visible; }
  .sub-menu    { z-index: 1000; }
  .desktop-nav {
    position: absolute;               
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    flex-wrap: nowrap;                
    gap: 8px;                         
    overflow: visible;               
  }
  .desktop-nav a {
    font-size: 0.82rem;               
    padding: 0 0.3rem;
    -webkit-tap-highlight-color: transparent;
  }
  .feature-card,
  .feature-card--reverse { grid-template-columns: 1fr; }
  .feature-card--reverse .home-section-media { order: 0; }
  .feature-card--reverse .home-section-content { order: 1; }

  .banner-title .line1 { font-size: 1.6rem; }
  .banner-title .line2 { font-size: 2rem; }
  .banner-lead { font-size: 1rem; }

  .side-nav a { font-size: 0.9rem; }
  .content h1 { font-size: 1.35rem; }
  .image-grid { grid-template-columns: 1fr; }
  .page-wrap {
    grid-template-columns: 1fr;
    width: 100vw;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .content { margin-left: 0; }
  .form-warranty {
    margin: 0 auto !important;
    padding: 0 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .form-warranty h1 {font-size: 1.2rem;}
  .form-warranty.form-two-col { grid-template-columns: 1fr !important; gap: 16px; }
  .form-warranty .form-col,
  .form-warranty .wf { min-width: 0; }
  .form-warranty input,
  .form-warranty select,
  .form-warranty textarea {
    width: 100%;
    max-width: 100%;
  }
  .btn { width: auto; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .quote-btn { width: auto; font-size: 0.8rem; padding: 0.25rem 0.6rem; }
  .actions { display: flex; justify-content: center; }
}

@media (max-width: 992px) { .hero-carousel { height: 400px; } }
@media (max-width: 720px) { .hero-carousel { height: 500px; } }
@media (max-width: 500px) { .hero-carousel { height: 600px; } }
