/* =============================================
   GLOBAL POLISH LAYER
   Cross-page brand consistency · Warm palette
   Loaded on all subpages (not homepage, which
   has its own redesign + polish layers)
   ============================================= */


/* ─── 1. WARMER PALETTE ─── */

:root {
  --bg: #f9f5ef;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-2: rgba(255, 252, 247, 0.94);
  --surface-3: rgba(245, 237, 226, 0.92);
  --surface-neutral: linear-gradient(180deg, rgba(255, 252, 247, 0.93), rgba(249, 243, 233, 0.90));
  --surface-info: linear-gradient(180deg, rgba(236, 243, 247, 0.98), rgba(255, 252, 247, 0.95));
  --stroke: rgba(21, 39, 52, 0.09);
  --text: #152734;
  --muted: rgba(21, 39, 52, 0.68);
  --shadow-sm: 0 10px 28px rgba(11, 28, 39, 0.07);
  --shadow: 0 18px 54px rgba(11, 28, 39, 0.12);
  --shadow-lg: 0 24px 72px rgba(11, 28, 39, 0.18);
  --accent-gold: #b88a4c;
  --accent-gold-soft: rgba(184, 138, 76, 0.14);
  --accent-cyan: #88ced9;
}


/* ─── 2. BODY & TYPOGRAPHY ─── */

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 450px at 20% -10%, rgba(184, 138, 76, 0.07), transparent 70%),
    radial-gradient(800px 500px at 85% 10%, rgba(136, 206, 217, 0.06), transparent 65%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, .form-title {
  font-family: "Newsreader", Georgia, serif;
}

h1 {
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.section-head h2 {
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.lead {
  font-size: 17.5px;
  line-height: 1.72;
}


/* ─── 3. SECTION KICKER GOLD LINE ─── */

.section-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 138, 76, 0.88), rgba(27, 109, 132, 0.3));
}


/* ─── 4. HEADER — FROSTED GLASS ─── */

.site-header {
  background: rgba(249, 245, 239, 0.82);
  border-bottom-color: rgba(21, 39, 52, 0.07);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header::after {
  background: linear-gradient(to bottom,
    rgba(249, 245, 239, 0.85) 0%,
    rgba(249, 245, 239, 0.4) 40%,
    transparent 100%);
}

.site-header[data-elevate="true"] {
  background: rgba(249, 245, 239, 0.92);
  box-shadow: 0 14px 36px rgba(11, 28, 39, 0.07);
}

.brand-logo {
  filter: drop-shadow(0 6px 12px rgba(11, 28, 39, 0.06));
}

.nav-link:hover {
  background: rgba(184, 138, 76, 0.06);
}


/* ─── 5. BUTTONS — PREMIUM GRADIENT ─── */

.btn-primary {
  background: linear-gradient(135deg, #0d3445, #15546e 68%, #226f88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(8, 28, 39, 0.18);
}

.btn-primary:hover {
  box-shadow:
    0 20px 46px rgba(8, 28, 39, 0.24),
    0 0 0 4px rgba(136, 206, 217, 0.1);
}

.btn-ghost {
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 252, 247, 0.95);
  border-color: rgba(21, 39, 52, 0.16);
}


/* ─── 6. CALLOUT ─── */

.callout {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(249, 243, 233, 0.88));
  border-color: rgba(21, 39, 52, 0.07);
  box-shadow: 0 8px 22px rgba(11, 28, 39, 0.05);
  transition: box-shadow 280ms ease;
}

.callout:hover {
  box-shadow: 0 12px 30px rgba(11, 28, 39, 0.08);
}

.callout h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.callout h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}


/* ─── 7. CARDS ─── */

.card {
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(11, 28, 39, 0.06);
}

.card:hover {
  box-shadow: 0 18px 42px rgba(11, 28, 39, 0.1), 0 0 0 1px rgba(27, 109, 132, 0.08);
}


/* ─── 8. STEPS / TIMELINE ─── */

.step {
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(11, 28, 39, 0.05);
}

.step:hover {
  box-shadow: 0 16px 38px rgba(11, 28, 39, 0.1);
}

.step-index {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(184, 138, 76, 0.14), rgba(27, 109, 132, 0.1));
  color: var(--brand-800);
}


/* ─── 9. NOTE / INFO BLOCK ─── */

