/* ==========================================================================
   Futurism International — brand styles
   Palette from brand guideline: teal #1899B1 · sky #74A3D2 · deep #28619A
   Type: Playfair Display (headings) · Inter (body) · Philosopher (accents)
   ========================================================================== */

:root {
  --teal: #1899B1;
  --sky: #74A3D2;
  --deep: #28619A;
  --navy: #123A5C;
  --ink: #17242e;
  --muted: #5b6b78;
  --paper: #ffffff;
  --mist: #f2f6f9;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Philosopher", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 20px 60px rgba(18, 58, 92, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* Skip link — visible only when focused via keyboard */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1001;
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus { top: 0; }

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--navy), var(--deep));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.preloader.done { opacity: 0; visibility: hidden; }

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

.preloader-flower { width: 84px; height: 84px; margin-bottom: 18px; }

.preloader-flower .petal {
  fill: rgba(255, 255, 255, 0.9);
  transform-origin: 50% 50%;
  animation: petalPulse 1.6s ease-in-out infinite;
}

.preloader-flower .petal:nth-child(2) { animation-delay: 0.1s; }
.preloader-flower .petal:nth-child(3) { animation-delay: 0.2s; }
.preloader-flower .petal:nth-child(4) { animation-delay: 0.3s; }
.preloader-flower .petal:nth-child(5) { animation-delay: 0.4s; }
.preloader-flower .petal:nth-child(6) { animation-delay: 0.5s; }
.preloader-flower .petal:nth-child(7) { animation-delay: 0.6s; }
.preloader-flower .petal:nth-child(8) { animation-delay: 0.7s; }

.flower-group {
  transform-origin: 50% 50%;
  animation: spin 8s linear infinite;
}

@keyframes petalPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preloader-word {
  font-family: var(--font-accent);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ==========================================================================
   Scroll progress
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  z-index: 999;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.nav-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { position: relative; display: block; height: 44px; }
.nav-logo img { height: 100%; width: auto; transition: opacity 0.4s; }
.nav-logo-white { position: absolute; inset: 0; }
.nav-logo-color { opacity: 0; }

.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(18, 58, 92, 0.08);
  padding: 10px 0;
}

.nav.scrolled .nav-logo-color { opacity: 1; }
.nav.scrolled .nav-logo-white { opacity: 0; }

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.nav.scrolled .nav-link { color: var(--ink); }
.nav.scrolled .nav-link:hover { color: var(--teal); }

.nav-cta {
  border: 1.5px solid currentColor;
  padding: 8px 22px;
  border-radius: 100px;
  transition: all 0.3s;
}

.nav-cta::after { display: none; }

