/* --- Global Reset & Variables --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --color-heading: #1e293b;
  --color-body: #475569;
  --color-accent: #f39c12;
  --color-accent-hover: #d68910;
  --color-accent-light: #fffbeb;
  --color-accent-border: #fde68a;
  
  --color-navy: #0b3c5d;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  
  --radius-card: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 20px 30px -10px rgba(11, 60, 93, 0.35);
}

body {
  font-family: var(--font-body);
  background-color: #f8fafc;
  color: var(--color-body);
  line-height: 1.6;
}

/* --- Hero Banner --- */
.page-hero {
  background: linear-gradient(135deg, #0b3c5d 0%, #072b43 100%);
  color: #ffffff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-accent);
  background: rgba(243, 156, 18, 0.15);
  border: 1px solid var(--color-accent);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #d0e1f9;
  line-height: 1.7;
}

/* --- Main Structure --- */
.products-section {
  padding: 3rem 1.5rem;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* --- Category Headers --- */
.category-header {
  margin-bottom: 2rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-heading);
}

/* --- Product Cards Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-border);
}

.card-badge {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.925rem;
  color: var(--color-body);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.spec-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-size: 0.875rem;
}

.spec-list li {
  margin-bottom: 0.5rem;
}

.spec-list li strong {
  color: var(--color-heading);
}

/* Simple Cards (Insulation Products) */
.simple-card {
  align-items: flex-start;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* --- Accessories Table --- */
.table-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.accessories-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.accessories-table th,
.accessories-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.accessories-table th {
  background-color: #f1f5f9;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.accessories-table tr:last-child td {
  border-bottom: none;
}

.accessories-table tr:hover td {
  background-color: #f8fafc;
}

.code-tag {
  font-family: monospace;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
}

/* --- QA & CTA Two Column Section --- */
.qa-section {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.qa-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.qa-left-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qa-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.qa-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.qa-description {
  font-size: 0.95rem;
  color: var(--color-body);
}

.qa-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-accent);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.3rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--color-body);
}

/* CTA Card */
.cta-card {
  background: var(--color-navy);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-cta);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.cta-description {
  font-size: 0.95rem;
  color: #d0e1f9;
}

.cta-btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #0d1b2a;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.cta-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .qa-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
















/* --- Product Image Container --- */
.product-card {
  overflow: hidden; /* Prevents image zoom spillover on hover */
  padding: 0; /* Removing top/side padding to allow full-bleed image header */
}

.product-image-wrapper {
  width: 100%;
  height: 200px;
  background-color: #f1f5f9;
  overflow: hidden;
  position: relative;
}

.product-image-wrapper.thumbnail-height {
  height: 160px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Ensure the overall footer acts as a positioning container */
footer, .footer-section {
  position: relative;
  background-color: #0d1726; /* Navy background */
  color: #a0aec0;
}

/* 1. Main Footer Body Spacing */
.footer-main {
  padding-top: 60px;
  padding-bottom: 50px;
}

/* 2. Bottom Copyright Section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Subtle separator line */
  padding: 20px 0;
  background-color: #0a121e; /* Slightly darker shade for distinct separation */
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright-text {
  margin: 0;
  font-size: 14px;
  color: #e2e8f0;
}

/* Social Icons Layout */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background-color: #c5a059; /* Brand Accent/Gold */
  color: #ffffff;
}

/* 3. Back To Top Button Position Fix */
#back-to-top, .scroll-to-top, .top-btn {
  position: fixed; /* Or absolute to page wrapper if preferred */
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: #1a293e;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#back-to-top:hover {
  background-color: #c5a059;
}