/* ============================================================
   Cool & Heat — Main Stylesheet
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #0d47a1;
  --primary-light: #1565c0;
  --primary-dark:  #0a3580;
  --accent:        #ff5722;
  --accent-light:  #ff7043;
  --success:       #2e7d32;
  --warning:       #f57c00;
  --danger:        #c62828;
  --info:          #0288d1;

  --text-dark:     #1a1a2e;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --border:        #e2e8f0;
  --bg-light:      #f7f9fc;
  --bg-white:      #ffffff;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --font-body:     'Inter', sans-serif;
  --font-heading:  'Montserrat', sans-serif;

  --nav-h:         72px;
  --transition:    .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  padding-top: var(--nav-h);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header h2 { color: var(--primary); margin-bottom: 12px; }
.section-header p { color: var(--text-mid); max-width: 540px; margin: 0 auto; }
.section-divider {
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-h);
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  transition: background var(--transition);
}
.navbar.scrolled { background: var(--primary-dark); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  color: #fff;
}
.logo-mark {
  display: flex; gap: 2px;
  font-size: 1.3rem;
}
.logo-mark .fa-snowflake { color: #90caf9; }
.logo-mark .fa-fire-flame-curved { color: #ffb74d; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 1.2rem; font-weight: 700; color: #fff; }
.logo-sub { font-size: .65rem; font-weight: 500; color: rgba(255,255,255,.65); letter-spacing: .06em; }

.nav-menu {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.nav-cta {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
}
.nav-link.nav-cta:hover { background: var(--accent-light); }
.nav-link.nav-admin {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
}
.nav-link.nav-admin:hover { color: rgba(255,255,255,.9); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b71c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1b5e20; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-mid); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-light); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-light); }
.card-img-placeholder {
  width: 100%; height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e3f2fd, #e8eaf6);
  color: var(--text-light);
  gap: 8px; font-size: .85rem;
}
.card-img-placeholder i { font-size: 2.5rem; color: var(--primary); opacity: .4; }
.card-body { padding: 20px; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
.card-subtitle { font-size: .8rem; color: var(--text-light); margin-bottom: 12px; }
.card-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.card-price-note { font-size: .72rem; color: var(--text-light); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
}
.tag-blue { background: #e3f2fd; color: #1565c0; }
.tag-orange { background: #fff3e0; color: #e65100; }
.tag-green { background: #e8f5e9; color: #2e7d32; }
.tag-gray { background: var(--bg-light); color: var(--text-mid); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,71,161,.12);
}
.form-control::placeholder { color: var(--text-light); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .78rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 4px; }
.form-section-title { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-pending  { background: #fff8e1; color: #f57c00; }
.badge-progress { background: #e3f2fd; color: #1565c0; }
.badge-sent     { background: #e8eaf6; color: #3949ab; }
.badge-accepted { background: #e8f5e9; color: #2e7d32; }
.badge-declined { background: #ffebee; color: #c62828; }
.badge-done     { background: #e8f5e9; color: #2e7d32; }
.badge-delete   { background: #ffebee; color: #c62828; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1976d2 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-floating {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  display: flex; align-items: center; justify-content: center;
  opacity: .06;
  font-size: 280px;
  color: #fff;
}
.hero-content { position: relative; z-index: 1; max-width: 620px; color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}
.hero-title { margin-bottom: 20px; }
.hero-title .highlight { color: #ffb74d; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.65); }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: var(--primary-dark);
  padding: 24px 0;
}
.features-row {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.feature-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85);
}
.feature-item i { font-size: 1.4rem; color: #ffb74d; }
.feature-item strong { font-size: .9rem; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card { display: flex; flex-direction: column; }
.product-card .card-body { flex: 1; display: flex; flex-direction: column; }
.product-card .card-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }
.filter-bar label { font-size: .78rem; }

/* ============================================================
   QUOTE BUILDER
   ============================================================ */
.quote-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start;
}
.quote-items-panel, .quote-summary-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-header h3 { font-size: 1rem; }
.panel-body { padding: 24px; }