.nav-cta:hover { background: var(--teal); border-color: var(--teal); color: #fff !important; }

/* Language switcher — sits right after Contact in the nav */
.lang-switch { position: relative; z-index: 30; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.lang-btn:active { transform: scale(0.95); }

.lang-flag { font-size: 1rem; line-height: 1; }

.lang-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.lang-switch.open .lang-chevron { transform: rotate(180deg); }

.nav.scrolled .lang-btn {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.nav.scrolled .lang-btn:hover { background: rgba(40, 97, 154, 0.06); }

/* Keep the switcher readable over the white mobile menu overlay */
.nav.open .lang-btn {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 122px;
  background: #ffffff;
  border: 1px solid rgba(40, 97, 154, 0.1);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 50px rgba(18, 58, 92, 0.25);
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.lang-opt span { font-size: 1.05rem; line-height: 1; }

.lang-opt:hover { background: var(--mist); transform: translateX(2px); }
.lang-opt:active { transform: scale(0.96); }

.lang-opt.active {
  border-color: var(--teal);
  background: rgba(24, 153, 177, 0.08);
  color: var(--deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 20;
}

.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.nav.scrolled .nav-toggle span,
.nav.open .nav-toggle span { background: var(--ink); }

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

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

/* Press feedback — buttons visibly sink when clicked */
.btn:active { transform: translateY(1px) scale(0.965) !important; transition-duration: 0.08s; }

.btn:focus-visible {
  outline: 3px solid rgba(24, 153, 177, 0.55);
  outline-offset: 3px;
}

/* Click ripple (injected by js/main.js) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.65s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.btn-light .ripple { background: rgba(40, 97, 154, 0.28); }

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

a, button { -webkit-tap-highlight-color: transparent; }

.btn-primary {
  background: linear-gradient(120deg, var(--teal), var(--deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(24, 153, 177, 0.35);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(24, 153, 177, 0.45); }

.btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }

.btn-light {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 58, 92, 0.55) 0%, rgba(18, 58, 92, 0.35) 45%, rgba(18, 58, 92, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 60px;
  max-width: 900px;
}

.hero-kicker {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  line-height: 1.06;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.accent-italic {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #9fd4e2, #cfe2f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; transform: translateY(110%); }

body.loaded .hero-line > span { animation: riseUp 1.1s var(--ease-out) forwards; }
body.loaded .hero-line:nth-child(2) > span { animation-delay: 0.15s; }

@keyframes riseUp { to { transform: translateY(0); } }

.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; transform: translateY(120%); opacity: 0; }

body.loaded .reveal-line > span { animation: riseFade 1s var(--ease-out) 0.35s forwards; }
body.loaded .hero-kicker > span { animation-delay: 0.05s; }

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

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

body.loaded .hero-actions { animation: fadeIn 1s ease 0.75s forwards; }

@keyframes fadeIn { to { opacity: 1; } }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}

.hero-scroll:hover { opacity: 1; transform: translateX(-50%) translateY(-3px); }

.hero-scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid var(--deep);
  border-radius: 14px;
  position: relative;
}

.hero-scroll-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--teal);
  animation: scrollDot 1.7s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-height: 640px) {
  .hero-scroll { display: none; }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(40px, 8vw, 110px);
  z-index: 2;
}

/* Floating petals */
.hero-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.floating-petal {
  position: absolute;
  width: 130px;
  opacity: 0.16;
}

.floating-petal path { fill: #fff; }

.floating-petal.p1 { top: 18%; left: 8%; animation: floaty 9s ease-in-out infinite; }
.floating-petal.p2 { top: 60%; right: 10%; width: 90px; animation: floaty 11s ease-in-out 1s infinite reverse; }
.floating-petal.p3 { bottom: 22%; left: 20%; width: 70px; animation: floaty 13s ease-in-out 2s infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-34px) rotate(24deg); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--paper);
  padding: 34px 0 10px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-style: italic;
  color: rgba(40, 97, 154, 0.35);
}

.marquee .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section { padding: 110px 0; }

.section-kicker {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.75rem;
  color: var(--teal);
  margin-bottom: 18px;
}

.section-kicker.light { color: #a8d4e0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--navy);
}

.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
}

.section-title.light { color: #fff; }
.section-title.light em { color: #9fd4e2; }

.lead {
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
}

p { color: var(--muted); }

.lead { color: var(--ink); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s);
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding-top: 70px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.about-callout {
  margin-top: 26px;
  padding: 22px 26px;
  border-left: 3px solid var(--teal);
  background: var(--mist);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--navy);
}

.about-photo {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  box-shadow: var(--shadow-soft);
}

.about-photo img {
  border-radius: 20px;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
}

.about-flower {
  position: absolute;
  width: 130px;
  bottom: -40px;
  left: -44px;
  filter: drop-shadow(0 10px 24px rgba(24, 153, 177, 0.35));
}

.petal-solid { fill: var(--teal); transform-origin: 50% 50%; }

.about-flower .petal-solid:nth-child(even) { fill: var(--sky); }

.spin-slow g {
  transform-origin: 50% 50%;
  animation: spin 26s linear infinite;
}

.about-caption {
  margin-top: 54px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tilt cards */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ==========================================================================
   Philosophy — parallax quote
   ========================================================================== */

.philosophy {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
  text-align: center;
}

.philosophy-bg { position: absolute; inset: -18% 0; z-index: 0; }

.philosophy-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.philosophy-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(18, 58, 92, 0.88), rgba(24, 153, 177, 0.72));
}

.philosophy-content { position: relative; z-index: 1; max-width: 860px; }

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.25;
  color: #fff;
  font-weight: 500;
  margin-bottom: 30px;
}

.philosophy-quote em { font-style: italic; color: #9fd4e2; }

.quote-mark { color: #9fd4e2; }

.philosophy-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 18px;
  font-weight: 300;
}

.philosophy-purpose {
  font-family: var(--font-accent);
  color: #bfe4ee;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

/* ==========================================================================
   Vision & Mission
   ========================================================================== */

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.vision-card {
  background: linear-gradient(145deg, var(--deep), var(--teal));
  border-radius: 24px;
  padding: 48px 42px;
  color: #fff;
  position: sticky;
  top: 110px;
  box-shadow: 0 24px 60px rgba(40, 97, 154, 0.35);
  overflow: hidden;
}

.vision-card::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.vision-card h3 {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  margin-bottom: 18px;
  color: #bfe4ee;
}

.vision-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  color: #fff;
}

.mission-list { display: flex; flex-direction: column; }

.mission-item {
  display: flex;
  gap: 26px;
  align-items: baseline;
  padding: 26px 6px;
  border-bottom: 1px solid rgba(40, 97, 154, 0.15);
  transition: background 0.3s, padding-left 0.3s;
}

.mission-item:hover { background: var(--mist); padding-left: 18px; border-radius: 12px; }

.mission-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sky);
  min-width: 44px;
}

.mission-item p { font-size: 1.06rem; color: var(--ink); }

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.96) 22%,
      rgba(242, 246, 249, 0.82) 48%,
      rgba(242, 246, 249, 0.45) 74%,
      rgba(242, 246, 249, 0.15) 100%),
    url("../assets/img/samarkand.webp") center bottom / cover no-repeat;
}

