/* ==========================================================================
   CENTRE NEXUS - HIGH-PERFORMANCE PIXEL-PERFECT DESIGN SYSTEM
   Deep-matched to original Centre Nexus design tokens, typography & layout.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Comfortaa:wght@300;400;700&family=Enriqueta:wght@400;700&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400;1,700&display=swap');

:root {
  /* Brand Palette from Live Centre Nexus Site */
  --color-bg-overlay: rgba(248, 248, 252, 0.63); /* Soft pastel wash overlay matching live site */
  --color-body-bg: #f5eedb;

  /* Navigation Bar Colors */
  --nav-bg: #8c88a7;        /* Wix --color_32: rgb(140, 136, 167) */
  --nav-bg-hover: #615d7b;  /* Wix --color_33: rgb(97, 93, 123) */
  --nav-active: #36324f;    /* Wix --color_34: rgb(54, 50, 79) */
  --nav-text: #ffffff;
  --nav-border: rgba(255, 255, 255, 0.22);

  /* Content Box Card */
  --sky-blue-container: #daedff; /* Wix --color_11: rgb(218, 237, 255) */
  --sky-blue-border: #92b8d0;    /* Soft border matching container */
  --divider-color: #92b8d0;

  /* CTA Pill Buttons (Truca'ns, WhatsApp, Reserva cita) */
  --btn-cta-bg: #97bcc8;       /* Live site exact: #97BCC8 */
  --btn-cta-hover: #7ea7b3;
  --btn-cta-text: #081423;     /* Wix --color_42 */
  --btn-cta-border: #7ea7b3;

  /* Service Category Tag Buttons (PSICOLOGIA, UNITAT ESCOLAR, TERAPIES NATURALS) */
  --service-btn-bg: rgba(92, 105, 123, 0.85); /* Wix --color_23 */
  --service-btn-hover: #36324f;              /* Wix --color_34 */
  --service-btn-text: #daedff;               /* Wix --color_11 */

  /* Typography Colors */
  --text-dark: #111111;
  --text-body: #222222;
  --text-muted: #444444;
  --footer-text: #222222;

  /* Fonts */
  --font-title: 'Enriqueta', Georgia, serif;
  --font-logo: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-content-width: 980px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.6;
  background-color: var(--color-body-bg);
  background-image: 
    linear-gradient(var(--color-bg-overlay), var(--color-bg-overlay)),
    url('../assets/images/site-bg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   NAVIGATION BAR (DESKTOP & MOBILE HEADER)
   ========================================================================== */
.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
  padding-top: 12px;
}

.header-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  position: relative;
  padding: 0 10px;
}

/* Mobile Top Header Bar (Strictly Hidden on Desktop) */
.mobile-header-bar {
  display: none !important;
}

.mobile-logo-img {
  max-height: 38px !important;
  max-width: 160px !important;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Desktop Navigation Container */
.nav-bar-container {
  display: flex;
  align-items: stretch;
  background: var(--nav-bg);
  background: linear-gradient(180deg, #9995b5 0%, #837f9e 100%);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  width: 100%;
  overflow: visible;
  position: relative;
}

.nav-item {
  flex: 1;
  position: relative;
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 8px;
  font-family: var(--font-body);
  font-size: 0.80rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid var(--nav-border);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.nav-item:last-child .nav-link {
  border-right: none;
}

.nav-link:hover {
  background-color: var(--nav-bg-hover);
}

.nav-item.active .nav-link {
  background-color: var(--nav-active);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35);
}

/* Dropdown Submenu (Desktop) */
.nav-item-dropdown {
  position: relative;
}

.dropdown-trigger-row {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.mobile-submenu-toggle {
  display: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--nav-active);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  z-index: 200;
  overflow: hidden;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 11px 16px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-link.active {
  background-color: #262338;
}

/* Desktop Language Selector */
.desktop-lang {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 90;
}

.desktop-lang .lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 136, 167, 0.22);
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #615d7b;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.desktop-lang .lang-dropdown-toggle:hover {
  background: rgba(140, 136, 167, 0.35);
  color: #36324f;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  white-space: nowrap;
  gap: 6px;
  font-family: var(--font-body);
  line-height: 1;
  box-sizing: border-box;
}

.lang-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block !important;
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0;
}

