/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #0d1b3e;
  --navy2:  #162050;
  --gold:   #c9a84c;
  --gold2:  #e8c46a;
  --white:  #ffffff;
  --off:    #f7f5f0;
  --text:   #3a3a4a;
  --muted:  #7a7a90;
  --border: #e2ddd4;
  --card-bg:#ffffff;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy);
}
.navbar__brand-icon {
  display: flex;
  align-items: center;
}
.navbar__brand-icon img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.navbar__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--navy); line-height: 1.1;
}
.navbar__brand-name span { color: var(--gold); }
.navbar__brand-tagline {
  font-size: 0.68rem; color: var(--muted); letter-spacing: .04em;
}
.navbar__links {
  display: flex; gap: 36px;
}
.navbar__auth {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar__guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__guest-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.navbar__auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(13,27,62,.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.navbar__auth-link:hover {
  background: rgba(201,168,76,.10);
  border-color: rgba(201,168,76,.45);
  transform: translateY(-1px);
}
.navbar__auth-link--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.navbar__auth-link--primary:hover {
  background: var(--navy2);
  border-color: var(--navy2);
  color: var(--white);
}
.navbar__user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.navbar__user-label {
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.navbar__user strong {
  color: var(--navy);
  font-size: 0.84rem;
  max-width: 13rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar__logout {
  border: 1px solid rgba(13,27,62,.12);
  border-radius: 999px;
  background: var(--off);
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.navbar__logout:hover {
  background: rgba(201,168,76,.12);
  border-color: rgba(201,168,76,.45);
  transform: translateY(-1px);
}
.navbar__link {
  font-size: 0.9rem; font-weight: 400;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.navbar__link:hover, .navbar__link.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 72px 0 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero__heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.13;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem; font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  letter-spacing: .02em;
  transition: background .2s;
}
.btn-primary:hover { background: var(--navy2); }
.btn-primary .arrow { font-size: 1.1rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn-gold-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7df8a 0%, #c9a84c 45%, #9b7420 100%);
  color: #1b1530;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid rgba(123, 88, 18, .28);
  box-shadow: 0 16px 34px rgba(123, 88, 18, .24);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-gold-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(123, 88, 18, .30);
  filter: saturate(1.04);
}
.btn-gold-premium .arrow { font-size: 1.1rem; }
.hero__microcopy {
  margin-top: 14px;
  max-width: 560px;
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Hero visual — zodiac wheel */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}
.hero__wheel-image {
  width: min(620px, 100%);
  max-width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: .98;
  filter: saturate(.96) contrast(1.01);
}

/* ── SECTION: CALCULATORS ─────────────────────────────────── */
.calculators {
  background: var(--off);
  padding: 72px 0 80px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 50%; width: 60px; height: 1px;
  background: var(--gold);
}
.section-title::before { right: calc(50% + 130px); }
.section-title::after  { left:  calc(50% + 130px); }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.calc-card:hover {
  box-shadow: 0 8px 28px rgba(13,27,62,.08);
  transform: translateY(-2px);
}
.calc-card::after {
  content: '';
  position: absolute;
  bottom: -18px; right: -18px;
  width: 70px; height: 70px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  opacity: .6;
}
.calc-card__number {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.calc-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.calc-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.calc-card__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.calc-card__link:hover { color: var(--gold); border-color: var(--gold); }
.calc-card__link .arrow { font-size: 0.85rem; }

.calc-card__free-badge {
  position: absolute;
  bottom: 8px;
  right: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 2;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand-icon {
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.footer__brand-icon img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy);
}
.footer__brand-name span { color: var(--gold); }
.footer__brand-tagline {
  font-size: 0.68rem; color: var(--muted);
  letter-spacing: .04em; margin-bottom: 12px;
}
.footer__brand-desc {
  font-size: 0.82rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 16px;
  max-width: 220px;
}
.footer__socials { display: flex; gap: 10px; }
.footer__social-link {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.footer__social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer__social-link svg { width: 14px; height: 14px; fill: currentColor; }

.footer__col-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.footer__col-link {
  font-size: 0.83rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.footer__col-link:hover { color: var(--navy); }
.chevron { color: var(--gold); font-size: 1rem; }

/* Contact column */
.footer__contact-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
}
.footer__contact-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.8rem;
}
.footer__contact-info { display: flex; flex-direction: column; }
.footer__contact-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.footer__contact-value {
  font-size: 0.83rem; color: var(--text);
  font-weight: 500;
}
.footer__contact-value a { color: var(--navy); }
.footer__contact-value a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1050px) {
  .calc-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title::before,
  .section-title::after { display: none; }
  .navbar__inner { gap: 16px; }
  .navbar__links { gap: 18px; }
}
@media (max-width: 780px) {
  .navbar__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
  .navbar__brand {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  .navbar__auth {
    width: auto;
    justify-content: flex-end;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .navbar__guest-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .navbar__user {
    text-align: right;
    line-height: 1.2;
  }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__actions { justify-content: center; }
  .hero__microcopy { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .hero__wheel-image { width: min(520px, 100%); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .navbar__links { display: none; }
}
@media (max-width: 768px) {
  .navbar__auth {
    flex-direction: column;
    gap: 10px;
  }

  .navbar__guest-actions {
    order: 2; /* Place "Login / Sign Up" after "Switch Account" */
    flex-direction: column;
    gap: 5px;
  }

  .navbar__logout {
    order: 1; /* Place "Switch Account" first */
    width: 100%;
    text-align: center;
  }

  .navbar__user {
    align-items: center;
  }

  .navbar__auth-link {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .navbar__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .navbar__brand {
    width: 100%;
    margin-bottom: 10px;
  }
  .navbar__auth {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .navbar__guest-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 1 auto;
  }
  .navbar__user {
    align-items: flex-end;
    text-align: right;
    flex: 1;
    min-width: 140px;
    line-height: 1.2;
  }
  .navbar__user-label {
    font-size: 0.65rem;
  }
  .navbar__user strong {
    max-width: 120px;
    display: block;
    word-break: break-word;
    font-size: 0.78rem;
  }
  .navbar__logout {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-height: 36px;
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
  .navbar__auth-link {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-height: 36px;
  }
  .hero { padding: 56px 0 64px; }
  .hero__heading { font-size: clamp(2rem, 11vw, 2.8rem); }
  .hero__sub { margin-bottom: 28px; }
  .hero__microcopy { text-align: center; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-gold-premium {
    width: 100%;
    justify-content: center;
  }
  .calc-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
