/* PECI Website — Single-Page Styles */

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

:root {
  --cream:       #faf9f5;
  --cream-dark:  #f1eee9;
  --anthracite:  #1c1c1c;
  --anthracite-card: #171717;
  --anthracite-border: #232323;
  --teal:        #0891b2;
  --teal-light:  #22d3ee;
  --teal-dark:   #0e7490;
  --gold:        #d4a843;
  --gray-warm:   #94a3b8;
  --text-dark:   #0a0a0a;
  --text-muted:  #737373;
}

html { scroll-behavior: auto; }

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--teal-dark); border-radius: 3px; }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0,0,0,0.06);
}

/* Active nav link */
.nav-anchor.nav-active {
  color: var(--teal) !important;
}
.nav-anchor.nav-active.magnetic-btn {
  color: white !important;
}

/* ── HERO SLIDER ────────────────────────────────────────────────────────── */
.hero-slider { position: relative; height: 100vh; overflow: hidden; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(250, 249, 245, 0.75) 0%,
    rgba(250, 249, 245, 0.55) 50%,
    rgba(241, 238, 233, 0.45) 100%
  );
}

/* Slider dots */
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* ── MOBILE MENU ─────────────────────────────────────────────────────────── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}
.mobile-menu.open { transform: translateX(0); }

/* ── SECTION DOTS ────────────────────────────────────────────────────────── */
.section-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  flex-direction: column;
  gap: 0.65rem;
}
.section-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(8, 145, 178, 0.35);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.section-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.section-dot:hover::before,
.section-dot.active::before { opacity: 1; }
.section-dot.active {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.45);
}

/* ── SECTION SHARED ──────────────────────────────────────────────────────── */
.sp-section {
  position: relative;
  will-change: clip-path;
}

/* Large decorative background number */
.section-bg-number {
  position: absolute;
  top: 2.5rem; right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(7rem, 16vw, 18rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(8, 145, 178, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

/* Light-section variant: even subtler stroke */
.section-light .section-bg-number {
  -webkit-text-stroke: 1px rgba(8, 145, 178, 0.05);
}

/* Section eyebrow label */
.section-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* Section rule */
.section-rule {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 1px;
  margin-top: 1rem;
}

/* Gradient heading text */
.gradient-text {
  background: linear-gradient(110deg, var(--teal) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FEATURE CARDS (About — light section) ──────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.feature-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease;
}
.feature-card:hover .feature-icon { background: rgba(8, 145, 178, 0.15); }

/* ── SERVICE CARDS ───────────────────────────────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px -10px rgba(8, 145, 178, 0.22);
}
.service-gradient {
  background: linear-gradient(
    to top,
    rgba(28, 28, 28, 0.97) 0%,
    rgba(28, 28, 28, 0.65) 45%,
    rgba(28, 28, 28, 0.15) 100%
  );
  transition: background 0.4s ease;
}
.service-card:hover .service-gradient {
  background: linear-gradient(
    to top,
    rgba(28, 28, 28, 0.98) 0%,
    rgba(8, 145, 178, 0.35) 55%,
    rgba(28, 28, 28, 0.10) 100%
  );
}

/* Service list overlay */
.service-list {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.service-card:hover .service-list {
  opacity: 1;
  pointer-events: auto;
}

/* ── COMPLIANCE CARDS ────────────────────────────────────────────────────── */
.compliance-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 2.25rem;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  box-shadow:
    0 4px 12px -4px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(8, 145, 178, 0.03) inset;
}
.compliance-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  background: #fff;
  box-shadow:
    0 12px 32px -8px rgba(8, 145, 178, 0.12),
    0 4px 12px -2px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(8, 145, 178, 0.1) inset;
}

/* Subtle textured background per card */
.card-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(8, 145, 178, 0.8) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(8, 145, 178, 0.6) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(8, 145, 178, 0.4) 0.5px, transparent 0.5px);
  background-size: 30px 30px, 45px 45px, 20px 20px;
  transition: opacity 0.4s ease;
}
.compliance-card:hover .card-texture { opacity: 0.06; }

/* Prominent icon */
.compliance-icon {
  width: 4.5rem; height: 4.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(8, 145, 178, 0.04));
  border: 1px solid rgba(8, 145, 178, 0.15);
  display: flex; align-items: center; justify-content: center;
  padding: 0.85rem;
  margin-bottom: 1.5rem;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.compliance-card:hover .compliance-icon {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(8, 145, 178, 0.08));
  border-color: rgba(8, 145, 178, 0.4);
  transform: translateZ(12px);
}

