/*
======================================================================
 METAMORPHIC GLOBAL CSS
 Cleaned, deduplicated, and optimized for modular layout
======================================================================
*/

/* ========== 1. RESET & BASE ========== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #fff;
  color: #1d1d1f;
  font-family: "SF Pro Text", "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== 2. TYPOGRAPHY & ELEMENTS ========== */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: #222;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.button,
.button-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}
.button:hover,
.button-primary:hover {
  background-color: #333;
}

/* ========== 3. HEADER ========== */
.apple-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.apple-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  padding: 16px 0;
  border-bottom: 1px solid #d2d2d7;
}
.logo {
  height: 36px;
}
.desktop-menu {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.desktop-menu a {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
}
.desktop-menu a:hover {
  text-decoration: underline;
}

/* ========== 4. HERO (Responsive Fullscreen Splash) ========== */
.hero-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 4vh;
  background-color: #ffffff; /* pure clean white */
  border-bottom: 1px solid #eee;
}

.hero-logo {
  height: 80px;
  margin-bottom: 0px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-splash h1,
.hero-tagline {
  text-align: center;
}

.hero-splash h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #1d1d1f;
}

.hero-tagline {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: #444;
  line-height: 1.6;
}

/* Hide desktop menu on small screens */
@media (max-width: 768px) {
  .desktop-menu {
    display: none !important;
  }

  .mobile-toggle {
    display: block !important;
    font-size: 28px;
    cursor: pointer;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #eee;
    position: absolute;
    top: 72px;
    right: 0;
    width: 100%;
    z-index: 1001;
  }

  .mobile-nav.show {
    display: flex !important;
  }

  .mobile-nav a {
    padding: 12px 20px;
    font-size: 1.1rem;
    color: #1d1d1f;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }
}

/* ========== 5. TRIANGLE ICONS (Responsive Lifecycle Grid) ========== */
.division-logos {
  display: grid;
  grid-template-columns: 1fr 0.6fr 1fr; /* Added middle column to pull center pair closer */
  grid-template-areas:
    ". energy ."
    "wellq . trading"
    ". decom .";
  gap: 28px 20px;
  justify-items: center;
  align-items: center;
  max-width: 100%;
  width: 100%;
  padding: 0 5vw;
  margin: 1.5rem auto 0;
  text-align: center;
}
.division-logo {
  max-width: 120px;
  width: 100%;
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.division-logo:hover {
  transform: scale(1.08);
  opacity: 1;
}
.division-logo.active {
  transform: scale(1.2);
  opacity: 1;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}
.division-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px; /* centers and adds spacing below */
}

.division-logo span {
  font-size: 0.9rem;
  color: #333;
  line-height: 1;
  margin-top: 4px;
  display: block;
  text-align: center;
}
.division-logo.energy   { grid-area: energy; }
.division-logo.trading  { grid-area: trading; }
.division-logo.decom    { grid-area: decom; }
.division-logo.wellq    { grid-area: wellq; }

@media (max-width: 768px) {
  .division-logos {
    gap: 16px 24px;
    margin-top: 12px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .division-logo {
    max-width: 90px;
  }

  .division-logo img {
    height: 60px !important;
    width: auto;
    object-fit: contain;
    margin: 0 auto 6px;
  }

  .division-logo span {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-top: 4px;
  }
}


/* ========== 6. TICKER ========== */
.market-ticker {
  z-index: 999;
  margin-top: 1rem;
  padding: 0.5rem 0;
  background-color: #000;
  position: relative;
  overflow: hidden;
  min-height: 50px;
}
.tradingview-widget-container {
  width: 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .market-ticker {
    margin-top: 1rem;
    padding: 0.25rem 0;
  }
}

/* ========== 7. STRIP SCROLL ========== */
.strip-scroll {
  width: 100%;
  background: #fff;
  padding: 2.5rem 1rem;
  margin: 4rem 0;
  overflow-x: auto;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}
.strip-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll-loop 40s linear infinite;
}
.strip-track img {
  height: 40px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.strip-track img:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(100%);
}
@keyframes scroll-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ========== 8. FOOTER ========== */
.apple-footer {
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #d2d2d7;
}
.apple-footer nav {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.apple-footer a,
.apple-footer span {
  color: #1d1d1f;
  text-decoration: none;
}
.apple-footer a:hover {
  text-decoration: underline;
}

/* ========== 9. MODERN PANELS (Service Sections) ========== */
.modern-panels {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
}
.split-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.split-left,
.split-right {
  flex: 1;
  min-width: 280px;
}
.split-left h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.split-left .subtitle {
  font-size: 1.1rem;
  color: #666;
}
.split-right p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}
/* ========== 10. PAGE INTROS & SECTION BLOCKS ========== */
.intro-section {
  padding: 6rem 2rem;
  text-align: center;
  background-color: #f9f9f9;
}
.intro-section .section-subtext {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.energy-intro-block {
  padding: 5rem 20px;
  background-color: #f9f9f9;
  text-align: center;
}
.energy-intro-block .container {
  max-width: 800px;
  margin: 0 auto;
}
.energy-intro-block .section-subtext {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  margin-top: 1.5rem;
}

/* ========== 11. CARD GRIDS ========== */
.division-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}
.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 320px;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1d1d1f;
}
.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* ========== 12. DARK SECTIONS (Trading Page) ========== */
.why-trade {
  background-color: #121212;
  color: #f5f5f5;
  padding: 6rem 2rem;
  text-align: center;
}
.why-trade-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.why-point {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.why-point:hover {
  background: #2a2a2a;
}
.section-heading {
  font-size: 2rem;
  margin-bottom: 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 3rem;
}

.feature-box {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: left;
}

.feature-box:hover {
  transform: translateY(-6px);
  background: linear-gradient(to bottom right, #ffffff, #fafafa);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-box p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}
/* ===========================
   WELLQ QUIZ & MODALS
   =========================== */

/* === 1. Answer Grid === */
.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .answer-grid {
    grid-template-columns: 1fr;
  }
}

/* === 2. Radio Buttons === */
input[type="radio"] {
  transform: scale(1.3);
  margin-right: 10px;
  accent-color: #000;
  cursor: pointer;
}
@media (max-width: 768px) {
  input[type="radio"] {
    transform: scale(1.1);
  }
}

/* === 3. Quiz Card === */
.feature-card {
  background: #fff;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* === 4. Feedback Area === */
#mcqFeedback {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  text-align: center;
}

/* === 5. Celebration Message === */
.celebrate-message {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #27ae60;
  animation: fadeInUp 0.4s ease-in-out;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== MODAL BASE STYLES ========== */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  background: white;
  padding: 32px;
  width: 90%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  z-index: 10001;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
}

/* ========== OVERLAY ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
}

/* === 8. Signup Modal (WellQ Specific) === */
#wellqSignupModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  background: #fff;
  padding: 40px;
  border-radius: 18px;
  width: 90%;
  max-width: 440px;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#wellqSignupModal.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 480px) {
  #wellqSignupModal {
    padding: 24px;
    border-radius: 14px;
  }
}

/* === 9. Fade Animation for Any Modal === */
.modal.wellq-fade {
  opacity: 0;
  transform: translate(-50%, -45%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal.wellq-fade.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* ========== WELLQ TOAST MESSAGE ========== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  z-index: 10002;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.toast.show {
  display: block;
  opacity: 1;
}