/* ==========================================================================
   Expert Academic — Premium Editorial Design System
   Palette: deep navy / warm ivory / restrained gold
   Type: Fraunces (display serif) + Inter (body)
   ========================================================================== */

:root {
  /* Ink & blue */
  --ink: #010a38;
  --navy: #01176b;
  --navy-2: #0a2a8c;
  --navy-3: #1c3ea8;

  /* Ivory & paper */
  --ivory: #faf6ee;
  --paper: #fffdf8;
  --line: #e7dfd0;
  --line-soft: #efe8da;

  /* Gold accent — CTAs and highlights only */
  --gold: #c9a24b;
  --gold-deep: #b08a35;
  --gold-soft: #e3cf9c;
  --gold-tint: rgba(201, 162, 75, 0.12);

  /* Text */
  --text: #151d38;
  --text-muted: #555e78;
  --text-on-navy: #f4efe5;
  --text-on-navy-muted: rgba(244, 239, 229, 0.72);

  /* Misc */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 14px 40px -18px rgba(1, 11, 56, 0.22);
  --shadow-card-hover: 0 22px 55px -20px rgba(1, 11, 56, 0.32);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Legacy variable names still referenced by inline page styles */
  --primary-dark: #151d38;
  --accent-color: #c9a24b;
  --off-white: #faf6ee;
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--ivory);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.ls-1 {
  letter-spacing: 0.14em;
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

/* Section rhythm */
.section-padding {
  padding: 96px 0;
}

/* Eyebrow label above section headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--gold);
  margin: 10px auto 0;
}

.eyebrow-left::after {
  margin-left: 0;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Dark-section variants */
.on-navy h2, .on-navy h3, .on-navy h4, .on-navy .section-title {
  color: var(--text-on-navy);
}

.on-navy .section-sub {
  color: var(--text-on-navy-muted);
}

.on-navy .eyebrow {
  color: var(--gold-soft);
}

/* ---------- Buttons ---------- */

.btn-gold,
.btn-cta-pulse {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 14px 34px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  box-shadow: 0 10px 26px -12px rgba(176, 138, 53, 0.55);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: none;
}

.btn-gold:hover,
.btn-gold:focus,
.btn-cta-pulse:hover,
.btn-cta-pulse:focus {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fffdf8;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(176, 138, 53, 0.7);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-3);
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--text-on-navy);
  border-color: var(--navy);
}

.btn-outline-glass {
  background: transparent;
  border: 1.5px solid rgba(244, 239, 229, 0.55);
  color: var(--text-on-navy);
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-outline-glass:hover {
  background: rgba(244, 239, 229, 0.12);
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: #0e6f64;
  color: #fff;
  transform: translateY(-2px);
}

/* Bootstrap primary-outline remap so legacy buttons sit on-palette */
.btn-outline-primary {
  --bs-btn-color: var(--navy-3);
  --bs-btn-border-color: var(--navy-3);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-hover-color: #f4efe5;
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  font-weight: 600;
}

.text-primary {
  color: var(--navy-3) !important;
}

.bg-primary {
  background-color: var(--navy) !important;
}

/* ---------- Navbar ---------- */

.navbar {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 18px rgba(1, 11, 56, 0.05);
  padding: 14px 0;
}

.navbar .nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text) !important;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover {
  color: var(--navy) !important;
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-brand-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .navbar-brand-logo {
    height: 46px;
    max-width: 220px;
  }
}

.navbar .btn-cta-pulse {
  padding: 10px 22px;
  font-size: 0.88rem;
  box-shadow: none;
}

.navbar-toggler {
  border-color: var(--line);
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  padding: 150px 0 90px;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 900px 520px at 78% 10%, rgba(201, 162, 75, 0.14), transparent 60%),
    linear-gradient(to top, rgba(1, 10, 56, 0.6), transparent 42%),
    linear-gradient(100deg, rgba(1, 10, 56, 0.94) 0%, rgba(1, 13, 75, 0.84) 38%, rgba(1, 23, 107, 0.5) 70%, rgba(1, 23, 107, 0.24) 100%),
    url("../img/hero-image.webp");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center 68%;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal, luminosity;
  color: var(--text-on-navy);
}