.quote-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.quote-item:last-child { border-bottom: none; }
.quote-item-info { font-weight: 500; font-size: .9rem; margin-bottom: 4px; }
.quote-item-brand { font-size: .78rem; color: var(--text-light); }
.quote-item-controls { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-display { width: 32px; text-align: center; font-weight: 600; font-size: .9rem; }
.meter-input { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.meter-input input { width: 64px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; text-align: center; }
.meter-input input:focus { border-color: var(--primary); outline: none; }
.meter-input label { color: var(--text-mid); white-space: nowrap; }
.item-remove { color: var(--danger); font-size: .8rem; cursor: pointer; margin-left: 4px; }
.item-remove:hover { color: #b71c1c; }

.summary-line { display: flex; justify-content: space-between; font-size: .9rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-line:last-of-type { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; padding: 16px 0 8px; }
.summary-note { font-size: .75rem; color: var(--text-light); font-style: italic; }
.empty-cart { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-cart i { font-size: 3rem; opacity: .3; margin-bottom: 12px; }

/* ============================================================
   QUOTE / INVOICE VIEWER
   ============================================================ */
.doc-wrapper {
  max-width: 860px; margin: 40px auto; padding: 0 20px;
}
.doc-actions {
  display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 24px; flex-wrap: wrap;
}
.doc-paper {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 56px 64px;
}
.doc-header { display: flex; justify-content: space-between; margin-bottom: 40px; }
.doc-logo { display: flex; align-items: center; gap: 10px; }
.doc-logo .logo-mark { font-size: 1.5rem; }
.doc-logo .logo-main { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.doc-logo .logo-sub { font-size: .7rem; color: var(--text-light); }
.doc-type-badge {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
  color: var(--primary); letter-spacing: .04em;
  text-transform: uppercase;
}
.doc-type-badge.invoice { color: var(--success); }
.doc-meta { display: flex; gap: 40px; margin-bottom: 32px; }
.doc-meta-group label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); display: block; margin-bottom: 2px; }
.doc-meta-group span { font-size: .9rem; font-weight: 500; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--bg-light); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 32px; }
.doc-party h4 { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: 8px; }
.doc-party p { font-size: .88rem; line-height: 1.8; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .88rem; }
.doc-table th { background: var(--primary); color: #fff; text-align: left; padding: 10px 14px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.doc-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:nth-child(even) td { background: var(--bg-light); }
.doc-totals { display: flex; justify-content: flex-end; margin-bottom: 32px; }
.doc-totals-table { width: 300px; }
.doc-totals-table tr td { padding: 6px 14px; font-size: .9rem; }
.doc-totals-table .total-row td { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--primary); padding-top: 10px; color: var(--primary); }
.doc-note {
  background: #fff8e1; border-left: 4px solid var(--warning);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .82rem; color: var(--text-mid); margin-bottom: 28px;
}
.doc-banking { background: var(--bg-light); padding: 20px 24px; border-radius: var(--radius-sm); margin-bottom: 28px; }
.doc-banking h4 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: 12px; }
.doc-banking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-banking-item label { font-size: .72rem; color: var(--text-light); display: block; }
.doc-banking-item span { font-size: .88rem; font-weight: 500; }
.doc-footer-strip { border-top: 2px solid var(--primary); padding-top: 16px; text-align: center; font-size: .78rem; color: var(--text-light); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  columns: 3; column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(13,71,161,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { font-size: 2rem; color: #fff; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.1);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
}
.area-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500;
  color: var(--text-mid);
  background: var(--bg-white);
  transition: all var(--transition);
}
.area-pill i { color: var(--primary); }
.area-pill:hover { border-color: var(--primary); color: var(--primary); background: #e8f0fe; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--primary);
  color: #fff; border-radius: var(--radius-md);
  padding: 40px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item i { font-size: 1.2rem; color: #90caf9; margin-top: 2px; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: .92rem; color: rgba(255,255,255,.85); }
.contact-info-item a:hover { color: #fff; }

.address-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.address-card h4 { color: var(--primary); margin-bottom: 8px; font-size: .95rem; }
.address-card p { font-size: .88rem; color: var(--text-mid); margin-bottom: 10px; }
.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: .82rem; font-weight: 500;
}
.map-link:hover { color: var(--accent-light); }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-layout {
  min-height: 100vh;
  background: #f0f2f5;
}
.admin-sidebar {
  position: fixed; left: 0; top: var(--nav-h); bottom: 0; width: 260px;
  background: var(--primary-dark);
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .9rem;
}
.admin-sidebar-logo span { display: block; font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.sidebar-nav { padding: 12px 0; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.sidebar-nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav-item.active { color: #fff; background: rgba(255,255,255,.12); border-right: 3px solid #fff; }
.sidebar-nav-item i { width: 20px; text-align: center; }
.admin-content {
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}
.admin-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.admin-page-header h2 { color: var(--primary); }

/* Stats Cards */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-icon.blue { background: #e3f2fd; color: var(--primary); }
.stat-icon.orange { background: #fff3e0; color: var(--accent); }
.stat-icon.green { background: #e8f5e9; color: var(--success); }
.stat-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-light); margin-top: 2px; }

/* Admin Table */
.admin-table-wrap { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { background: var(--bg-light); text-align: left; padding: 12px 16px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-light); }

/* Admin Forms */
.admin-form-card { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.admin-form-card h3 { font-size: 1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--primary); }

/* Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.55);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 560px; width: 90%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-bottom: 24px; color: var(--primary); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-light); color: var(--text-mid);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  min-width: 280px; max-width: 380px;
  animation: slideIn .3s ease;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-mark { margin-bottom: 12px; }
.footer-logo-mark { font-size: 1.4rem; }
.footer .logo-mark .fa-snowflake { color: #90caf9; }
.footer .logo-mark .fa-fire-flame-curved { color: #ffb74d; }
.footer-brand h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.footer-brand .footer-tagline { font-size: .78rem; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; font-size: .85rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-address { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-address i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-address p { font-size: .82rem; line-height: 1.7; }
.footer-address .map-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: #90caf9; font-size: .78rem; }
.footer-address .map-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.4);
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  display: flex; align-items: center; justify-content: center;
  min-height: 400px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- BTU Pills (product variant selector) ---------- */
.btu-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.btu-pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.6;
}
.btu-pill:hover { border-color: var(--primary); color: var(--primary); }
.btu-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Full-page Loader Overlay ---------- */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  transition: opacity .35s ease;
}
#pageLoader.hidden { opacity: 0; pointer-events: none; }
#pageLoader .pl-logo { font-size: 2.8rem; color: var(--primary); }
#pageLoader .pl-brand { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary); font-weight: 700; letter-spacing: .02em; }
#pageLoader .pl-sub { font-size: .78rem; color: var(--text-light); margin-top: -6px; }

/* ============================================================
   LOGIN FORM
   ============================================================ */
.login-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light);
  padding: 40px 20px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-card .logo-mark { font-size: 2rem; justify-content: center; margin-bottom: 16px; }
.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card .login-sub { text-align: center; color: var(--text-light); font-size: .88rem; margin-bottom: 32px; }

/* ============================================================
   MISC / UTILS
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.color-accent { color: var(--accent); }
.color-primary { color: var(--primary); }
.bg-light-section { background: var(--bg-light); }
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .footer, .doc-actions, .admin-sidebar, #toastContainer { display: none !important; }
  body { padding-top: 0 !important; }
  .doc-paper { box-shadow: none; border: none; padding: 0; }
  .doc-wrapper { margin: 0; padding: 0; max-width: 100%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-menu {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--primary-dark);
    padding: 12px 0;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 24px; border-radius: 0; width: 100%; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero-floating { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .doc-paper { padding: 24px 20px; }
  .doc-header { flex-direction: column; gap: 12px; }
  .doc-parties { grid-template-columns: 1fr; }
  .doc-banking-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .gallery-grid { columns: 1; }
  .doc-meta { flex-direction: column; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .doc-banking-grid { grid-template-columns: 1fr; }
}