.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 6px 24px rgba(18, 58, 92, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(18, 58, 92, 0.14);
}

.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(24, 153, 177, 0.12), rgba(116, 163, 210, 0.16));
  color: var(--teal);
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-out), background 0.4s;
}

.service-icon svg { width: 30px; height: 30px; }

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.08);
  background: linear-gradient(140deg, var(--teal), var(--deep));
  color: #fff;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p { font-size: 0.96rem; }

/* ==========================================================================
   Values
   ========================================================================== */

.values {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(116, 163, 210, 0.2), transparent),
    linear-gradient(150deg, rgba(18, 58, 92, 0.93) 0%, rgba(40, 97, 154, 0.88) 60%, rgba(29, 127, 148, 0.86) 100%),
    url("../assets/img/mosaic.webp") center / cover no-repeat fixed;
}

@supports (-webkit-touch-callout: none) {
  /* iOS ignores fixed backgrounds; fall back to scroll to avoid jank */
  .values { background-attachment: scroll; }
}

.values-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.value-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 30px 22px;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
}

.value-chip:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.value-chip svg {
  width: 34px; height: 34px;
  color: #9fd4e2;
  margin-bottom: 18px;
}

.value-chip h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.value-chip p { color: rgba(255, 255, 255, 0.75); font-size: 0.86rem; }

