/* ============================================
   INTRSEKT, LLC — Design System & Global Styles
   v3 — Dynamic: rounded design, scroll animations,
   interactive service accordion, welcoming hero
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --charcoal: #1C1C1E;
  --charcoal-light: #2C2C2E;
  --charcoal-muted: #3A3A3C;
  --white: #FAFAFA;
  --off-white: #F2F2F7;
  --light-gray: #E5E5EA;
  --medium-gray: #8E8E93;
  --accent-blue: #3A6EA5;
  --accent-blue-light: #4A8EC7;
  --accent-blue-dark: #2A5E8F;
  --accent-gold: #B08D57;
  --accent-gold-light: #C9A96E;
  --accent-gold-dark: #967640;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-hero: clamp(2.4rem, 5vw, 4.2rem);
  --fs-h1: clamp(2rem, 3.5vw, 3.2rem);
  --fs-h2: clamp(1.6rem, 2.5vw, 2.2rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-h4: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: clamp(0.9rem, 1.1vw, 1.05rem);
  --fs-small: 0.835rem;
  --fs-xs: 0.72rem;
  --line-height: 1.65;

  --section-padding: clamp(2.5rem, 5vw, 5rem);
  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 3.5vw, 2.5rem);
  --gap-xs: 0.5rem;
  --gap-sm: 0.75rem;
  --gap-md: 1.25rem;
  --gap-lg: 2rem;
  --gap-xl: 3rem;

  /* ROUNDED design language */
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 100px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow-blue: 0 0 60px rgba(58, 110, 165, 0.15);
  --shadow-glow-gold: 0 0 60px rgba(176, 141, 87, 0.12);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --z-navbar: 1000;
  --z-mobile-nav: 1100;
  --z-bottom-bar: 1050;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--line-height);
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

/* mobile body - no bottom padding needed (hamburger nav replaces bottom bar) */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-accent {
  color: var(--accent-blue);
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(58, 110, 165, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.section-kicker {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--medium-gray);
  margin-bottom: 0.45rem;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--medium-gray);
  max-width: 560px;
  line-height: var(--line-height);
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section--dark {
  background: var(--charcoal);
  color: var(--white);
}

.section--dark .section-label {
  color: var(--accent-gold);
  background: rgba(176, 141, 87, 0.12);
}

.section--light {
  background: var(--off-white);
}

.grid {
  display: grid;
  gap: var(--gap-md);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.text-center {
  text-align: center;
}

/* --- Buttons (rounded, modern) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(58, 110, 165, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58, 110, 165, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--charcoal);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
  padding: 0.4rem 0;
  border-radius: 0;
}

.btn-ghost::after {
  display: none;
}

.btn-ghost:hover {
  color: var(--accent-blue-dark);
}

.btn-ghost .arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

.btn-white {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* --- Cards (rounded, soft) --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-sm);
  color: var(--white);
}

.card__icon--gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
}

.card__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.4rem;
}

.card__text {
  color: var(--medium-gray);
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* ===========================
   NAVBAR — Desktop
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: 0.65rem 0;
  transition: all var(--transition-base);
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--charcoal-muted);
  position: relative;
  padding: 0.2rem 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--charcoal);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: 0.75rem;
}

/* Hamburger — hidden on desktop */
.navbar__hamburger {
  display: none;
}

/* ===========================
   MOBILE BOTTOM TAB BAR
   =========================== */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--charcoal);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }

  .navbar__hamburger:active {
    transform: scale(0.92);
    background: var(--light-gray);
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-bottom-bar);
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    justify-content: space-around;
    align-items: center;
    height: 64px;
  }

  .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--medium-gray);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav__item.active {
    color: var(--accent-blue);
  }

  .bottom-nav__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }

  .bottom-nav__item:active {
    transform: scale(0.92);
  }

  .bottom-nav__more {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--medium-gray);
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav__more.active {
    color: var(--accent-blue);
  }

  .bottom-nav__more svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }
}

