/* ============================================================
   Wealth Master — Main Stylesheet
   Tổ chức theo thứ tự: Base → Layout → Components → Sections → Utilities → Responsive
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

/* Bù offset cho fixed navbar (~78px) */
section[id] {
  scroll-margin-top: 78px;
}

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

:root {
  --gold:  #d4a84f;
  --dark:  #07162d;
  --dark2: #0d223f;
  --text:  #f3f4f6;
  --gray:  #cfd5dd;
  --white: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111827;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

/* ── Layout ───────────────────────────────────────────────── */

.container {
  width: min(1200px, 92%);
  margin: auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 48px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
}

.section-title p {
  color: #6b7280;
  max-width: 720px;
  margin: auto;
  line-height: 1.8;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: #111;
}

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

.btn-gold:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .08);
}

/* ── Navbar ───────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(4, 12, 25, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
}

.logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: #fff;
  font-size: 15px;
  transition: .3s;
}

.nav-menu a:hover {
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 6px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: .2s;
  letter-spacing: .5px;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--gold);
  color: #111;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  background:
    linear-gradient(
      to right,
      rgba(2, 10, 20, .82) 0%,
      rgba(2, 10, 20, .55) 55%,
      rgba(2, 10, 20, .45) 100%
    ),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: 100px;
}

.hero-content {
  max-width: 760px;
}

.hero-sub {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-size: 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: #d9dee7;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Features ─────────────────────────────────────────────── */

.features {
  background: linear-gradient(180deg, var(--dark), var(--dark2));
  padding: 80px 0;
  color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 32px 24px;
  border-radius: 18px;
  transition: .3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 79, .5);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-card p {
  color: #cfd5dd;
  line-height: 1.7;
}

/* ── Why Us ───────────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-image img {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 18px;
}

.why-item-icon {
  min-width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(212, 168, 79, .12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.why-item h4 {
  margin-bottom: 8px;
  font-size: 22px;
}

.why-item p {
  color: #6b7280;
  line-height: 1.7;
}

/* ── Packages ─────────────────────────────────────────────── */

.packages {
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  color: #fff;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.package-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: 42px 34px;
  transition: .35s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card .btn {
  margin-top: 34px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #111;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.package-title {
  text-align: center;
  margin-bottom: 24px;
}

.package-title h3 {
  font-size: 34px;
  font-family: 'Playfair Display', serif;
}

.package-title p {
  color: #cfd5dd;
  margin-top: 10px;
}

.price {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin: 30px 0;
  line-height: 1.3;
}

.price span:first-child {
  display: block;
  font-size: 28px;
}

.price span:last-child {
  font-size: 14px;
  color: #cfd5dd;
  font-weight: 400;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 0;
  flex-grow: 1;
}

.package-features li {
  color: #d9dee7;
  line-height: 1.6;
}

/* ── Process ──────────────────────────────────────────────── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.process-card {
  text-align: center;
  padding: 34px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.process-number {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  margin: auto auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}

/* ── Contact ──────────────────────────────────────────────── */

.contact {
  background:
    linear-gradient(rgba(4, 12, 25, .92), rgba(4, 12, 25, .92)),
    url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact h2 {
  font-size: 52px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 24px;
}

.contact p {
  color: #d9dee7;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ── Form ─────────────────────────────────────────────────── */

.contact-form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 42px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(212, 168, 79, .5);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #f87171;
}

.form-group textarea {
  min-height: 140px;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .4);
}

.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.form-msg.success {
  display: block;
  background: rgba(52, 211, 153, .15);
  border: 1px solid rgba(52, 211, 153, .4);
  color: #6ee7b7;
}

.form-msg.error-msg {
  display: block;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .35);
  color: #fca5a5;
}

/* ── reCAPTCHA ────────────────────────────────────────────── */

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

/* ── Footer ───────────────────────────────────────────────── */

footer {
  background: #030c18;
  color: #d9dee7;
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 992px) {

  .hero h1 {
    font-size: 54px;
  }

  .feature-grid,
  .package-grid,
  .process-grid,
  .why-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 78px);
    background: #07162d;
    flex-direction: column;
    padding-top: 40px;
    transition: .35s;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {

  .hero {
    text-align: center;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .contact h2 {
    font-size: 38px;
  }

  .package-title h3 {
    font-size: 28px;
  }

  .price {
    font-size: 34px;
  }
}