/* ==========================================================================
   Why us
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.why-promise {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--deep);
  padding-left: 24px;
  border-left: 3px solid var(--sky);
  margin-top: 8px;
}

.why-list { display: flex; flex-direction: column; gap: 14px; }

.why-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--mist);
  border-radius: 18px;
  padding: 30px 32px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.why-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-soft);
}

.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
  padding-top: 4px;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.why-item p { font-size: 0.96rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  padding: 150px 0 130px;
  overflow: hidden;
  text-align: center;
}

.contact-bg { position: absolute; inset: -15% 0; }

.contact-bg img { width: 100%; height: 100%; object-fit: cover; }

.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 58, 92, 0.9), rgba(24, 118, 141, 0.85));
}

.contact-content { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  text-align: left;
}

.contact-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: 38px;
  font-weight: 600;
}

.contact-title em { font-style: italic; color: #9fd4e2; }

/* Contact channel pills — WhatsApp on top, then email, then Instagram */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 24px 13px 14px;
  border-radius: 100px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  width: fit-content;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.channel-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.channel-pill:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

.channel-pill:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.channel-pill:hover .channel-icon { transform: scale(1.1) rotate(-6deg); }

.channel-icon svg { width: 23px; height: 23px; }

.channel-wa .channel-icon { background: #25d366; color: #fff; }
.channel-mail .channel-icon { background: linear-gradient(135deg, var(--sky), var(--teal)); color: #fff; }
.channel-ig .channel-icon { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }

.channel-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.35;
}

.channel-text small {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #9fd4e2;
}

/* How we work — three quick steps */
.how-we-work { margin-bottom: 34px; }

.how-we-work > h4 {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: #9fd4e2;
  margin-bottom: 16px;
}

.work-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.work-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.work-step strong {
  color: #fff;
  font-size: 0.95rem;
  display: block;
}

.work-step p { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }

/* Keep the chat button clear of the contact form's send buttons */
body:has(.page[data-page="contact"].active) .chatbot { bottom: 90px; }

.contact-address h4 {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: #9fd4e2;
  margin-bottom: 10px;
}

.contact-address p { color: rgba(255, 255, 255, 0.85); font-size: 0.93rem; }

/* Message form card */
.contact-form-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-hint { font-size: 0.92rem; margin-bottom: 26px; }

.form-field { position: relative; margin-bottom: 18px; }

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 22px 18px 10px;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.form-field input:hover,
.form-field textarea:hover { background: #eaf1f6; }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24, 153, 177, 0.14);
}

.form-field label {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.22s var(--ease-out);
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.form-field.error input,
.form-field.error textarea { border-color: #e05a4e; background: #fdf1f0; }

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  font-family: var(--font-body);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45); }

.btn-wa svg { width: 19px; height: 19px; vertical-align: -4px; margin-right: 6px; }

.btn-mailsend {
  background: linear-gradient(120deg, var(--teal), var(--deep));
  color: #fff;
  border: none;
  font-family: var(--font-body);
  box-shadow: 0 10px 26px rgba(24, 153, 177, 0.3);
  flex: 1;
  min-width: 160px;
  text-align: center;
}

.btn-mailsend:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(24, 153, 177, 0.42); }

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--teal);
  min-height: 1.2em;
}

.form-note.error { color: #e05a4e; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--navy);
  padding: 64px 0 40px;
  text-align: center;
}

.footer-logo { height: 54px; width: auto; margin: 0 auto 14px; }

