@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:wght@600;700&display=swap');

:root {
  --nav-offset: 8.1rem;
  --logo-height: 8.4rem;
  --logo-width: 15.4rem;
  --logo-compact-height: 5.6rem;
  --bg: #edf2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #13233d;
  --muted: #5b6c83;
  --primary: #b3842e;
  --primary-2: #cc9c41;
  --gold-dark: #7d5f16;
  --gold-highlight: #f5e6bd;
  --border: rgba(19, 35, 61, 0.12);
  --shadow: 0 18px 40px rgba(13, 29, 52, 0.1);
  --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-offset);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(74, 115, 179, 0.17), transparent 34%),
    radial-gradient(circle at 88% -8%, rgba(204, 156, 65, 0.13), transparent 32%),
    linear-gradient(160deg, #f9fbff 0%, #eff4fb 100%);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--ease-dramatic), transform 0.75s var(--ease-dramatic);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(19, 35, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 35, 61, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  z-index: -1;
}

body.page-loaded,
html:not(.js-ready) body {
  opacity: 1;
  transform: none;
}

/* Compact services overview */
.overview-page .hero-bridge:has(.hero-bridge-media) {
  height: clamp(340px, 40vw, 470px);
  min-height: 0;
  box-sizing: border-box;
}

.overview-page .hero-bridge-content {
  max-width: 620px;
}

.overview-page .hero-kicker {
  margin: 0 0 0.75rem;
  color: #e6bd69 !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.overview-page .hero-bridge h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: -0.035em;
}

.overview-page .service-tabs {
  margin: 1.25rem 0 0;
}

.overview-page .overview-map {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.overview-page .overview-map .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: end;
  gap: 0.6rem 3rem;
  max-width: none;
  margin-bottom: 1.5rem;
}

.overview-page .overview-map .section-heading .eyebrow {
  grid-column: 1 / -1;
}

.overview-page .overview-map .section-heading h2,
.overview-page .overview-map .section-heading p {
  margin: 0;
}

.overview-page .service-menu-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.overview-page .service-menu-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  min-height: 128px;
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(20, 57, 91, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(13, 29, 52, 0.055);
}

.overview-page .service-menu-item::before {
  content: counter(service-item, decimal-leading-zero);
  grid-row: 1 / 3;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(145deg, #163b61, #0c2038);
  font-size: 0.68rem;
  font-weight: 800;
}

.overview-page .service-menu-list {
  counter-reset: service-item;
}

.overview-page .service-menu-item {
  counter-increment: service-item;
}

.overview-page .service-menu-item:nth-child(3n + 2)::before {
  background: linear-gradient(145deg, #c99a40, #8f651c);
}

.overview-page .service-menu-title {
  align-self: end;
  color: #102748;
  font-size: 0.96rem;
  line-height: 1.2;
}

.overview-page .service-menu-copy {
  align-self: start;
  margin-top: 0.28rem;
  color: #667488;
  font-size: 0.76rem;
  line-height: 1.45;
}

.overview-page .service-menu-arrow {
  position: absolute;
  right: 0.85rem;
  bottom: 0.7rem;
  width: 1.75rem;
  height: 1.75rem;
  overflow: hidden;
  color: transparent;
  border-radius: 50%;
  background: #f0f4f7;
}

.overview-page .service-menu-arrow::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #164d82;
  font-size: 0.9rem;
}

.overview-page .service-menu-item:hover,
.overview-page .service-menu-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(179, 132, 46, 0.42);
  box-shadow: 0 16px 34px rgba(13, 29, 52, 0.1);
}

.overview-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.3rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(110deg, #0d213b, #173f66);
}

.overview-cta > div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.overview-cta-mark {
  display: grid;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #e6bd69;
  font-weight: 800;
}

.overview-cta strong {
  font-size: 0.95rem;
}

.overview-cta p {
  margin: 0.18rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.overview-page .product-catalog {
  display: none;
}

@media (max-width: 950px) {
  .overview-page .service-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .overview-page .overview-map .section-heading {
    grid-template-columns: 1fr;
  }

  .overview-page .service-menu-list {
    grid-template-columns: 1fr;
  }

  .overview-page .service-menu-item {
    min-height: 104px;
  }

  .overview-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-cta .btn {
    justify-content: center;
  }
}

/* Cinematic video heroes for product subpages */
.hero-bridge:has(.hero-bridge-media) {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 42vw, 500px);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: #0c1f39;
}

.hero-bridge:has(.hero-bridge-media)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(7, 20, 39, 0.9), rgba(12, 31, 57, 0.58) 56%, rgba(9, 23, 43, 0.34));
}

.hero-bridge-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bridge:has(.hero-bridge-media) .hero-bridge-content {
  position: relative;
  z-index: 1;
}

.hero-bridge:has(.hero-bridge-media) h2 {
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.32);
}

.hero-bridge:has(.hero-bridge-media) p {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 700px) {
  .overview-page .hero-bridge:has(.hero-bridge-media) {
    height: 340px;
    min-height: 0;
  }

  .hero-bridge:has(.hero-bridge-media) {
    width: 100%;
    min-height: 340px;
    border-radius: 0;
  }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(16, 39, 72, 0.96), rgba(179, 132, 46, 0.86)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 34%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.58s var(--ease-dramatic);
}

body.page-exiting .page-transition {
  clip-path: inset(0 0 0 0);
}

body.page-exiting main,
body.page-exiting .footer {
  transform: translateY(-18px) scale(0.985);
  opacity: 0;
  filter: blur(6px);
  transition: transform 0.42s ease, opacity 0.42s ease, filter 0.42s ease;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.partner-card {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(19, 35, 61, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(13, 29, 52, 0.07);
  transition:
    transform 0.35s var(--ease-dramatic),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(179, 132, 46, 0.4);
  box-shadow: 0 22px 42px rgba(13, 29, 52, 0.13);
}

.partner-card:focus-visible {
  outline: 3px solid rgba(179, 132, 46, 0.35);
  outline-offset: 4px;
}

.partner-card--rma img {
  width: min(100%, 10rem);
  max-height: 3rem;
  object-fit: contain;
}

.partner-card--clientele img {
  width: min(100%, 5.5rem);
  max-height: 3.25rem;
  object-fit: contain;
}

.sanlam-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #0075c9;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.sanlam-brand img {
  width: 2.5rem;
  height: 2.5rem;
}

@media (max-width: 760px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1rem;
  }

  .partner-card {
    min-height: 5rem;
  }
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding-bottom: 7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.88));
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --hero-pointer-x: 0;
  --hero-pointer-y: 0;
  --hero-depth-x: 0px;
  --hero-depth-y: 0px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  inset: -24%;
  background:
    radial-gradient(circle at 22% 30%, rgba(179, 132, 46, 0.14) 0, transparent 27%),
    radial-gradient(circle at 77% 36%, rgba(49, 90, 143, 0.16) 0, transparent 31%),
    radial-gradient(circle at 52% 78%, rgba(255, 255, 255, 0.72) 0, transparent 26%);
  opacity: 0.72;
  transform: translate3d(-2%, -1%, 0) scale(1.04);
  animation: hero-aurora-drift 18s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 4rem -8rem auto auto;
  width: min(38rem, 72vw);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(49, 90, 143, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 56%, rgba(255, 255, 255, 0.5) 56.2%, transparent 57%);
  box-shadow: inset 0 0 90px rgba(49, 90, 143, 0.04);
  opacity: 0.6;
  transform: translate(
      calc(var(--hero-depth-x) * -0.7),
      calc(var(--hero-depth-y) * -0.7)
    )
    rotate(-8deg);
  animation: hero-orbit-breathe 20s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-ambience {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate(
    calc(var(--hero-depth-x) * 0.75),
    calc(var(--hero-depth-y) * 0.75)
  );
  transition: transform 0.8s var(--ease-dramatic);
}

