/* =========================
   Prestige Global – style.css
   ========================= */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Theme */
:root {
  /* Light theme base */
  --bg: #f7f6f3;
  --panel: #ffffff;
  --panel-2: #fbfaf7;

  --text: #141414;
  --muted: #515151;

  /* Brand */
  --gold: #c9a24d;
  --gold-2: #b8923d;

  /* UI */
  --border: rgba(201, 162, 77, 0.28);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.1);

  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;

  /* Nav */
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-bg-solid: #ffffff;
}

/* Base */
body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      1000px 520px at 70% -140px,
      rgba(201, 162, 77, 0.14),
      transparent 60%
    ),
    var(--bg);

  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), 100% - 2.25rem);
  margin-inline: auto;
}

.page {
  padding: 3.25rem 0 4rem;
}

.section {
  margin-top: 2.25rem;
}

.section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.lead {
  color: var(--muted);
  max-width: 65ch;
}

/* =========================
   Header / Nav (FIXED)
   ========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative; /* allows dropdown to position correctly */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 220px;
}

.logo {
  height: 46px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-weight: 700;
}

.brand-text span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Desktop nav list */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0.1rem;
  position: relative;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Menu button should be hidden on desktop */
.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

/* =========================
   Home – Hero Banner
   ========================= */

.hero-banner {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  background: #0b0b0b url("images/hero-banner.png") center / cover no-repeat;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   Hero (content)
   ========================= */

.hero {
  position: relative;
  padding: 3.5rem 0;
}

.hero-home::before {
  display: none;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

/* Home hero: 3-column layout with integrated illustration */
.hero-grid-3 {
  grid-template-columns: 1.15fr 0.75fr 0.85fr;
  align-items: center;
}

/* Illustration column */
.hero-illus {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* size the animation */
#studyLottie {
  width: min(320px, 26vw);
  max-width: 360px;
}

/* blend slightly into the page */
.hero-illus {
  opacity: 0.9;
  filter: saturate(0.9) contrast(0.98);
  mix-blend-mode: multiply;
}

/* Responsive: stack nicely */
@media (max-width: 900px) {
  .hero-grid-3 {
    grid-template-columns: 1.2fr 0.6fr 0.9fr;
  }
  #studyLottie {
    width: min(280px, 24vw);
  }

  .hero-illus {
    order: 2; /* text first, illustration second, card third */
  }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--gold-2);
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.hero-card li::before {
  content: "✓";
  color: var(--gold);
  margin-right: 0.5rem;
}

/* Make home hero more spacious */
.hero-home {
  padding: 4.25rem 0;
}

.hero-wrap {
  display: grid;
  gap: 2.25rem;
}

/* Two-column hero */
.hero-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

/* More breathing room for copy */
.hero-copy h1 {
  max-width: 18ch;
}

.hero-copy p {
  max-width: 62ch;
}

/* Illustration: smaller + pushed back so it feels background-y */
.hero-illus-home {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.78;
  filter: saturate(0.9) contrast(0.98);
  mix-blend-mode: multiply;
}

.hero-illus-home #studyLottie {
  width: min(360px, 34vw);
  max-width: 380px;
}

/* Under-hero panel spacing */
.hero-help {
  padding: 1.6rem;
}

.hero-help h3 {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-illus-home #studyLottie {
    width: min(420px, 85vw);
  }
}

/* =========================
   Illustrated Lottie – Home Hero
   ========================= */

.hero-home .hero-grid {
  position: relative;
}

/* keep text + card above illustration */
.hero-home .hero-grid > * {
  position: relative;
  z-index: 1;
}

.hero-illustration {
  position: absolute;
  right: -120px;
  bottom: -40px;
  width: min(640px, 60vw);

  pointer-events: none;
  z-index: 0;

  /* blend it in */
  opacity: 0.85;
  mix-blend-mode: multiply;
  filter: saturate(0.85) contrast(0.98);
}

/* ensure SVG scales cleanly */
#studyLottie {
  width: 100%;
  height: auto;
}

/* mobile: remove for calm layout */
@media (max-width: 760px) {
  .hero-illustration {
    display: none;
  }
}

/* =========================
   Page Hero (non-home) – calm premium accent
   ========================= */

