/* ==========================================================================
   Renova Lighting Systems — Design System
   ========================================================================== */

:root {
  /* Brand colors — Renova palette (teal / amber / light aqua) */
  --navy-950: #122f32;
  --navy-900: #16383c;
  --navy-800: #1d484d;
  --navy-700: #24575d;
  --blue-600: #4aabb3;   /* brand teal, lightened */
  --blue-500: #6ec2c9;
  --blue-100: #ddeaec;   /* brand light aqua */
  --amber-500: #fdbd5a;  /* brand amber */
  --amber-600: #f0a233;
  --gray-950: #14211f;
  --gray-800: #2c3a3a;
  --gray-600: #57696a;
  --gray-400: #8ba0a1;
  --gray-200: #d9e5e6;
  --gray-100: #eef5f6;
  --white: #ffffff;
  --green-600: #1f9d55;

  /* Semantic */
  --bg: var(--white);
  --bg-muted: var(--gray-100);
  --text: var(--gray-950);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(10, 26, 47, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 26, 47, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 26, 47, 0.16);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--amber-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue-600); padding: 8px 4px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: transparent; color: #c0392b; border-color: #e3b1a9; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 26, 47, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber-500), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-sub { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; color: var(--gray-400); text-transform: uppercase; }
.logo-img { height: 88px; width: auto; border-radius: 0; display: block; flex-shrink: 0; }
.portal-sidebar .logo-img, .auth-card .logo-img { height: 92px; }
.site-footer .logo-img { height: 96px; }
@media (max-width: 640px) {
  .logo-img { height: 60px; }
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,0.08); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--navy-950); flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-sm); color: var(--white); cursor: pointer; }
  .header-actions .btn-secondary { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 18% 20%, var(--navy-800), var(--navy-950) 65%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(245,166,35,0.22), transparent 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.about-photo {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .about-photo { height: 260px; } }

.flag-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex; align-items: center;
}
.flag-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.flag-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,47,50,0.88) 0%, rgba(18,47,50,0.55) 45%, rgba(18,47,50,0.2) 100%);
  z-index: 1;
}
.flag-banner-content { position: relative; z-index: 2; padding: 40px 48px; max-width: 560px; color: var(--white); }
.flag-banner-content h2 { color: var(--white); }
.flag-banner-content p { color: rgba(255,255,255,0.82); }
@media (max-width: 640px) { .flag-banner-content { padding: 28px 24px; } }

.page-hero {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 68px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 620px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   Sections / Layout helpers
   ========================================================================== */
section { padding: 84px 0; }
.section-muted { background: var(--bg-muted); }
.section-navy { background: var(--navy-950); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Stat strip */
.stat-strip { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: center; }
.stat-strip .stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--navy-950); }
.section-navy .stat-strip .stat b { color: var(--white); }
.stat-strip .stat span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.section-navy .stat-strip .stat span { color: rgba(255,255,255,0.6); }

/* Testimonials */
.testimonial { background: var(--white); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.testimonial p { color: var(--text); font-style: italic; }
.testimonial .who { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; font-style: normal; }

/* Values */
.value-item { display: flex; gap: 16px; }
.value-item .num { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--amber-500); }

/* Homepage hero slideshow (nested inside .hero-visual) */
.hero-visual .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-visual .slide.active { opacity: 1; z-index: 1; }
.hero-visual .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .slide.contain img { object-fit: contain; background: var(--navy-950); }
.hero-visual .slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(18,47,50,0.85) 0%, rgba(18,47,50,0.2) 55%, rgba(18,47,50,0.05) 78%);
}
.hero-visual .slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  color: var(--white);
  z-index: 2;
}
.hero-visual .slide-caption .eyebrow { color: var(--amber-500); font-size: 0.68rem; }
.hero-visual .slide-caption h3 { color: var(--white); margin: 2px 0 0; font-size: 1.02rem; line-height: 1.3; }
.slideshow-dots { position: absolute; z-index: 3; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.slideshow-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; padding: 0; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slideshow-dots button.active { background: var(--amber-500); transform: scale(1.3); }
.slideshow-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(18,47,50,0.45); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s ease;
}
.slideshow-arrow:hover { background: rgba(18,47,50,0.75); }
.slideshow-arrow.prev { left: 12px; }
.slideshow-arrow.next { right: 12px; }
@media (max-width: 640px) {
  .slideshow-arrow { width: 28px; height: 28px; }
}

/* Legal / terms content */
.legal-layout { display: grid; grid-template-columns: 1fr 200px; gap: 48px; align-items: start; }
.legal-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-icon-btn { flex: 1 1 130px; }
}

.legal-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.legal-icon-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-500); }
.legal-icon-btn .icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.legal-icon-btn.primary .icon-circle { background: var(--amber-500); color: var(--navy-950); }