.hero-ambience::before,
.hero-ambience::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179, 132, 46, 0.22), rgba(49, 90, 143, 0.16), transparent);
  transform-origin: center;
  opacity: 0.4;
}

.hero-ambience::before {
  top: 32%;
  animation: hero-line-drift 18s ease-in-out infinite alternate;
}

.hero-ambience::after {
  top: 68%;
  animation: hero-line-drift 22s ease-in-out -5s infinite alternate-reverse;
}

.hero-particle {
  position: absolute;
  left: var(--particle-x);
  top: var(--particle-y);
  width: var(--particle-size);
  height: var(--particle-size);
  border: 1px solid rgba(179, 132, 46, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 0 18px rgba(49, 90, 143, 0.12);
  opacity: 0;
  animation: hero-particle-float var(--particle-speed) ease-in-out var(--particle-delay) infinite;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--logo-height);
  padding: 0 max(1rem, calc((100vw - 1120px) / 2));
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1100;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: #fafbfc;
  box-shadow: none;
  transition: top 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease, box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease;
}

.navbar.is-hidden {
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 1rem));
}

.navbar.is-compact {
  top: 0;
  height: var(--logo-compact-height);
  padding: 0 max(1rem, calc((100vw - 1120px) / 2));
  border-radius: 0;
  background: #fafbfc;
  box-shadow: none;
  border-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logo-mark {
  display: block;
  width: var(--logo-width);
  height: var(--logo-height);
  background: url('images/logo.png') left center / contain no-repeat;
  border: 0;
  background-color: transparent;
  position: relative;
  overflow: visible;
  box-shadow: none;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  transition:
    height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease;
}

.logo-mark::before {
  content: none;
}

.logo-mark:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.03);
}

.logo-mark:hover::before {
  opacity: 0;
}

.navbar.is-compact .brand {
  padding: 0;
}

.navbar.is-compact .logo-mark {
  width: var(--logo-width);
}

.footer-logo {
  width: 8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(179, 132, 46, 0.15);
  box-shadow: 0 4px 12px rgba(16, 39, 72, 0.08);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.brand-text span {
  color: var(--primary-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1.15rem);
  color: #4f6280;
}

.nav-links a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  position: relative;
  color: #3f516a;
}

.nav-links a:hover {
  color: #102748;
  background: rgba(179, 132, 46, 0.09);
  transform: translateY(-1px);
}

.nav-links a.active,
.nav-links a[aria-current='page'] {
  color: #102748;
  background: rgba(179, 132, 46, 0.14);
  border: 1px solid rgba(179, 132, 46, 0.32);
  box-shadow: 0 4px 14px rgba(16, 39, 72, 0.06);
  font-weight: 700;
  transform: none;
}

.nav-links a.active::before,
.nav-links a[aria-current='page']::before {
  content: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(37, 80, 129, 0.08);
  border: 1px solid rgba(19, 35, 61, 0.16);
  border-radius: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(179, 132, 46, 0.12);
  border-color: rgba(179, 132, 46, 0.35);
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: #102748;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.4rem;
  align-items: center;
  padding: 3.35rem 0 1.25rem;
  position: relative;
  z-index: 1;
  animation: fade-in 0.8s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-dramatic {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.96);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-aurora-drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.04) rotate(-1deg);
  }

  to {
    transform: translate3d(3%, 2%, 0) scale(1.1) rotate(1deg);
  }
}

@keyframes hero-orbit-breathe {
  from {
    opacity: 0.4;
    transform: translate(calc(var(--hero-depth-x) * -0.7), calc(var(--hero-depth-y) * -0.7)) rotate(-10deg) scale(0.96);
  }

  to {
    opacity: 0.68;
    transform: translate(calc(var(--hero-depth-x) * -0.7), calc(var(--hero-depth-y) * -0.7)) rotate(-4deg) scale(1.04);
  }
}

@keyframes hero-line-drift {
  from {
    transform: translateX(-4%) rotate(-1deg) scaleX(0.82);
    opacity: 0.18;
  }

  to {
    transform: translateX(4%) rotate(1deg) scaleX(1);
    opacity: 0.42;
  }
}

@keyframes hero-particle-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.72);
  }

  18%,
  76% {
    opacity: 0.48;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--particle-drift-x), var(--particle-drift-y), 0) scale(1.08);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.5s var(--ease-dramatic) var(--reveal-delay, 0ms),
    transform 0.5s var(--ease-dramatic) var(--reveal-delay, 0ms),
    filter 0.5s var(--ease-dramatic) var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.hero-text > *,
.hero-visual > * {
  animation: reveal-up 0.55s ease both;
}

.hero-text {
  transform: translate(calc(var(--hero-depth-x) * -0.42), calc(var(--hero-depth-y) * -0.4));
  transition: transform 0.35s ease-out;
}

.hero-text > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-text > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-text > *:nth-child(4) {
  animation-delay: 0.22s;
}

.hero-text > *:nth-child(5) {
  animation-delay: 0.28s;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #b3842e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  background: linear-gradient(135deg, rgba(179, 132, 46, 0.1), rgba(204, 156, 65, 0.05));
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 132, 46, 0.2);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: 'Source Serif 4', Georgia, serif;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 12ch;
  color: #102748;
  font-weight: 700;
}

.lead {
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.4rem 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.82rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(140deg, #102748 0%, #1f426f 60%, #315a8f 100%);
  color: #f2f5fb;
  box-shadow: 0 14px 30px rgba(16, 39, 72, 0.28);
  border: 1px solid rgba(12, 30, 56, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(16, 39, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(140deg, #0d1f38 0%, #1a3560 60%, #2a4f7f 100%);
}

.hero .btn-primary::after {
  content: '';
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.44) 48%, transparent 60%);
  transform: translateX(-55%);
  animation: hero-button-shine 4.6s ease-in-out 1.2s infinite;
}

@keyframes hero-button-shine {
  0%,
  54% {
    transform: translateX(-55%);
  }

  80%,
  100% {
    transform: translateX(55%);
  }
}


.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  color: var(--muted);
}

.trust-points li {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(179, 132, 46, 0.15);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 230, 189, 0.05));
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.trust-points li:hover {
  background: rgba(179, 132, 46, 0.08);
  border-color: rgba(179, 132, 46, 0.3);
  transform: translateY(-2px);
}

.hero-card,
.service-card,
.about-card,
.contact-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-visual {
  display: grid;
  gap: 1rem;
  transform: translate(
    var(--hero-depth-x),
    calc((var(--parallax-y, 0px) * -1) + var(--hero-depth-y))
  );
  transition: transform 0.2s linear;
}

.hero-visual img,
.hero-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border-radius: 1.1rem;
  border: 0;
  box-shadow: 0 16px 34px rgba(16, 37, 67, 0.16);
  transform-origin: center;
  animation: hero-visual-float 6.8s ease-in-out infinite;
}

@keyframes hero-visual-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

.hero-card {
  padding: 1.8rem;
  border-radius: 1.2rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.95));
  border-color: rgba(179, 132, 46, 0.15);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translateY(calc(var(--parallax-y, 0px) * -0.55));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translateY(calc((var(--parallax-y, 0px) * -0.55) - 4px));
  box-shadow: 0 20px 40px rgba(16, 37, 67, 0.18), 0 0 1px rgba(179, 132, 46, 0.1) inset;
  border-color: rgba(179, 132, 46, 0.25);
}

.hero-card-top p {
  color: var(--muted);
}

.hero-card-top {
  text-align: center;
}

.hero-card-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.hero-card-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
}

.hero-card-list span {
  color: var(--muted);
}

.hero-bridge {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(179, 132, 46, 0.06), rgba(204, 156, 65, 0.03));
  border-top: 1px solid rgba(179, 132, 46, 0.1);
  border-bottom: 1px solid rgba(179, 132, 46, 0.1);
  transform: translateY(calc(var(--parallax-y, 0px) * -0.35));
  transition: transform 0.12s linear;
}

