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

body {
  font-family: 'EB Garamond', serif;
  background: #00000000;
  color: #222;
  line-height: 1.6;
  margin: 0;
  padding: 0;

}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom:none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
}
.navbar.scrolled .menu li a {
  color: #7b1e2b;
}
.logo {
  background-color: #fff;
  padding: 20px;
  margin-left: 1%;
}
.logo-text {
  font-family: 'EB Garamond', serif;
  font-size: 28px;;
  font-weight: 700;
  color: #7b1e2b;
}

.big-t {
  font-size: 36px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 20px;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: 0.3s;
}

.menu li a:hover {
  color: #000000;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  display: none;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);;
}

.submenu li {
  padding: 10px 20px;
}
.submenu li a {
  color: #7b1e2b;
}
.dropdown:hover .submenu {
  display: block;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}
/* HERO BASE */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.dynamic-text {
  display: inline-block;
  color: #fff;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Animate when slide changes */
.slide .dynamic-text {
  opacity: 0;
  transform: translateY(20px);
}

.slide.active .dynamic-text {
  opacity: 1;
  transform: translateY(0);
}

/* SLIDES */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* LEFT DARK PANEL */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* CONTENT */
.hero-content {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;
  max-width: 80%;
}

/* TEXT STYLE */
.hero-content small {
  letter-spacing: 2px;
  font-size: 12px;
  opacity: 0.7;
}

.hero-content h1 {
  font-size: 45px;
  font-weight: 700;
  margin: 15px 0;
  line-height: 1.2;
}

.hero-content span {
  font-size: 40px;
}

.hero-content h1::first-line {
  color: #fff;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.85;
  max-width: 80%;
}

/* BUTTON */
.hero-content button {
  padding: 12px 30px;
  border: none;
  background: #7b1e2b;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.fund-item button {
  padding: 12px 30px;
  border: none;
  background: #7b1e2b;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.hero-content button:hover {
  background: #a52a2a;
}

.fund-item button:hover {
  background: #a52a2a;
}
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.slide.active .hero-content {
  opacity: 1;
  transform: translateY(-50%);
}

/* FUNDS */
.funds-section {
  padding: 80px 8%;
  background: #7b1e2b;
  overflow-x: hidden;
}

.funds-container {
  display: flex;
  gap: 50px;
}

.funds-right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fund-item {
  width: 100%;
  background: #fff;
  padding: 25px;
  border: 1px solid #eee;
  transition: 0.3s;
  cursor: pointer;
  align-content: flex-end;
}

.fund-item span {
  color: #7b1e2b;
  font-weight: bold;
}

.fund-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ABOUT */
.about-split {
  display: flex;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  padding: 60px;
}

.about-content h2 {
  margin: 15px 0;
  font-size: 30px;
}

.about-content button {
  margin-top: 20px;
  padding: 10px 25px;
  background: #7b1e2b;
  color: white;
  border: none;
  cursor: pointer;
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  padding: 50px 8%;
  background: #7b1e2b;
  color: white;
  flex-wrap: wrap;
}

.cta button {
  padding: 10px 25px;
  border: none;
  background: white;
  color: #7b1e2b;
  cursor: pointer;
}

.logo-cta {
  align-items: center;
  gap: 15px;
  background-color: #ffffff;
  color: #7b1e2b;
  padding: 2%;
  border-radius: 25px;
  font-family: 'EB Garamond', serif;
  font-size: 20px;;
  font-weight: 700;
  text-align: center;
}

.cta-content {
  align-items: center;
  gap: 15px;
  padding: 2%;
}

/* FOOTER */
.footer {
  background: #ffffff;
  padding: 50px 8%;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  color: #7b1e2b;
  margin-bottom: 15px;
}
.footer-col p {
  color: #000000;
}
.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #7b1e2b;
  text-decoration: none;
}

.footer-col a:hover {
  color: #000000;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-hide {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  display: none;
}
/* ================= ABOUT PAGE (SAFE - NO CONFLICT) ================= */

