/* =========================================================
   MONEYWISE HUB - HOMEPAGE STYLES
========================================================= */

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #070d1a;
  color: #eaeef7;
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  background: #0b1324;
  padding: 17px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #f5b942;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
}


/* =========================
   NAVIGATION
========================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav a {
  color: #cfd6e6;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f5b942;
}


/* =========================
   HAMBURGER
========================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: #ffffff;
  display: block;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(3, 10, 24, 0.98),
      rgba(3, 10, 24, 0.85),
      rgba(3, 10, 24, 0.55)
    ),
    url("images/finance-hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to right,
      rgba(3, 10, 24, 0.95),
      rgba(3, 10, 24, 0.72),
      rgba(3, 10, 24, 0.35)
    );
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 760px;
}

.hero-label,
.section-label {
  display: inline-block;
  color: #f5b942;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero-text h1 {
  color: #ffffff;
  font-size: 50px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text p {
  max-width: 680px;
  color: #c2ccdc;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
}


/* =========================
   HERO BUTTONS
========================= */

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 25px;
  background: #f5b942;
  color: #0b1324;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #ffcc66;
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
  background: #ffffff;
  color: #0b1324;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  padding: 85px 0;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 45px;
}

.section-heading h2 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.section-heading p {
  color: #aeb9cc;
  font-size: 15px;
  line-height: 1.8;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.introduction {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intro-content {
  max-width: 950px;
}

.intro-content p {
  color: #b9c4d6;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
}


/* =========================================================
   FINANCIAL TOPICS
========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: #0b1324;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 185, 66, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content > span {
  display: inline-block;
  color: #f5b942;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.card-content h3 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.card-content p {
  color: #aeb9cc;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.card-content a {
  display: inline-block;
  color: #f5b942;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s ease;
}

.card-content a:hover {
  color: #ffcc66;
  transform: translateX(3px);
}


/* =========================================================
   START HERE SECTION
========================================================= */

.start-here {
  background: #0b1324;
  max-width: 1200px;
  padding-left: 5%;
  padding-right: 5%;
  border-radius: 12px;
}

.start-here .section-heading {
  margin-bottom: 35px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.cards {
  background: #ffffff;
  color: #070d1a;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #eeeeee;
  transition: 0.3s ease;
}

.cards:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.cards h3 {
  color: #0b1324;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 15px;
}

.cards p {
  color: #4c5668;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.cards a {
  color: #b27d00;
  font-size: 13px;
  font-weight: 700;
}

.cards a:hover {
  color: #f5b942;
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.latest-articles {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


/* =========================================================
   WHY MONEYWISE HUB
========================================================= */

.why-us {
  background: #070d1a;
}

.why-us .cards {
  background: #0b1324;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.why-us .cards h3 {
  color: #ffffff;
}

.why-us .cards p {
  color: #aeb9cc;
}


/* =========================================================
   ABOUT PREVIEW
========================================================= */

.about-preview {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-preview .intro-content {
  max-width: 900px;
}

.about-preview .btn {
  margin-top: 10px;
}


/* =========================================================
   ADVERTISEMENT
========================================================= */

.ad-box {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed #3a4a66;
  border-radius: 8px;

  color: #7f8aa3;
  font-size: 13px;
  text-align: center;
}

.ad-box.small {
  min-height: 90px;
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-section .cards {
  max-width: 800px;
  background: #0b1324;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-section .cards h3 {
  color: #ffffff;
}

.contact-section .cards p {
  color: #aeb9cc;
}

.contact-section .cards a {
  color: #f5b942;
}


/* =========================================================
   LEGAL INFORMATION
========================================================= */

.legal {
  padding-bottom: 100px;
}

.legal .cards {
  background: #0b1324;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal .cards h3 {
  color: #ffffff;
}

.legal .cards p {
  color: #aeb9cc;
}

.legal .cards a {
  color: #f5b942;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #020d18;
  border-top: 1px solid rgba(243, 177, 59, 0.15);
  padding-top: 65px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-grid h4 {
  color: #f3b13b;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-grid p,
.footer-grid li {
  color: #aeb9c9;
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid p {
  margin-bottom: 10px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a,
.footer-grid p a {
  color: #aeb9c9;
  transition: 0.3s ease;
}

.footer-grid ul li a:hover,
.footer-grid p a:hover {
  color: #f3b13b;
}

.copyright {
  text-align: center;
  padding: 25px;
  margin-top: 55px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #7f8da1;
  font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .hero-text h1 {
    font-size: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 900px) {

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0;

    background: #0b1324;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;

    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      visibility 0.3s ease;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }

  .main-nav.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    width: 100%;
    padding: 17px 20px;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .container {
    width: 92%;
  }

  .hero {
    min-height: 600px;
    background-position: center;
  }

  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 25px;
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 13px;
  }

  .hero-buttons {
    justify-content: center;
    margin-top: 20px;
  }

  .section {
      padding-top: 30px;
    padding: 65px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading p {
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .start-here {
    width: 92%;
    padding-left: 5%;
    padding-right: 5%;
  }

  .cards {
    padding: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

  .logo {
    font-size: 15px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-text h1 {
    font-size: 25px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    padding-top:20px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .section-heading h2 {
      padding-top:  20px;
    font-size: 18px;
  }

  .card-content h3 {
    font-size: 18px;
  }

}