/* ===========================
   MOBILE NAV OVERLAY
   =========================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top, 0);
}

.mobile-nav-overlay.open {
  transform: translateY(0);
}

.mobile-nav-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-padding);
  border-bottom: 1px solid var(--light-gray);
  flex-shrink: 0;
}

.mobile-nav-overlay__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--charcoal);
}

.mobile-nav-overlay__list {
  padding: 1rem var(--container-padding) 2rem;
  flex: 1;
}

.mobile-nav-overlay__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--off-white);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.mobile-nav-overlay__link:last-child {
  border-bottom: none;
}

.mobile-nav-overlay__link svg {
  width: 18px;
  height: 18px;
  color: var(--medium-gray);
}

.mobile-nav-overlay__link.active-page {
  color: var(--accent-blue);
}

.mobile-nav-overlay__cta {
  padding: 0 var(--container-padding) 2rem;
  flex-shrink: 0;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: linear-gradient(155deg, #15161b 0%, var(--charcoal) 55%, #1d2530 100%);
  color: var(--light-gray);
  padding: 0 0 1.5rem;
  margin: 0 var(--container-padding) var(--container-padding);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  overflow: hidden;
  position: relative;
}

.footer__divider-top {
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), var(--accent-blue), rgba(255, 255, 255, 0.1), transparent);
  margin: 0 auto 2.5rem;
  border: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--gap-xl);
  margin-bottom: 2rem;
}

.footer__logo {
  margin-bottom: 0.5rem;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.footer__desc {
  color: var(--medium-gray);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 300px;
}

.footer__heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.footer__link {
  display: block;
  color: var(--medium-gray);
  font-size: var(--fs-small);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-blue-light);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-small);
  color: var(--medium-gray);
}

.footer__contact-icon {
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__divider {
  border: none;
  border-top: 1px solid var(--charcoal-muted);
  margin-bottom: 1rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--medium-gray);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal-muted);
  color: var(--light-gray);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer {
    margin: 0 1rem 1rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: linear-gradient(160deg, #15161b 0%, var(--charcoal) 55%, #1d2530 100%);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin: 0 var(--container-padding);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 110, 165, 0.12), transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.08), transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
  font-size: var(--fs-body);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-section {
    margin: 0 1rem;
  }
}

/* ===========================
   HERO — Welcoming, warm
   =========================== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  background: linear-gradient(160deg, var(--white) 0%, #EEF2F7 40%, #F0EDE8 70%, var(--white) 100%);
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: 3.5rem;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
}

/* Warm gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58, 110, 165, 0.08), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.06), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -20px) scale(1.1);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero__subtitle {
  font-size: var(--fs-body);
  color: var(--medium-gray);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: var(--line-height);
}

.hero__actions {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

/* --- Typing/reveal animation for hero --- */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.6s forwards;
}

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

/* ===========================
   APPLE-STYLE SERVICES GALLERY
   Full-bleed, scroll-snap, dot nav
   =========================== */
.services-gallery {
  position: relative;
  overflow: hidden;
  padding: 0 0 2rem;
}

#services-overview .text-center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Track — horizontal scroll-snap */
.services-gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 7.5vw;

  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-gallery__track::-webkit-scrollbar {
  display: none;
}

