/* ============================================
   TAG Energy Ltd � Standalone Stylesheet
   Matching tagenergy.com.pg theme
   ============================================ */

/* --- CSS Custom Properties (tagenergy.com.pg) --- */
:root {
  --primary: #32C36C;
  --primary-dark: #28a85a;
  --primary-light: #4ed885;
  --dark: #1A2A36;
  --light: #F6F7F8;
  --white: #FFFFFF;
  --text: #555555;
  --text-muted: #777777;
  --border: #e8e8e8;
  --shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header .logo-img {
  height: 38px;
  width: auto;
}

.header .sitename {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.navmenu ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.navmenu a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s;
  text-transform: uppercase;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--primary);
  background: rgba(50, 195, 108, 0.08);
}

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--dark);
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .navmenu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .navmenu ul.show {
    display: flex;
  }
  .navmenu a {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* --- Gradient Text --- */
.tag-gradient-text {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.tag-section-tag {
  color: var(--primary);
  background: rgba(50, 195, 108, 0.1);
  border: 1px solid rgba(50, 195, 108, 0.2);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

/* --- Buttons --- */
.btn-primary,
.tag-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary:hover,
.tag-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(50, 195, 108, 0.35);
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* =============================================
   HERO SECTION (keeps dark bg like TAG Energy homepage carousel)
   ============================================= */
.tag-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

/* Hero Background Slideshow */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26, 42, 54, 0.88) 0%,
    rgba(26, 42, 54, 0.75) 40%,
    rgba(50, 195, 108, 0.15) 100%
  );
}

.tag-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  background: rgba(50, 195, 108, 0.15);
  border: 1px solid rgba(50, 195, 108, 0.3);
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content h1 .tag-gradient-text {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero-content p {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  animation: bounce 2s infinite;
}

/* --- Hero Particles --- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.25;
  animation: floatParticle 8s infinite ease-in-out;
}

.particle:nth-child(2) { left: 20%; top: 30%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 70%; top: 20%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(5) { left: 80%; top: 70%; animation-delay: 0.5s; animation-duration: 11s; }
.particle:nth-child(6) { left: 10%; top: 80%; animation-delay: 4s; animation-duration: 7s; }
.particle:nth-child(7) { left: 60%; top: 45%; animation-delay: 2.5s; animation-duration: 13s; }
.particle:nth-child(8) { left: 90%; top: 10%; animation-delay: 1.5s; animation-duration: 8s; }

/* --- Partnership Bar (hero only) --- */
.partnership-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  margin-top: 32px;
  opacity: 0.7;
}

.partnership-bar span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.partnership-bar .partner-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.partnership-bar .divider {
  width: 24px;
  height: 2px;
  background: var(--primary);
}

/* =============================================
   SOLUTIONS SECTION (white bg)
   ============================================= */
.services-section {
  padding: 120px 0;
  background: var(--light);
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.solutions-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.12);
}

.solution-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(50, 195, 108, 0.3);
}

.solution-icon i {
  font-size: 26px;
  color: #fff;
}

.solution-card h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}

.solution-card ul {
  list-style: none;
  padding: 0;
}

.solution-card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.solution-card ul li::before {
  content: "\F26A";
  font-family: 'bootstrap-icons';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 12px;
}

@media (max-width: 991px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

/* --- Icon Row --- */
.icon-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.icon-row-item {
  text-align: center;
}

.icon-row-item i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.icon-row-item span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Infographic Banner --- */

/* --- Water & Pump Cards --- */
.water-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
  .water-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .water-grid { grid-template-columns: 1fr; }
}

.water-icon {
  background: #0288d1 !important;
  box-shadow: 0 4px 20px rgba(2, 136, 209, 0.3) !important;
}

.water-card::before {
  background: #0288d1 !important;
}

.water-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.water-metric {
  font-size: 16px;
  margin-right: 4px;
}

.infographic-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 80px;
  box-shadow: var(--shadow);
}

.infographic-block {
  text-align: center;
  padding: 16px;
}

.infographic-block .inf-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: rgba(50, 195, 108, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infographic-block .inf-icon i {
  font-size: 24px;
  color: var(--primary);
}

.infographic-block span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.infographic-plus {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.infographic-equals {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.infographic-result {
  text-align: center;
  padding: 16px 24px;
  background: rgba(50, 195, 108, 0.08);
  border: 1px solid rgba(50, 195, 108, 0.2);
  border-radius: var(--radius);
}

.infographic-result h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.infographic-result span {
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* =============================================
   WHY CHOOSE SECTION (white bg)
   ============================================= */
.about-section {
  padding: 120px 0;
  background: var(--white);
  position: relative;
}

.about-section::before {
  display: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px) {
  .why-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .why-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-grid-5 { grid-template-columns: 1fr; }
}

.why-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.12);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(50, 195, 108, 0.1);
  border: 1px solid rgba(50, 195, 108, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon i {
  font-size: 28px;
  color: var(--primary);
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 991px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* =============================================
   CTA SECTION (dark bg like TAG Energy)
   ============================================= */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  background: var(--dark);
}

.cta-section::before {
  display: none;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section h2 .tag-gradient-text {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   FOOTER (dark bg like TAG Energy)
   ============================================= */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #9B9B9B;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #9B9B9B;
  margin-bottom: 4px;
}

.footer-bottom .credits a {
  color: var(--primary);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

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

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.15; }
  50% { transform: translateY(-40px) translateX(20px); opacity: 0.4; }
}

/* =============================================
   SELECTION & SCROLLBAR
   ============================================= */
::selection {
  background: rgba(50, 195, 108, 0.3);
  color: var(--dark);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}