/* ==========================================================
   TATTVAM SPIRITUAL TRUST
   HOMEPAGE HERO — TEST 01
   ========================================================== */


/* ----------------------------------------------------------
   MASTER COLOUR SYSTEM
   No black is used anywhere.
   ---------------------------------------------------------- */
@font-face {
  font-family: "Samarkan";
  src: url("Samarkan.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {

  --tattvam-navy: #091925;
  --tattvam-navy-deep: #071722;
  --tattvam-navy-soft: #102838;

  --tattvam-gold: #C99A46;
  --tattvam-gold-light: #D8B66A;
  --tattvam-gold-soft: #B8893D;

  --tattvam-ivory: #F8F3EA;
  --tattvam-ivory-soft: #EDE4D6;

}


/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tattvam-navy);
  color: var(--tattvam-ivory);
  overflow-x: hidden;

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


/* ----------------------------------------------------------
   HERO MASTER
   ---------------------------------------------------------- */

.hero {
  position: relative;

  width: 100%;
  /* height: 65svh; */
  height: 100vh; 
  height: 100svh;

  overflow: hidden;

  background-color: var(--tattvam-navy);
  isolation: isolate;
}


/* ----------------------------------------------------------
   HERO PHOTOGRAPH
   ---------------------------------------------------------- */

.hero-image {
  position: absolute;
  inset: 0;

  z-index: 0;

  background-image:
    url("universe.jpg");

  background-size: cover;

  /*
     Keeps the meditating figure toward the lower-right
     while retaining the Milky Way.
  */
  background-position: center center;

  background-repeat: no-repeat;

  transform: scale(1.015);
}


/* ----------------------------------------------------------
   NAVY ATMOSPHERIC OVERLAY
   IMPORTANT: NAVY ONLY — NO BLACK
   ---------------------------------------------------------- */

.hero-overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  background:

    linear-gradient(
      180deg,
      rgba(9, 25, 37, 0.40) 0%,
      rgba(9, 25, 37, 0.12) 38%,
      rgba(9, 25, 37, 0.10) 62%,
      rgba(9, 25, 37, 0.38) 100%
    ),

    linear-gradient(
      90deg,
      rgba(9, 25, 37, 0.20) 0%,
      rgba(9, 25, 37, 0.05) 48%,
      rgba(9, 25, 37, 0.14) 100%
    );

  pointer-events: none;
}


/* ----------------------------------------------------------
   SUBTLE AMBIENT GOLD GLOW
   ---------------------------------------------------------- */

#ambient-glow {
  position: absolute;

  width: 80vw;
  height: 80vw;

  left: 50%;
  top: 54%;

  transform: translate(-50%, -50%);

  z-index: 2;

  background:

    radial-gradient(
      circle,
      rgba(201, 154, 70, 0.075) 0%,
      rgba(201, 154, 70, 0.035) 28%,
      rgba(9, 25, 37, 0) 68%
    );

  pointer-events: none;
}


/* ----------------------------------------------------------
   PARTICLE CANVAS
   ---------------------------------------------------------- */

#particles-js {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 3;

  pointer-events: none;

  background: transparent;
}


/* ----------------------------------------------------------
   HEADER / NAVIGATION
   ---------------------------------------------------------- */

.site-header {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 10;

  display: grid;

  grid-template-columns:
    minmax(90px, 1fr)
    auto
    minmax(150px, 1fr);

  align-items: center;

  gap: 28px;

  padding:
    26px
    clamp(28px, 5vw, 88px);
}


/* HEADER LOGO */

.header-brand {
  justify-self: start;

  display: flex;
  align-items: center;

  text-decoration: none;
}

.header-logo {
  display: block;

  width: auto;
  height: 48px;

  object-fit: contain;
}


/* NAVIGATION */

.main-navigation {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: clamp(15px, 1.7vw, 30px);
}

.main-navigation a {
  position: relative;

font-family: "Nunito Sans", sans-serif;
font-weight: 500;

  color: var(--tattvam-ivory);

  font-size: 12px;
  font-weight: 400;

  text-decoration: none;

  letter-spacing: 0.02em;

  opacity: 0.92;

  transition:
    color 240ms ease,
    opacity 240ms ease;
}

