/* ============================================================
   UPLUS – FINTECH COMMUNITY PLATFORM
   CSS Architecture: Mobile-first, BEM-inspired, CSS custom properties
   Font: Segoe UI stack
   Palette: White (#FFF) + Navy (#1a475f) + accents
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ---------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #1a475f;
  --color-primary-dark: #112e3d;
  --color-primary-light: #2a6080;
  --color-accent: #1a475f;
  --color-accent-light: #1a475f;
  --color-accent-warm: #f4a431;
  --color-white: #ffffff;
  --color-bg: #f8fbfd;
  --color-surface: #ffffff;
  --color-border: #e2edf3;
  --color-text: #1a2d3a;
  --color-text-muted: #5a7a8a;
  --color-text-light: #8aaabb;

  /* Typography */
  --font-base: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI', Georgia, 'Times New Roman', serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26, 71, 95, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 71, 95, 0.10);
  --shadow-lg: 0 12px 40px rgba(26, 71, 95, 0.14);
  --shadow-xl: 0 24px 64px rgba(26, 71, 95, 0.18);
  --shadow-accent: 0 8px 32px rgba(0, 184, 148, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 280ms ease;
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1200px;
  --header-h: 72px;

  /* Z-index layers */
  --z-base: 1;
  --z-float: 10;
  --z-header: 100;
  --z-overlay: 200;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

/* ----------------------------------------------------------
   3. ACCESSIBILITY
   ---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ----------------------------------------------------------
   4. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-12); }
}

/* ----------------------------------------------------------
   5. TYPOGRAPHY HELPERS
   ---------------------------------------------------------- */
.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 184, 148, 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .section-heading { font-size: var(--text-4xl); }
}

.section-subtext {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}

.section-header.centered {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header.centered .section-subtext {
  margin-inline: auto;
}

.text-accent {
  color: var(--color-accent);
}

.inline-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn-white-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ----------------------------------------------------------
   7. SCROLL ANIMATIONS
   ---------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay utilities */
[data-delay="0"]  { transition-delay: 0ms; }
[data-delay="80"] { transition-delay: 80ms; }
[data-delay="100"]{ transition-delay: 100ms; }
[data-delay="160"]{ transition-delay: 160ms; }
[data-delay="200"]{ transition-delay: 200ms; }
[data-delay="240"]{ transition-delay: 240ms; }
[data-delay="300"]{ transition-delay: 300ms; }
[data-delay="320"]{ transition-delay: 320ms; }
[data-delay="400"]{ transition-delay: 400ms; }

/* ----------------------------------------------------------
   8. NAVIGATION
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .navbar { padding-inline: var(--space-8); }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  font-style: italic;
}

.logo-plus {
  color: var(--color-accent);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background: rgba(26, 71, 95, 0.06);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-2);
  padding: 0.55rem 1.3rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(26, 71, 95, 0.06);
}

.burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: hide hamburger */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

/* Mobile nav */
@media (max-width: 899px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    padding: var(--space-4) var(--space-5) var(--space-8);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    z-index: var(--z-overlay);
    height:fit-content;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    display: block;
    padding: var(--space-4) var(--space-3);
    font-size: var(--text-base);
    border-radius: 0;
  }

  .nav-cta-btn {
    display: block;
    margin: var(--space-5) 0 0;
    text-align: center;
    padding: var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
  }
}

/* ----------------------------------------------------------
   9. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-16);
  overflow: hidden;
  background: linear-gradient(135deg, rgb(1 1 1 / 88%) 0%, rgb(0 0 0 / 77%) 100%), url(b1.png) center / cover;
  /*background: url('bg.jpg') center / cover;*/
  background-attachment: fixed;
}

