/* ==========================================================================
   PHIM CÁCH NHIỆT MỚI HÒA PHÁT - MAIN CSS
   Design System: Corporate Light Mode - Solar Gard Style
   Fonts: Outfit (Headings) + Inter (Body) from Google Fonts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. IMPORT FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary:     #005A9C;   /* Saint-Gobain Blue */
  --color-navy:        #0A4C87;   /* Menu Bar */
  --color-deep-navy:   #022B54;   /* Footer / Dark gradient */
  --color-cyan-hover:  #0073E6;   /* Link hover */
  --color-gold:        #EBB000;   /* CTA Buttons */
  --color-gold-dark:   #D4A000;   /* CTA hover state */
  --color-teal-light:  #E6F2FF;   /* AI chat bubble bg */

  /* Neutral Colors */
  --color-white:       #FFFFFF;
  --color-bg-page:     #FFFFFF;
  --color-bg-surface:  #F5F7FA;
  --color-text-main:   #2A2A2A;
  --color-text-sub:    #666666;
  --color-border:      #E1E4E8;
  --color-muted:       #C5C6C7;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Font Sizes */
  --fs-h1:   54px;
  --fs-h2:   32px;
  --fs-h3:   20px;
  --fs-body: 15px;
  --fs-sm:   13px;
  --fs-btn:  15px;

  /* Spacing */
  --spacing-xs:  8px;
  --spacing-sm:  16px;
  --spacing-md:  24px;
  --spacing-lg:  48px;
  --spacing-xl:  80px;

  /* Border Radius */
  --radius-btn:     6px;
  --radius-card:    12px;
  --radius-chatbot: 16px;

  /* Container */
  --container-max: 1200px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0,90,156,0.10);
  --shadow-btn:  0 4px 12px rgba(235,176,0,0.30);
  --shadow-nav:  0 2px 12px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section { padding: var(--spacing-xl) 0; }
.section--surface { background-color: var(--color-bg-surface); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--spacing-md); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: var(--spacing-sm); }

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; }

.h1 { font-size: var(--fs-h1); font-weight: 700; color: var(--color-white); }
.h2 { font-size: var(--fs-h2); font-weight: 600; color: var(--color-primary); line-height: 1.3; }
.h3 { font-size: var(--fs-h3); font-weight: 600; color: var(--color-text-main); line-height: 1.4; }

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-sub);
  margin-bottom: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,90,156,0.35);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-deep-navy);
  box-shadow: var(--shadow-btn);
}
.btn-gold:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(235,176,0,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-white-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* --------------------------------------------------------------------------
   7. HEADER - DOUBLE TIER
   -------------------------------------------------------------------------- */
#site-header { position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-nav); }

/* Tier 1: Brand Bar */
.header-brand {
  background: var(--color-white);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--color-border);
}

.header-brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand__logo img {
  height: 40px;
  width: auto;
}

.header-brand__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  margin: 0 16px;
}

.header-brand__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #CCCCCC;
  border-radius: var(--radius-btn);
  overflow: hidden;
  width: 300px;
}

.header-search input {
  flex: 1;
  padding: 8px 14px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-text-main);
}

.header-search button {
  padding: 8px 14px;
  background: var(--color-primary);
  color: var(--color-white);
  transition: var(--transition);
}

.header-search button:hover { background: var(--color-navy); }

.header-lang { font-size: 13px; color: var(--color-text-sub); }
.header-lang a { font-weight: 600; color: var(--color-primary); }
.header-lang span { margin: 0 6px; }

.header-brand__right img { height: 36px; }