.footer-tag {
  font-family: var(--font-accent);
  color: #9fd4e2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: #fff; }

.footer-copy { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; }

/* ==========================================================================
   Pages & transitions
   ========================================================================== */

.page { display: none; }

.page.active {
  display: block;
  animation: pageIn 0.7s var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full-screen wipe between pages */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: linear-gradient(135deg, var(--navy), var(--deep) 55%, var(--teal));
  transform: translateY(101%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.page-wipe.cover {
  transition: transform 0.36s var(--ease-out);
  transform: translateY(0);
  pointer-events: all;
}

.page-wipe.leave {
  transition: transform 0.44s var(--ease-out);
  transform: translateY(-101%);
}

.wipe-flower {
  width: 90px;
  height: 90px;
  opacity: 0;
  transition: opacity 0.3s;
}

.page-wipe.cover .wipe-flower { opacity: 1; }
.page-wipe.leave .wipe-flower { opacity: 0; }

.wipe-flower .petal-solid { fill: rgba(255, 255, 255, 0.9); }

.wipe-flower .flower-group {
  transform-origin: 50% 50%;
  animation: spin 3s linear infinite;
}

/* Subpage hero strip */
.page-hero {
  padding: 170px 0 60px;
  background:
    radial-gradient(900px 300px at 90% 0%, rgba(116, 163, 210, 0.16), transparent),
    var(--mist);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  line-height: 1.12;
  color: var(--navy);
}

.page-title em { font-style: italic; font-weight: 500; color: var(--teal); }

/* Photo variant — Shah-i-Zinda mosaic from the profile deck */
.page-hero-photo {
  background:
    linear-gradient(180deg, rgba(18, 58, 92, 0.72), rgba(18, 58, 92, 0.55)),
    url("../assets/img/mosaic.webp") center 30% / cover no-repeat;
}

.page-hero-photo .page-title { color: #fff; }
.page-hero-photo .page-title em { color: #9fd4e2; }

/* Dark-topped subpages need clearance under the fixed nav */
.subpage > .philosophy,
.subpage > .values,
.subpage > .contact { padding-top: 190px; }

.subpage .philosophy { min-height: 100svh; display: flex; align-items: center; }

.subpage .contact { min-height: 92svh; display: flex; align-items: center; }

/* "Next page" call-to-action */
.page-next { margin-top: 44px; }

/* ==========================================================================
   Pillars (Who we are — homepage)
   ========================================================================== */

.pillars { padding-top: 50px; }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pillars-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar-card {
  background: var(--mist);
  border-radius: 20px;
  padding: 30px 26px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background 0.4s;
}

.pillar-card:nth-child(2) { transform: translateY(18px); }
.pillar-card:nth-child(4) { transform: translateY(18px); }

.pillar-card:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pillar-card:nth-child(2):hover,
.pillar-card:nth-child(4):hover { transform: translateY(12px); }

.pillar-card svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar-card p { font-size: 0.88rem; }

/* ==========================================================================
   Social links
   ========================================================================== */

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ig-icon { width: 20px; height: 20px; flex-shrink: 0; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s var(--ease-out);
}

.footer-social-btn svg { width: 20px; height: 20px; }

.footer-social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-4px);
}

.footer-social-btn:active { transform: translateY(-1px) scale(0.94); }

/* ==========================================================================
   Home teasers
   ========================================================================== */

.teasers { padding-top: 40px; }

.teaser-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.teaser-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--mist);
  border-radius: 20px;
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background 0.4s;
}

.teaser-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  opacity: 0;
  transition: opacity 0.4s;
}

.teaser-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(18, 58, 92, 0.22);
}

.teaser-card:active { transform: translateY(-2px) scale(0.98); transition-duration: 0.08s; }

.teaser-card:focus-visible {
  outline: 3px solid rgba(24, 153, 177, 0.55);
  outline-offset: 3px;
}

.teaser-card:hover::before { opacity: 1; }

.teaser-card > * { position: relative; }

.teaser-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--sky);
  display: block;
  margin-bottom: 20px;
  transition: color 0.4s;
}

.teaser-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color 0.4s;
}

.teaser-card p {
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.4s;
}

.teaser-arrow {
  position: absolute;
  top: 30px;
  right: 28px;
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform 0.4s var(--ease-out), color 0.4s;
}