.hero-section::before {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(227, 207, 156, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 1.5rem;
  background: rgba(227, 207, 156, 0.07);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.14;
  color: var(--text-on-navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.hero-title .highlight-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--gold-soft);
  font-style: italic;
  font-weight: 600;
}

.hero-lead {
  color: var(--text-on-navy-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 540px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-navy-muted);
}

.hero-trust i {
  color: var(--gold-soft);
  margin-right: 0.45rem;
}

/* Hero quote form card */
.hero-form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 70px -25px rgba(4, 10, 20, 0.55);
  padding: 2.1rem 1.9rem 1.7rem;
  position: relative;
}

.hero-form-offer {
  display: inline-block;
  background: var(--gold-tint);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 0.9rem;
}

.hero-form-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.hero-form-card .hero-form-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  padding: 34px 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 3.5rem;
  text-align: center;
}

.trust-stat {
  min-width: 130px;
}

.trust-stat-number {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.trust-stat-number i {
  color: var(--gold);
  font-size: 1.2rem;
  vertical-align: 0.2em;
}

.trust-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Service cards ---------- */

#services {
  background: var(--paper);
}

.service-card {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-soft);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h4 {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-link {
  color: var(--navy-3);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-link:hover {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

.service-card-wide {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.service-card-wide .service-icon {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .service-card-wide {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Inline CTA panel — navy spotlight lead magnet */
.inline-cta-panel {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 560px 300px at 88% -10%, rgba(201, 162, 75, 0.26), transparent 62%),
    radial-gradient(ellipse 540px 330px at 0% 112%, rgba(28, 62, 168, 0.55), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f4efe5' stroke-opacity='0.05'%3E%3Cpath d='M0 30h120M0 60h120M0 90h120'/%3E%3C/g%3E%3C/svg%3E");
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem 2.6rem;
  color: var(--text-on-navy);
  box-shadow: 0 30px 70px -28px rgba(1, 11, 56, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inline-cta-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 85px -30px rgba(1, 11, 56, 0.75);
}

/* CSS-only ornament: gold ring top-right, soft gold pool bottom-left */
.inline-cta-panel::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 75, 0.28);
  pointer-events: none;
}

.inline-cta-panel::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.14), transparent 70%);
  pointer-events: none;
}

.inline-cta-panel h4 {
  color: var(--text-on-navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  position: relative;
  z-index: 1;
}

.inline-cta-watermark {
  position: absolute;
  top: -30px;
  right: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 9rem;
  line-height: 1;
  color: rgba(227, 207, 156, 0.13);
  pointer-events: none;
  user-select: none;
}

.inline-cta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.55);
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.inline-cta-sub {
  color: var(--text-on-navy-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.inline-cta-trust {
  color: var(--text-on-navy-muted);
  position: relative;
  z-index: 1;
}

.inline-cta-trust i {
  color: var(--gold-soft);
}

@media (max-width: 575.98px) {
  .inline-cta-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .inline-cta-trust-sep {
    display: none;
  }
}

.inline-cta-primary {
  animation: cta-breathe 3s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 10px 26px -12px rgba(176, 138, 53, 0.55);
  }

  50% {
    box-shadow: 0 14px 42px -8px rgba(201, 162, 75, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inline-cta-primary {
    animation: none;
  }
}

/* ---------- Pricing ---------- */

#pricing {
  background: var(--ivory);
}

.pricing-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.9rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card h5 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--ink);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.pricing-unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-expert {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0;
}

.pricing-expert-light {
  color: var(--gold-soft);
}

/* Featured tier — navy card, gold badge */
.pricing-card-featured {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--navy-2);
  box-shadow: 0 26px 60px -22px rgba(1, 11, 56, 0.55);
}

.pricing-card-featured h5 {
  color: var(--text-on-navy);
}

.pricing-card-featured .pricing-price {
  color: var(--gold-soft);
}

.pricing-card-featured .pricing-unit {
  color: var(--text-on-navy-muted);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(176, 138, 53, 0.7);
  white-space: nowrap;
}

.text-white-75 {
  color: var(--text-on-navy-muted) !important;
}

/* Pricing comparison table */
.pricing-table-wrap {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-table thead th {
  background: var(--navy);
  color: var(--text-on-navy);
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: center;
  padding: 1.05rem 0.85rem;
  vertical-align: middle;
  font-size: 1rem;
}

.pricing-table thead th.pricing-table-feature {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-table-rate {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--gold-soft);
  margin-top: 0.2rem;
}

.pricing-table tbody td {
  padding: 0.82rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 0.92rem;
  vertical-align: middle;
}

.pricing-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody td .fa-check {
  color: var(--gold-deep);
  font-size: 0.95rem;
}

.pricing-table-dash {
  color: #cfc6b4;
}

.pricing-table-col-featured {
  background: rgba(1, 23, 107, 0.05);
}

.pricing-table thead th.pricing-table-col-featured {
  background: var(--navy-2);
}

.pricing-table-expert-row td {
  background: var(--ivory);
  font-weight: 600;
  font-size: 0.84rem;
}

.pricing-table-expert-row td.pricing-table-col-featured {
  background: rgba(1, 23, 107, 0.1);
}

@media (max-width: 575.98px) {
  .pricing-price {
    font-size: 2.4rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }
}

/* ---------- Process ---------- */

#process {
  padding: 96px 0;
  background: var(--navy);
  position: relative;
}

.process-step {
  position: relative;
  padding: 24px 18px;
  text-align: center;
  z-index: 1;
}

.process-step h5 {
  color: var(--text-on-navy);
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-on-navy-muted);
}

.step-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: var(--gold-soft);
  margin-bottom: 0.9rem;
  position: static;
  transform: none;
  width: auto;
  height: auto;
}