.hero-bridge-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: reveal-up 0.6s ease both;
}

.hero-bridge h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #102748;
  margin-bottom: 0.8rem;
}

.hero-bridge p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  border-radius: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
  border: 1px solid rgba(19, 35, 61, 0.12);
  box-shadow: 0 16px 32px rgba(13, 29, 52, 0.09);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.24s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(43, 81, 128, 0.1), transparent 60%);
  pointer-events: none;
}

.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.62), transparent 34%);
  transition: opacity 0.22s ease;
}

.tilt-card:hover::after {
  opacity: 1;
}

.service-card:hover,
.service-card:focus-visible {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-7px);
  border-color: rgba(21, 60, 107, 0.33);
  background: linear-gradient(150deg, rgba(255, 255, 255, 1), rgba(245, 250, 255, 1));
  box-shadow: 0 22px 40px rgba(13, 29, 52, 0.13);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.service-card-link {
  color: var(--primary-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.service-card:hover .service-card-link,
.service-card:focus-visible .service-card-link {
  transform: translateX(3px);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.about-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(236, 243, 252, 0.65) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.page-header {
  padding: 0 0 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 250, 255, 0.82));
  border-bottom: 1px solid rgba(179, 132, 46, 0.12);
  box-shadow: 0 8px 20px rgba(16, 39, 72, 0.08);
  position: relative;
}

.page-header.navbar-detached {
  display: none;
}

.services-carousel {
  --slides-per-view: 1;
  --carousel-duration: 5200ms;
  position: relative;
}

.services-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  padding: 0.5rem 0 1.5rem;
}

.services-carousel-track::-webkit-scrollbar {
  display: none;
}

.services-carousel-track .service-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  min-height: 26rem;
  padding: 0;
}

.services-carousel-track .service-card-top {
  align-self: end;
  display: block;
  padding: 3rem 3rem 0.65rem;
}

.services-carousel-track .service-card-top::before {
  content: 'Featured service';
  display: block;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-carousel-track .service-card h3 {
  max-width: 12ch;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.services-carousel-track .service-card > p {
  align-self: start;
  max-width: 34rem;
  padding: 0 3rem 3rem;
  font-size: 1rem;
}

.services-carousel-track .service-card > p::after {
  content: 'Explore this service  \2192';
  display: block;
  width: max-content;
  margin-top: 1.4rem;
  color: #102748;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.6rem;
}

.carousel-navigation {
  display: grid;
  grid-template-columns: auto minmax(7rem, 12rem) auto;
  align-items: center;
  gap: 0.9rem;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #102748;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.carousel-current {
  color: var(--primary);
}

.carousel-divider {
  width: 1.4rem;
  height: 1px;
  background: rgba(16, 39, 72, 0.28);
}

.carousel-status {
  margin-left: 0.45rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.carousel-status::before {
  content: '';
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(182, 138, 58, 0.45);
  animation: carousel-status-pulse 2s ease-out infinite;
}

.carousel-progress {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 39, 72, 0.12);
}

.carousel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #102748, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
}

.services-carousel.is-autoplaying .carousel-progress span {
  animation: carousel-progress var(--carousel-duration) linear forwards;
}

@keyframes carousel-progress {
  to { transform: scaleX(1); }
}

@keyframes carousel-status-pulse {
  70% { box-shadow: 0 0 0 0.4rem rgba(182, 138, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 138, 58, 0); }
}

.carousel-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(19, 35, 61, 0.14);
  border-radius: 50%;
  color: #102748;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(13, 29, 52, 0.09);
  cursor: pointer;
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  border-color: #102748;
  background: #102748;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 35, 61, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.is-active {
  width: 1.65rem;
  background: var(--primary);
}

@media (max-width: 700px) {
  .carousel-navigation {
    grid-template-columns: auto minmax(4rem, 1fr);
  }

  .carousel-dots {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .carousel-status {
    display: none;
  }
}

/* Floating virtual assistant */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-chat {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ai-chat-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.6rem;
  padding: 0.65rem 1.15rem 0.65rem 0.7rem;
  color: #fff;
  background: #102748;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(9, 26, 49, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ai-chat-greeting {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 13.5rem;
  padding: 0.75rem 0.9rem;
  color: #102748;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(16, 39, 72, 0.12);
  border-radius: 1rem 1rem 0.25rem 1rem;
  box-shadow: 0 14px 36px rgba(8, 24, 46, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ai-chat-greeting span,
.ai-chat-greeting small {
  display: block;
}

.ai-chat-greeting span {
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-chat-greeting small {
  margin-top: 0.15rem;
  color: #67768a;
  font-size: 0.68rem;
}

.ai-chat.show-greeting:not(.is-open) .ai-chat-greeting {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-toggle:hover {
  transform: translateY(-2px);
  background: #18375f;
  box-shadow: 0 20px 44px rgba(9, 26, 49, 0.34);
}

.ai-chat-toggle-icon,
.ai-chat-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  color: #102748;
  background: linear-gradient(145deg, #f2d794, #b68432);
  border-radius: 50%;
}

.ai-chat-toggle-icon svg,
.ai-chat-avatar svg,
.ai-chat-form button svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-chat-status {
  position: absolute;
  top: 0.55rem;
  left: 2.5rem;
  width: 0.65rem;
  height: 0.65rem;
  background: #3bd47b;
  border: 2px solid #102748;
  border-radius: 50%;
}

.ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.9rem);
  display: grid;
  grid-template-rows: auto minmax(9rem, 1fr) auto auto auto;
  width: min(20.5rem, calc(100vw - 2rem));
  height: min(27rem, calc(100vh - 8rem));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 39, 72, 0.12);
  border-radius: 1.35rem;
  box-shadow: 0 28px 70px rgba(8, 24, 46, 0.26);
  opacity: 0;
  transform: translateY(0.8rem) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat.is-open .ai-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat.is-open .ai-chat-toggle-label,
.ai-chat.is-open .ai-chat-status {
  display: none;
}

.ai-chat.is-open .ai-chat-toggle {
  width: 3.6rem;
  padding: 0.65rem;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #0c192b, #16365f);
}

.ai-chat-header strong,
.ai-chat-header small {
  display: block;
}

.ai-chat-header strong {
  font-size: 0.95rem;
}

.ai-chat-header small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
}

.ai-chat-header small span {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.3rem;
  background: #3bd47b;
  border-radius: 50%;
}

.ai-chat-close {
  margin-left: auto;
  padding: 0.25rem 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.ai-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  padding: 0.75rem;
  background: #f6f8fb;
  scrollbar-width: thin;
}

.ai-chat-message {
  max-width: 84%;
  padding: 0.6rem 0.7rem;
  color: #26364b;
  background: #fff;
  border: 1px solid rgba(16, 39, 72, 0.08);
  border-radius: 0.95rem 0.95rem 0.95rem 0.25rem;
  box-shadow: 0 5px 14px rgba(16, 39, 72, 0.06);
  font-size: 0.74rem;
  line-height: 1.55;
}

.ai-chat-message--user {
  align-self: flex-end;
  color: #fff;
  background: #102748;
  border-color: #102748;
  border-radius: 0.95rem 0.95rem 0.25rem 0.95rem;
}

.ai-chat-suggestions {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.5rem 0.75rem 0.3rem;
  background: #fff;
}

.ai-chat-suggestions[hidden] {
  display: none;
}

.ai-chat-suggestions button {
  flex: 0 0 auto;
  padding: 0.5rem 0.7rem;
  color: #76541f;
  background: #fffaf0;
  border: 1px solid rgba(182, 132, 46, 0.32);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem 0.3rem;
  background: #fff;
}

.ai-chat-form input {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  color: #102748;
  background: #f4f6f9;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: 0;
  font: inherit;
  font-size: 0.78rem;
}

.ai-chat-form input:focus {
  border-color: #b68432;
  box-shadow: 0 0 0 3px rgba(182, 132, 50, 0.12);
}

.ai-chat-form button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  background: #b68432;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ai-chat-disclaimer {
  margin: 0;
  padding: 0.15rem 0.75rem 0.45rem;
  color: #718096;
  background: #fff;
  font-size: 0.58rem;
  text-align: center;
}

.ai-chat-typing {
  display: flex;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border-radius: 0.9rem;
}

.ai-chat-typing span {
  width: 0.35rem;
  height: 0.35rem;
  background: #9aa6b6;
  border-radius: 50%;
  animation: ai-chat-dot 900ms ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) { animation-delay: 120ms; }
.ai-chat-typing span:nth-child(3) { animation-delay: 240ms; }

@keyframes ai-chat-dot {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-0.25rem); }
}

