/* ============================================
   SANKPOWER SOLAR SUPPLY - Stylesheet
   Clean rebuild - April 2026
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6; color: #1f2937; background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Colors --- */
:root {
  --navy: #0d1b2a;
  --navy-light: #1b2d45;
  --gold: #f0a500;
  --gold-hover: #d4920a;
  --green: #059669;
  --green-light: #d1fae5;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
}

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 6px;
  font-size: 1rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.3s ease; text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(240,165,0,.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #047857; }

/* --- Header --- */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--navy); padding: 0; transition: all 0.3s ease;
}
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--navy);
}
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: .5px; }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: 0.95rem;
  transition: color 0.3s; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { padding: 10px 24px; }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--white); transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #234 100%);
  padding: 160px 0 100px; position: relative; overflow: hidden; min-height: 600px;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(240,165,0,.12) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.hero-badge {
  display: inline-block; background: rgba(240,165,0,.15); color: var(--gold);
  padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(240,165,0,.3);
}
.hero h1 { font-size: 3.2rem; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Section Styles --- */
.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }
.section-header .accent-line {
  width: 60px; height: 4px; background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}

/* --- Stats --- */
.stats-bar {
  background: var(--gold); padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.stat-item p { font-size: 0.95rem; color: var(--navy); opacity: 0.8; font-weight: 500; }

/* --- Features / Cards --- */
.features-grid, .services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card, .service-card {
  background: var(--white); border-radius: 12px; padding: 40px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: all 0.3s;
  border: 1px solid var(--gray-200);
}
.feature-card:hover, .service-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.1);
}
.card-icon {
  width: 56px; height: 56px; background: rgba(240,165,0,.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3, .service-card h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--gray-800);
}
.feature-card p, .service-card p { color: var(--gray-600); font-size: 0.95rem; }

/* --- Products Grid --- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px;
}
.product-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: all 0.3s;
  border: 1px solid var(--gray-200);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.product-img {
  height: 200px; background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.product-info { padding: 24px; }
.product-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-800); }
.product-info p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 16px; }
.product-tag {
  display: inline-block; background: var(--green-light); color: var(--green);
  padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; color: var(--gray-800); }
.about-content p { color: var(--gray-600); margin-bottom: 16px; }
.about-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px; padding: 60px; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(240,165,0,.15) 0%, transparent 70%);
}
.about-visual .big-icon { font-size: 80px; margin-bottom: 20px; position: relative; }
.about-visual h3 { font-size: 1.5rem; font-weight: 700; position: relative; }

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; color: var(--gray-800); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(240,165,0,.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item h4 { font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.contact-item p { color: var(--gray-600); font-size: 0.9rem; }
.contact-item a { color: var(--gold); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.contact-form { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 4px 16px rgba(0,0,0,.08); border: 1px solid var(--gray-200); }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; color: var(--gray-800); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--gray-800); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; transition: border-color 0.3s; background: var(--gray-50);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 1.05rem; }

/* Success message on thankyou page or query param */
.success-message {
  text-align: center; padding: 60px 24px; background: var(--green-light); border-radius: 12px;
  margin-bottom: 32px;
}
.success-message h2 { color: var(--green); font-size: 1.8rem; margin-bottom: 12px; }
.success-message p { color: var(--gray-600); }

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(240,165,0,.08) 0%, transparent 70%);
}
.cta h2 { font-size: 2.2rem; font-weight: 700; color: var(--white); margin-bottom: 16px; position: relative; }
.cta p { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 550px; margin-left: auto; margin-right: auto; position: relative; }
.cta .btn { position: relative; }

/* --- Footer --- */
footer {
  background: var(--navy); color: rgba(255,255,255,.7); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-weight: 600; margin-bottom: 20px; font-size: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 140px 0 60px; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 500px; margin: 0 auto; }

/* --- Thank You Page --- */
.thankyou-section { padding: 160px 0 100px; text-align: center; min-height: 70vh; display: flex; align-items: center; }
.thankyou-icon { font-size: 72px; margin-bottom: 24px; }
.thankyou-section h1 { font-size: 2.5rem; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.thankyou-section p { font-size: 1.1rem; color: var(--gray-600); max-width: 500px; margin: 0 auto 32px; }

/* --- Responsive --- */
@media (max-width: 968px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--navy); flex-direction: column; padding: 24px; gap: 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .hero { padding: 140px 0 80px; min-height: auto; }
  .features-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .features-grid, .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
}