.process-step-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  background: rgba(244, 239, 229, 0.06);
  color: var(--gold-soft);
  border-radius: 50%;
  border: 1px solid rgba(227, 207, 156, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  transition: all 0.3s ease;
  box-shadow: none;
}

.process-step:hover .process-step-icon {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.process-arrow {
  position: absolute;
  top: 118px;
  left: 50%;
  right: -50%;
  height: 1px;
  background: rgba(227, 207, 156, 0.25);
  z-index: 0;
}

.process-arrow i {
  position: absolute;
  right: -8px;
  top: -11px;
  color: var(--gold-soft);
  font-size: 1rem;
  background: transparent;
  padding: 0 4px;
}

.process-step:last-child .process-arrow {
  display: none;
}

@media (max-width: 991.98px) {
  .process-arrow {
    display: none !important;
  }
}

/* ---------- About / Why us ---------- */

#about {
  padding: 96px 0;
  background: var(--paper);
}

.feature-card-elegant {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  margin-bottom: 1.4rem;
  box-shadow: none;
  border-image: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media screen and (min-width: 992px) {
  .feature-card-elegant.feature-card-elegant-max-width {
    max-width: 47%;
  }
}

.feature-card-elegant:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card-elegant h5 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.feature-card-elegant p {
  color: var(--text-muted);
}

.feature-icon-box {
  background: var(--navy);
  color: var(--gold-soft);
  border-radius: 14px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: none;
  padding: 0;
}

/* Editorial pull-quote block (replaces about stock photo) */
.about-quote-block {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  color: var(--text-on-navy);
  overflow: hidden;
}

.about-quote-block::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(227, 207, 156, 0.18);
  position: absolute;
  top: 6px;
  left: 22px;
}

.about-quote-block p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  color: var(--text-on-navy);
}

.about-quote-block .about-quote-meta {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  border: 1px solid var(--navy-2);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin-top: 60px;
  color: var(--text-on-navy);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.22), transparent 70%);
}

.cta-banner h3 {
  color: var(--text-on-navy);
}

.white-btn-hover:hover {
  background-color: var(--gold) !important;
  color: var(--ink) !important;
  box-shadow: 0 12px 30px -12px rgba(176, 138, 53, 0.7) !important;
  transition: all 0.3s ease !important;
}

/* ---------- Testimonials ---------- */

#testimonials {
  padding: 96px 0;
  background: var(--ivory);
  color: var(--text);
}

#testimonials h2 {
  color: var(--ink);
}

.testimonial-card h6 {
  color: var(--ink);
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-serif);
  font-weight: 600;
  position: absolute;
  top: -14px;
  right: 18px;
  font-size: 7rem;
  color: var(--gold-tint);
  z-index: 1;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.testimonial-author-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.testimonial-card .d-flex {
  position: relative;
  z-index: 2;
}

.testimonial-card .text-warning {
  color: var(--gold) !important;
}

/* ---------- Signup section ---------- */

#signup-section {
  position: relative;
  padding: 96px 0;
  background: var(--navy);
  overflow: hidden;
}

.signup-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 700px 420px at 85% 15%, rgba(201, 162, 75, 0.14), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f4efe5' stroke-opacity='0.04'%3E%3Cpath d='M0 30h120M0 60h120M0 90h120'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgba(1, 13, 75, 0.80), rgba(1, 13, 75, 0.80)),
    url("../img/signup-library.webp");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat;
  background-blend-mode: normal, normal, normal, luminosity;
}