/* HERO */
.about-page-hero {
  height: 65vh;
  background: url('know.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.about-page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}

.about-page-hero-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 8% 60px;
  max-width: 60%;
}

.about-page-hero-text h1 {
  font-size: 48px;
}

.about-page-brand {
  color: #ffffff;
}

/* INTRO */
.about-page-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding: 80px 8%;
}

.about-page-image img {
  width: 100%;
  object-fit: contain;
  border-radius: 15px;
}

.about-page-content p {
  text-align: justify;
}
.about-page-content h2 {
  font-size: 32px;
  margin: 15px 0;
}

.about-page-content small {
  color: #7b1e2b;
  font-weight: bold;
}

/* SECTION */
.about-page-section {
  padding: 80px 8%;
  background: #fafafa;
  text-align: justify;
}

.about-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about-page-card {
  padding: 25px;
  background: #fff;
  border: 1px solid #eee;
  text-align: center;
  transition: 0.3s;
}

.about-page-card:hover {
  transform: translateY(-5px);
  border-color: #7b1e2b;
}

/* DARK SECTION */
.about-page-dark {
  display: grid;
  gap: 40px;
  padding: 80px 8%;
  background: #111;
  color: white;
  text-align: justify;
}

.about-page-dark-right {
  display: grid;
  gap: 20px;
}

.about-page-dark-card {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 20px;
  transition: 0.3s;
}

.about-page-dark-card:hover {
  background: #7b1e2b;
}

/* ================= SERVICES PAGE (SP) ================= */

/* HERO */
.sp-hero {
  height: 60vh;
  position: relative;
  background: url('know.png') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 8%;
  animation: spFadeUp 1s ease;
}

.sp-hero-content h1 {
  font-size: 48px;
}

.sp-hero-content p {
  margin-top: 10px;
  opacity: 0.8;
}

/* SECTION */
.sp-section {
  padding: 80px 8%;
  background: #fff;
}

/* GRID */
.sp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* CARD */
.sp-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  cursor: pointer;
}

/* IMAGE */
.sp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

/* OVERLAY */
.sp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  transition: 0.4s;
}
/* BUTTON CONTAINER */
.sp-section-button {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3; /* above overlay */
}

/* BUTTON STYLE */
.sp-section-button button {
  flex : 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  color: rgb(0, 0, 0);

  padding: 5px;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;

  backdrop-filter: blur(6px);
  transition: 0.3s ease;
}

/* ICON */
.sp-section-button button img {
  width: 16px;
  height: auto;
}

/* HOVER EFFECT */
.sp-section-button button:hover {
  background: #7b1e2b;
  border-color: #7b1e2b;
}
/* CONTENT */
.sp-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.4s ease;
}

.sp-content h2 {
  font-size: 24px;
}

.sp-content p {
  font-size: 14px;
  margin-top: 5px;
}

/* HOVER ANIMATION */
.sp-card:hover .sp-bg {
  transform: scale(1.1);
}

.sp-card:hover .sp-overlay {
  background: rgba(123,30,43,0.6);
}

.sp-card:hover .sp-content {
  transform: translateY(0);
  opacity: 1;
}

/* ENTRY ANIMATION */
@keyframes spFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-card {
  animation: spFadeUp 0.8s ease forwards;
}

/* ================= CONTACT PAGE ================= */

.cp-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 120px 8%;
  background: #f5f5f5;
}

/* FORM */
.cp-form h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.cp-form p {
  margin-bottom: 25px;
  color: #666;
}

.cp-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cp-form input,
.cp-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  outline: none;
}

.cp-form button {
  background: #7b1e2b;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.cp-form button:hover {
  background: #a52a2a;
}

/* RIGHT SIDE */
.cp-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* LOCATION */
.cp-location {
  font-size: 16px;
}

.cp-location a {
  color: #555;
  text-decoration: none;
}

/* CARD */
.cp-card {
  background: #e9e9ee;
  padding: 40px;
  border-radius: 20px;
}