/* Animated background shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: float-shape 12s ease-in-out infinite;
}

.shape-1 {
  width: 700px;
  height: 700px;
  background: var(--color-primary);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  bottom: -100px;
  left: -100px;
  animation-delay: -3s;
  opacity: 0.08;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-accent-warm);
  top: 30%;
  left: 20%;
  animation-delay: -6s;
  opacity: 0.07;
}

.shape-4 {
  width: 120px;
  height: 120px;
  background: var(--color-primary-light);
  top: 20%;
  right: 35%;
  animation-delay: -9s;
  opacity: 0.09;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.03); }
  66%       { transform: translate(-15px, 20px) scale(0.97); }
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .hero-content {
    gap: var(--space-16);
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: 1000px;
    padding: 0;
  }
}

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

/* Hero text */
.hero-badge {
  display: inline-block;
  background: rgba(0, 184, 148, 0.10);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 184, 148, 0.25);
  margin-bottom: var(--space-5);
  animation: fade-in-badge 0.8s ease 0.2s both;
  display: inline-flex;
}
.hero-badge img{
  padding-right: 4px;
}


@keyframes fade-in-badge {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  /*color: var(--color-primary);*/
  color:#fff;
  margin-bottom: var(--space-6);
  animation: fade-in-up 0.9s ease 0.35s both;
}

.headline-accent {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.headline-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-reveal 0.6s ease 1s both;
}

@keyframes underline-reveal {
  to { transform: scaleX(1); }
}

.hero-subtext {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0 auto var(--space-8);
  max-width: 55ch;
  animation: fade-in-up 0.9s ease 0.5s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  justify-content: center;
  animation: fade-in-up 0.9s ease 0.65s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  animation: fade-in-up 0.9s ease 0.8s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.trust-icon { font-size: 1rem; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fade-in-visual 1s ease 0.4s both;
  /*display: none;*/
}

@keyframes fade-in-visual {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.phone-mockup {
  position: relative;
  width: 260px;
  background: var(--color-primary);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.05) inset;
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: #f0f6f9;
  border-radius: 30px;
  overflow: hidden;
  min-height: 480px;
}

/* App UI inside phone */
.app-ui {
  padding: var(--space-8) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: linear-gradient(160deg, #e8f4f8 0%, #f0f9ff 100%);
  min-height: 480px;
}

.app-header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  flex-shrink: 0;
}

.app-greeting { flex: 1; }

.app-name-line {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.app-sub-line {
  font-size: 8px;
  color: var(--color-text-muted);
}

.app-notif {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-balance-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: white;
}

.balance-label {
  font-size: 9px;
  opacity: 0.75;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.balance-amount {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.balance-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 9px;
}

.badge-green {
  background: rgba(0, 184, 148, 0.25);
  color: #4ef5c8;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 700;
}

.balance-period {
  opacity: 0.65;
}

.app-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.group-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.group-card.active-group {
  border-left: 3px solid var(--color-accent);
}

.group-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.g1 { background: rgba(0, 184, 148, 0.12); }
.g2 { background: rgba(244, 164, 49, 0.12); }
.g3 { background: rgba(26, 71, 95, 0.10); }

.group-info { flex: 1; }

.group-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-primary);
}

.group-meta {
  font-size: 7.5px;
  color: var(--color-text-muted);
}

.group-amount {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-primary);
}

.app-progress-bar {
  background: white;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.progress-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.progress-track {
  height: 5px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}

.progress-fill {
  height: 100%;
  width: 74%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 3px;
  animation: progress-grow 1.5s ease 0.8s both;
}

@keyframes progress-grow {
  from { width: 0; }
  to   { width: 74%; }
}

.progress-pct {
  font-size: 8px;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
}

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  animation: card-float 4s ease-in-out infinite;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  z-index: var(--z-float);
}

.card-a {
  bottom: 10%;
  left: -50px;
  animation-delay: -1s;
}

.card-b {
  top: 18%;
  right: -50px;
  animation-delay: -3s;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.fc-icon { font-size: 1.25rem; }

.fc-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.fc-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  animation: fade-in-up 1s ease 1.2s both;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}

/* Hide floating cards on small screens */
@media (max-width: 600px) {
  .floating-card { display: none; }
  .phone-mockup { width: 220px; }
}

/* ----------------------------------------------------------
   10. STATISTICS SECTION
   ---------------------------------------------------------- */
.stats-section {
  background: var(--color-primary);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 80px
  );
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  position: relative;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.stat-number {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------
   11. ABOUT SECTION
   ---------------------------------------------------------- */
.about-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
}

