:root {
  --brand-purple: #663399;
  --brand-purple-dark: #3c1e64;
  --brand-gold: #b8944a;
  --brand-orange: #e67e22;
  --brand-charcoal: #373737;
  --brand-muted: #6b6b6b;
  --brand-bg: #f8f7fa;
  --header-h: 100px;
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--brand-charcoal);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ========== SHARED HEADER ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(184, 148, 74, 0.35);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(60, 30, 100, 0.06);
}

.site-header .navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-lockup img,
.brand-lockup object,
.brand-lockup .logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

.hero-art {
  max-width: 420px;
  width: 100%;
  border-top: 3px solid var(--brand-gold);
}

.hero-illustration {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

.nav-link {
  color: var(--brand-charcoal) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-purple) !important;
}

.btn-brand {
  background: var(--brand-purple);
  color: #fff !important;
  border: none;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  border-radius: 0.35rem;
}

.btn-brand:hover {
  background: var(--brand-purple-dark);
  color: #fff !important;
}

.btn-gold {
  background: var(--brand-gold);
  color: #fff !important;
  border: none;
  font-weight: 600;
  border-radius: 0.35rem;
}

.btn-gold:hover {
  background: #9a7a38;
  color: #fff !important;
}

.btn-outline-brand {
  border: 1.5px solid var(--brand-purple);
  color: var(--brand-purple) !important;
  background: transparent;
  font-weight: 600;
}

.btn-outline-brand:hover {
  background: var(--brand-purple);
  color: #fff !important;
}

/* ========== SHARED FOOTER ========== */
.site-footer {
  background: var(--brand-purple-dark);
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
  border-top: 3px solid var(--brand-gold);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.site-footer .footer-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.site-footer .footer-brand {
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-size: 2.6rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ========== PAGE CHROME ========== */
.page-hero {
  background:
    linear-gradient(135deg, rgba(102, 51, 153, 0.94), rgba(60, 30, 100, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(230, 126, 34, 0.25), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(184, 148, 74, 0.2), transparent 40%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-orange), var(--brand-gold));
}

.page-hero h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
}

.section-pad { padding: 4rem 0; }

.section-muted { background: var(--brand-bg); }

.section-label {
  color: var(--brand-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gold-rule {
  width: 56px;
  height: 2px;
  background: var(--brand-gold);
  border: 0;
  margin: 0.75rem 0 1.25rem;
}

.service-tile {
  border: 0;
  background: #fff;
  border-top: 3px solid var(--brand-purple);
  box-shadow: 0 8px 28px rgba(60, 30, 100, 0.07);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(60, 30, 100, 0.12);
}

.service-tile .icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(102, 51, 153, 0.1);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-band {
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-purple-dark));
  color: #fff;
  padding: 3rem 0;
  border-top: 3px solid var(--brand-gold);
}

.home-hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(248, 247, 250, 0.97) 0%, rgba(248, 247, 250, 0.9) 48%, rgba(102, 51, 153, 0.12) 100%),
    radial-gradient(ellipse at 90% 20%, rgba(230, 126, 34, 0.18), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(102, 51, 153, 0.12), transparent 45%);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 51, 153, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 51, 153, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.brand-wordmark {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, #7b3fa0, #3c1e64);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.tagline-italic {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--brand-muted);
  font-size: 1.15rem;
}

.fees-table thead th {
  background: var(--brand-purple);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
}

.fees-table tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.fees-table .service-name {
  font-weight: 600;
  color: var(--brand-purple-dark);
}

.badge-note {
  background: rgba(184, 148, 74, 0.15);
  color: #7a5f28;
  font-weight: 600;
  font-size: 0.78rem;
}

.rate-note {
  font-size: 0.88rem;
  color: var(--brand-muted);
  border-left: 3px solid var(--brand-gold);
  padding-left: 1rem;
  background: var(--brand-bg);
}

.insight-card {
  border: 0;
  border-bottom: 3px solid var(--brand-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 0.2rem rgba(102, 51, 153, 0.15);
}

.value-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(102, 51, 153, 0.08);
  color: var(--brand-purple);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem;
}

/* ========== PRINT / PDF ========== */
@media print {
  .site-header {
    position: static !important;
    box-shadow: none !important;
  }
  .navbar-toggler,
  .btn,
  .no-print {
    /* keep buttons visible in mockup PDF for fidelity */
  }
  a { text-decoration: none !important; }
  .home-hero { min-height: auto; padding: 2.5rem 0; }
  .page-hero { padding: 2rem 0; }
  .section-pad { padding: 2rem 0; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@page {
  size: A4;
  margin: 12mm;
}