.teaser-card:hover .teaser-num { color: rgba(255, 255, 255, 0.8); }
.teaser-card:hover h3 { color: #fff; }
.teaser-card:hover p { color: rgba(255, 255, 255, 0.85); }
.teaser-card:hover .teaser-arrow { color: #fff; transform: translateX(6px); }

/* ==========================================================================
   Leadership
   ========================================================================== */

.leadership { background: var(--mist); }

.leaders-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.leader-card {
  background: #fff;
  border-radius: 20px;
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.leader-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 18px;
  background: var(--mist);
  border: 3px solid #fff;
  box-shadow: 0 8px 26px rgba(18, 58, 92, 0.18);
  transition: transform 0.4s var(--ease-out);
}

.leader-card:hover .leader-photo { transform: scale(1.06); }

.leader-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.leader-role {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.leader-bio { font-size: 0.85rem; line-height: 1.6; }

/* ==========================================================================
   Success story
   ========================================================================== */

.story { padding-top: 0; }

.story-card {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(116, 163, 210, 0.3), transparent),
    linear-gradient(140deg, var(--navy), var(--deep) 65%, #1d7f94);
  border-radius: 28px;
  color: #fff;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
}

.story-content { padding: clamp(40px, 6vw, 70px); }

.story-photo { position: relative; min-height: 420px; }

.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 58, 92, 0.05) 35%, rgba(18, 58, 92, 0.78) 100%);
}

.story-photo .story-quote {
  position: absolute;
  left: clamp(24px, 4vw, 44px);
  right: clamp(24px, 4vw, 44px);
  bottom: 64px;
  border-left: 3px solid #9fd4e2;
  padding-left: 20px;
  margin: 0;
}

.story-caption {
  position: absolute;
  left: clamp(24px, 4vw, 44px);
  bottom: 24px;
  font-family: var(--font-accent);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.85);
}

.story-kicker {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: #9fd4e2;
  margin-bottom: 18px;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 22px;
}

.story-title em { font-style: italic; color: #9fd4e2; }

.story-text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 40px;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: #9fd4e2;
  display: block;
  line-height: 1.1;
  margin-bottom: 8px;
}

.story-stats .stat p { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }

.story-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Partners
   ========================================================================== */

.partners { padding-top: 0; }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  /* Width fits exactly 4 cards per row → 7 logos break as 4 + 3, both rows centered */
  max-width: calc(4 * 216px + 3 * 18px);
  margin: 40px auto 40px;
}

.partner-logo {
  background: #fff;
  border: 1px solid rgba(40, 97, 154, 0.1);
  border-radius: 18px;
  padding: 20px 28px;
  display: grid;
  place-items: center;
  width: 216px;
  height: 124px;
  box-shadow: 0 4px 18px rgba(18, 58, 92, 0.05);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.partner-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(18, 58, 92, 0.14);
}

.partner-logo img {
  max-height: 68px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s var(--ease-out);
}

.partner-logo:hover img { transform: scale(1.07); }

/* Trust strip — the five proof points from the profile deck */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.trust-item {
  background: var(--mist);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.35s var(--ease-out), background 0.35s, box-shadow 0.35s;
}

.trust-item:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
  margin-bottom: 12px;
}

.trust-item h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep);
  margin-bottom: 8px;
}

.trust-item p { font-size: 0.8rem; line-height: 1.5; }

/* Ecosystem block — Clickcorp network + Vortech partner */
.eco-block {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid rgba(40, 97, 154, 0.12);
  text-align: center;
}

.eco-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.eco-lead {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 0.98rem;
}

/* Ecosystem: Clickcorp and Vortech as equal peers, members nested below */
.eco-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 28px;
  margin-bottom: 46px;
}

.eco-featured {
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s var(--ease-out);
}

.eco-featured:hover { transform: translateY(-4px); }

.eco-flogo {
  height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
}

.eco-flogo-vt { padding: 4px 0; }

.eco-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal);
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.eco-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.eco-subhead {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--teal);
  margin-bottom: 22px;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 262px));
  justify-content: center;
  gap: 18px;
}

.eco-member {
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s var(--ease-out);
}

.eco-member:hover { transform: translateY(-3px); }

.eco-member img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
}

.eco-member .eco-desc { font-size: 0.85rem; }

@media (max-width: 1020px) {
  .eco-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
}