/* Individual card */
.services-gallery__card {
  flex: 0 0 85vw;
  max-width: 1200px;
  min-height: 480px;
  border-radius: var(--radius-xl);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.services-gallery__card:hover {
  transform: scale(1.008);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Card color variants — dark gradients */
.services-gallery__card--blue {
  background: linear-gradient(160deg, rgba(15, 23, 36, 0.82) 0%, rgba(22, 42, 74, 0.78) 40%, rgba(26, 51, 88, 0.75) 100%),
    url('../Images/management.jpg') center / cover no-repeat;
  color: var(--white);
}

.services-gallery__card--gold {
  background: linear-gradient(160deg, rgba(26, 22, 16, 0.82) 0%, rgba(48, 39, 24, 0.78) 40%, rgba(61, 49, 32, 0.75) 100%),
    url('../Images/Executive.jpg') center / cover no-repeat;
  color: var(--white);
}

.services-gallery__card--teal {
  background: linear-gradient(160deg, rgba(12, 26, 30, 0.82) 0%, rgba(20, 52, 59, 0.78) 40%, rgba(24, 62, 71, 0.75) 100%),
    url('../Images/partnership-1050x500.png') center / cover no-repeat;
  color: var(--white);
}

.services-gallery__card--warm {
  background: linear-gradient(160deg, rgba(27, 21, 22, 0.82) 0%, rgba(52, 32, 36, 0.78) 40%, rgba(64, 40, 45, 0.75) 100%),
    url('../Images/Fractional.jpg') center / cover no-repeat;
  color: var(--white);
}

/* Ambient glow behind each card */
.services-gallery__card::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

.services-gallery__card--blue::before {
  background: #3a6ea5;
}

.services-gallery__card--gold::before {
  background: #b08d57;
}

.services-gallery__card--teal::before {
  background: #2d8d9c;
}

.services-gallery__card--warm::before {
  background: #a05555;
}

/* Visual — large icon area */
.services-gallery__visual {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.5s ease;
}

.services-gallery__card:hover .services-gallery__visual {
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.08);
}

.services-gallery__visual svg {
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
}

/* Caption text */
.services-gallery__caption {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.services-gallery__caption h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.services-gallery__caption p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* "Learn More" link */
.services-gallery__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-blue-light);
  transition: all var(--transition-fast);
}

.services-gallery__link:hover {
  color: var(--white);
}

.services-gallery__link .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.services-gallery__link:hover .arrow {
  transform: translateX(4px);
}

/* ---- Dot navigation ---- */
.services-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 1.5rem;
}

.services-gallery__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--medium-gray);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.services-gallery__dot.active {
  width: 28px;
  background: var(--charcoal-light);
}

/* Progress bar inside active dot */
.services-gallery__dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--charcoal);
  border-radius: inherit;
  animation: dotProgress 5s linear forwards;
}

.services-gallery__dot.active.paused::after {
  animation-play-state: paused;
}

@keyframes dotProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Pause button */
.services-gallery__pause {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--off-white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.services-gallery__pause:hover {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* ---- Mobile responsive ---- */
@media (max-width: 768px) {
  .services-gallery__track {
    padding: 0 4vw;
    gap: 12px;
  }

  .services-gallery__card {
    flex: 0 0 92vw;
    min-height: 380px;
    padding: 2rem 1.5rem;
  }

  .services-gallery__visual svg {
    width: 60px;
    height: 60px;
  }

  .services-gallery__dot.active {
    width: 24px;
  }
}

/* ===========================
   INDUSTRY BAR
   =========================== */
.industry-marquee {
  overflow: hidden;
  margin-top: 0.75rem;
  mask-image: linear-gradient(to right, transparent, black 14%, black 86%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 14%, black 86%, transparent);
}

.industry-marquee__inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: industryMarquee 22s linear infinite;
  will-change: transform;
}

.industry-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--gap-md);
  padding-right: var(--gap-md);
}

.industry-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: default;
  width: 200px;
  min-width: 200px;
  height: 124px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.industry-bar__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.industry-bar__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--off-white);
  color: var(--accent-blue);
  transition: all var(--transition-base);
}

.industry-bar__item:hover .industry-bar__icon {
  background: var(--accent-blue);
  color: var(--white);
}

.industry-bar__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.2;
}

.industry-marquee:hover .industry-marquee__inner {
  animation-play-state: paused;
}