.cp-card h3 {
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.cp-card p {
  line-height: 1.7;
  color: #444;
}


@media (max-width: 1000px) {

  
  .hero-content {
    left: 10%;
    max-width: 85%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content span {
    font-size: 28px;
  }

  
  .funds-container {
    flex-direction: column;
  }

  .funds-right {
    grid-template-columns: repeat(2, 1fr);
  }

  
  .about-page-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-page-hero-text {
    max-width: 80%;
  }

  
  .sp-grid {
    grid-template-columns: 1fr;
  }

  
  .cp-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 765px) {

  /* NAVBAR */
  .logo {
    padding: 12px;
  }

  .logo-text {
    font-size: 22px;
  }

  .big-t {
    font-size: 28px;
  }

  /* HERO */
  .hero-content {
    left: 5%;
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-content span {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-content button {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* FUNDS */
  .funds-section {
    padding: 50px 5%;
  }

  .funds-right {
    grid-template-columns: 1fr;
  }

  /* ABOUT */
  .about-content {
    padding: 30px 20px;
  }

  .about-content h2 {
    font-size: 24px;
  }

  /* ABOUT PAGE */
  .about-page-hero-text {
    max-width: 100%;
    padding: 0 5% 40px;
  }

  .about-page-hero-text h1 {
    font-size: 28px;
  }

  /* SERVICES */
  .sp-card {
    height: 250px;
  }

  .sp-content h2 {
    font-size: 18px;
  }

  .sp-content p {
    font-size: 12px;
  }

  /* CONTACT */
  .cp-section {
    padding: 80px 5%;
  }

  .cp-card {
    padding: 25px;
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: 1fr;
  }

}
@media(max-width: 900px) {
  .cp-section {
    grid-template-columns: 1fr;
  }
  .about-page-intro,
  .about-page-dark {
    grid-template-columns: 1fr;
  }

  .about-page-grid,
  .about-page-dark-right {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {

  .about-page-grid,
  .about-page-dark-right {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {

  body.menu-open {
    overflow: hidden;
  }

  .hamburger {
    display: block;
    z-index: 1100;
    margin: 1%;
    width: 50px;
  }

  #nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(30%, 400px);
    height: 100vh;
    background: #c4121a;

    transform: translateX(100%);
    transition: 0.4s ease;

    display: flex;
    flex-direction: column;
    padding-top: 80px;
    z-index: 1000;
    box-sizing: border-box;   /* 🔥 IMPORTANT */
    max-width: 100vw;         /* prevents overflow */
    overflow-y: auto;         /* scroll if content too long */
    overflow-x: hidden;       /* no horizontal scroll */
  }

  /* ACTIVE */
  #nav-menu.active {
    transform: translateX(0);
  }

  /* MENU LIST */
  .menu {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    gap: 0;
  }
  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }
  
  .menu li {
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }

  .menu li a {
    display: flex;
    justify-content: space-between;
    padding: 18px 10px;
    color: white;
    font-size: 16px;
  }

  /* DROPDOWN */
  .submenu {
    position: static;
    display: none;
    background: rgba(0,0,0,0.2);
  }

  .submenu.show {
    display: block;
  }

  .submenu li a {
    padding-left: 20px;
    font-size: 14px;
  }

  .dropdown > a::after {
    content: "▼";
    font-size: 18px;
  }

  .about {
    flex-direction: column;
  }

  .about img {
    width: 100%;
  }

  .funds-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .grid {
    flex-direction: column;
    align-items: center;
  }
}
@media(max-width: 900px) {
  .sp-grid {
    grid-template-columns: 1fr;
  }

  .sp-hero-content h1 {
    font-size: 32px;
  }
}
@media (max-width: 450px) {

  /* GLOBAL TEXT SCALE */
  body {
    font-size: 16px;   /* 🔥 increase base size */
  }

  /* HERO */
  .hero-content h1 {
    font-size: 22px;   /* was too small */
    line-height: 1.4;
  }

  .hero-content span {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 14px;
  }

  /* FUNDS (CARDS) */
  .fund-item h3 {
    font-size: 16px;
  }

  .fund-item button {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* ABOUT */
  .about-page-content h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .about-page-content p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* DARK SECTION TEXT */
  .about-page-dark p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* CONTACT */
  .cp-form h1 {
    font-size: 24px;
  }

  .cp-form p {
    font-size: 15px;
  }

  /* FOOTER */
  .footer-col p,
  .footer-col a {
    font-size: 14px;
  }

}