/* Tier 2: Navigation Menu */
.header-nav {
  height: 48px;
  background: linear-gradient(to right, var(--color-navy), var(--color-deep-navy));
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.header-nav nav { display: flex; align-items: center; gap: 4px; }

.header-nav a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  height: 48px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  color: var(--color-white);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

/* --------------------------------------------------------------------------
   8. HERO SLIDER
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: #001a33;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(2,43,84,0.75) 40%, transparent 80%);
}

.hero-slide__content {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  max-width: 540px;
  color: var(--color-white);
}

.hero-slide__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-slide__sub {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.3);
}

/* 4 Floating Tiles */
.hero-tiles {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(4, 140px);
  gap: 0;
}

.hero-tile {
  width: 140px; height: 140px;
  background: rgba(0,90,156,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.hero-tile:hover {
  background: rgba(0,90,156,0.97);
  transform: translateY(-4px);
}

.hero-tile svg { color: var(--color-white); opacity: 0.9; }

.hero-tile__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   9. WARRANTY CHECK WIDGET
   -------------------------------------------------------------------------- */
.warranty-widget {
  background: var(--color-bg-surface);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.warranty-widget__inner {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--spacing-lg);
  align-items: center;
}

.warranty-widget__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.warranty-widget__desc {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: var(--spacing-md);
}

.warranty-form {
  display: flex;
  gap: 8px;
}

.warranty-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.warranty-form input:focus {
  border-color: var(--color-primary);
}

.warranty-widget__img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* --------------------------------------------------------------------------
   10. BENEFIT ICONS GRID
   -------------------------------------------------------------------------- */
.benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--spacing-md); }

.benefit-item {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--radius-card);
  transition: var(--transition);
  cursor: default;
}

.benefit-item:hover {
  background: var(--color-teal-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.benefit-item__img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto var(--spacing-sm);
  border: 3px solid var(--color-border);
}

.benefit-item__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.benefit-item__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. PRODUCT CARDS
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,90,156,0.18);
  border-color: var(--color-primary);
}

.product-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-surface);
}

.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-heading);
}

.product-card__body {
  padding: var(--spacing-md);
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-card__specs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.spec-badge {
  background: var(--color-teal-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-heading);
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: var(--spacing-sm);
}

.product-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   12. HEAT SIMULATOR
   -------------------------------------------------------------------------- */
.simulator-section {
  background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-navy) 100%);
  padding: var(--spacing-xl) 0;
  color: var(--color-white);
}

.simulator-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.simulator-controls { }

.simulator-controls h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.simulator-controls p {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
}

.slider-label span { font-weight: 600; color: var(--color-gold); }

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  appearance: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  margin-bottom: var(--spacing-md);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 2px 8px rgba(235,176,0,0.5);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.simulator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.stat-box {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: var(--spacing-sm);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
}

.stat-box__value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  display: block;
  transition: color 0.5s ease;
}

.stat-box__label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.stat-hot { color: #FF6B6B; }
.stat-cool { color: #4ECDC4; }

.simulator-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-window-diagram {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.car-window-diagram svg {
  width: 100%;
  max-width: 300px;
}

/* --------------------------------------------------------------------------
   13. PROJECTS GALLERY
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.project-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.project-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover img { transform: scale(1.08); }

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,43,84,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
}

.project-item:hover .project-item__overlay { opacity: 1; }

.project-item__label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-card);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   14. BLOG CARDS
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-card__img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card__img { transform: scale(1.04); }

.blog-card__img-wrap { overflow: hidden; }

.blog-card__body { padding: var(--spacing-md); }

.blog-card__cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: var(--spacing-sm);
}

.blog-card__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
}

.blog-card__link:hover { color: var(--color-cyan-hover); }

/* --------------------------------------------------------------------------
   15. CONTACT / DEALER FORM SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  background: var(--color-bg-surface);
  padding: var(--spacing-xl) 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.contact-info p {
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.contact-highlights { display: flex; flex-direction: column; gap: 12px; }

.contact-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.contact-highlight svg { color: var(--color-gold); flex-shrink: 0; }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition);
  background: var(--color-white);
}

.form-control:focus { border-color: var(--color-primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-sm); }

textarea.form-control { resize: vertical; min-height: 100px; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
#site-footer {
  background: var(--color-deep-navy);
  color: var(--color-muted);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 10px; }

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--color-gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-contact-item svg { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: rgba(197,198,199,0.6);
}

.footer-bottom a { color: var(--color-gold); }

.footer-logo img { height: 36px; margin-bottom: var(--spacing-sm); }

/* --------------------------------------------------------------------------
   17. CHATBOT WIDGET
   -------------------------------------------------------------------------- */
.chatbot-launcher {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999 !important;
  box-shadow: 0 6px 24px rgba(0,90,156,0.45);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: pulse-ring 2.5s infinite;
}

.chatbot-launcher:hover {
  transform: scale(1.1);
  background: var(--color-navy);
}

.chatbot-launcher svg {
  width: 22px;
  height: 22px;
  color: white;
}

/* Chatbot badge */
.chatbot-launcher__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #EBB000;
  color: #022B54;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,90,156,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(0,90,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,90,156,0); }
}

.chatbot-tooltip {
  position: fixed !important;
  bottom: 86px !important;
  right: 24px !important;
  left: auto !important;
  background: var(--color-primary);
  color: white;
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  pointer-events: none;
  z-index: 99998 !important;
}

.chatbot-launcher:hover + .chatbot-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-window {
  display: none;
  position: fixed !important;
  bottom: 90px !important;
  right: 24px !important;
  left: auto !important;
  width: 380px;
  height:450px;
  max-height: 85vh;
  background: var(--color-white);
  border-radius: var(--radius-chatbot);
  border: 2px solid var(--color-primary);
  box-shadow: 0 20px 60px rgba(0,90,156,0.25);
  z-index: 100000 !important;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open { display: flex; animation: slideUp 0.3s ease; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-navy));
  color: white;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}

.chatbot-header__avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.chatbot-header__info { flex: 1; }

.chatbot-header__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}

