/* ============================================
   We Know Solar Energy - Main Stylesheet
   ============================================ */

/* --- CSS Reset & Custom Properties --- */
:root {
  --color-green-dark: #0A5C36;
  --color-green-mid: #1B8A4E;
  --color-green-light: #2ECC71;
  --color-gold: #F4B41A;
  --color-gold-light: #FFD54F;
  --color-black: #1A1A1A;
  --color-orange: #F57C00;
  --color-white: #FAFAFA;
  --color-gray-light: #F0F0F0;
  --color-gray: #6B7280;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-black);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-green-mid);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-gold);
  color: var(--color-black);
}
.btn-secondary:hover {
  background: #e0a200;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-black);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.header.scrolled {
  background: var(--color-black);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}

.logo .logo-icon {
  width: 42px;
  height: 42px;
}

.logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 92, 54, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--color-gold);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(10,92,54,0.85), rgba(26,26,26,0.8)),
    url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 2rem;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.hero h1 span {
  color: var(--color-gold);
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (shorter) */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(10,92,54,0.9), rgba(26,26,26,0.85)),
    url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 6rem 2rem 3rem;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
}

/* --- Section Styles --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.section-header .underline {
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--color-gold), var(--color-orange));
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Card Styles --- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 1.5rem;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-green-mid), var(--color-green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  font-size: 0.95rem;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-green-mid);
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.card-link:hover {
  color: var(--color-green-dark);
  gap: 0.75rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Two Column Content --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-text h2 {
  margin-bottom: 1rem;
}

.content-text p {
  margin-bottom: 1rem;
}

.content-text ul {
  margin-bottom: 1.5rem;
}

.content-text ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-gray);
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-green-mid);
  font-weight: 700;
}

.content-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Testimonials --- */
.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial {
  display: none;
  padding: 2rem;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-black);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-gold);
  line-height: 0;
  display: block;
  margin-bottom: -0.5rem;
  font-family: Georgia, serif;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-black);
}

.testimonial-location {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: background var(--transition);
}

.slider-dots button.active {
  background: var(--color-gold);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-mid));
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-banner .cta-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-heading);
}

/* --- Process Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-green-mid);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-green-mid);
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
  color: var(--color-green-dark);
}

.timeline-item p {
  font-size: 0.95rem;
}

.timeline-step {
  display: inline-block;
  background: var(--color-green-mid);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* --- Products Filter --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--color-green-mid);
  background: transparent;
  color: var(--color-green-mid);
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-green-mid);
  color: #fff;
}

.product-card .card-body {
  text-align: center;
}

.product-badge {
  display: inline-block;
  background: var(--color-gold-light);
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.product-specs {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 0.5rem;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-green-mid);
  margin-bottom: 0.5rem;
}

.product-stock {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.product-stock-in { color: #27ae60; }
.product-stock-in .stock-dot { background: #27ae60; }
.product-stock-out { color: #dc3545; }
.product-stock-out .stock-dot { background: #dc3545; }

/* --- Gallery / Projects --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: #fff;
  font-size: 1rem;
}

.gallery-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green-mid);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group .error-msg {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-group.error .error-msg {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.form-success h3 {
  color: var(--color-green-mid);
  margin-bottom: 0.5rem;
}

.contact-info-box {
  background: var(--color-green-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-info-box h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-item .info-icon {
  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;
  font-size: 1.1rem;
}

.contact-info-item h4 {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta-banner .social-links {
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

/* --- About Page Specifics --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-card .value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-green-mid), var(--color-green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.8rem;
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: var(--color-green-dark);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.mv-card h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.mv-card p {
  color: rgba(255,255,255,0.9);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-gold);
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-green-mid);
  font-weight: 600;
}

.partners-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.partner-logo {
  height: 50px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- Services Page Specifics --- */
.service-detail {
  padding: 4rem 0;
}

.service-detail:nth-child(even) {
  background: var(--color-gray-light);
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 45px;
  height: 45px;
  background: var(--color-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.feature-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.feature-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: #fff;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-about .logo {
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 0.5rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Nav Actions (Cart, Login, Account) --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cart {
  position: relative;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-cart:hover {
  color: #fff;
}

.nav-cart svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.nav-login-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-login-link:hover {
  color: #fff;
}

.nav-account-dropdown {
  position: relative;
}

.nav-account-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-account-btn:hover {
  color: #fff;
}

.account-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 1001;
  margin-top: 0.5rem;
}

.nav-account-dropdown:hover .account-dropdown-menu,
.account-dropdown-menu.active {
  display: block;
}

.account-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-black);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition);
}

.account-dropdown-menu a:hover {
  background: var(--color-gray-light);
  color: var(--color-green-mid);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-green { color: var(--color-green-mid); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Pagination (public pages) */
.pagination { display: flex; justify-content: center; gap: 0.35rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a { padding: 0.5rem 0.85rem; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 0.9rem; text-decoration: none; color: #333; }
.pagination a:hover { background: #f5f5f5; }
.pagination a.active { background: var(--color-green-mid); color: #fff; border-color: var(--color-green-mid); }
.pagination .pagination-ellipsis { padding: 0.5rem 0.25rem; font-size: 0.9rem; color: #999; }

/* ── Solar ROI Calculator ── */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}
.calculator-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.calculator-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gray-light);
  font-size: 1.1rem;
}
.calculator-form small {
  display: block;
  font-size: 0.78rem;
  color: var(--color-gray);
  margin-top: 0.2rem;
}
.range-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.range-wrapper input[type="range"] {
  flex: 1;
  accent-color: var(--color-green-mid);
  height: 6px;
  cursor: pointer;
}
.range-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-green-mid);
  min-width: 3rem;
  text-align: right;
}
.result-highlight {
  border-top: 3px solid var(--color-green-mid);
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.result-item-featured {
  background: #f5f6fa;
  padding: 1rem;
  border-radius: var(--radius);
}
.result-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gray);
}
.result-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-black);
}
.result-value-green { color: var(--color-green-mid); }
.result-value-gold { color: var(--color-orange); }
.result-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.result-table th {
  background: var(--color-gray-light);
  padding: 0.6rem 0.75rem;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gray);
}
.result-table th:first-child { text-align: center; width: 50px; }
.result-table td {
  padding: 0.5rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--color-gray-light);
}
.result-table td:first-child { text-align: center; font-weight: 600; }
.savings-cell { color: var(--color-green-mid); font-weight: 600; }
.payback-row { background: #fffde7; }
.payback-row td { font-weight: 700; }
.calculator-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green-mid));
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
}
.calculator-cta h3 { color: #fff; border: none; margin-bottom: 0.5rem; }
.calculator-cta p { margin-bottom: 1.25rem; opacity: 0.9; }
/* Payback banner */
.payback-banner {
  background: linear-gradient(135deg, #fff8e1, #fff3e0);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.payback-banner-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1.3;
}
.payback-banner-subtitle {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 0.35rem;
}
/* Export buttons */
.export-buttons { display: flex; gap: 0.5rem; }
.btn-outline-export {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--color-green-mid);
  color: var(--color-green-mid);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
}
.btn-outline-export:hover {
  background: var(--color-green-mid);
  color: #fff;
}
.btn-outline-export:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 768px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-value { font-size: 1.15rem; }
  .payback-banner-value { font-size: 1.8rem; }
}