.note {
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(11, 28, 39, 0.05);
}

.info-block {
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(11, 28, 39, 0.04);
}


/* ─── 10. FAQ ─── */

.faq-item {
  border-radius: 20px;
}

.faq-item:hover {
  background: rgba(255, 252, 247, 0.98);
  border-color: rgba(27, 109, 132, 0.18);
}


/* ─── 11. TABLE ─── */

.table-wrap {
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(11, 28, 39, 0.08);
}


/* ─── 12. ALTERNATING SECTION ─── */

.section.alt {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(184, 138, 76, 0.04), transparent 70%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.70), rgba(249, 243, 233, 0.40));
  border-top-color: rgba(21, 39, 52, 0.06);
  border-bottom-color: rgba(21, 39, 52, 0.06);
}


/* ─── 13. FOOTER ─── */

.footer {
  background: linear-gradient(180deg, #0a2431, #071a24);
}

.footer::before {
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(184, 138, 76, 0.08), transparent 70%),
    radial-gradient(400px 200px at 85% 20%, rgba(136, 206, 217, 0.06), transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

/* Subpage footer layout (.footer-inner is used on all subpages) */
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px 40px;
  align-items: start;
}

.footer-inner .footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 24px 40px;
  justify-content: start;
}

.footer-nav-group {
  display: grid;
  gap: 6px;
}

.footer-nav-heading {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-inner .footer-contact-title {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 700;
}

.footer-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* ─── 14. SCROLL PROGRESS — GOLD/CYAN ─── */

.scroll-progress {
  height: 2px;
  background: linear-gradient(90deg,
    rgba(184, 138, 76, 0.88),
    rgba(136, 206, 217, 0.85) 60%,
    rgba(184, 138, 76, 0.72));
  box-shadow:
    0 0 14px rgba(184, 138, 76, 0.35),
    0 0 6px rgba(136, 206, 217, 0.25);
}


/* ─── 15. SCROLL-TO-TOP ─── */

.scroll-top {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255, 252, 247, 0.92);
  border-color: rgba(21, 39, 52, 0.08);
  box-shadow: 0 10px 24px rgba(11, 28, 39, 0.1);
}

.scroll-top:hover {
  background: #fffaf4;
  box-shadow: 0 14px 32px rgba(11, 28, 39, 0.14);
}


/* ─── 16. COOKIE BANNER ─── */

.cookie-banner {
  background: rgba(255, 252, 247, 0.98);
  backdrop-filter: blur(20px);
  border-top-color: rgba(21, 39, 52, 0.08);
  box-shadow: 0 -12px 36px rgba(11, 28, 39, 0.1);
}


/* ─── 17. FOCUS STATES ─── */

*:focus-visible {
  outline: 2px solid rgba(136, 206, 217, 0.54);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid rgba(136, 206, 217, 0.6);
  outline-offset: 4px;
  box-shadow:
    0 0 0 4px rgba(136, 206, 217, 0.12),
    0 14px 34px rgba(8, 28, 39, 0.18);
}


/* ─── 18. GRAIN TEXTURE ─── */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}


/* ─── 19. LINKS ─── */

main a:not(.btn):not(.brand):not(.nav-link):not(.mobile-link):hover {
  color: var(--brand-700);
  text-decoration-color: rgba(27, 109, 132, 0.72);
}


/* ─── 20. METRICS & STATS ─── */

.metric {
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(11, 28, 39, 0.05);
}

.stat {
  border-radius: 20px;
}

.stat-number {
  background: linear-gradient(135deg, #0a3d56, #1b6d84);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Method card radius */
.method-card {
  border-radius: 24px;
}

/* Guarantee badge warmth */
.guarantee-badge {
  border-radius: 20px;
  border-color: rgba(27, 109, 132, 0.2);
}

.guarantee-badge:hover {
  border-color: rgba(27, 109, 132, 0.4);
  box-shadow: 0 10px 28px rgba(11, 28, 39, 0.1);
}


/* ─── RESPONSIVE ─── */

@media (max-width: 981px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner .footer-nav {
    grid-template-columns: repeat(2, auto);
    gap: 20px 40px;
  }
}

@media (max-width: 600px) {
  .scroll-top {
    width: 36px;
    height: 36px;
  }
}


/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}
