/* =========================================
   SACRED PORTAL BANNER (FLUID & RESPONSIVE)
   ========================================= */

.portal-banner {
  position: relative;
  width: 100%;
  min-height: clamp(450px, 65vh, 750px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-text-primary, #2b1d19);
  padding-top: clamp(100px, 15vh, 160px);
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.pb-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: slowZoom 25s linear infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.pb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 16, 0.4) 0%,
    rgba(26, 18, 16, 0.95) 100%
  );
  z-index: 2;
}

.pb-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.pb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 15px);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

.pb-link,
.pb-current {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
}

.pb-link {
  font-weight: 500;
  color: rgba(253, 251, 246, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pb-link:hover { color: var(--color-accent, #c78d6a); }

.pb-separator {
  color: var(--color-accent, #c78d6a);
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  display: flex;
  align-items: center;
}

.pb-current {
  font-weight: 600;
  color: var(--color-text-inverse, #fdfbf6);
}

.pb-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--color-text-inverse, #fdfbf6);
  line-height: 1.15;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 1px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.pb-subtitle {
  font-family: var(--font-body, "Jost", sans-serif);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #c2b4ae;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pb-thread {
  width: 1px;
  height: clamp(50px, 10vh, 100px);
  background: linear-gradient(
    to bottom,
    var(--color-accent, #c78d6a) 0%,
    transparent 100%
  );
  opacity: 0.7;
}

/* --- S2: The Genesis --- */
.about-genesis {
  padding: 10rem 0;
  background: var(--color-bg-base, #fdfbf6);
  overflow: hidden;
}
.genesis-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 8rem;
  align-items: center;
}
.genesis-img-col { position: relative; }
.genesis-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(43, 29, 25, 0.1);
}
.genesis-frame {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-primary, #873823);
  z-index: 1;
  border-radius: 2px;
}
.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent, #c78d6a);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 3.2rem;
  color: var(--color-text-primary, #2b1d19);
  margin-bottom: 2rem;
  line-height: 1.1;
}
.section-body {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #7a6962);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}
.founder-seal {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 3rem;
  color: var(--color-primary, #873823);
}
.seal-icon {
  width: 50px;
  height: 50px;
  animation: cosmicSpin 30s linear infinite;
}
.founder-seal span {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- S3: Royal Heritage --- */
.about-heritage {
  display: flex;
  background: var(--color-bg-surface, #ffffff);
  border-top: 1px solid rgba(135, 56, 35, 0.1);
}
.heritage-sticky {
  width: 45%;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0 6rem;
  background: var(--color-bg-base, #fdfbf6);
  border-right: 1px solid rgba(135, 56, 35, 0.1);
}
.heritage-content .section-heading { font-size: 3.5rem; }
.heritage-images {
  width: 55%;
  padding: 6rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  background: var(--color-bg-surface, #ffffff);
}
.hi-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(43, 29, 25, 0.1);
}

/* --- S4: Consecration Process --- */
.about-process {
  background: var(--color-text-primary, #2b1d19);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}
.about-process::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(199, 141, 106, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.process-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 90%;
  position: relative;
  z-index: 2;
}
.process-header {
  text-align: center;
  margin-bottom: 6rem;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.process-card {
  background: rgba(253, 251, 246, 0.02);
  border: 1px solid rgba(253, 251, 246, 0.08);
  padding: 4rem 3rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(10px);
}
.process-card:hover {
  transform: translateY(-15px);
  background: rgba(253, 251, 246, 0.05);
  border-color: rgba(199, 141, 106, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.pc-number {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 6rem;
  color: rgba(199, 141, 106, 0.1);
  position: absolute;
  top: -10px;
  right: 20px;
  line-height: 1;
  transition: color 0.5s ease;
}
.process-card:hover .pc-number { color: rgba(199, 141, 106, 0.25); }
.pc-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 1.8rem;
  color: var(--color-text-inverse, #fdfbf6);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}
.pc-desc {
  font-size: 1rem;
  color: rgba(253, 251, 246, 0.6);
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

/* --- OUR BELIEFS (LIGHT THEME) --- */
.about-beliefs {
  background: var(--color-bg-base, #FDFBF6);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}
.about-beliefs::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(135, 56, 35, 0.05) 0%, 
    transparent 70%
  );
  pointer-events: none;
}
.beliefs-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 90%;
  position: relative;
  z-index: 2;
}
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.beliefs-card {
  background: var(--color-bg-surface, #FFFFFF);
  border: 1px solid rgba(135, 56, 35, 0.15);
  padding: 4rem 3rem;
  border-radius: 4px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.beliefs-card:hover {
  transform: translateY(-15px);
  border-color: var(--color-primary, #873823);
  box-shadow: 0 20px 40px rgba(43, 29, 25, 0.08);
}
.bc-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 1.8rem;
  color: var(--color-text-primary, #2B1D19);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}
.bc-desc {
  font-size: 1rem;
  color: var(--color-text-secondary, #7A6962);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* --- S5: The Elements --- */
.about-elements {
  padding: 10rem 0;
  background: var(--color-bg-base, #fdfbf6);
}
.elements-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 95%;
}
.elements-accordion {
  display: flex;
  height: 600px;
  gap: 1rem;
  margin-top: 4rem;
}
.ea-item {
  position: relative;
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.ea-item.active { flex: 3.5; }
.ea-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 10s ease;
}
.ea-item:hover .ea-bg { transform: scale(1.1); }
.ea-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(26, 18, 16, 0.95) 0%, rgba(26, 18, 16, 0.1) 100%);
}
.ea-content {
  position: absolute;
  bottom: 0; left: 0;
  padding: 3rem;
  z-index: 2;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  transition-delay: 0.2s;
}
.ea-item.active .ea-content {
  opacity: 1;
  transform: translateY(0);
}
.ea-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 2.2rem;
  color: var(--color-text-inverse, #fdfbf6);
  margin-bottom: 0.8rem;
  white-space: nowrap;
}
.ea-desc {
  font-size: 1rem;
  color: rgba(253, 251, 246, 0.8);
  line-height: 1.6;
  max-width: 400px;
}
.ea-item::before {
  content: "Explore";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--font-heading, "Cinzel", serif);
  color: var(--color-text-inverse, #fdfbf6);
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  z-index: 2;
  transition: opacity 0.3s ease;
  opacity: 1;
  white-space: nowrap;
}
.ea-item.active::before { opacity: 0; }

/* --- S6: Epilogue CTA --- */
.about-epilogue {
  position: relative;
  padding: 12rem 0;
  text-align: center;
  background-image: url("../img/about/banner.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  overflow: hidden;
}
.epilogue-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(43, 29, 25, 0.7), rgba(26, 18, 16, 0.95));
  z-index: 1;
}
.epilogue-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.epilogue-title {
  font-family: var(--font-heading, "Cinzel", serif);
  font-size: 3.5rem;
  color: var(--color-text-inverse, #fdfbf6); 
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
.epilogue-desc {
  font-size: 1.1rem;
  color: rgba(253, 251, 246, 0.8);
  margin-bottom: 3rem;
}
.btn-epilogue {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--color-primary, #873823);
  color: var(--color-text-inverse, #fdfbf6);
  border: 1px solid var(--color-primary, #873823);
  padding: 1.2rem 3.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.4s ease;
}
.btn-epilogue .arrow { transition: transform 0.4s ease; }
.btn-epilogue:hover {
  background: var(--color-bg-base, #fdfbf6);
  color: var(--color-text-primary, #2b1d19);
  border-color: var(--color-bg-base, #fdfbf6);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.btn-epilogue:hover .arrow { transform: translateX(8px); }


/* =========================================
   GLOBAL MOBILE RESPONSIVENESS (ALL SECTIONS)
   ========================================= */

/* --- Tablets & Smaller Desktops (1024px and below) --- */
@media (max-width: 1024px) {
  /* Genesis Section */
  .genesis-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  /* Heritage Section */
  .about-heritage {
    flex-direction: column;
  }
  .heritage-sticky {
    width: 100%;
    height: auto;
    position: static; /* Disable sticky on tablet/mobile */
    padding: 5rem 2rem 2rem;
    border-right: none;
  }
  .heritage-images {
    width: 100%;
    padding: 2rem;
    gap: 3rem;
  }

  /* Grids (Process & Beliefs) */
  .process-grid, .beliefs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Elements Accordion */
  .elements-accordion {
    flex-direction: column;
    height: 900px; /* Extends height for vertical stacking */
  }
  .ea-item::before {
    transform: translate(-50%, -50%) rotate(0deg); /* Text becomes horizontal */
  }
}

/* --- Mobile Phones (768px and below) --- */
@media (max-width: 768px) {
  /* Standardize Padding */
  .about-genesis, 
  .about-process, 
  .about-beliefs, 
  .about-elements, 
  .about-epilogue {
    padding: 5rem 0; 
  }

  /* Global Typography Scaling */
  .section-heading, 
  .heritage-content .section-heading {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
  }
  .section-body {
    font-size: 1rem;
  }

  /* Cards (Process & Beliefs) */
  .process-card, .beliefs-card {
    padding: 2.5rem 2rem;
  }
  
  .pc-number {
    font-size: 4.5rem;
    top: 0;
    right: 20px;
  }

  .pc-title, .bc-title {
    font-size: 1.5rem;
  }

  /* Elements */
  .ea-content {
    padding: 1.5rem;
  }
  .ea-title {
    font-size: 1.6rem;
  }
  
  /* Epilogue */
  .epilogue-title {
    font-size: 2.5rem;
  }
  .epilogue-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .btn-epilogue {
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
  }
}

/* --- Small Mobile Phones (480px and below) --- */
@media (max-width: 480px) {
  .section-heading, 
  .heritage-content .section-heading, 
  .epilogue-title {
    font-size: 2rem;
  }
  
  .founder-seal span {
    font-size: 1rem;
  }
  .seal-icon {
    width: 40px;
    height: 40px;
  }

  .pc-number {
    font-size: 3.5rem;
  }

  .elements-accordion {
    height: 700px;
  }
  .ea-title {
    font-size: 1.3rem;
  }
}