/* ============================================================
   SOLARISM.CA — Production Stylesheet
   Senior Engineering Lead · Clean-Tech Infrastructure
   Brand: Deep Navy + Solar Gold | Mobile-first | A11y-first
   ============================================================ */

:root {
  /* Brand Palette — extracted & refined from official logos */
  --navy-950: #050b14;
  --navy-900: #0a1424;
  --navy-800: #0f1c32;
  --navy-700: #152742;
  --navy-600: #1e3a5f;
  --gold-500: #e8b923;
  --gold-400: #f0c93a;
  --gold-300: #f7d96a;
  --gold-200: #fce9a0;
  --gold-glow: rgba(232, 185, 35, 0.35);
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #d8dde6;
  --gray-400: #8b95a8;
  --gray-600: #4a5568;
  --success: #10b981;
  --error: #ef4444;

  /* Typography */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing & Layout */
  --container: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 32px var(--gold-glow);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

/* Utility */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 20, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 185, 35, 0.12);
  transition: background var(--duration) var(--ease), box-shadow var(--duration);
}
.site-header.scrolled {
  background: rgba(5, 11, 20, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold-400);
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: color 0.25s;
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--gold-400);
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after { width: 100%; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--gold-glow);
}
.btn-outline {
  background: transparent;
  color: var(--gold-400);
  border: 1.5px solid rgba(232, 185, 35, 0.5);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(232, 185, 35, 0.1);
  border-color: var(--gold-400);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.form-privacy {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-align: center;
  margin-top: 0.5rem;
}
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold-400);
  transition: all 0.3s;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(232, 185, 35, 0.15);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--gray-200);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-mobile a:hover { color: var(--gold-400); }
.nav-mobile .btn { margin-top: 0.5rem; width: 100%; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .mobile-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(232, 185, 35, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(30, 58, 95, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  z-index: 0;
}
.hero-rays {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(232,185,35,0.06) 20deg, transparent 40deg, rgba(232,185,35,0.04) 60deg, transparent 80deg, rgba(232,185,35,0.05) 100deg, transparent 120deg, rgba(232,185,35,0.03) 140deg, transparent 160deg);
  pointer-events: none;
  opacity: 0.7;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 185, 35, 0.12);
  border: 1px solid rgba(232, 185, 35, 0.3);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--gray-200);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat {
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--gold-400);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: var(--section-pad) 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header--left {
  text-align: left;
  margin: 0 0 2rem;
  max-width: none;
}
.section-header--left .section-title,
.section-header--left .section-desc {
  text-align: left;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.section-dark {
  background: var(--navy-900);
  color: var(--white);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-desc { color: var(--gray-200); }
.section-alt { background: var(--off-white); }

/* ========== PRODUCTS ========== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-icon-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  position: relative;
  overflow: hidden;
}
.product-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(232,185,35,0.15), transparent 60%);
}
.product-icon {
  width: 64px;
  height: 64px;
  color: var(--gold-400);
  position: relative;
  z-index: 1;
}
.product-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.product-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--navy-700);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-500);
  transition: gap 0.25s;
}
.product-link:hover { gap: 0.65rem; }
.product-link svg { width: 16px; height: 16px; }

/* ========== WHY / WINTER ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
}
.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.why-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232, 185, 35, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-text h4 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 0.3rem;
}
.section-dark .feature-text h4 { color: var(--white); }
.feature-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.section-dark .feature-text p { color: var(--gray-200); }

/* ========== ROI / BENEFITS ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.benefit-card:hover {
  border-color: rgba(232, 185, 35, 0.4);
  box-shadow: var(--shadow-gold);
}
.benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}
.benefit-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ========== ROI CALCULATOR (simple) ========== */
.calculator-wrap {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.calc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.calc-sub {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.calc-form {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .calc-form { grid-template-columns: 1fr 1fr; }
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-200);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--navy-800);
  color: var(--white);
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-500);
}
.calc-result {
  grid-column: 1 / -1;
  background: rgba(232, 185, 35, 0.1);
  border: 1px solid rgba(232, 185, 35, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
}
.calc-result .result-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--gold-400);
  line-height: 1.2;
}
.calc-result .result-label {
  font-size: 0.9rem;
  color: var(--gray-200);
  margin-top: 0.35rem;
}
.calc-result .result-co2 {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gold-300);
}
.calc-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 0.5rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
.contact-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy-900);
}
.contact-info p {
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail span {
  font-size: 0.95rem;
  color: var(--navy-800);
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.contact-form {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 500px) {
  .contact-form .half { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--navy-900);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.15);
  background: var(--white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}
.form-success.show { display: block; }
.contact-form.submitted .form-fields { display: none; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-200);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand .logo-img { height: 48px; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-400);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
  letter-spacing: 0.03em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--gold-300); }

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 599px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .stat { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
  .stat-value { font-size: 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}