/* Shared public shell: enhancements, footer, utilities, and reusable UI. */

:root {
  --premium-navy: #101f49;
  --premium-blue: #0d42b1;
  --premium-glow: rgba(13, 66, 177, .18);
  --premium-line: rgba(50, 62, 107, .12);
}

html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

.site-header {
  transition: box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(16, 31, 73, .12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  width: min(100%, 470px);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  shape-rendering: geometricPrecision;
  image-rendering: auto;
}

.brand-logo-inline {
  overflow: visible;
}

.brand-logo-header text:first-of-type,
.footer-logo text:first-of-type {
  text-rendering: geometricPrecision;
}

[data-site-logo-slot] {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.site-logo picture {
  display: inline-flex;
  align-items: center;
}

.site-logo img,
[data-site-logo-slot] img.brand-logo-header {
  display: block;
  height: auto;
  max-height: 82px;
  width: auto;
  opacity: 1;
  filter: contrast(1.06) saturate(1.04);
  image-rendering: auto;
}

.footer-logo-shell {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-logo {
  width: min(100%, 220px);
  height: auto;
  max-height: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  background: #fff;
  color: #16254d;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(22, 37, 77, .18);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

.topbar-link:hover {
  color: #fff;
}

.social-icon:hover {
  background: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--gold);
}

.nav-link {
  color: #0B1535;
}

.nav-links .nav-link:not(.active):not(.nav-cta):hover {
  color: #0B1535;
}

.nav-links .nav-link.active,
.nav-links .nav-link.active:hover {
  color: #D7B34A;
}

.nav-links .nav-link:not(.nav-cta)::after {
  opacity: 0;
  transform: scaleX(1);
  transition: opacity .3s ease;
}

.nav-links .nav-link:not(.nav-cta):hover::after {
  opacity: 0;
}

.nav-links .nav-link:not(.nav-cta).active::after {
  opacity: 1;
}

.nav-cta:hover {
  background: #071845;
  filter: none;
}

.btn {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: transform .55s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(50, 62, 107, .35);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(50, 62, 107, .04);
}

.nav-cta:hover,
.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(16, 31, 73, .22);
}

.btn-secondary:hover,
.btn-light:hover {
  box-shadow: 0 14px 28px rgba(16, 31, 73, .14);
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-heading.center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-kicker {
  margin: 0 0 10px;
  font-family: 'Rajdhani', 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-kicker.left {
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--navy-dark);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-intro,
.section-heading > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.heading-line {
  display: block;
  width: 56px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 32px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(29, 41, 57, .06);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--navy-dark);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.blue-cta-card {
  isolation: isolate;
}

.blue-cta-card::after {
  content: '';
  position: absolute;
  right: -18%;
  top: -80%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 58%);
  z-index: 0;
  animation: premiumPulse 5s ease-in-out infinite alternate;
}

@keyframes premiumPulse {
  from { opacity: .45; transform: scale(.96); }
  to { opacity: .85; transform: scale(1.06); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1a7a3c;
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, .45);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: whatsappBreath 2.6s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.06);
  background: #166b34;
  box-shadow: 0 18px 40px rgba(37, 211, 102, .55);
}

.floating-whatsapp svg path {
  fill: currentColor;
  stroke: none;
}

@keyframes whatsappBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.footer {
  padding: 44px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .88);
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .65fr) minmax(260px, .9fr);
  gap: 32px;
  align-items: center;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

.footer a:hover {
  color: rgba(255, 255, 255, .86);
}

.footer-column {
  min-width: 0;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-name {
  margin: 0;
}

.footer-tagline {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .92);
  font-family: 'Rajdhani', 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-links-column,
.footer-contact-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-column a {
  width: fit-content;
  color: rgba(255, 255, 255, .72);
}

.footer-contact-line {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: .82rem;
}

.runtime-config-banner {
  padding: 12px 16px;
  border-bottom: 1px solid #ffd8a8;
  background: #fff4e5;
  color: #663e00;
  font: 600 14px/1.4 Montserrat, Arial, sans-serif;
}

.header-scroll-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.section-spaced {
  margin-top: 2rem;
}

.guide-card-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.guide-grid-related {
  margin-top: 3rem;
}

.quote-actions-spaced {
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .brand {
    width: min(100%, 380px);
  }
}

@media (max-width: 1024px) {
  .site-logo img,
  [data-site-logo-slot] img.brand-logo-header {
    max-height: 64px;
  }
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .brand {
    width: min(100%, 340px);
  }
}

@media (max-width: 768px) {
  .site-logo img,
  [data-site-logo-slot] img.brand-logo-header {
    max-height: 56px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand {
    width: min(100%, 270px);
  }

  .footer {
    padding-top: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand-column {
    grid-column: auto;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-logo-shell {
    padding: 8px 0;
  }

  .footer-logo {
    width: min(100%, 200px);
  }
}

@media (max-width: 900px) {
  .nav-links.is-open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
  }

  .topbar-content {
    justify-content: center;
    gap: 12px;
  }

  .topbar-left {
    justify-content: center;
  }

  .topbar-social {
    display: none;
  }

  .topbar-left a:first-child::after {
    margin: 0 8px;
  }
}