@keyframes industryMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .industry-bar {
    gap: 0.75rem;
    padding-right: 0.75rem;
  }

  .industry-bar__item {
    width: 155px;
    min-width: 155px;
    height: 112px;
    padding: 0.8rem 1rem;
  }

  .industry-bar__label {
    font-size: var(--fs-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-marquee__inner {
    animation: none;
    transform: none;
  }

  .industry-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ===========================
   CREDIBILITY
   =========================== */
.credibility {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.credibility__photo {
  width: 240px;
  height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--light-gray);
}

.credibility__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--off-white);
  color: var(--charcoal);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.badge:hover {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.badge__icon {
  color: var(--accent-gold);
}

.badge:hover .badge__icon {
  color: var(--white);
}

@media (max-width: 768px) {
  .credibility {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .credibility__photo {
    margin: 0 auto;
    width: 180px;
    height: 230px;
  }

  .credibility__badges {
    justify-content: center;
  }
}

/* ===========================
   SERVICES PAGE — Tag Outcomes
   =========================== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--light-gray);
}

.service-block:nth-child(even) {
  direction: rtl;
}

.service-block:nth-child(even)>* {
  direction: ltr;
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__visual {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--off-white), var(--light-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.service-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

.service-outcomes__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  background: var(--off-white);
  color: var(--charcoal);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.service-outcomes__tag:hover {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 110, 165, 0.2);
}

.service-outcomes__tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

.service-outcomes__tag:hover svg {
  opacity: 1;
}

.engagement-model {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border-left: 3px solid var(--accent-gold);
}

.engagement-model__icon {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.engagement-model__text {
  font-size: var(--fs-small);
  color: var(--charcoal-muted);
  line-height: 1.5;
}

.engagement-model__label {
  font-weight: 600;
  color: var(--charcoal);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .service-block {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .service-block:nth-child(even) {
    direction: ltr;
  }

  .service-block__visual {
    aspect-ratio: 16/9;
    max-height: 180px;
  }
}

/* ===========================
   CONTACT FORM
   =========================== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(58, 110, 165, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   SCROLL ANIMATIONS — Progressive reveal
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Blur-in reveal */
.blur-in {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

.blur-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Slide-up with bounce */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.8s var(--transition-spring);
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays (for grids) */
.stagger-children>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children>*:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger-children>*:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-children>*:nth-child(4) {
  transition-delay: 0.24s;
}

.stagger-children>*:nth-child(5) {
  transition-delay: 0.32s;
}

/* Parallax helper */
.parallax-slow {
  will-change: transform;
}

/* Philosophy quote */
.philosophy-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  position: relative;
}

.philosophy-accent {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  border-radius: 3px;
  margin: 1.25rem auto;
}

.philosophy-quote {
  font-size: var(--fs-h2);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.35;
  position: relative;
  padding: 0.5rem 0;
  color: var(--charcoal);
}

.philosophy-body {
  max-width: 540px;
  margin: 1rem auto 0;
  color: var(--medium-gray);
  font-size: var(--fs-body);
  line-height: var(--line-height);
  text-align: center;
}

/* ===========================
   PAGE HEADER (inner pages)
   =========================== */
.page-header {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-light) 60%, #2A3A4A 100%);
  color: var(--white);
  padding: clamp(3.25rem, 6vw, 4.4rem) 0 clamp(2.2rem, 4vw, 2.8rem);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: clamp(3.8rem, 6vw, 4.6rem) var(--container-padding) 0;
  box-shadow: var(--shadow-md);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(58, 110, 165, 0.06));
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.05), transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--light-gray);
  max-width: 520px;
  margin-top: 0.6rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-header {
    margin-top: 3.45rem;
    margin-left: 1rem;
    margin-right: 1rem;
    padding-top: 3rem;
  }
}

/* ===========================
   UTILITIES
   =========================== */
.mb-1 {
  margin-bottom: 0.35rem;
}

.mb-2 {
  margin-bottom: 0.75rem;
}

.mb-3 {
  margin-bottom: 1.25rem;
}

.mb-4 {
  margin-bottom: 1.75rem;
}

.mb-5 {
  margin-bottom: 2.5rem;
}

.mt-1 {
  margin-top: 0.35rem;
}

.mt-2 {
  margin-top: 0.75rem;
}

.mt-3 {
  margin-top: 1.25rem;
}

.mt-4 {
  margin-top: 1.75rem;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 3px;
}

::selection {
  background: var(--accent-blue);
  color: var(--white);
}