.chatbot-header__status {
  font-size: 12px;
  opacity: 0.8;
  display: flex; align-items: center; gap: 5px;
}

.chatbot-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ECDC4;
  animation: blink 2s infinite;
}

@keyframes blink { 50% { opacity: 0.3; } }

.chatbot-close-btn {
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}

.chatbot-close-btn:hover { color: white; }

/* Step 1: Registration Form */
.chatbot-reg {
  flex: 1;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.chatbot-reg__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
}

.chatbot-reg__desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* Step 2: Chat Messages */
.chatbot-messages {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-sm);
  scroll-behavior: smooth;
  gap: 10px;
  flex-direction: column;
}

.chatbot-messages.active { display: flex; }

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-bubble--user {
  align-self: flex-end;
  background: #E6E6E6;
  color: var(--color-text-main);
  border-bottom-right-radius: 4px;
}

.chat-bubble--bot {
  align-self: flex-start;
  background: var(--color-teal-light);
  color: var(--color-text-main);
  border: 1px solid rgba(0,90,156,0.15);
  border-bottom-left-radius: 4px;
}

.chat-bubble--typing {
  background: var(--color-teal-light);
  padding: 12px 18px;
}

.typing-dots { display: flex; gap: 5px; align-items: center; }
.typing-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-8px); opacity: 1; }
}

/* Quick reply buttons */
.chatbot-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px var(--spacing-sm);
  border-top: 1px solid var(--color-border);
}

.quick-btn {
  background: var(--color-teal-light);
  color: var(--color-primary);
  border: 1px solid rgba(0,90,156,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.quick-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* Chat Input */
.chatbot-input-area {
  display: none;
  padding: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
  gap: 8px;
}

.chatbot-input-area.active { display: flex; }

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus { border-color: var(--color-primary); }

.chatbot-send {
  width: 40px; height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.chatbot-send:hover { background: var(--color-navy); transform: scale(1.05); }

/* --------------------------------------------------------------------------
   18. WARRANTY CERTIFICATE PAGE
   -------------------------------------------------------------------------- */
.cert-page { background: var(--color-bg-surface); padding: var(--spacing-xl) 0; }

.cert-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 16px;
  border: 8px solid var(--color-primary);
  box-shadow: 0 20px 60px rgba(0,90,156,0.2);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--color-gold);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

.cert-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-deep-navy));
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cert-header img { height: 52px; }

.cert-header__info h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-header__info p { color: rgba(255,255,255,0.75); font-size: 14px; }

.cert-body { padding: 40px; }

.cert-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  letter-spacing: 0.04em;
}

.cert-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.cert-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E8F8F0;
  border: 2px solid #2ECC71;
  color: #1A7A43;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
}

.cert-status-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #2ECC71;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.cert-field { border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }

.cert-field__label {
  font-size: 12px;
  color: var(--color-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
}

.cert-field__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-main);
  font-family: var(--font-heading);
}

.cert-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   19. BLOG DETAIL PAGE
   -------------------------------------------------------------------------- */
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
}

.blog-detail-content { }

.blog-detail-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.blog-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