.main-navigation a::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -9px;

  width: 0;
  height: 1px;

  background: var(--tattvam-gold);

  transform: translateX(-50%);

  transition: width 240ms ease;
}

.main-navigation a:hover {
  color: var(--tattvam-gold-light);
  opacity: 1;
}

.main-navigation a:hover::after {
  width: 100%;
}


/* SUPPORT CTA */

.support-button {
  justify-self: end;

  padding: 11px 20px;

  border:
    1px solid
    rgba(201, 154, 70, 0.75);

  border-radius: 3px;

  color: var(--tattvam-ivory);

  background:
    rgba(201, 154, 70, 0.14);

  text-decoration: none;

  font-size: 12px;

  letter-spacing: 0.03em;

  transition:
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.support-button:hover {

  background: var(--tattvam-gold);

  border-color: var(--tattvam-gold);

  color: var(--tattvam-navy);
}


/* ----------------------------------------------------------
   CENTRED HERO CONTENT
   ---------------------------------------------------------- */

.hero-content {
  position: relative;

  z-index: 5;

  width: min(90%, 1050px);
 /* FIXED: Tells the layout container to leave room for the bottom navy bar */
  height: calc(100% - 180px);

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  /* FIXED: Tightens padding so text layout stays inside screen viewports */
  padding: 60px 20px 20px;
}

/* ----------------------------------------------------------
   NAVY VALUES STRIP PINNING
   ---------------------------------------------------------- */
/* Pin the strip securely to the base window boundary */
.navy-blue-strip-container { 
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 6; /* Places it safely above background animations */
}

/* MAIN LOGO ABOVE TATTVAM */

.hero-logo {
  width: auto;
  height: clamp(120px, 15vw, 200px);

  object-fit: contain;

  margin-bottom: 12px;

  filter:
    drop-shadow(
      0 4px 18px
      rgba(9, 25, 37, 0.28)
    );
}


/* ----------------------------------------------------------
   SAMARKAN HERO IDENTITY

   IMPORTANT:
   The visitor's browser/server must have Samarkan available.
   If you later host the licensed webfont files,
   we can replace this with an @font-face declaration.
   ---------------------------------------------------------- */

.hero-content h1 {

  font-family:
    "Samarkan",
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size:
    clamp(2.2rem, 5vw, 4.8rem);

  font-weight: 400;

  line-height: 0.98;

  letter-spacing: 0;

  color: var(--tattvam-gold-light);

  text-shadow:
    0 4px 26px
    rgba(9, 25, 37, 0.42);

  margin: 0;
}


/* GOLD RULE */

.hero-rule {
  width: 74px;
  height: 1px;

  margin:
   14px
    auto
    14px;

  background:
    linear-gradient(
      90deg,
      rgba(201, 154, 70, 0),
      var(--tattvam-gold),
      rgba(201, 154, 70, 0)
    );
}


/* HERO SUPPORTING MESSAGE */

.hero-message {

  color: var(--tattvam-ivory);

    font-family: "Nunito Sans", sans-serif;
font-weight: 800;

  font-size:
    clamp(1rem, 1.5vw, 1.25rem);

  font-weight: 400;

  letter-spacing: 0.16em;

  text-transform: uppercase;

  text-shadow:
    0 2px 14px
    rgba(9, 25, 37, 0.42);

  opacity: 0.94;
}


/* ----------------------------------------------------------
   HERO BUTTONS
   ---------------------------------------------------------- */

.hero-actions {

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 16px;

  margin-top: 36px;
}

.btn {

  min-width: 170px;

  padding: 13px 25px;

  border-radius: 3px;

  text-decoration: none;

  font-size: 12px;

  letter-spacing: 0.025em;

  transition:
    transform 240ms ease,
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}


/* PRIMARY */

.btn-primary {

  color: var(--tattvam-navy);

  background: var(--tattvam-gold);

  border:
    1px solid
    var(--tattvam-gold);
}

.btn-primary:hover {
  background: var(--tattvam-gold-light);
  border-color: var(--tattvam-gold-light);
}


/* SECONDARY */

.btn-secondary {

  color: var(--tattvam-ivory);

  background:
    rgba(9, 25, 37, 0.18);

  border:
    1px solid
    rgba(248, 243, 234, 0.54);
}

.btn-secondary:hover {

  border-color: var(--tattvam-gold);

  color: var(--tattvam-gold-light);

  background:
    rgba(9, 25, 37, 0.32);
}


/* ----------------------------------------------------------
   SCROLL INDICATOR
   ---------------------------------------------------------- */

.scroll-indicator {

  position: absolute;

  z-index: 7;

  bottom: 140px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 9px;

  color: var(--tattvam-ivory);

  text-decoration: none;

  text-transform: uppercase;

  font-size: 9px;

  letter-spacing: 0.16em;

  opacity: 0.76;
}

.scroll-line {

  display: block;

  width: 1px;
  height: 31px;

  background:
    linear-gradient(
      180deg,
      var(--tattvam-gold),
      rgba(201, 154, 70, 0)
    );
}

/* ----------------------------------------------------------
   MOBILE MENU BUTTON
   ---------------------------------------------------------- */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 8px;
  margin: 0;

  border: none;
  border-radius: 0;

  background: transparent;
  background-color: transparent;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;

  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;

  z-index: 20;
}