.about-img-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  /*box-shadow: var(--shadow-lg);*/
}

@media (min-width: 1024px) {
  .about-image {
    max-width: 100%;
  }
}

.about-card-main {
  width: 100%;
  max-width: 380px;
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  color: white;
  position: relative;
  overflow: hidden;
}

.about-card-main::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -60px;
  right: -60px;
}

.about-card-inner {
  position: relative;
}

.about-icon-large {
  font-size: 3rem;
  margin-bottom: var(--space-5);
}

.about-card-main h3 {
  color: white;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.about-card-main p {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.about-badge-float {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.badge-1 {
  top: -18px;
  right: -10px;
}

.badge-2 {
  bottom: -18px;
  left: -10px;
}

.about-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,184,148,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: var(--radius-xl);
  z-index: -1;
  transform: scale(1.08);
}

/* About text */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about-body {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  text-align: justify;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.pillar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(26, 71, 95, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-primary);
  margin-bottom: 2px;
}

.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ----------------------------------------------------------
   12. SERVICES SECTION
   ---------------------------------------------------------- */
.services-section {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 71, 95, 0.15);
}

.service-card:hover::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.featured-card {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.featured-card .service-title,
.featured-card .service-desc,
.featured-card .service-features li {
  color: white;
}

.featured-card .service-features li {
  color: rgba(255,255,255,0.8);
}

.featured-card .service-link {
  color: var(--color-accent-light);
}

.featured-card::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light)) !important;
}

.featured-label {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: var(--color-accent);
  color: white;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-5);
}

.s1 { background: rgba(0, 184, 148, 0.12); }
.s2 { background: rgba(255, 255, 255, 0.15); }
.s3 { background: rgba(244, 164, 49, 0.12); }
.s4 { background: rgba(26, 71, 95, 0.08); }

.service-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

.service-features {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-features li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #8a9093
  font-weight: 800;
  font-size: var(--text-xs);
}

.service-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.service-link:hover {
  color: var(--color-accent);
  gap: var(--space-3);
}

/* ----------------------------------------------------------
   13. HOW IT WORKS
   ---------------------------------------------------------- */
.hiw-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
  display: none;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (min-width: 768px) {
  .hiw-steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }
}

.hiw-step {
  position: relative;
  text-align: center;
  max-width: 220px;
  padding: var(--space-8) var(--space-4);
}

.step-num {
  font-size: var(--text-6xl);
  font-weight: 900;
  color: rgba(26, 71, 95, 0.06);
  line-height: 1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.step-content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-6);
}

.step-icon {
  font-size: 2.5rem;
  display: block;
  margin: 0 auto var(--space-4);
  width: 64px;
  height: 64px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.hiw-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.hiw-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hiw-connector {
  flex-shrink: 0;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .hiw-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), rgba(0,184,148,0.2));
    margin-top: 50px;
  }
}

/* ----------------------------------------------------------
   14. AUDIENCE SECTION
   ---------------------------------------------------------- */
.audience-section {
  padding: var(--space-24) 0;
  /*background: var(--color-white);*/
  background: var(--color-bg);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

.audience-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 184, 148, 0.3);
}

.aud-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-4);
}

.audience-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.audience-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------
   15. GALLERY SECTION
   ---------------------------------------------------------- */
.gallery-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
  display: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 220px 220px;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 260px 260px;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gi-large {
  grid-row: span 2;
}