.legal-accordion { border-top: 1px solid var(--border); }
.legal-accordion details { border-bottom: 1px solid var(--border); }
.legal-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}
.legal-accordion summary::-webkit-details-marker { display: none; }
.legal-accordion summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-accordion details[open] summary::after { content: "−"; background: var(--blue-600); color: var(--white); }
.legal-accordion summary:hover::after { background: var(--blue-500); color: var(--white); }
.legal-accordion .legal-body { padding: 0 2px 22px; }
.legal-accordion .legal-body p { color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Team / leadership */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; max-width: 760px; margin: 0 auto; }
.team-card { text-align: center; padding: 0 12px; }
.team-card .team-photo {
  width: 220px; height: 220px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 24px; border: 4px solid var(--white); box-shadow: var(--shadow-md);
}
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--blue-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.team-card p { color: var(--text-muted); line-height: 1.65; }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-card .team-photo { width: 180px; height: 180px; }
}

/* Badges / tags */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--blue-100); color: var(--blue-600);
}
.badge.amber { background: #fdf1dc; color: var(--amber-600); }
.badge.green { background: #e5f7ec; color: var(--green-600); }
.badge.gray { background: var(--gray-100); color: var(--gray-600); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.65); display: block; padding: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,125,233,0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.helper-text { font-size: 0.8rem; color: var(--gray-400); margin-top: -12px; margin-bottom: 18px; }

/* ==========================================================================
   Products page
   ========================================================================== */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters-col { display: flex; flex-direction: column; gap: 20px; }
.filters-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.filters-panel h3 { font-size: 1rem; margin-bottom: 4px; }
.filter-group { border-top: 1px solid var(--border); padding: 16px 0; }
.dlc-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.dlc-panel .filter-title { margin-bottom: 10px; }
.dlc-panel-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none;
  color: var(--navy-900); font-size: 0.85rem; font-weight: 600; background: var(--gray-100);
  transition: border-color .15s ease, background .15s ease;
}
.dlc-panel-link:hover { border-color: var(--navy-800); background: var(--white); box-shadow: var(--shadow-sm); }
.dlc-panel-link svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber-600); }
.dlc-panel-link .dlc-panel-sub { display: block; font-weight: 400; font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.filter-group:first-of-type { border-top: none; }
.filter-group .filter-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; display: flex; justify-content: space-between; }
.filter-option { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; padding: 5px 0; color: var(--text); }
.filter-option input { accent-color: var(--blue-600); margin-top: 3px; flex-shrink: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-bar select { padding: 9px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); }
.search-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 20px; background: var(--white); }
.search-box input { border: none; outline: none; width: 100%; font-size: 0.95rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: 1fr; } .products-layout { grid-template-columns: 1fr; } .filters-panel { position: static; } }

.product-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5);
  position: relative;
}
.product-thumb svg { width: 52px; height: 52px; opacity: 0.85; }
.product-thumb.has-photo { background: var(--white); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-600); font-weight: 700; margin-bottom: 6px; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-body h3 a { color: inherit; }
.product-specs { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.product-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ==========================================================================
   Product Detail
   ========================================================================== */
.pd-layout { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .pd-layout { grid-template-columns: 1fr; } }
.pd-image { position: sticky; top: 92px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden; }
.pd-image img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.pd-image .pd-placeholder { color: var(--gray-300); }
.pd-image .pd-placeholder svg { width: 100px; height: 100px; }
@media (max-width: 860px) { .pd-image { position: static; } }
.pd-sku { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; color: var(--blue-600); text-transform: uppercase; margin-bottom: 8px; }
.pd-title { margin-bottom: 10px; }
.pd-intro { font-size: 1.05rem; font-weight: 600; color: var(--navy-900); margin-bottom: 18px; }
.pd-desc p { line-height: 1.7; }
.pd-ideal-for { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
@media (max-width: 520px) { .pd-ideal-for { grid-template-columns: 1fr; } }
.pd-ideal-for li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; color: var(--text); }
.pd-ideal-for li::before { content: "✔"; color: var(--amber-600); font-weight: 700; flex-shrink: 0; }
.pd-downloads { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 6px; }
.pd-downloads h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px; }
.pd-download-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.pd-download-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy-900); text-decoration: none;
  font-size: 0.9rem; font-weight: 600; background: var(--white); transition: border-color .15s ease, background .15s ease;
}
.pd-download-item:hover { border-color: var(--navy-800); background: var(--gray-100); }
.pd-download-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber-600); }
.pd-download-item .pd-download-meta { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; margin-left: auto; }
.pd-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pd-not-found { text-align: center; padding: 90px 20px; color: var(--text-muted); }

/* ==========================================================================
   Projects
   ========================================================================== */
