:root {
  --pink: #ff4fd8;
  --blue: #28d7ff;
  --purple: #8c52ff;
  --violet: #5f4bff;
  --cream: #fff8ff;
  --ink: #14111f;
  --muted: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --border: rgba(255, 255, 255, 0.36);
  --shadow: 0 30px 90px rgba(31, 16, 70, 0.28);
  --radius-lg: 34px;
  --radius-md: 24px;
  --header-height: 86px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Urbanist", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 79, 216, 0.9), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(40, 215, 255, 0.75), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(140, 82, 255, 0.78), transparent 34%),
    linear-gradient(135deg, #20133f 0%, #4b1f8d 42%, #152b6f 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: " ";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(255, 79, 216, 0.35), transparent 22%),
    radial-gradient(circle at 60% 22%, rgba(40, 215, 255, 0.24), transparent 24%);
  filter: blur(12px);
  animation: meshShift 16s ease-in-out infinite alternate;
}

body::after {
  content: " ";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
}

@keyframes meshShift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: hue-rotate(0deg) blur(12px);
  }

  100% {
    transform: scale(1.08) translate3d(-2%, 2%, 0);
    filter: hue-rotate(24deg) blur(15px);
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.72;
  font-size: 1.03rem;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.navbar {
  min-height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(20, 17, 31, 0.18);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  padding: 0.5rem 0.85rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.full-screen {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 3rem) 1.25rem 4rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(0.98);
  transform: scale(1.04);
}

.hero-media::after {
  content: " ";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 34%, rgba(255, 79, 216, 0.42), transparent 35%),
    radial-gradient(circle at 70% 64%, rgba(40, 215, 255, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(26, 12, 55, 0.82), rgba(65, 33, 130, 0.58));
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    opacity: 1;.9;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero-overlay {
  width: min(980px, 100%);
  text-align: center;
}

.glass-panel {
  position: relative;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.glass-panel::before {
  content: " ";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%, rgba(255, 255, 255, 0.08));
  opacity: 1;.82;
}

.hero-card {
  padding: clamp(2rem, 6vw, 4.5rem);
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 1;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  position: relative;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 8vw, 7.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin: 1.2rem 0 0.85rem;
}

.hero-card p:not(.eyebrow) {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.glass-link,
.ghost-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.glass-link {
  color: #23123e;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.ghost-link {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
}

.glass-link:hover,
.glass-link:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.section {
  padding: var(--section-pad) 1.25rem;
}

.section-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 1.5rem;
  align-items: center;
}

.copy-block,
.section-intro,
.care-card,
.faq-panel {
  padding: clamp(1.6rem, 4vw, 3rem);
}

.copy-block p,
.section-intro p,
.care-card p,
.faq-panel p {
  color: rgba(255, 255, 255, 0.83);
}

.text-list {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.image-stack {
  position: relative;
  min-height: 620px;
}

.stack-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stack-img.large {
  inset: 0 12% 6% 0;
  width: 78%;
  height: 92%;
}

.stack-img.small {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 44%;
}

.services-section .section-shell,
.benefits-section .section-shell,
.gallery-section .section-shell,
.voices-section .section-shell {
  display: grid;
  gap: 1.5rem;
}

.tabs {
  padding: 1rem;
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tab-button,
.faq-question,
.carousel-control {
  font-family: "Urbanist", sans-serif;
  cursor: pointer;
}

.tab-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s ease;
}

.tab-button.active,
.tab-button:hover,
.tab-button:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  color: #251044;
  transform: translateY(-2px);
  outline: none;
}

.tab-pane {
  display: none;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
}

.tab-pane.active {
  display: block;
  animation: fadeUp 0.45s ease both;
}

.tab-pane h3 {
  margin-top: 0;
}

.tab-pane p {
  max-width: 880px;
  color: rgba(255, 255, 255, 0.86);
}

.feature-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.6rem;
  min-height: 260px;
}

.card-kicker {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-title,
.team-name,
.footer-brand {
  margin: 0.3rem 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.feature-card p:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.masonry-item {
  margin: 0;
  overflow: hidden;
  padding: 0.75rem;
}

.masonry-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.masonry-item.tall img {
  height: 520px;
}

.masonry-item.medium img {
  height: 430px;
}

.masonry-item.short img {
  height: 340px;
}

figcaption {
  padding: 1rem 0.4rem 0.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.quote-card {
  margin: 0;
  padding: 1.7rem;
}

.quote-card p {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.quote-card footer {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  line-height: 1.5;
}

.team-carousel {
  position: relative;
  padding: 1rem 4.5rem;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease;
}

.team-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 22px;
}

.team-card p:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.84);
  color: #24133f;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(20, 17, 31, 0.22);
}

.carousel-control.prev {
  left: 0.85rem;
}

.carousel-control.next {
  right: 0.85rem;
}

.carousel-control:disabled {
  opacity: 1;.42;
  cursor: not-allowed;
}

.care-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.centered-link {
  margin: 1.25rem auto 0;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  padding: 1.15rem 1.25rem;
  text-align: left;
  background: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.faq-question:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: -4px;
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
}

.site-footer {
  padding: 2rem 1.25rem 3rem;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.footer-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .two-column,
  .care-layout {
    grid-template-columns: 1fr;
  }

  .image-stack {
    min-height: 520px;
  }

  .team-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }

  .feature-grid,
  .quote-grid,
  .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    padding: 0.75rem;
  }

  .navbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.25rem 0.25rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero {
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero-actions,
  .tab-buttons {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .glass-link,
  .ghost-link {
    width: 100%;
  }

  .feature-grid,
  .quote-grid,
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .masonry-item.tall img,
  .masonry-item.medium img,
  .masonry-item.short img {
    height: auto;
    max-height: 520px;
  }

  .image-stack {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .stack-img,
  .stack-img.large,
  .stack-img.small {
    position: static;
    width: 100%;
    height: auto;
    max-height: 520px;
  }

  .team-carousel {
    padding: 4.2rem 1rem 1rem;
  }

  .team-card {
    flex-basis: 100%;
  }

  .carousel-control {
    top: 1.9rem;
    transform: none;
  }

  .carousel-control.prev {
    left: 1rem;
  }

  .carousel-control.next {
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