/* Phones: card is near full-width, so the library layer costs bandwidth for margins
   too thin to read. Drop to the flat navy + gold glow. */
@media (max-width: 767.98px) {
  .signup-bg-pattern {
    background-image:
      radial-gradient(ellipse 700px 420px at 85% 15%, rgba(201, 162, 75, 0.14), transparent 60%);
    background-size: auto;
    background-position: center;
    background-blend-mode: normal;
  }
}

.signup-content-wrapper {
  position: relative;
  z-index: 2;
}

.signup-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(4, 10, 20, 0.6);
  transition: none;
}

.signup-image-side {
  background: var(--navy-2);
  background-image: radial-gradient(ellipse 400px 300px at 20% 100%, rgba(201, 162, 75, 0.16), transparent 65%);
  height: 100%;
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
}

.signup-image-side::before {
  content: none;
}

.signup-image-content {
  position: relative;
  z-index: 2;
  color: var(--text-on-navy);
}

.signup-image-content h3 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  margin-bottom: 18px;
  line-height: 1.25;
  color: var(--text-on-navy);
}

.signup-image-content p {
  font-size: 1rem;
  color: var(--text-on-navy-muted);
  line-height: 1.7;
}

.signup-benefits h6 {
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.signup-benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-on-navy);
  font-size: 0.95rem;
}

.signup-benefit-item i {
  color: var(--gold);
  margin-right: 10px;
  font-size: 1rem;
}

.signup-stats {
  display: flex;
  gap: 34px;
  margin-top: 30px;
  border-top: 1px solid rgba(244, 239, 229, 0.14);
  padding-top: 24px;
}

.signup-stat-item {
  text-align: center;
}

.signup-stat-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  color: var(--gold-soft);
}

.signup-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-navy-muted);
}

.signup-form-side {
  padding: 48px 40px;
  background: var(--paper);
}

.signup-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.signup-form-header .badge {
  margin-bottom: 14px;
}

.signup-form-header h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.signup-form-header p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .signup-image-side {
    min-height: 0;
    padding: 40px 30px;
  }

  .signup-image-content h3 {
    font-size: 1.7rem;
  }

  .signup-stats {
    gap: 20px;
  }

  .signup-stat-number {
    font-size: 1.4rem;
  }

  .signup-form-side {
    padding: 40px 30px;
  }
}

@media (max-width: 767px) {
  #signup-section {
    padding: 64px 0;
  }

  .signup-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .signup-stat-item {
    text-align: left;
  }
}

/* ---------- Forms ---------- */

.form-floating > .form-control,
.form-floating > .form-select,
.form-control.bg-light,
.form-select.bg-light {
  background-color: var(--ivory) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px var(--gold-tint) !important;
}

.form-floating > label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

small.error {
  color: #b23a3a;
  font-size: 0.8rem;
}

input.error,
select.error {
  border-color: #b23a3a !important;
}

/* ---------- Modal ---------- */

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -25px rgba(4, 10, 20, 0.6);
  background: var(--paper);
}

.modal-body {
  padding: 0;
}

.modal-left-panel {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 400px 300px at 15% 95%, rgba(201, 162, 75, 0.20), transparent 65%),
    linear-gradient(to top, rgba(1, 10, 56, 0.97) 4%, rgba(1, 13, 75, 0.82) 34%, rgba(1, 23, 107, 0.52) 70%, rgba(1, 23, 107, 0.38) 100%),
    url("../img/modal-editor.webp");
  background-size: auto, auto, cover;
  background-position: center, center, center 26%;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, luminosity;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 38px;
  position: relative;
}

.modal-left-panel .modal-quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(227, 207, 156, 0.35);
}

.modal-quote {
  position: relative;
  color: var(--text-on-navy);
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
}

.modal-quote .modal-quote-author {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 1.1rem;
}

.modal-form-container {
  padding: 44px 38px;
  background: var(--paper);
}

.modal-form-container h3 {
  font-family: var(--font-serif);
}

.modal.fade .modal-dialog {
  transform: translateY(14px);
  opacity: 0;
  transition: all 0.35s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 991px) {
  .modal-left-panel {
    display: none;
  }
}

/* ---------- FAQ ---------- */