.gi-wide {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .gi-large { grid-row: span 1; }
  .gi-wide  { grid-column: span 2; }
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

/* Abstract gradient placeholders simulating photography */
.gi-img1 {
  background: linear-gradient(135deg,
    #1a475f 0%, #2a6080 30%, #00b894 60%, #00d6ad 100%);
}

.gi-img2 {
  background: linear-gradient(135deg,
    #0d2e3d 0%, #1a475f 40%, #245970 100%);
}

.gi-img3 {
  background: linear-gradient(135deg,
    #f4a431 0%, #e8834a 40%, #c0562f 100%);
}

.gi-img4 {
  background: linear-gradient(135deg,
    #00b894 0%, #00857a 50%, #006b66 100%);
}

.gi-img5 {
  background: linear-gradient(135deg,
    #1a2d3a 0%, #1a475f 35%, #2a6080 65%, #00b894 100%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,71,95,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.gallery-tag {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   16. TESTIMONIALS SECTION
   ---------------------------------------------------------- */
.testimonials-section {
  padding: var(--space-24) 0;
  background: var(--color-white);
  display: none;
}

.testimonials-track {
  position: relative;
  max-width: 780px;
  margin: 0 auto var(--space-8);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: none;
  position: relative;
}

.testimonial-card.active-t {
  display: block;
  animation: t-fade-in 0.5s ease;
}

@keyframes t-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-mark {
  font-size: 5rem;
  line-height: 0.6;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  position: absolute;
  top: var(--space-6);
  left: var(--space-8);
}

.testimonial-text {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-6);
  padding-left: var(--space-4);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.av1 { background: linear-gradient(135deg, #1a475f, #00b894); }
.av2 { background: linear-gradient(135deg, #f4a431, #e8834a); }
.av3 { background: linear-gradient(135deg, #00b894, #2a6080); }

.testimonial-author strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-primary);
}

.testimonial-author span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition-base), transform var(--transition-base), width var(--transition-base);
}

.t-dot.active-dot {
  background: var(--color-primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ----------------------------------------------------------
   17. FAQ SECTION
   ---------------------------------------------------------- */
.faq-section {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: 340px 1fr;
    gap: var(--space-16);
  }
}

.faq-intro p {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
  gap: var(--space-4);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-accent);
  background: rgba(0, 184, 148, 0.04);
}

.faq-chevron {
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
  font-style: normal;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-answer:not([hidden]) {
  max-height: 500px;
  padding-bottom: var(--space-5);
}

/* ----------------------------------------------------------
   18. DOWNLOAD CTA
   ---------------------------------------------------------- */
.download-section {
  padding: var(--space-16) 0;
  background: var(--color-white);
}

.download-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.download-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(0,184,148,0.1);
  border-radius: 50%;
  bottom: -200px;
  right: -100px;
}

@media (min-width: 768px) {
  .download-box {
    grid-template-columns: 1fr auto;
    gap: var(--space-16);
  }
}

.download-text {
  position: relative;
}

.download-text h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.download-text p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 50ch;
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.partners-img {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.partners-img img {
  max-width: 120px;
  height: auto;
  filter: invert(1) brightness(1.1);
  opacity: 0.9;
}

.partners-img a {
  text-decoration: none;
}

/* Download visual */
.download-visual {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.dl-phone {
  width: 120px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 8px;
}

.dl-screen {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.dl-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.dl-tagline {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   19. CONTACT SECTION
   ---------------------------------------------------------- */
.contact-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
}

.contact-info p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.cd-icon {
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: 2px;
}

.contact-detail span,
.contact-detail a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 42px;
  height: 42px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.form-group label span {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-size: var(--text-sm);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 71, 95, 0.08);
  background: var(--color-white);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.08);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%231a475f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  cursor: pointer;
}

.field-error {
  font-size: var(--text-xs);
  color: #e53e3e;
  min-height: 1rem;
}

.form-success {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(0, 184, 148, 0.08);
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
}

/* ----------------------------------------------------------
   20. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; }
}

.footer-logo .logo-mark,
.footer-logo .logo-text {
  color: white;
}

.footer-tagline {
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-reg {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-newsletter p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
  border-color: var(--color-accent);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem var(--space-4);
  color: white;
  font-size: var(--text-sm);
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.nl-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.65rem var(--space-5);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.nl-btn:hover {
  background: var(--color-accent-light);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

/* ----------------------------------------------------------
   21. BACK TO TOP
   ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-5);
  z-index: var(--z-float);
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base);
  opacity: 0;
  transform: translateY(16px);
}

.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top[hidden] {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   22. SECTION SPACING CONSISTENCY
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .about-section,
  .services-section,
  .hiw-section,
  .audience-section,
  .gallery-section,
  .testimonials-section,
  .faq-section,
  .contact-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}