@media (max-width: 860px) {
  .eco-top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .eco-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Intent banner (What's next)
   ========================================================================== */

.intent-banner {
  position: relative;
  background:
    radial-gradient(900px 400px at 15% 110%, rgba(116, 163, 210, 0.16), transparent),
    #ffffff;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
}

.banner-petal {
  position: absolute;
  width: 420px;
  right: -120px;
  top: -80px;
  opacity: 0.08;
  transform: rotate(35deg);
}

.banner-petal path { fill: var(--teal); }

.intent-quote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 24px;
}

.intent-quote em { font-style: italic; color: var(--teal); }

.intent-text {
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

/* ==========================================================================
   Chatbot — Fia
   ========================================================================== */

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  font-family: var(--font-body);
}

.chatbot-fab {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--deep));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px rgba(24, 153, 177, 0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.chatbot-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 44px rgba(24, 153, 177, 0.55); }
.chatbot-fab:active { transform: scale(0.92); transition-duration: 0.08s; }

.chatbot-fab svg { width: 26px; height: 26px; position: absolute; transition: opacity 0.25s, transform 0.35s var(--ease-out); }

.fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.chatbot.open .fab-icon-chat { opacity: 0; transform: rotate(90deg) scale(0.5); }
.chatbot.open .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(24, 153, 177, 0.6);
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.chatbot.open .fab-pulse { display: none; }

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.chatbot-fab.wiggle { animation: fabWiggle 1.2s ease-in-out; }

@keyframes fabWiggle {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg) scale(1.08); }
  30% { transform: rotate(12deg) scale(1.08); }
  45% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
}

/* Unread badge */
.fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2.5px solid #fff;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-badge.show { transform: scale(1); }

/* Greeting teaser bubble */
.chatbot-teaser {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(300px, calc(100vw - 44px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-radius: 20px 20px 5px 20px;
  padding: 18px 34px 18px 18px;
  box-shadow: 0 20px 60px rgba(18, 58, 92, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.chatbot-teaser.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-teaser:hover { box-shadow: 0 26px 70px rgba(18, 58, 92, 0.4); }

.chatbot.open .chatbot-teaser { opacity: 0; pointer-events: none; }

.teaser-wave {
  font-size: 1.7rem;
  line-height: 1;
  animation: waveHand 1.8s ease-in-out infinite;
  transform-origin: 70% 80%;
}

@keyframes waveHand {
  0%, 40%, 100% { transform: rotate(0); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(12deg); }
}

.teaser-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.teaser-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 3px;
}

.teaser-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.teaser-close:hover { background: var(--mist); color: var(--ink); }

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(370px, calc(100vw - 44px));
  height: min(540px, calc(100dvh - 130px));
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(18, 58, 92, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.chatbot.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  background: linear-gradient(120deg, var(--navy), var(--deep) 60%, var(--teal));
  color: #fff;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chatbot-avatar svg { width: 26px; height: 26px; }

.chatbot-avatar .flower-group { transform-origin: 50% 50%; animation: spin 10s linear infinite; }

.chatbot-title { display: flex; flex-direction: column; line-height: 1.3; }

.chatbot-title strong { font-family: var(--font-display); font-size: 1.05rem; }

.chatbot-title span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.75); display: flex; align-items: center; gap: 6px; }

.chatbot-status {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: petalPulse 2s ease-in-out infinite;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--mist);
  overscroll-behavior: contain;
}

.chat-msg {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-line;
  animation: msgIn 0.3s var(--ease-out);
  word-wrap: break-word;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 10px rgba(18, 58, 92, 0.07);
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--teal), var(--deep));
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat-msg.typing {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
}

.chat-msg.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky);
  animation: typingBounce 1.1s ease-in-out infinite;
}

.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: var(--mist);
}

.chatbot-chips:empty { padding: 0; }

.chat-chip {
  border: 1.5px solid rgba(24, 153, 177, 0.45);
  background: #fff;
  color: var(--deep);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  animation: msgIn 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.chat-chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.chat-chip:active { transform: scale(0.94); }

.chatbot-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(18, 58, 92, 0.08);
}