.menu-toggle span {
  display: block;

  width: 24px;
  height: 1px;

  margin: 0 auto;

  background: var(--tattvam-gold-light);

  transition:
    transform 240ms ease,
    opacity 240ms ease;
}


/* ----------------------------------------------------------
   MOBILE MENU PANEL
   ---------------------------------------------------------- */

.mobile-menu {
  position: fixed;

  inset: 0;

  z-index: 15;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    rgba(9, 25, 37, 0.97);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-navigation {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 22px;

  width: min(86%, 420px);

  text-align: center;
}

.mobile-navigation a {
    
    text-transform: uppercase;
  font-family: "Nunito Sans", sans-serif;

  font-size: 18px;
  font-weight: 500;

  color: var(--tattvam-ivory);

  text-decoration: none;

  letter-spacing: 0.02em;
}

.mobile-navigation a:hover {
  color: var(--tattvam-gold-light);
}

.mobile-support {
  margin-top: 10px;

  padding: 12px 24px;

  border:
    1px solid
    var(--tattvam-gold);

  border-radius: 3px;

  color: var(--tattvam-gold-light) !important;
}


/* HAMBURGER → CLOSE */

.menu-toggle.is-open span:nth-child(1) {
  transform:
    translateY(6px)
    rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform:
    translateY(-6px)
    rotate(-45deg);
}

/* ==========================================================
   HOMEPAGE VALUES STRIP — VISUAL TEST WITH FIX
   ========================================================== */

.values-strip {
  /* FIXED: Keeps it absolute-pinned on desktop viewports */
  position: absolute; 
  bottom: 0;
  left: 0;
  width: 100%;

  /* UNTOUCHED: Your original master gradient setup */
  background:
    linear-gradient(
      180deg,
      var(--tattvam-navy-deep) 0%,
      var(--tattvam-navy) 100%
    );

  border-top:
    1px solid
    rgba(201, 154, 70, 0.18);

  border-bottom:
    1px solid
    rgba(201, 154, 70, 0.14);

  /* FIXED: Changes absolute height to a flexible min-height fallback */
  min-height: 110px;
  display: flex;
  align-items: center;

  padding:
    16px
    clamp(24px, 5vw, 80px);

  z-index: 6;
}


.values-inner {
  width: min(100%, 1380px);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  align-items: stretch;
}


.value-item {
  position: relative;

  text-align: center;

  padding:
    4px
    clamp(14px, 1.8vw, 30px);
}


/* Fine vertical separators */

.value-item:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 18%;
  right: 0;

  width: 1px;
  height: 64%;

  background:
    linear-gradient(
      180deg,
      rgba(201, 154, 70, 0),
      rgba(201, 154, 70, 0.20),
      rgba(201, 154, 70, 0)
    );
}


/* Temporary gold ornamental symbol */

.value-symbol {
  margin-bottom: 7px;

  color: var(--tattvam-gold);

  font-size: 20px;

  line-height: 1;
}


/* Value heading */