@media (max-width: 600px) {
  .ai-chat {
    right: 1rem;
    bottom: 1rem;
  }

  .ai-chat-panel {
    position: fixed;
    inset: auto 1rem 5.6rem auto;
    width: min(20.5rem, calc(100vw - 2rem));
    height: min(27rem, calc(100vh - 7rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-panel,
  .ai-chat-toggle {
    transition: none;
  }

  .ai-chat-typing span {
    animation: none;
  }
}

/* Home hero refinement */
.home-page .hero {
  min-height: 100svh;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(179, 132, 46, 0.16), transparent 24rem),
    radial-gradient(circle at 5% 80%, rgba(49, 90, 143, 0.09), transparent 28rem),
    linear-gradient(135deg, #fbfcfe 0%, #f3f6fa 58%, #f8f4eb 100%);
}

.home-page .hero-content {
  grid-template-columns: minmax(0, 0.92fr) minmax(26rem, 0.78fr);
  gap: clamp(3rem, 7vw, 7.25rem);
  min-height: calc(100svh - var(--nav-offset));
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}

.home-page .hero-text {
  align-self: center;
  padding-top: 0;
}

.home-page .hero-text h1 {
  max-width: 11ch;
  margin-block: 0.7rem 1.25rem;
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.home-page .hero-text .lead {
  max-width: 34rem;
  color: #52627a;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.75;
}

.home-page .hero-actions {
  align-items: center;
  margin-block: 1.8rem 1.35rem;
}

.home-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.home-page .btn-primary span {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.home-page .btn-primary:hover span {
  transform: translateX(3px);
}

.home-page .btn-secondary {
  color: #102748;
  border: 1px solid rgba(16, 39, 72, 0.22);
  background: rgba(255, 255, 255, 0.58);
}

.home-page .btn-secondary:hover {
  border-color: rgba(16, 39, 72, 0.38);
  background: #fff;
}

.home-page .trust-points {
  color: #52627a;
}

.home-page .trust-points li::before {
  content: '✓';
  display: inline-grid;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.4rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b3842e;
  font-size: 0.66rem;
}

.home-page .hero-visual {
  position: relative;
  display: block;
  align-self: center;
  max-width: 31rem;
}

.home-page .hero-media {
  width: 100%;
  aspect-ratio: 4 / 5.15;
  max-height: none;
  border: 0;
  border-radius: 1.8rem;
  box-shadow: 0 35px 80px rgba(16, 39, 72, 0.22);
}

.home-page .hero-media-label {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.9rem;
  background: rgba(10, 28, 52, 0.66);
  box-shadow: 0 12px 30px rgba(5, 17, 35, 0.16);
  backdrop-filter: blur(12px);
}

.home-page .hero-media-label-mark {
  display: grid;
  width: 3.4rem;
  height: 2.25rem;
  place-items: center;
  padding: 0.2rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.home-page .hero-media-label-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-page .hero-media-label strong,
.home-page .hero-media-label small {
  display: block;
}

.home-page .hero-media-label strong {
  font-size: 0.76rem;
}

.home-page .hero-media-label small {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
}

.home-page .hero-card {
  width: calc(100% - 2.5rem);
  margin: -4.3rem auto 0;
  padding: 1.15rem 1.25rem;
  border-color: rgba(179, 132, 46, 0.22);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.home-page .hero-card-top {
  margin-bottom: 0.85rem;
  text-align: left;
}

.home-page .hero-card-top p {
  margin: 0;
  color: #8a6422;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-page .hero-card-list {
  margin-top: 0;
}

.home-page .hero-card-list strong {
  white-space: nowrap;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .home-page .hero-content {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    min-height: auto;
    padding-block: 3.5rem 1rem;
  }

  .home-page .hero-text,
  .home-page .hero-visual {
    max-width: 42rem;
  }

  .home-page .hero-text h1 {
    max-width: 12ch;
  }

  .home-page .hero-visual {
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .home-page .hero-content {
    gap: 2.8rem;
    padding-top: 2.25rem;
  }

  .home-page .hero-text h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
  }

  .home-page .hero-actions {
    align-items: stretch;
  }

  .home-page .hero-actions .btn {
    text-align: center;
  }

  .home-page .btn-primary {
    justify-content: center;
  }

  .home-page .hero-media {
    aspect-ratio: 4 / 4.5;
  }

  .home-page .hero-media-label {
    top: 0.9rem;
    left: 0.9rem;
  }

  .home-page .hero-card {
    width: calc(100% - 1rem);
    margin-top: -2.4rem;
  }

  .home-page .hero-card-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-page .hero-card-list div,
  .home-page .hero-card-list div:first-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0 0.55rem;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .home-page .hero-card-list div:first-child {
    padding-left: 0;
  }

  .home-page .hero-card-list div:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 430px) {
  .home-page .hero-media-label small {
    display: none;
  }

  .home-page .hero-card-list strong {
    font-size: 0.86rem;
  }

  .home-page .hero-card-list span {
    font-size: 0.62rem;
  }
}

.service-card-image {
  position: relative;
  z-index: 1;
  width: calc(100% + 2.5rem);
  aspect-ratio: 16 / 10;
  margin: 0 -1.25rem 0.35rem;
  background-image: url('images/service-card-collection.png');
  background-repeat: no-repeat;
  background-size: 400% auto;
  border-bottom: 1px solid rgba(19, 35, 61, 0.1);
  transition: transform 0.5s var(--ease-dramatic), filter 0.3s ease;
}

.service-card-video {
  display: block;
  object-fit: cover;
  background: #dfe5ec;
}

.services-carousel-track .service-card-image {
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  margin: 0;
  aspect-ratio: auto;
  border-right: 1px solid rgba(19, 35, 61, 0.1);
  border-bottom: 0;
}

.service-card:hover .service-card-image,
.service-card:focus-visible .service-card-image {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.service-card-image--funeral { background-position: 0 0; }
.service-card-image--life { background-position: 33.333% 0; }
.service-card-image--savings { background-position: 66.667% 0; }
.service-card-image--retirement { background-position: 100% 0; }
.service-card-image--long-term { background-position: 0 100%; }
.service-card-image--financial { background-position: 33.333% 100%; }
.service-card-image--reviews { background-position: 66.667% 100%; }
.service-card-image--claims { background-position: 100% 100%; }

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179, 132, 46, 0.2), transparent);
}

.service-tabs {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(19, 35, 61, 0.1);
  box-shadow: 0 6px 22px rgba(13, 29, 52, 0.06);
  scroll-snap-type: x proximity;
  scroll-padding: 0.5rem;
}

.service-tabs::-webkit-scrollbar {
  display: none;
}

.service-tab {
  flex: 0 0 auto;
  white-space: nowrap !important;
  scroll-snap-align: start;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  color: #485b73;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  position: relative;
}

.service-tab:hover,
.service-tab:focus-visible {
  color: #102748;
  background: rgba(179, 132, 46, 0.09);
  border-color: rgba(179, 132, 46, 0.2);
  transform: translateY(-1px);
}

.service-tab.active {
  background: #102748;
  color: #ffffff;
  border: 1px solid rgba(179, 132, 46, 0.35);
  box-shadow: 0 4px 14px rgba(16, 39, 72, 0.22);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.15rem;
  transform: none;
  border-radius: 999px;
}

.service-tab.active:hover {
  background: #163660;
  color: #ffffff;
}

.service-tab.active::before {
  content: none;
}

.service-menu-list {
  display: grid;
  gap: 0.8rem;
}

.service-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.97));
  box-shadow: 0 12px 24px rgba(13, 29, 52, 0.08);
  transition: transform 0.28s var(--ease-dramatic), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-menu-item:hover,
.service-menu-item:focus-visible {
  transform: translateX(8px) translateY(-2px);
  border-color: rgba(21, 60, 107, 0.3);
  box-shadow: 0 16px 28px rgba(13, 29, 52, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 1), rgba(251, 246, 234, 0.97));
}

.service-menu-title {
  font-weight: 700;
  font-size: 1rem;
}

.service-menu-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-menu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(37, 80, 129, 0.12);
  color: #1c4778;
  font-size: 1.2rem;
}

.service-subpage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-catalog { padding-top: 1rem; }
.product-catalog-heading { max-width: 760px; }
.product-family { padding: clamp(1.5rem, 4vw, 2.5rem) 0; border-top: 1px solid var(--border); }
.product-family-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; margin-bottom: 1.25rem; }
.product-family-number { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--primary), var(--gold-dark)); box-shadow: 0 10px 22px rgba(125, 95, 22, 0.2); font-size: 0.78rem; font-weight: 800; }
.product-family-intro .eyebrow, .product-family-intro h3 { margin: 0; }
.product-family-intro h3 { margin-top: 0.2rem; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.15; }
.product-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; min-height: 100%; flex-direction: column; padding: 1.45rem; border: 1px solid var(--border); border-radius: 1.15rem; background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 254, 0.96)); box-shadow: 0 16px 34px rgba(13, 29, 52, 0.08); transition: transform 0.3s var(--ease-dramatic), border-color 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(179, 132, 46, 0.35); box-shadow: 0 22px 44px rgba(13, 29, 52, 0.13); }
.product-tag { align-self: flex-start; padding: 0.3rem 0.65rem; border-radius: 999px; color: var(--gold-dark); background: rgba(204, 156, 65, 0.14); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.product-card h3 { margin: 0.9rem 0 0.55rem; color: #102748; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem; line-height: 1.18; }
.product-card .product-price { margin: 0 0 0.85rem; color: var(--primary); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.product-price span { display: block; margin-bottom: 0.15rem; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.product-price small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.product-card p, .product-card ul { color: var(--muted); font-size: 0.9rem; }
.product-card p { margin: 0; }
.product-card ul { margin: 1rem 0 1.2rem; padding-left: 1.1rem; }
.product-card li + li { margin-top: 0.35rem; }
.product-card a { margin-top: auto; color: #164d82; font-size: 0.88rem; font-weight: 800; }
.product-card a:hover, .product-card a:focus-visible { color: var(--gold-dark); }
.product-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-top: auto; padding-top: 0.35rem; }
.product-card-actions > a { margin-top: 0; }
.product-card .plan-join-button, .benefit-tier .plan-join-button { width: 100%; justify-content: center; color: #fff; text-align: center; }
.product-card .plan-join-button:hover, .product-card .plan-join-button:focus-visible, .benefit-tier .plan-join-button:hover, .benefit-tier .plan-join-button:focus-visible { color: #fff; }
.product-disclaimer { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--primary); border-radius: 0.3rem 1rem 1rem 0.3rem; background: rgba(255, 255, 255, 0.78); }
.product-disclaimer strong { color: #102748; }
.product-disclaimer p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 900px) { .product-card-grid { grid-template-columns: 1fr; } }

.benefit-detail-section { padding-top: 2rem; }
.benefit-detail-section .section-heading { max-width: 760px; }
.benefit-tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.benefit-tier { position: relative; display: flex; flex-direction: column; padding: 1.5rem; overflow: hidden; border: 1px solid var(--border); border-radius: 1.2rem; background: rgba(255, 255, 255, 0.92); box-shadow: 0 16px 36px rgba(13, 29, 52, 0.08); }
.benefit-tier.featured { border-color: rgba(179, 132, 46, 0.55); background: linear-gradient(155deg, #fffdf8, #f8f1df); box-shadow: 0 20px 44px rgba(125, 95, 22, 0.14); }
.benefit-badge { position: absolute; top: 0; right: 0; padding: 0.38rem 0.75rem; border-radius: 0 1.15rem 0 0.8rem; color: #fff; background: var(--primary); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.benefit-tier-name { color: #173b66; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.benefit-payout { margin: 0.85rem 0 0.35rem; color: #102748; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; line-height: 1; }
.benefit-payout small { display: block; margin-top: 0.35rem; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; font-weight: 700; }
.benefit-premium { margin: 0 0 1rem; color: var(--gold-dark); font-size: 0.84rem; font-weight: 800; }
.benefit-tier ul { margin: auto 0 0; padding: 1rem 0 0 1.1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; }
.benefit-tier li + li { margin-top: 0.4rem; }
.benefit-tier .plan-join-button { margin-top: 1.15rem; }
.form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-consent { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--muted); font-size: 0.82rem; line-height: 1.45; cursor: pointer; }
.form-consent input { width: 1rem; height: 1rem; margin-top: 0.15rem; accent-color: var(--primary); flex: 0 0 auto; }
.contact-form button:disabled { cursor: wait; opacity: 0.7; }
.form-status { min-height: 1.5rem; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-success { color: #17643a; font-weight: 700; }
.form-status.is-error { color: #a12626; font-weight: 700; }
.form-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin: 1.25rem 0 1.5rem; }
.form-progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.5rem 0.2rem; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 0.7rem; font-weight: 700; }
.form-progress-step span { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; }
.form-progress-step.active { color: var(--gold-dark); }
.form-progress-step.active span { color: #fff; border-color: var(--primary); background: var(--primary); }
.form-progress-step.complete span { color: #fff; border-color: #17643a; background: #17643a; }
.form-step { display: none; animation: form-step-in 0.3s ease; }
.form-step.active { display: block; }
.form-step h4 { margin: 0 0 1rem; color: #102748; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; }
.selected-plan-summary { margin-top: 1rem; padding: 0.85rem 1rem; border: 1px solid rgba(179,132,46,.3); border-radius: .8rem; color: var(--gold-dark); background: rgba(204,156,65,.1); font-weight: 700; }
.form-navigation { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.25rem; }
.application-review { display: grid; gap: 0.55rem; margin-bottom: 1.1rem; padding: 1rem; border-radius: .9rem; background: rgba(16,39,72,.05); }
.application-review div { display: grid; grid-template-columns: minmax(7rem, .7fr) 1.3fr; gap: 0.75rem; padding-bottom: .45rem; border-bottom: 1px solid var(--border); }
.application-review div:last-child { padding-bottom: 0; border-bottom: 0; }
.application-review span { color: var(--muted); overflow-wrap: anywhere; }
@keyframes form-step-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.payout-note { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 0.9rem; color: var(--muted); background: rgba(16, 39, 72, 0.06); font-size: 0.82rem; }
.payout-note strong { color: #102748; }
@media (max-width: 900px) { .benefit-tier-grid { grid-template-columns: 1fr; } }

.service-feature-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1080px;
  min-height: 0;
  margin: 0 auto 2rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(179, 132, 46, 0.18);
  border-radius: 1.5rem;
  background: #102748;
  box-shadow: 0 30px 70px rgba(16, 28, 45, 0.16);
}

.service-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(16, 39, 72, 0.18) 58%, rgba(16, 39, 72, 0.92) 78%);
}

.service-feature-image {
  min-height: 0;
  aspect-ratio: 1;
  background-image: url('images/service-card-collection.png');
  background-repeat: no-repeat;
  background-size: 400% 200%;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.7s var(--ease-dramatic), filter 0.5s ease;
}

.service-feature-card:hover .service-feature-image {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

.service-feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.25rem);
  position: relative;
  z-index: 2;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(204, 156, 65, 0.23), transparent 30%),
    linear-gradient(145deg, #102748, #0c1c33);
}

.service-feature-content::before {
  content: '';
  width: 3.5rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, #c99b49, rgba(201, 155, 73, 0));
}

.service-feature-number {
  position: absolute;
  top: 1.15rem;
  right: 1.4rem;
  color: rgba(255, 255, 255, 0.09);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
}

.service-feature-kicker {
  margin: 0 0 0.65rem;
  color: #e1bd73;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-feature-content h3 {
  max-width: 13ch;
  margin: 0 0 1rem;
  color: #fff;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.service-feature-content > p:last-child {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.service-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.service-highlight p {
  max-width: 64ch;
  color: var(--muted);
}

.extra-info {
  padding-top: 3rem;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.extra-card {
  padding: 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-grid p {
  color: var(--muted);
}

.about-card {
  padding: 1.4rem;
  border-radius: 1rem;
}

.about-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.about-card li + li {
  margin-top: 0.5rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.95));
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-card:hover {
  box-shadow: 0 22px 48px rgba(13, 29, 52, 0.14);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-form-card {
  padding: 1.5rem;
}

.contact-form-card h3 {
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 700;
  color: #102748;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(19, 35, 61, 0.16);
  background: rgba(249, 251, 255, 0.96);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(37, 80, 129, 0.48);
  box-shadow: 0 0 0 4px rgba(37, 80, 129, 0.12);
  background: #ffffff;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.5em;
}

.contact-link,
.footer-contact-link {
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact-link {
  color: #1c4778;
  font-weight: 600;
  word-break: break-word;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #102748;
  text-decoration: underline;
}

.footer-contact-link {
  color: #e5f0ff;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: #f1d7a7;
  text-decoration: underline;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(37, 80, 129, 0.12);
  color: #204a7c;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.contact-label {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.footer {
  background: linear-gradient(170deg, #0a1428 0%, #0d1f38 50%, #081220 100%);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% -20%, rgba(179, 132, 46, 0.25), transparent 40%),
    radial-gradient(circle at 92% 8%, rgba(84, 129, 192, 0.22), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 80%);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(179, 132, 46, 0.03) 0,
    rgba(179, 132, 46, 0.03) 1px,
    transparent 1px,
    transparent 22px
  );
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(179, 132, 46, 0.25);
  background: linear-gradient(145deg, rgba(19, 42, 72, 0.95), rgba(12, 28, 50, 0.92));
  box-shadow:
    0 25px 50px rgba(4, 11, 22, 0.4),
    0 0 1px rgba(179, 132, 46, 0.2) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-partners {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.48);
}

.footer-partners .footer-heading {
  margin: 0;
  text-align: center;
  color: var(--gold-dark);
}

.footer-partners .partner-card {
  box-shadow: 0 14px 30px rgba(4, 11, 22, 0.22);
}

.footer-fsp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.35rem auto 0;
  color: #dbe6f4;
  font-size: 0.88rem;
  text-align: center;
}

.footer-fsp p {
  margin: 0;
}

.footer-fsp-divider {
  width: 1px;
  height: 1.5rem;
  background: rgba(229, 187, 111, 0.35);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  border-right: 1px solid rgba(179, 132, 46, 0.25);
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.footer-brand .brand {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-logo-link {
  display: inline-flex;
  width: 12rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(3, 10, 22, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-logo-image {
  display: block;
  width: 100%;
  height: auto;
  content: url('images/logo-footer.png');
}

.footer-brand .logo-mark {
  width: 12rem;
  height: 6.75rem;
  opacity: 1;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(3, 10, 22, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-logo-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.footer-brand .logo-mark:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.footer-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #f5f9ff;
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  color: #d8e5f5;
  max-width: 32ch;
  font-size: 0.93rem;
  line-height: 1.7;
  font-weight: 400;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.footer-links {
  align-content: start;
  border-right: 1px solid rgba(179, 132, 46, 0.25);
}

.footer-heading {
  margin: 0 0 0.5rem;
  color: #e5bb6f;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  position: relative;
  color: #f0f5ff;
  opacity: 0.85;
  font-size: 0.92rem;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  padding: 0.32rem 0.72rem 0.32rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
}

.footer-links a:hover {
  color: #e5bb6f;
  opacity: 1;
  transform: translateX(2px);
  background: rgba(179, 132, 46, 0.08);
}

.footer-links a.active,
.footer-links a[aria-current='page'] {
  color: #fff7ea;
  opacity: 1;
  background: linear-gradient(135deg, rgba(179, 132, 46, 0.16), rgba(12, 28, 50, 0.18));
  border-color: rgba(229, 187, 111, 0.25);
  box-shadow:
    0 10px 20px rgba(4, 11, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(2px) scale(1.06);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-contact {
  align-content: start;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(179, 132, 46, 0.15);
  transition: all 0.2s ease;
}

.footer-contact-item:hover {
  padding-left: 0.3rem;
}

.footer-contact-item:last-child {
  border-bottom: none;
}

.footer-contact-item p {
  margin: 0;
  color: #e5f0ff;
  font-size: 0.91rem;
  line-height: 1.5;
  font-weight: 500;
}

.footer .contact-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(179, 132, 46, 0.15), rgba(204, 156, 65, 0.08));
  border: 1px solid rgba(179, 132, 46, 0.2);
  color: #e5bb6f;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer .contact-icon:hover {
  background: linear-gradient(135deg, rgba(179, 132, 46, 0.25), rgba(204, 156, 65, 0.15));
  border-color: rgba(179, 132, 46, 0.4);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(179, 132, 46, 0.2);
}

.footer-bottom p {
  margin: 0;
  color: #d0dff0;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.footer-note {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c9dde9;
  font-size: 0.92rem;
  padding-top: 0.8rem;
  margin-top: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-note p {
  margin: 0;
}

.footer-note a {
  color: #e5bb6f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-note a:hover {
  color: #f1d7a7;
  text-decoration: underline;
}

/* Compact footer summary */
.footer-top {
  padding: 1.15rem;
}

.footer-brand {
  gap: 0.45rem;
  padding: 0.25rem 1.1rem 0.25rem 0.25rem;
}

.footer-logo-link {
  width: 8.5rem;
}

.footer-copy {
  max-width: 27ch;
  font-size: 0.82rem;
  line-height: 1.45;
}

.footer-links,
.footer-contact {
  gap: 0.4rem;
  padding: 0.25rem 1.1rem;
}

.footer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
}

.footer-links .footer-heading {
  grid-column: 1 / -1;
}

.footer-links a {
  gap: 0.45rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.84rem;
}

.footer-link-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-contact {
  align-content: center;
}

.footer-contact-item {
  gap: 0.55rem;
  padding: 0.32rem 0;
}

.footer .contact-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.6rem;
}

.footer .contact-icon svg {
  width: 1rem;
  height: 1rem;
}

.footer-contact-link {
  font-size: 0.82rem;
}

/* Flat, space-saving footer header */
.footer-top {
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  padding: 0.75rem;
  border: 0;
  background: rgba(12, 28, 50, 0.58);
  box-shadow: none;
}

.footer-brand {
  align-items: center;
  padding: 0.2rem 0.75rem;
  border: 0;
}

.footer-logo-link--light {
  width: 6rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-logo-link--light .footer-logo-image {
  border-radius: 0;
}

.footer-links,
.footer-contact {
  padding: 0.2rem 0.75rem;
  border: 0;
}

.footer-links {
  border-right: 0;
}

.footer-links a {
  padding: 0.2rem 0.35rem;
  border: 0;
  background: transparent;
}

.footer-contact-item {
  padding: 0.22rem 0;
  border: 0;
}

@media (max-width: 560px) {
  .footer-fsp {
    flex-direction: column;
    gap: 0.7rem;
  }

  .footer-fsp-divider {
    width: 3rem;
    height: 1px;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-offset: 6.6rem;
    --logo-height: 6.65rem;
    --logo-width: 12.2rem;
    --logo-compact-height: 4.4rem;
  }

  .logo-mark {
    width: var(--logo-width);
    height: var(--logo-height);
  }

  .service-grid,
  .extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .contact-layout,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .service-feature-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-feature-card::after {
    background: linear-gradient(180deg, transparent 32%, rgba(16, 39, 72, 0.2) 50%, #102748 72%);
  }

  .service-feature-image {
    width: min(100%, 34rem);
    min-height: 0;
    aspect-ratio: 1;
    justify-self: center;
  }

  .service-feature-content {
    margin-top: -4rem;
    padding-top: 4.5rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .footer-contact {
    grid-column: auto;
    border-top: 0;
    margin-top: 0;
    padding-top: 0.2rem;
  }
}

@media (max-width: 880px) {
  :root {
    --nav-offset: 5.25rem;
    --logo-height: 5.25rem;
    --logo-width: 9.7rem;
    --logo-compact-height: 3.35rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    max-width: 420px;
    margin-inline: auto;
    padding: 0.85rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(19, 35, 61, 0.14);
    box-shadow: 0 20px 45px rgba(7, 17, 31, 0.18);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    z-index: 1200;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border-radius: 0.85rem;
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links a.active {
    background: rgba(179, 132, 46, 0.14);
    border: 1px solid rgba(179, 132, 46, 0.3);
    color: #102748;
    font-weight: 700;
  }

  .nav-links .nav-login {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.85rem 1.15rem;
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 0.85rem;
    font-weight: 700;
  }

  .nav-links .nav-login:hover {
    background: var(--primary-2);
    color: #ffffff !important;
  }

  .navbar {
    top: 0;
  }

  .services-carousel-track .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: 14rem auto auto;
    min-height: 0;
  }

  .services-carousel-track .service-card-image {
    grid-row: 1;
    min-height: 14rem;
    border-right: 0;
    border-bottom: 1px solid rgba(19, 35, 61, 0.1);
  }

  .services-carousel-track .service-card-top {
    padding: 1.8rem 1.5rem 0.55rem;
  }

  .services-carousel-track .service-card h3 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .services-carousel-track .service-card > p {
    padding: 0 1.5rem 1.8rem;
  }

  .services-carousel {
    --slides-per-view: 1;
  }

  .services-carousel-track .service-card {
    flex-basis: 100%;
  }

  .logo-mark {
    width: var(--logo-width);
    height: var(--logo-height);
  }

  .menu-toggle {
    display: flex;
  }

  .service-grid,
  .extra-grid {
    grid-template-columns: 1fr;
  }

  .service-menu-item {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .service-menu-copy {
    grid-column: 1 / -1;
  }

  .service-tabs {
    flex-wrap: nowrap !important;
    border-radius: 1rem;
    padding: 0.35rem;
    gap: 0.35rem;
    margin: 0.85rem 0 1.25rem;
  }

  .service-tab {
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
    border-right: 0;
    border-bottom: 0;
    padding: 0.2rem 0.3rem 1rem;
  }

  .footer-brand-mark {
    margin-bottom: 0.1rem;
  }

  .footer-links {
    border-right: 0;
    border-bottom: 0;
    padding: 0.15rem 0.35rem 1rem;
  }

  .footer-contact {
    margin-top: 0;
    border-top: 0;
    padding: 0.2rem 0.35rem;
  }

  .contact-card,
  .footer-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body,
  .scroll-reveal,
  .hero-visual,
  .hero-card,
  .page-header,
  .hero-bridge,
  .service-card,
  .contact-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .page-transition,
  .hero::before,
  .hero::after,
  .hero-ambience,
  .hero .btn-primary::after,
  .tilt-card::after {
    display: none !important;
  }

  .services-carousel {
    --slides-per-view: 1;
  }

  .services-carousel-track .service-card {
    flex-basis: 100%;
  }

  .hero-visual img,
  .hero-media {
    animation: none !important;
  }
}

/* Refined 2026 visual system */
:root {
  --nav-offset: 5.75rem;
  --logo-height: 5.75rem;
  --logo-width: 10.75rem;
  --logo-compact-height: 4.35rem;
  --bg: #f6f7f9;
  --surface-2: #f1f3f6;
  --text: #101c2d;
  --muted: #5d6878;
  --primary: #b68a3a;
  --primary-2: #c99b49;
  --border: rgba(16, 28, 45, 0.1);
  --shadow: 0 20px 55px rgba(16, 28, 45, 0.09);
}

body {
  background: #f7f8fa;
  line-height: 1.7;
}

body::before {
  opacity: 0.38;
  background-size: 48px 48px;
}

.container {
  width: min(1180px, calc(100% - 3rem));
}

.navbar {
  height: var(--logo-height);
  padding-inline: max(1.5rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(16, 28, 45, 0.07);
  background: #fafbfc;
  backdrop-filter: none;
  isolation: isolate;
}

.navbar::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fafbfc;
  z-index: -1;
}

.navbar.is-compact {
  border: 1px solid rgba(16, 28, 45, 0.09);
  background: #fafbfc;
  box-shadow: 0 14px 40px rgba(16, 28, 45, 0.1);
}

.logo-mark:hover {
  transform: translateY(-1px);
}

.nav-links {
  gap: clamp(0.5rem, 1.2vw, 1.15rem);
}

.nav-links .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid rgba(179, 132, 46, 0.45);
  border-radius: 999px;
  color: #102748;
  background: rgba(204, 156, 65, 0.12);
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.nav-links .nav-login:hover,
.nav-links .nav-login:focus-visible {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.nav-links a {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  color: #3b4e68;
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: #102748;
  background: rgba(179, 132, 46, 0.09);
}

.nav-links a.active,
.nav-links a[aria-current='page'] {
  color: #102748;
  background: rgba(179, 132, 46, 0.14);
  border: 1px solid rgba(179, 132, 46, 0.3);
  box-shadow: 0 4px 12px rgba(16, 39, 72, 0.06);
  font-weight: 700;
  transform: none;
}

.nav-links a.active::before,
.nav-links a[aria-current='page']::before {
  content: none;
}

.hero {
  min-height: calc(100svh - var(--nav-offset));
  padding-bottom: 5rem;
  background:
    radial-gradient(circle at 82% 20%, rgba(182, 138, 58, 0.1), transparent 28%),
    linear-gradient(145deg, #fbfcfd 0%, #f1f4f8 100%);
}

.hero::before {
  opacity: 0.28;
}

.hero::after,
.hero-ambience {
  opacity: 0.32;
}

.hero-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  min-height: calc(100svh - var(--nav-offset) - 5rem);
  padding: 0.75rem 0 4rem;
}

.hero-text,
.hero-visual {
  width: 100%;
  align-self: center;
  transform: none;
}

.hero-text {
  max-width: 36rem;
  padding-top: 0.9rem;
  text-align: left;
  justify-self: start;
  align-self: start;
}

.hero-text h1,
.hero-text .lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-text .hero-actions,
.hero-text .trust-points {
  justify-content: flex-start;
}

.hero-visual {
  justify-self: end;
}

.eyebrow {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.lead {
  max-width: 55ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.btn {
  padding: 0.95rem 1.4rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
}

.btn-primary {
  box-shadow: 0 12px 28px rgba(16, 39, 72, 0.2);
}

.trust-points {
  gap: 0.65rem 1.2rem;
}

.trust-points li {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.83rem;
}

.trust-points li::before {
  content: '✓';
  margin-right: 0.45rem;
  color: var(--primary);
  font-weight: 800;
}

.trust-points li:hover {
  border: 0;
  background: none;
  transform: none;
}

.hero-media {
  aspect-ratio: 4 / 5;
  max-height: 35rem;
  border-radius: 1.5rem;
  animation: none;
  box-shadow: 0 28px 70px rgba(16, 28, 45, 0.18);
}

.hero-card {
  width: calc(100% - 2.5rem);
  margin: -5rem auto 0;
  padding: 1.4rem 1.5rem;
  border-radius: 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 22px 55px rgba(16, 28, 45, 0.14);
}

.hero-card-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hero-card-list div {
  display: grid;
  justify-content: start;
  padding: 0 0.8rem;
  border-right: 1px solid var(--border);
}

.hero-card-list div:first-child {
  padding-left: 0;
}

.hero-card-list div:last-child {
  border-right: 0;
}

.hero-card-list strong {
  color: #102748;
  font-size: 1.2rem;
}

.hero-card-list span {
  font-size: 0.72rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 3rem;
}

.service-card,
.about-card,
.contact-card {
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(16, 28, 45, 0.07);
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(182, 138, 58, 0.35);
  box-shadow: 0 24px 55px rgba(16, 28, 45, 0.12);
}

.service-card-image {
  filter: saturate(0.85) contrast(1.02);
}

/* Service cards echo the floating "Why clients choose us" panel */
.services-carousel-track .service-card {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.72fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  box-shadow: 0 28px 70px rgba(16, 28, 45, 0.14);
}

.services-carousel-track .service-card-image {
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  border: 0;
  border-radius: inherit;
}

.services-carousel-track .service-card-top,
.services-carousel-track .service-card > p {
  grid-column: 2;
  margin-inline: 2rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.96));
  backdrop-filter: blur(12px);
  border-inline: 1px solid rgba(179, 132, 46, 0.16);
  box-shadow: 0 22px 55px rgba(16, 28, 45, 0.14);
}

.services-carousel-track .service-card-top {
  grid-row: 1;
  align-self: end;
  padding: 1.45rem 1.5rem 0.55rem;
  border-top: 1px solid rgba(179, 132, 46, 0.16);
  border-radius: 1rem 1rem 0 0;
}

.services-carousel-track .service-card h3 {
  max-width: none;
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
}

.services-carousel-track .service-card > p {
  grid-row: 2;
  align-self: start;
  margin-bottom: 2rem;
  padding: 0 1.5rem 1.45rem;
  border-bottom: 1px solid rgba(179, 132, 46, 0.16);
  border-radius: 0 0 1rem 1rem;
}

.services-carousel-track .service-card > p::after {
  margin-top: 1rem;
}

.services-carousel-track .service-card:hover,
.services-carousel-track .service-card:focus-visible {
  border-color: transparent;
  box-shadow: 0 34px 80px rgba(16, 28, 45, 0.2);
}

@media (max-width: 700px) {
  .services-carousel-track .service-card {
    grid-template-columns: 1fr;
    grid-template-rows: 17rem auto auto;
  }

  .services-carousel-track .service-card-image {
    grid-column: 1;
    grid-row: 1;
    min-height: 17rem;
  }

  .services-carousel-track .service-card-top,
  .services-carousel-track .service-card > p {
    grid-column: 1;
    margin-inline: 1rem;
  }

  .services-carousel-track .service-card-top {
    grid-row: 2;
    margin-top: -3rem;
    padding: 1.25rem 1.25rem 0.45rem;
  }

  .services-carousel-track .service-card > p {
    grid-row: 3;
    margin-bottom: 1rem;
    padding: 0 1.25rem 1.25rem;
  }
}

.services-static .service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.services-static .service-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.services-static .service-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 22px 48px rgba(16, 28, 45, 0.14);
}

.services-static .service-card-top,
.services-static .service-card > p {
  width: calc(100% - 1.25rem);
  margin-inline: auto;
  padding-inline: 1rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.97));
  border-inline: 1px solid rgba(179, 132, 46, 0.16);
  position: relative;
  z-index: 2;
}

.services-static .service-card-top {
  margin-top: -2rem;
  padding-top: 1rem;
  padding-bottom: 0.45rem;
  border-top: 1px solid rgba(179, 132, 46, 0.16);
  border-radius: 1rem 1rem 0 0;
}

.services-static .service-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.18;
  text-wrap: balance;
}

.services-static .service-card > p {
  display: flex;
  flex-direction: column;
  min-height: 9.75rem;
  padding-top: 0.05rem;
  padding-bottom: 0.9rem;
  color: #46566c;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.005em;
  text-align: left;
  border-bottom: 1px solid rgba(179, 132, 46, 0.16);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 18px 42px rgba(16, 28, 45, 0.12);
  transform-origin: center top;
  transition: color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.services-static .service-card:hover > p,
.services-static .service-card:focus-visible > p {
  color: #10233d;
  font-weight: 600;
  transform: scale(1.015);
  box-shadow: 0 22px 48px rgba(16, 28, 45, 0.17);
}

.services-static .service-card > p::after {
  content: attr(data-cta) '  \2192';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin-top: auto;
  padding: 0.58rem 0.75rem;
  border: 1px solid #102748;
  border-radius: 0.5rem;
  color: #fff;
  background: #102748;
  box-shadow: 0 7px 16px rgba(16, 39, 72, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.services-static .service-card:hover > p::after,
.services-static .service-card:focus-visible > p::after {
  color: #102748;
  background: linear-gradient(135deg, #dfbe73, #c7963e);
  border-color: #a97d2d;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(169, 125, 45, 0.28);
}

.services-static .service-card:hover,
.services-static .service-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: none;
}

@media (max-width: 1000px) {
  .services-static .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-static .service-card > p {
    min-height: 8.75rem;
  }
}

@media (max-width: 700px) {
  .services-static .service-grid {
    grid-template-columns: 1fr;
  }

  .services-static .service-card > p {
    min-height: 0;
    font-size: 0.9rem;
    line-height: 1.65;
  }

}

.about-section {
  background: #eef1f5;
}

.page-header {
  background:
    radial-gradient(circle at 80% 20%, rgba(182, 138, 58, 0.09), transparent 28%),
    linear-gradient(145deg, #fbfcfd, #f1f4f8);
  box-shadow: none;
}

.footer {
  background: #0c192b;
}

@media (max-width: 900px) {
  :root {
    --nav-offset: 5.25rem;
    --logo-height: 5.25rem;
    --logo-width: 9.7rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0.5rem 0 1rem;
  }

  .hero-text {
    max-width: 680px;
    justify-self: center;
    text-align: left;
  }

  .hero-visual {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
    justify-self: center;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-offset: 4.75rem;
    --logo-height: 4.75rem;
    --logo-width: 8.6rem;
  }

  .container {
    width: min(100% - 2rem, 1180px);
  }

  .navbar {
    padding-inline: 1rem;
  }

  .nav-links {
    right: 1rem;
    left: 1rem;
    max-width: 420px;
    margin-inline: auto;
    top: calc(100% + 0.4rem);
  }

  .hero {
    padding-bottom: 3.5rem;
  }

  .hero-content {
    gap: 2.5rem;
    padding-top: 0.25rem;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-card {
    width: calc(100% - 1rem);
    margin-top: -2.5rem;
    padding: 1.2rem;
  }

  .hero-card-list {
    grid-template-columns: 1fr;
  }

  .hero-card-list div,
  .hero-card-list div:first-child {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-card-list div:last-child {
    border-bottom: 0;
  }

  .section-heading {
    margin-bottom: 2rem;
  }
}
.product-card-image{display:block;width:100%;height:180px;margin-bottom:1rem;border-radius:.75rem;object-fit:cover}