.blog-meta a { color: var(--color-primary); font-weight: 600; }

.blog-content img {
  width: 100%;
  border-radius: var(--radius-card);
  margin: var(--spacing-sm) 0;
}

.blog-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  margin: var(--spacing-md) 0 var(--spacing-sm);
  padding-left: 14px;
  border-left: 4px solid var(--color-gold);
}

.blog-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-main);
  margin: var(--spacing-sm) 0 8px;
}

.blog-content p { margin-bottom: var(--spacing-sm); line-height: 1.8; color: var(--color-text-main); }

.blog-content ul, .blog-content ol {
  padding-left: 24px;
  margin-bottom: var(--spacing-sm);
}

.blog-content li { margin-bottom: 6px; line-height: 1.7; }

.blog-content ul li { list-style: disc; }
.blog-content ol li { list-style: decimal; }

/* Sidebar */
.blog-sidebar { }

.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-gold);
}

/* --------------------------------------------------------------------------
   20. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
}

.breadcrumbs a { color: var(--color-primary); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--color-cyan-hover); }
.breadcrumbs span { margin: 0 8px; }

/* --------------------------------------------------------------------------
   21. PRODUCT DETAIL PAGE
   -------------------------------------------------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
}

.product-img-gallery { }

.product-img-main {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid var(--color-border);
  margin-bottom: var(--spacing-sm);
}

.product-img-main img {
  width: 100%; height: 380px;
  object-fit: cover;
}

.product-img-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product-img-thumbs img {
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-img-thumbs img:hover, .product-img-thumbs img.active {
  border-color: var(--color-primary);
}

.product-detail-info h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: var(--spacing-md);
}

.product-price span { font-size: 16px; font-weight: 400; color: var(--color-text-sub); }

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-md);
}

.product-specs-table tr:nth-child(even) { background: var(--color-bg-surface); }

.product-specs-table td {
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--color-border);
}

.product-specs-table td:first-child {
  font-weight: 600;
  color: var(--color-text-sub);
  width: 45%;
}

.product-specs-table td:last-child {
  color: var(--color-text-main);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   22. ANIMATIONS & UTILITIES
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-gold { color: var(--color-gold-dark); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-md { margin-bottom: var(--spacing-md); }

/* --------------------------------------------------------------------------
   23. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --fs-h1: 36px;
    --fs-h2: 24px;
    --fs-h3: 18px;
  }

  .hero-slider { height: 500px; }
  .hero-slide__title { font-size: 28px; }
  .hero-tiles { display: none; }

  .products-grid,
  .blog-grid,
  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .benefits-grid { grid-template-columns: repeat(3, 1fr); }

  .simulator-inner,
  .contact-inner,
  .blog-detail-layout,
  .product-detail-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .warranty-widget__inner { grid-template-columns: 1fr; }

  .header-brand { padding: 0 16px; }
  .header-search { width: 200px; }

  .cert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  :root {
    --fs-h1: 28px;
    --fs-h2: 20px;
    --fs-btn: 14px;
  }

  .header-brand { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .header-brand__center { order: 3; width: 100%; }
  .header-search { width: 100%; }

  .header-nav { display: none; padding: 0; }
  .header-nav.open { display: flex; flex-direction: column; height: auto; }
  .header-nav a { height: 44px; padding: 0 20px; }

  .menu-toggle { display: block; }

  .hero-slider { height: 400px; }
  .hero-slide__content { left: 20px; right: 20px; max-width: 100%; }
  .hero-slide__title { font-size: 22px; }

  .products-grid,
  .blog-grid,
  .projects-grid,
  .benefits-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .chatbot-launcher {
    width: 44px !important;
    height: 44px !important;
    bottom: 30px !important;
    right: 20px !important;
  }
  .chatbot-launcher svg {
    width: 18px !important;
    height: 18px !important;
  }
  .chatbot-launcher__badge {
    top: -2px !important;
    right: -2px !important;
    font-size: 7.5px !important;
    padding: 1px 3px !important;
  }
  .chatbot-tooltip {
    bottom: 84px !important;
    right: 20px !important;
  }
  .chatbot-window {
    width: calc(100vw - 20px) !important;
    right: 10px !important;
    bottom: 90px !important;
  }

  .form-row { grid-template-columns: 1fr; }
}