/* ── LOGO CAROUSEL ───────────────────────────────────────────────────────── */
.logo-carousel-wrap { overflow: hidden; }

.logo-track {
  display: flex;
  animation: scroll-logos 28s linear infinite;
  width: max-content;
}
.logo-track:hover { animation-play-state: paused; }

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
  width: 11rem; height: 6.5rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.logo-item:hover {
  border-color: rgba(8, 145, 178, 0.35);
  color: var(--teal);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ── CONTACT INFO CARDS ──────────────────────────────────────────────────── */
.contact-info-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.contact-info-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── FORM INPUTS ─────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.875rem;
  padding: 0.875rem 1.125rem;
  color: var(--text-dark);
  font-size: 0.875rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: rgba(115, 115, 115, 0.6); }
.form-input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

/* ── FOOTER LINKS ────────────────────────────────────────────────────────── */
.footer-link {
  color: #6b7280;
  font-size: 0.8125rem;
  transition: color 0.25s ease;
  text-decoration: none;
}
.footer-link:hover { color: var(--teal); }

/* ── STATS SECTION ───────────────────────────────────────────────────────── */
.stats-section { position: relative; overflow: hidden; }
.stats-parallax-bg {
  position: absolute; inset: -20%;
  width: 100%; height: 140%;
  will-change: transform;
}

/* ── BUSINESS CARD ───────────────────────────────────────────────────────── */
.biz-card-scene {
  perspective: 1400px;
}

.biz-card {
  position: relative;
  width: 100%;
  will-change: transform;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(28, 28, 28, 0.97) 0%,
    rgba(23, 23, 23, 0.99) 55%,
    rgba(20, 20, 20, 0.97) 100%
  );
  border: 1px solid var(--anthracite-border);
  box-shadow:
    0 0 0 1px rgba(212, 168, 67, 0.07),
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Top-left inner radial shimmer */
.biz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 15% 0%,
    rgba(8, 145, 178, 0.09) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Bottom-right gold shimmer */
.biz-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at 90% 100%,
    rgba(212, 168, 67, 0.06) 0%,
    transparent 45%
  );
  pointer-events: none;
}

/* Gradient rule between sections */
.biz-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(8, 145, 178, 0.3) 30%,
    rgba(212, 168, 67, 0.25) 50%,
    rgba(8, 145, 178, 0.3) 70%,
    transparent 100%
  );
}

/* Contact icon badge */
.biz-contact-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.18);
  transition: background 0.25s ease, border-color 0.25s ease;
}
a:hover .biz-contact-icon {
  background: rgba(8, 145, 178, 0.16);
  border-color: rgba(8, 145, 178, 0.4);
}

/* QR code frame */
.biz-qr-frame {
  background: #141414;
  border-radius: 0.875rem;
  padding: 8px;
  border: 1px solid var(--anthracite-border);
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.35);
  line-height: 0;
}
.biz-qr-frame canvas,
.biz-qr-frame img { border-radius: 0.25rem; display: block; }

/* ── LOCATION CARDS ──────────────────────────────────────────────────────── */
.biz-location {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--anthracite-border);
  transition: border-color 0.35s ease;
}
.biz-location:hover { border-color: rgba(8, 145, 178, 0.32); }

.biz-location--uk {
  background: linear-gradient(
    135deg,
    rgba(14, 116, 144, 0.1) 0%,
    rgba(23, 23, 23, 0.85) 60%
  );
}
.biz-location--lk {
  background: linear-gradient(
    135deg,
    rgba(212, 168, 67, 0.07) 0%,
    rgba(23, 23, 23, 0.85) 60%
  );
}

/* Dot-grid "map" background */
.biz-loc-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(8, 145, 178, 0.18) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 20%, transparent 75%);
  pointer-events: none;
}
.biz-location--lk .biz-loc-grid {
  background-image: radial-gradient(
    circle,
    rgba(212, 168, 67, 0.15) 1px,
    transparent 1px
  );
}

/* Pulsing location pin */
.biz-pin {
  position: relative;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
}
.biz-pin-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.biz-pin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ring-color, rgba(34, 211, 238, 0.4));
  animation: biz-ping 2.7s ease-out infinite;
}

@keyframes biz-ping {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(3.8); opacity: 0; }
}

/* ── TEXT REVEAL ─────────────────────────────────────────────────────────── */
.txt-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.txt-word-inner { display: inline-block; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slider    { height: 100svh; }
  .section-dots   { display: none !important; }
  .section-bg-number { font-size: clamp(5rem, 22vw, 9rem); opacity: 0.5; }
}