.page-hero {
  position: relative;
  padding: 4rem 0 3.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* soft “sheen” near the top edges (no swirls) */
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 260px;
  background:
    radial-gradient(
      60% 120% at 20% 20%,
      rgba(201, 162, 77, 0.1),
      transparent 55%
    ),
    radial-gradient(
      70% 120% at 80% 10%,
      rgba(201, 162, 77, 0.06),
      transparent 60%
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}

/* soft fade into the page background */
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--gold);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.page-hero .lead {
  max-width: 60ch;
}

/* Optional slow drift (very subtle) */
@media (prefers-reduced-motion: no-preference) {
  .page-hero::before {
    animation: heroSheen 18s ease-in-out infinite;
  }
  @keyframes heroSheen {
    0%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    50% {
      transform: translate3d(18px, -10px, 0);
    }
  }
}

/* =========================
   Hero Orb (subtle moving accent)
   ========================= */

/* enable per-page by adding class: premium-orb */
.premium-orb {
  position: relative;
  overflow: hidden;
}

.premium-orb .hero-orb {
  position: absolute;
  right: -140px;
  top: 38px;
  width: 380px;
  height: 380px;
  border-radius: 999px;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(201, 162, 77, 0.18),
    rgba(201, 162, 77, 0.09) 38%,
    transparent 72%
  );

  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.premium-orb .container {
  position: relative;
  z-index: 1; /* keeps text above the orb */
}

/* subtle float motion */
@media (prefers-reduced-motion: no-preference) {
  .premium-orb .hero-orb {
    animation: orbFloat 12s ease-in-out infinite;
    will-change: transform;
  }

  @keyframes orbFloat {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
      transform: translate3d(-38px, -18px, 0) scale(1.05);
    }
  }
}

/* keep mobile ultra clean */
@media (max-width: 760px) {
  .premium-orb .hero-orb {
    display: none;
  }
}

/* =========================
   Buttons
   ========================= */

.actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn.gold:hover {
    box-shadow: 0 12px 26px rgba(201, 162, 77, 0.18);
  }

  .btn.outline:hover {
    box-shadow: 0 12px 26px rgba(201, 162, 77, 0.12);
  }
}

.btn.gold {
  background: var(--gold);
  color: #0a0a0a;
}

.btn.gold:hover {
  background: var(--gold-2);
}

.btn.outline {
  border-color: rgba(201, 162, 77, 0.6);
  background: rgba(201, 162, 77, 0.06);
}

/* =========================
   Panels / Cards
   ========================= */

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 162, 77, 0.22);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.card p {
  color: var(--muted);
}

/* Feature / stock images */
.feature-image {
  width: 100%;
  border-radius: 18px;
  margin: 2.5rem 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .feature-image {
    animation: floatImage 18s ease-in-out infinite alternate;
  }
}

@keyframes floatImage {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition:
      transform 180ms ease,
      border-color 180ms ease;
  }

  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 77, 0.35);
  }
}

.list {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.6rem;
}
.list li::marker {
  color: rgba(201, 162, 77, 0.85);
}

/* =========================
   Contact Form
   ========================= */

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 162, 77, 0.28);
  border-radius: 12px;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 77, 0.6);
  box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.12);
}

/* =========================
   Footer (light, cohesive)
   ========================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

/* =========================
   Reveal Animations
   ========================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Subtle page edge accents
   (non-home pages only)
   ========================= */

.page::before,
.page::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Left edge accent */
.page::before {
  left: 0;
  background: radial-gradient(
    220px 600px at -40% 30%,
    rgba(201, 162, 77, 0.18),
    transparent 70%
  );
}

/* Right edge accent */
.page::after {
  right: 0;
  background: radial-gradient(
    220px 600px at 140% 70%,
    rgba(201, 162, 77, 0.18),
    transparent 70%
  );
}

/* Ensure content sits above accents */
.page > .container {
  position: relative;
  z-index: 1;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Nav final overrides (prevents menu + links showing together) ===== */

/* Desktop: show links, hide menu */
@media (min-width: 761px) {
  .menu-btn {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
}

/* Mobile: hide links until menu is opened */
@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-links {
    display: none !important;
  }

  .nav-links.is-open {
    display: grid !important;
    position: absolute;
    right: 0;
    top: 72px;
    background: var(--nav-bg-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem;
    gap: 0.4rem;
    width: min(320px, calc(100% - 1rem));
    box-shadow: var(--shadow);
  }

  .nav-links.is-open a {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
  }

  .nav-links.is-open a:hover {
    background: rgba(201, 162, 77, 0.1);
  }

  .nav-links a.active::after {
    display: none;
  }
}
