/**
 * Enertime Custom About Us Page Stylesheet
 * Brand: Enertime Sdn Bhd
 * Design Style: Dark dramatic sport meets lifestyle
 * Fully Responsive, Gutenberg Compatible, Scroll Animated
 */

.enertime-about-page {
  background-color: var(--ener-black, #0D0D0D);
  color: var(--ener-white, #FFFFFF);
  font-family: var(--font-body, "Inter", sans-serif);
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

.enertime-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 1. SCROLL REVEAL ANIMATIONS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.15s; }
.scroll-reveal.delay-2 { transition-delay: 0.3s; }
.scroll-reveal.delay-3 { transition-delay: 0.45s; }
.scroll-reveal.delay-4 { transition-delay: 0.6s; }

/* 2. CREATIVE HERO BANNER */
.enertime-about-hero {
  position: relative;
  background-image: var(--about-banner-url, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 320px 0 220px;
  text-align: center;
  overflow: hidden;
}

.enertime-about-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.4) 0%, rgba(13, 13, 13, 0.9) 100%);
  z-index: 1;
}

.enertime-about-hero-content {
  position: relative;
  z-index: 2;
}

.enertime-about-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 4.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.enertime-about-subtitle {
  font-size: 1.25rem;
  color: #95A5A6;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3. SECTION GENERAL */
.enertime-about-section {
  padding: 80px 0;
}

.enertime-about-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.enertime-about-section-eyebrow {
  color: var(--ener-red, #C0392B);
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.enertime-about-section-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin: 0;
}

/* 4. PHILOSOPHY GRID */
.enertime-about-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.enertime-about-philosophy-card {
  background: rgba(26, 26, 46, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 45px 30px;
  text-align: center;
  transition: all var(--transition-std, 250ms ease-in-out);
}

.enertime-about-philosophy-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 57, 43, 0.3);
  background: rgba(26, 26, 46, 0.4);
}

.enertime-about-philosophy-icon {
  width: 40px;
  height: 40px;
  color: var(--ener-red, #C0392B);
  margin-bottom: 24px;
}

.enertime-about-philosophy-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin-bottom: 14px;
}

.enertime-about-philosophy-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #95A5A6;
  margin: 0;
}

/* 5. THE BRAND STORY PANEL */
.enertime-about-story-panel {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(13, 13, 13, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.enertime-about-story-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #E2E8F0;
  margin-bottom: 24px;
}

.enertime-about-story-text:last-child {
  margin-bottom: 0;
}

.enertime-about-story-quote {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ener-gold, #B8860B);
  text-align: center;
  margin: 35px 0;
  padding: 20px 0;
  border-top: 1.5px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}

/* 6. THE 5-PRODUCT CARD GRID */
.enertime-about-products-section {
  padding: 140px 0;
  position: relative;
  background-image: url('../../themes/generatepress-child/img/products-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.enertime-about-products-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
  pointer-events: none;
}

.enertime-about-products-section > * {
  position: relative;
  z-index: 1;
}

.enertime-about-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.enertime-about-product-card {
  background: rgba(13, 13, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  transition: all var(--transition-fast, 150ms ease-out);
  backdrop-filter: blur(4px);
}

.enertime-about-product-card:hover {
  border-color: rgba(192, 57, 43, 0.5);
  background: rgba(192, 57, 43, 0.1);
  transform: translateY(-4px);
}

.enertime-about-product-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin-bottom: 8px;
}

.enertime-about-product-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #7F8C8D;
  margin: 0;
}

/* 7. CTA BRANDS */
.enertime-about-cta {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.08) 0%, rgba(26, 26, 46, 0.3) 100%);
  border: 1px solid rgba(192, 57, 43, 0.15);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
}

.enertime-about-cta-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin-bottom: 12px;
}

.enertime-about-cta-desc {
  font-size: 1.05rem;
  color: #95A5A6;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .enertime-about-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .enertime-about-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .enertime-about-products-grid :last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .enertime-about-title {
    font-size: 3.25rem;
  }
  
  .enertime-about-hero {
    padding: 180px 0 100px;
  }
  
  .enertime-about-story-panel {
    padding: 35px 25px;
  }
  
  .enertime-about-section {
    padding: 50px 0;
  }
}

/* ==========================================================================
   WORDPRESS GENERATEPRESS COMPATIBILITY OVERRIDES FOR ABOUT US PAGE
   ========================================================================== */
body.page-id-51 #content,
body.page-id-51 #page,
body.page-id-51 .site-content,
body.page-template-page-about-php #content,
body.page-template-page-about-php #page,
body.page-template-page-about-php .site-content,
body.page-template-page-about #content,
body.page-template-page-about #page,
body.page-template-page-about .site-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--ener-black, #0D0D0D) !important;
}

body.page-id-51 #primary,
body.page-template-page-about-php #primary,
body.page-template-page-about #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-51 .site-header,
body.page-id-51 .main-navigation,
body.page-id-51 .footer-widgets,
body.page-id-51 #right-sidebar,
body.page-id-51 #left-sidebar,
body.page-template-page-about-php .site-header,
body.page-template-page-about-php .main-navigation,
body.page-template-page-about-php .footer-widgets,
body.page-template-page-about-php #right-sidebar,
body.page-template-page-about-php #left-sidebar,
body.page-template-page-about .site-header,
body.page-template-page-about .main-navigation,
body.page-template-page-about .footer-widgets,
body.page-template-page-about #right-sidebar,
body.page-template-page-about #left-sidebar {
  display: none !important;
}