#faq-section {
  padding: 96px 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.faq-bg-decoration {
  display: none;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.faq-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  margin-bottom: 12px;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

.faq-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-item {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: none;
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-card);
}

.faq-item.active {
  border-color: var(--gold);
  background: var(--paper);
}

.faq-question {
  padding: 20px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  position: relative;
  transition: none;
}

.faq-question:hover {
  background: none;
}

.faq-question h5 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding-right: 18px;
  flex: 1;
}

.faq-icon {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--gold);
  color: var(--ink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 26px 22px 26px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.faq-answer ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.faq-answer ul li {
  margin-bottom: 7px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-cta-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px 38px;
  text-align: center;
  margin-top: 56px;
  color: var(--text-on-navy);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.faq-cta-box h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-on-navy);
}

.faq-cta-box p {
  font-size: 1rem;
  margin-bottom: 26px;
  color: var(--text-on-navy-muted);
}

.faq-cta-box .btn {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 10px;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 12px 28px -12px rgba(176, 138, 53, 0.6);
}

.faq-cta-box .btn:hover {
  background: var(--gold-deep);
  color: #fffdf8;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  #faq-section {
    padding: 64px 0;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h5 {
    font-size: 0.95rem;
  }

  .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
  }

  .faq-cta-box {
    padding: 38px 24px;
  }

  .faq-cta-box h4 {
    font-size: 1.4rem;
  }
}

/* ---------- Footer ---------- */

footer {
  position: relative;
  background: var(--ink);
  color: rgba(244, 239, 229, 0.65);
  padding-top: 0;
  overflow: hidden;
  font-size: 0.93rem;
}

.footer-wave {
  display: none;
}

.footer-content {
  padding-top: 80px;
  padding-bottom: 56px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-brand-logo {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .footer-brand-logo {
    height: 38px;
    max-width: 180px;
  }
}

.footer-desc {
  line-height: 1.8;
  margin-bottom: 26px;
  color: rgba(244, 239, 229, 0.6);
}

.footer-heading {
  color: var(--text-on-navy);
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 22px;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 34px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: rgba(244, 239, 229, 0.65);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold-soft);
  padding-left: 5px;
  transform: none;
}

.footer-links a::before {
  content: none;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 0.3rem;
}

.footer-contact-item a {
  color: rgba(244, 239, 229, 0.75);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 229, 0.08);
  padding: 24px 0;
  background: #080f1c;
  font-size: 0.85rem;
}

.footer-bottom-links a {
  color: rgba(244, 239, 229, 0.6);
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--gold-soft);
}

.footer-bottom .footer-disclaimer {
  color: rgba(244, 239, 229, 0.45);
}

/* ---------- intl-tel-input ---------- */

.iti {
  width: 100%;
  height: 100%;
  /* Never inherit a section's on-navy text colour — the widget always sits on a light field */
  color: var(--text);
}

.iti__selected-dial-code {
  color: var(--text);
  font-weight: 500;
}

.iti__country,
.iti__country-name {
  color: var(--text);
}

.iti__country-list {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  /* Bootstrap's floating labels also sit at z-index 2 and would paint over the open list */
  z-index: 5;
}

.iti__country.iti__highlight {
  background-color: var(--gold-tint);
}

.iti__dial-code {
  color: var(--text-muted);
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type="text"],
.iti--allow-dropdown input[type="tel"],
.iti--separate-dial-code input,
.iti--separate-dial-code input[type="text"],
.iti--separate-dial-code input[type="tel"] {
  padding-left: 89px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  height: 100%;
  min-height: 58px;
  max-height: 58px;
}

/* ---------- Scroll reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Static content pages (terms, error) ---------- */

.page-hero {
  padding: 150px 0 70px;
}

.content-page-body {
  background: var(--paper);
}

.content-page-body h4 {
  margin-top: 2rem;
}

/* ---------- Responsive hero ---------- */

@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 64px;
    background-image:
      radial-gradient(ellipse 900px 520px at 78% 10%, rgba(201, 162, 75, 0.14), transparent 60%),
      linear-gradient(175deg, rgba(1, 13, 75, 0.9) 0%, rgba(1, 23, 107, 0.82) 55%, rgba(1, 10, 56, 0.9) 100%),
      url("../img/hero-image.webp");
    background-size: auto, auto, cover;
    background-position: center, center, center 62%;
    background-blend-mode: normal, normal, luminosity;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-form-card {
    margin-top: 2.5rem;
  }
}