.project-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.project-thumb { height: 190px; background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body { padding: 20px; }
.project-body .badge { margin-bottom: 10px; }

/* ==========================================================================
   Login / Portal
   ========================================================================== */
.auth-shell {
  min-height: calc(100vh - 0px);
  background: radial-gradient(circle at 20% 20%, var(--navy-800), var(--navy-950) 70%);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.auth-card .logo { color: var(--navy-950); margin-bottom: 24px; }
.auth-demo-note { background: var(--blue-100); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.82rem; color: var(--navy-800); margin-bottom: 22px; }
.form-error { background: #fdecea; color: #c0392b; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }
.form-success { background: #eafaf1; color: #1e8449; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; display: none; }
.form-success.show { display: block; }
.h-captcha { margin-bottom: 18px; }

.btn-outline { background: var(--white); color: var(--navy-900); border-color: var(--border); }
.btn-outline:hover { background: var(--blue-100); }
.btn-outline:disabled { opacity: 0.6; cursor: not-allowed; }
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.oauth-btn { gap: 10px; }
.oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
#google-btn { display: flex; justify-content: center; min-height: 40px; }
.oauth-not-configured { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 10px; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.oauth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--text-muted); font-size: 0.8rem; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,26,47,0.55); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px;
}
.modal-box .field { margin-bottom: 14px; }
.modal-box .option-price { color: var(--text-muted); font-size: 0.8rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text-muted); }

.portal-shell { display: flex; min-height: 100vh; background: var(--bg-muted); }
.portal-sidebar {
  width: 240px; background: var(--navy-950); color: var(--white); flex-shrink: 0;
  padding: 24px 18px; display: flex; flex-direction: column;
}
.portal-sidebar .logo { color: var(--white); margin-bottom: 32px; }
.portal-nav a {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.78);
  padding: 11px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; margin-bottom: 4px;
}
.portal-nav a:hover, .portal-nav a.active { background: rgba(255,255,255,0.1); color: var(--white); }
.portal-user { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.portal-user .name { color: var(--white); font-weight: 700; }
.portal-main { flex: 1; padding: 32px 36px; max-width: calc(100% - 240px - 320px); }
.portal-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.portal-quote-panel { width: 320px; flex-shrink: 0; background: var(--white); border-left: 1px solid var(--border); padding: 26px 22px; display: flex; flex-direction: column; }
.quote-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.quote-item .qi-name { font-size: 0.88rem; font-weight: 700; }
.quote-item .qi-meta { font-size: 0.78rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-control button { width: 24px; height: 24px; border-radius: 5px; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-weight: 700; }
.qty-control input { width: 38px; text-align: center; border: 1px solid var(--border); border-radius: 5px; padding: 3px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 1200px) { .portal-quote-panel { display: none; } .portal-main { max-width: calc(100% - 240px); } }
@media (max-width: 860px) { .portal-shell { flex-direction: column; } .portal-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; } .portal-nav { display: flex; gap: 6px; } .portal-user { display: none; } .portal-main { max-width: 100%; padding: 24px; } .dash-cards { grid-template-columns: repeat(2, 1fr); } }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
table.data-table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 14px 16px; background: var(--gray-100); }
table.data-table td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 0.9rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-950); color: var(--white); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Certification / credential badges
   ========================================================================== */
.credentials-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(74,171,179,0.30), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(253,189,90,0.28), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(45,106,112,0.22), transparent 55%),
    linear-gradient(150deg, var(--blue-100) 0%, var(--white) 60%);
  border-bottom: 1px solid var(--border);
}
.credentials-section::before,
.credentials-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.credentials-section::before {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(74,171,179,0.24), transparent 70%);
  top: -200px; left: -140px;
}
.credentials-section::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(253,189,90,0.26), transparent 70%);
  bottom: -170px; right: -110px;
}
.credentials-section .container { position: relative; z-index: 1; }
.credentials-section { border-top: 3px solid var(--blue-600); }

.credentials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.credential-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.credential-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.credentials-row img { height: 120px; width: auto; }
.credentials-row img.credential-wide { height: 76px; }
.credentials-row.dense { gap: 28px; }
.credentials-row.dense img { height: 89px; }
.credentials-row.dense img.credential-wide { height: 65px; }
@media (max-width: 640px) {
  .credentials-row img { height: 72px; }
  .credentials-row img.credential-wide { height: 46px; }
  .credential-chip { padding: 12px 16px; }
}

/* ==========================================================================
   Print (used by the sales portal quote view)
   ========================================================================== */
@media print {
  .portal-sidebar, .portal-quote-panel, .portal-topbar, .site-header, .site-footer, .no-print { display: none !important; }
  .portal-shell { display: block; }
  .portal-main { max-width: 100%; padding: 0; }
  body { background: var(--white); }
  .card { box-shadow: none; border: none; }
}