.chatbot-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  padding: 10px 6px;
  background: transparent;
}

.chatbot-input input::placeholder { color: var(--muted); }

.chatbot-input button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, var(--teal), var(--deep));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.chatbot-input button svg { width: 18px; height: 18px; margin-left: 2px; }

.chatbot-input button:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(24, 153, 177, 0.4); }
.chatbot-input button:active { transform: scale(0.9); }

@media (max-width: 560px) {
  .chatbot { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chatbot-fab { width: 56px; height: 56px; }
  .chatbot-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto;
    height: min(560px, calc(100dvh - 120px));
  }
  .chat-msg { font-size: 0.92rem; }
  .chat-chip { padding: 9px 16px; font-size: 0.84rem; }
  .chatbot-input input { font-size: 16px; } /* prevents iOS zoom-on-focus */
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-row { grid-template-columns: repeat(3, 1fr); }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }

  .about-grid,
  .vision-grid,
  .why-grid,
  .pillars-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .vision-card { position: static; }

  .about-flower { left: auto; right: -20px; width: 100px; }

  /* iOS Safari: backdrop-filter on the nav turns it into the containing
     block for fixed children, shrinking the menu overlay to the nav bar.
     Use a solid bar on mobile so the fullscreen menu positions correctly. */
  .nav.scrolled,
  .nav.open {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 30px rgba(18, 58, 92, 0.08);
  }

  .nav.open .nav-logo-color { opacity: 1; }
  .nav.open .nav-logo-white { opacity: 0; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-102%);
    transition: transform 0.5s var(--ease-out);
    z-index: 10;
  }

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

  .nav-links .nav-link { color: var(--ink); font-size: 1.3rem; }

  /* Mobile menu: center the switcher and open it UPWARD so both
     languages stay fully visible above the screen edge */
  .nav-links .lang-menu {
    left: 50%;
    right: auto;
    margin-left: -61px;
    top: auto;
    bottom: calc(100% + 10px);
    transform-origin: bottom center;
    box-shadow: 0 -12px 40px rgba(18, 58, 92, 0.22);
  }

  .nav-toggle { display: flex; }

  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 44px; }
  .subpage > .philosophy,
  .subpage > .values,
  .subpage > .contact { padding-top: 140px; }
  .values-row { grid-template-columns: 1fr 1fr; }
  .value-chip:last-child { grid-column: 1 / -1; }
  .why-item { padding: 24px 20px; gap: 18px; }
  .contact-form-card { padding: 32px 22px; }
  .channel-pill { width: 100%; }

  /* Comfortable phone layout */
  .section { padding: 64px 0; }
  .hero-content { padding: 100px 18px 40px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .btn { padding: 15px 30px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .mission-item { gap: 16px; padding: 22px 4px; }
  .vision-card { padding: 36px 26px; }
  .philosophy { padding: 110px 0 90px; }
  .philosophy-quote { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .contact-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .page-title { font-size: clamp(2rem, 9.5vw, 2.7rem); }
  .section-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .footer { padding: 48px 0 calc(30px + env(safe-area-inset-bottom)); }
  .marquee-track span { font-size: 1.15rem; }
  .lang-btn { padding: 8px 14px; }
  .pillar-card:nth-child(2),
  .pillar-card:nth-child(4) { transform: none; }
  .leaders-grid { grid-template-columns: 1fr; }
  .story-card { grid-template-columns: 1fr; }
  .story-photo { min-height: 340px; }
  .story-stats { grid-template-columns: 1fr; gap: 22px; }
  .partner-logos { gap: 12px; }
  .partner-logo { width: calc(50% - 6px); height: 96px; padding: 14px 18px; }
  .partner-logo img { max-height: 52px; max-width: 130px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:last-child { grid-column: 1 / -1; }
  .intent-banner { padding: 80px 0; }
}