.value-item h3 {
  margin: 0 0 4px;

  font-family:
    "Nunito Sans", sans-serif;

  font-size:
    clamp(1rem, 1.1vw, 1.15rem);

  font-weight: 400;

  color: var(--tattvam-ivory);
}


/* Supporting copy */

.value-item p {
  max-width: 170px;

  margin: 0 auto;

  font-family:
    "Nunito Sans",
    sans-serif;

  font-size: 11px;

  font-weight: 400;

  line-height: 1.35;

  color:
    rgba(248, 243, 234, 0.82);
}


/* ==========================================================
   RESPONSIVE BREAKPOINTS 
   ========================================================== */

/* For Small Laptops and Tablets (under 1150px) */
@media (max-width: 1150px) {
  /* Allow the hero block to scroll naturally ONLY on smaller devices */
  .hero {
    height: auto !important;
    min-height: 100vh;
    min-height: 100svh;
    overflow-y: auto !important;
  }
  
   /* ADD THIS: Hides the arrow/text indicator on mobile devices where the page naturally scrolls */
  .scroll-indicator {
    display: none !important;
  }
  .hero-content {
    height: auto !important;
    padding: 120px 20px 60px !important;
  }

  /* Unpins the strip from floating so it stacks cleanly at the very bottom */
  .values-strip {
    position: relative !important; 
    margin-top: 40px;
  }

  /* Converts the layout from 6 narrow columns into a readable 3-column grid */
  .values-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }

  /* Hides desktop vertical separators on mobile grid configurations */
  .value-item:not(:last-child)::after {
    display: none;
  }
}

/* For Smartphones (under 650px display windows) */
@media (max-width: 650px) {
  /* Shrinks columns to a 2-column layout to accommodate phone viewports */
  .values-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  
  .value-item p {
    font-size: 10px; 
  }
}

/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 1100px) {

  .site-header {
    grid-template-columns:
      1fr
      auto;

    padding:
      24px
      30px;
      
      z-index: 30;
  }

  .main-navigation {
    display: none;
  }

  .support-button {
    display: none;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }


  .values-inner {
    grid-template-columns:
      repeat(3, 1fr);

    row-gap: 34px;
  }

  .value-item:nth-child(3)::after,
  .value-item:nth-child(6)::after {
    display: none;
  }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

  .hero {
    min-height: 640px;
  }

  .hero-image {

    /*
      May need final adjustment after we inspect
      the actual live mobile crop.
    */

    background-position: 62% center;
  }

  .site-header {

    padding:
      20px
      20px;
  }

  .header-logo {
    height: 40px;
  }

  .support-button {

    padding:
      9px
      12px;

    font-size: 10px;
  }

  .hero-content {

    width: 94%;

    padding:
      115px
      18px
      95px;
  }

  .hero-logo {

    height:
      clamp(68px, 18vw, 88px);
  }

  .hero-content h1 {

    font-size:
      clamp(2.7rem, 13vw, 4.5rem);

    line-height: 1.02;
  }

  .hero-message {

    max-width: 340px;

    line-height: 1.7;

    letter-spacing: 0.11em;
  }

  .hero-actions {

    flex-direction: column;

    width: min(100%, 310px);

    gap: 11px;
  }

  .btn {

    width: 100%;

    text-align: center;
  }

  .values-strip {
    padding:
      38px
      22px;
  }

  .values-inner {
    grid-template-columns:
      repeat(2, 1fr);

    row-gap: 34px;
  }

  .value-item {
    padding:
      4px
      16px;
  }

  .value-item:nth-child(2)::after,
  .value-item:nth-child(4)::after,
  .value-item:nth-child(6)::after {
    display: none;
  }

  .value-item:nth-child(3)::after {
    display: block;
  }

  .value-item p {
    font-size: 10.5px;
  }
}


/* ----------------------------------------------------------
   REDUCED MOTION ACCESSIBILITY
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .btn,
  .main-navigation a,
  .main-navigation a::after,
  .support-button {
    transition: none;
  }

}

/* ----------------------------------------------------------
   VALUES STRIP ABSOLUTE PINNING
   ---------------------------------------------------------- */
.values-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 6; 
  background: var(--tattvam-navy-deep); 
}