.lang-dropdown-toggle .chevron {
  font-size: 0.72rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 95px;
  overflow: hidden;
  z-index: 210;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #333333;
}

.lang-option:hover {
  background-color: #f0f4f8;
}

/* Mobile backdrop overlay */
.nav-backdrop {
  display: none;
}

/* Utility for Accessible Hidden Headings */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HERO AREA (BRANDING & VIDEO)
   ========================================================================== */
.hero-wrapper {
  max-width: var(--max-content-width);
  margin: 14px auto 8px auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero-branding {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-logo-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-logo-link:hover {
  opacity: 0.95;
  transform: scale(1.008);
}

.hero-puzzle-img {
  max-width: 580px;
  width: 100%;
  height: auto;
  margin-left: -20px;
  display: block;
}

.hero-video-card {
  width: 363px;
  height: 215px;
  flex-shrink: 0;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.hero-video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   CTA BUTTONS ROW (TRUCA'NS, WHATSAPP, RESERVA CITA)
   ========================================================================== */
.cta-banner-wrapper {
  text-align: center;
  margin: 6px auto 18px auto;
  max-width: var(--max-content-width);
  padding: 0 10px;
}

.cta-subtext {
  font-size: 0.95rem;
  color: #222222;
  margin-bottom: 12px;
  font-weight: 400;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-cta-bg);
  color: var(--btn-cta-text);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 200px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  border: 1px solid var(--btn-cta-border);
}

.btn-cta-pill:hover {
  background: var(--btn-cta-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   MAIN CONTENT CONTAINER (#daedff card)
   ========================================================================== */
.main-content-box {
  max-width: var(--max-content-width);
  margin: 0 auto 35px auto;
  background-color: var(--sky-blue-container);
  border: 1px solid var(--sky-blue-border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 26px 28px;
  width: calc(100% - 20px);
}

/* Three Columns Grid on Homepage */
.home-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  position: relative;
}

.service-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.service-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -11px;
  width: 1px;
  height: 100%;
  background-color: var(--divider-color);
}

/* ==========================================================================
   PAGE TRANSITION CONTAINER (SPA Cross-Fade & Slide Animation)
   ========================================================================== */
.page-transition-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.page-transition-wrapper.transitioning-out {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.page-transition-wrapper.transitioning-in {
  animation: spaPageFadeIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spaPageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   DYNAMIC TEXT REVEAL & STAGGERED ENTRANCE ANIMATIONS
   Modern blur-to-focus text unfolding and progressive element reveal
   ========================================================================== */
@keyframes textRevealTitle {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  60% {
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes textRevealBody {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  70% {
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes textRevealItem {
  0% {
    opacity: 0;
    transform: translateX(-16px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardColumnStagger {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ctaButtonPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleLineExpand {
  0% {
    width: 0px;
    opacity: 0;
  }
  100% {
    width: 60px;
    opacity: 1;
  }
}

/* Headings reveal */
.page-transition-wrapper.transitioning-in .page-title,
.initial-reveal .page-title {
  animation: textRevealTitle 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  position: relative;
}

.page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #36324f, #8c88a7, transparent);
  margin-top: 8px;
}

.page-transition-wrapper.transitioning-in .page-title::after,
.initial-reveal .page-title::after {
  animation: titleLineExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.page-transition-wrapper.transitioning-in .page-section-title,
.initial-reveal .page-section-title {
  animation: textRevealTitle 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

/* Paragraphs reveal */
.page-transition-wrapper.transitioning-in p:not(.home-welcome-text),
.initial-reveal p:not(.home-welcome-text) {
  animation: textRevealBody 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Bullet list items staggered cascade */
.page-transition-wrapper.transitioning-in .bullet-list li,
.initial-reveal .bullet-list li {
  animation: textRevealItem 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(1), .initial-reveal .bullet-list li:nth-child(1) { animation-delay: 0.15s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(2), .initial-reveal .bullet-list li:nth-child(2) { animation-delay: 0.19s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(3), .initial-reveal .bullet-list li:nth-child(3) { animation-delay: 0.23s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(4), .initial-reveal .bullet-list li:nth-child(4) { animation-delay: 0.27s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(5), .initial-reveal .bullet-list li:nth-child(5) { animation-delay: 0.31s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(6), .initial-reveal .bullet-list li:nth-child(6) { animation-delay: 0.35s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(7), .initial-reveal .bullet-list li:nth-child(7) { animation-delay: 0.39s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(8), .initial-reveal .bullet-list li:nth-child(8) { animation-delay: 0.43s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(9), .initial-reveal .bullet-list li:nth-child(9) { animation-delay: 0.47s; }
.page-transition-wrapper.transitioning-in .bullet-list li:nth-child(10), .initial-reveal .bullet-list li:nth-child(10) { animation-delay: 0.51s; }

/* Home page services columns staggered cascade */
.page-transition-wrapper.transitioning-in .service-col:nth-child(1),
.initial-reveal .service-col:nth-child(1) {
  animation: cardColumnStagger 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.page-transition-wrapper.transitioning-in .service-col:nth-child(2),
.initial-reveal .service-col:nth-child(2) {
  animation: cardColumnStagger 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.page-transition-wrapper.transitioning-in .service-col:nth-child(3),
.initial-reveal .service-col:nth-child(3) {
  animation: cardColumnStagger 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

/* Home welcome text reveal */
.page-transition-wrapper.transitioning-in .home-welcome-text,
.initial-reveal .home-welcome-text {
  animation: textRevealBody 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}

.page-transition-wrapper.transitioning-in .home-social-contact-bar,
.initial-reveal .home-social-contact-bar {
  animation: textRevealBody 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both;
}

/* Team cards on Qui Som */
.page-transition-wrapper.transitioning-in .team-profile:nth-child(1),
.initial-reveal .team-profile:nth-child(1) {
  animation: textRevealBody 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.page-transition-wrapper.transitioning-in .team-profile:nth-child(2),
.initial-reveal .team-profile:nth-child(2) {
  animation: textRevealBody 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

/* Top CTA pill buttons staggered entrance */
.initial-reveal .cta-buttons-row .btn-cta-pill:nth-child(1) {
  animation: ctaButtonPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s both;
}
.initial-reveal .cta-buttons-row .btn-cta-pill:nth-child(2) {
  animation: ctaButtonPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.22s both;
}
.initial-reveal .cta-buttons-row .btn-cta-pill:nth-child(3) {
  animation: ctaButtonPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.32s both;
}

/* Service Images Clickable Links with Micro-Interactions */
.service-photo-link,
.service-photo-wrap {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.32s ease;
}

.service-photo-link:hover,
.service-photo-wrap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 22px rgba(12, 60, 96, 0.22);
}

.service-photo-link img,
.service-photo-wrap img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.service-photo-link:hover img,
.service-photo-wrap:hover img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

/* Subtle interactive hover sheen overlay */
.service-photo-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 45, 65, 0.22) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-photo-link:hover::after {
  opacity: 1;
}

.service-tag-btn {
  display: block;
  text-align: center;
  background: var(--service-btn-bg);
  color: var(--service-btn-text);
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 9px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
  text-transform: uppercase;
  text-decoration: none;
}

.service-tag-btn:hover {
  background: var(--service-btn-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.sub-photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-photos-row .service-photo-link img,
.sub-photos-row .service-photo-wrap img {
  height: 115px;
}

/* Welcome Text & Social Bar */
.home-welcome-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--sky-blue-border);
}

.home-welcome-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 6px;
  padding: 8px 12px;
  margin: -8px -12px;
  transition: background-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.home-welcome-link:hover {
  background-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.home-welcome-link:hover .home-welcome-text {
  color: #0c3c60;
}

.home-welcome-text {
  font-size: 0.94rem;
  color: #222222;
  line-height: 1.75;
  margin-bottom: 22px;
  transition: color 0.2s ease;
}

.home-social-contact-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(146, 184, 208, 0.5);
}

.contact-email-link {
  font-size: 0.90rem;
  color: #11364a;
  font-weight: 600;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.social-icons-wrap {
  display: flex;
  gap: 8px;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.social-icon-btn:hover {
  transform: scale(1.1);
}

.social-icon-btn img {
  width: 30px;
  height: 30px;
}

/* ==========================================================================
   SUBPAGE STYLES (PSICOLOGIA, UNITAT ESCOLAR, QUI SOM, ETC.)
   ========================================================================== */
.page-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 400;
  color: #111111;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.page-section-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: #222222;
  margin: 18px 0 10px 0;
  border-bottom: 1px solid rgba(146, 184, 208, 0.5);
  padding-bottom: 6px;
}

.content-row-2col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
  margin-bottom: 28px;
  align-items: start;
}

.content-row-2col-reverse {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
  margin-bottom: 28px;
  align-items: start;
}

.side-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.bullet-list {
  list-style: disc inside;
  margin-top: 10px;
  font-size: 0.92rem;
  color: #333333;
}

.bullet-list li {
  margin-bottom: 5px;
}

/* Team Grid (Qui Som) */
.team-row {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.team-profile {
  text-align: center;
  max-width: 290px;
}

.team-avatar {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 3px solid #ffffff;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111111;
}

.team-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #557288;
  margin-bottom: 8px;
}

.team-desc {
  font-size: 0.85rem;
  color: #444444;
  line-height: 1.5;
}

/* Map Embed */
.map-embed-wrapper {
  margin-top: 22px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  height: 310px;
  border: 1px solid var(--sky-blue-border);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   FOOTER (MATCHING CENTRE NEXUS ORIGINAL)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 35px 15px 30px 15px;
  max-width: var(--max-content-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-branding {
  flex: 1;
}

.footer-title {
  font-family: var(--font-logo);
  font-size: 3.1rem;
  font-weight: 300;
  color: #111111;
  line-height: 1;
}

.footer-subtitle {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #111111;
  font-weight: 700;
  margin-left: 8px;
  margin-top: 2px;
}

.footer-info {
  text-align: right;
  font-size: 0.88rem;
  color: var(--footer-text);
  line-height: 1.6;
}

.footer-info a {
  color: inherit;
}

.footer-info a:hover {
  text-decoration: underline;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MOBILE STYLES & ANIMATED HAMBURGER MENU
   ========================================================================== */

@media (max-width: 900px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-puzzle-img {
    margin: 8px auto 0 auto;
  }

  .hero-video-card {
    width: 100%;
    max-width: 460px;
  }

  .desktop-lang {
    right: 15px;
    top: 48px;
  }
}

@media (max-width: 768px) {
  /* Site Header for Mobile */
  .site-header {
    padding-top: 0;
  }

  /* Fixed Mobile Header Bar */
  .mobile-header-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
  }

  .mobile-logo-link {
    display: flex;
    align-items: center;
  }

  .mobile-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
  }

  .mobile-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    height: 38px;
  }

  /* Language Switcher in Mobile Header */
  .desktop-lang {
    display: none;
  }

  .mobile-lang {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
  }

  .mobile-lang .lang-dropdown-toggle {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 6px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 10px !important;
    font-size: 0.80rem !important;
    font-weight: 700 !important;
    color: #36324f !important;
    background: rgba(140, 136, 167, 0.16) !important;
    border: 1px solid rgba(54, 50, 79, 0.22) !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-sizing: border-box !important;
    line-height: 1 !important;
    transition: all 0.2s ease;
    margin: 0 !important;
  }

  .mobile-lang .lang-dropdown-toggle:hover {
    background: rgba(140, 136, 167, 0.28) !important;
  }

  .mobile-lang .lang-dropdown-toggle .chevron {
    font-size: 0.70rem;
    line-height: 1;
    display: inline-block;
  }

  .mobile-lang .lang-dropdown-toggle span {
    line-height: 1;
    display: inline-block;
  }

  .mobile-lang .lang-dropdown-toggle .lang-flag {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    margin: 0 !important;
  }

  /* Dropdown Menu on Mobile */
  .mobile-lang .lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    min-width: 95px;
    overflow: hidden;
    z-index: 1010;
  }

  /* ========================================================================
     ANIMATED HAMBURGER BUTTON (Morphs to 'X')
     ======================================================================== */
  .hamburger-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    background: rgba(140, 136, 167, 0.16) !important;
    border: 1px solid rgba(54, 50, 79, 0.22) !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .hamburger-btn:hover,
  .hamburger-btn.is-active {
    background-color: #36324f !important;
    border-color: #36324f !important;
  }

  .hamburger-box {
    width: 20px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 20px;
    height: 2.2px;
    background-color: #36324f;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19),
                background-color 0.2s ease;
  }

  .hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: '';
    display: block;
  }

  .hamburger-inner::before {
    top: -6px;
    transition: top 0.12s 0.22s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  .hamburger-inner::after {
    bottom: -6px;
    transition: bottom 0.12s 0.22s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  /* Hamburger Active Animation: morph into X */
  .hamburger-btn.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: #ffffff;
    transition: transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .hamburger-btn.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.12s ease-out, opacity 0.12s 0.12s ease-out;
  }

  .hamburger-btn.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: #ffffff;
    transition: bottom 0.12s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  /* ========================================================================
     MOBILE NAVIGATION DRAWER
     ======================================================================== */
  .nav-bar-container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #36324f;
    flex-direction: column;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                visibility 0.32s;
    z-index: 999;
  }

  .nav-bar-container.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Backdrop Overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 20, 35, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-item {
    width: 100%;
    flex-direction: column;
  }

  .nav-link {
    width: 100%;
    padding: 15px 22px;
    font-size: 0.90rem;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-item.active .nav-link {
    background-color: #272338;
    color: #daedff;
    border-left: 4px solid #daedff;
  }

  /* Submenu Accordion on Mobile */
  .dropdown-trigger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dropdown-trigger-row .nav-link {
    border-bottom: none;
    flex: 1;
  }

  .mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.25s ease;
  }

  .mobile-submenu-toggle.rotated {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: #2b273d;
    box-shadow: none;
    border-radius: 0;
  }

  .nav-item-dropdown.submenu-open .dropdown-menu {
    display: block;
  }

  .dropdown-link {
    padding: 12px 20px 12px 38px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Body Offset & Layout for Fixed Header */
  .hero-wrapper {
    margin-top: 75px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-branding {
    width: 100%;
    justify-content: center;
  }

  .hero-puzzle-img {
    max-width: 100%;
    width: auto;
    max-height: 180px;
    height: auto;
    margin-left: 0;
    object-fit: contain;
  }

  .hero-video-card {
    width: 100%;
    max-width: 350px;
    height: 198px;
  }

  .cta-banner-wrapper {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 8px auto 20px auto;
  }

  .cta-buttons-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .btn-cta-pill {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .main-content-box {
    width: calc(100% - 24px);
    padding: 20px 16px;
    margin: 0 auto 30px auto;
    box-sizing: border-box;
  }

  .site-title {
    font-size: 2.4rem;
  }

  .site-subtitle {
    font-size: 1.5rem;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-col:not(:last-child)::after {
    display: none;
  }

  .content-row-2col,
  .content-row-2col-reverse {
    grid-template-columns: 1fr;
  }

  .team-row {
    flex-direction: column;
    align-items: center;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-info {
    text-align: center;
    width: 100%;
  }

  .footer-title {
    font-size: 2.3rem;
  }
}
