/* =========================================================
   VEXTA · Design System
   ========================================================= */

:root {
  --color-navy-900: #0B1D3A;
  --color-navy-700: #1A3260;
  --color-navy-500: #2C4A7C;
  --color-silver-400: #B8C0CC;
  --color-silver-200: #E5E8ED;
  --color-white: #FFFFFF;
  --color-black: #0A0A0A;
  --color-gray-600: #4A5568;
  --color-gray-500: #718096;
  --color-gray-100: #F5F7FA;
  --color-gray-50:  #FAFBFC;

  --gradient-accent: linear-gradient(135deg, #0B1D3A 0%, #B8C0CC 100%);
  --gradient-hero:   radial-gradient(circle at 80% 20%, rgba(184,192,204,0.35) 0%, rgba(11,29,58,0) 55%),
                     radial-gradient(circle at 10% 90%, rgba(11,29,58,0.10) 0%, rgba(11,29,58,0) 60%);

  --shadow-sm:  0 2px 8px rgba(11, 29, 58, 0.04);
  --shadow-md:  0 4px 24px rgba(11, 29, 58, 0.06);
  --shadow-lg:  0 12px 40px rgba(11, 29, 58, 0.10);
  --shadow-xl:  0 24px 60px rgba(11, 29, 58, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   Base
   ========================================================= */

* { box-sizing: border-box; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--color-navy-900);
  color: var(--color-white);
}

/* =========================================================
   Typography
   ========================================================= */

.h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-navy-900);
}

.h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-navy-900);
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-navy-900);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy-700);
  padding: 6px 14px;
  background: var(--color-silver-200);
  border-radius: var(--radius-full);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-gray-600);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-bg-gray { background: var(--color-gray-100); }
.section-bg-navy {
  background: var(--color-navy-900);
  color: var(--color-white);
}
.section-bg-navy .h2,
.section-bg-navy .h3 { color: var(--color-white); }
.section-bg-navy .lead { color: var(--color-silver-400); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}

.btn svg { transition: transform var(--transition-base); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--color-navy-900);
  color: var(--color-white);
  border-color: var(--color-navy-900);
}
.btn-primary:hover {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-light {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-color: var(--color-white);
}
.btn-light:hover {
  background: var(--color-silver-200);
  border-color: var(--color-silver-200);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-color: var(--color-white);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.header-logo img { height: 32px; width: auto; display: block; }

.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding-block: 0.25rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-navy-900);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-navy-900);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-full);
  padding: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-white);
}
.lang-switch a {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-gray-600);
  transition: all var(--transition-fast);
}
.lang-switch a.active {
  background: var(--color-navy-900);
  color: var(--color-white);
}

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-silver-200);
  background: var(--color-white);
  cursor: pointer;
}
@media (min-width: 1024px) { .btn-menu { display: none; } }

.nav-mobile {
  display: none;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--color-silver-200);
  background: var(--color-white);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy-900);
  text-decoration: none;
  border-bottom: 1px solid var(--color-silver-200);
}
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  border-bottom: 0 !important;
}
/* Override generic .nav-mobile a color for button variants */
.nav-mobile .btn.btn-primary {
  color: var(--color-white);
  border-color: transparent;
}
.nav-mobile .btn.btn-secondary {
  color: var(--color-navy-900);
}

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

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
  background: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}

.hero-visual svg { width: 100%; height: 100%; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-silver-200);
  flex-wrap: wrap;
}
.hero-trust-item {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust-item strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy-900);
  display: block;
  line-height: 1;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-base);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: var(--color-white);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-body {
  color: var(--color-gray-600);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.card-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Section header
   ========================================================= */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .lead { margin-top: 1rem; }
.section-head-left {
  text-align: left;
  max-width: 720px;
  margin: 0 0 3rem;
}

/* =========================================================
   Timeline (Process)
   ========================================================= */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-navy-900), var(--color-silver-400));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy-900);
  z-index: 1;
}

.timeline-content {
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-left: 1rem;
  transition: all var(--transition-base);
}
.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.timeline-step {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-navy-700);
  text-transform: uppercase;
}
.timeline-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin: 0.35rem 0 0.75rem;
  line-height: 1.3;
}
.timeline-body {
  color: var(--color-gray-600);
  line-height: 1.6;
}

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

.value-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  transition: all var(--transition-base);
}
.value-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg { width: 22px; height: 22px; }
.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.4rem;
}
.value-body {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.55;
}

.team-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}
.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.35rem;
}
.team-role {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

/* =========================================================
   Big service block
   ========================================================= */

.service-block {
  display: grid;
  gap: 2rem;
  padding: 2.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.service-block:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
@media (min-width: 768px) {
  .service-block { grid-template-columns: 1fr 1.5fr; padding: 2.75rem; gap: 3rem; align-items: start; }
}

.service-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.service-desc {
  color: var(--color-gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

/* "What we don't do" */
.no-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.no-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-md);
  color: var(--color-gray-600);
  font-weight: 500;
}
.no-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #C53030;
}

/* =========================================================
   Form
   ========================================================= */

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy-900);
  margin-bottom: 0.4rem;
}
.form-label .req { color: #C53030; }

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-black);
  background: var(--color-gray-50);
  border: 1.5px solid var(--color-silver-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  background: var(--color-white);
  border-color: var(--color-navy-900);
  box-shadow: 0 0 0 3px rgba(11,29,58,0.08);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-error {
  display: none;
  font-size: 0.82rem;
  color: #C53030;
  margin-top: 0.35rem;
}
.form-group.error .form-input,
.form-group.error .form-textarea { border-color: #C53030; }
.form-group.error .form-error { display: block; }

.form-submit { width: 100%; margin-top: 0.5rem; }

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}
.contact-item:hover {
  transform: translateX(4px);
  border-color: var(--color-navy-900);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  color: var(--color-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  font-size: 0.8rem;
  color: var(--color-gray-600);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-value {
  font-size: 1rem;
  color: var(--color-navy-900);
  font-weight: 600;
  word-break: break-all;
}

/* =========================================================
   Testimonials (hidden by default until real ones)
   ========================================================= */

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-silver-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}
.testimonial-quote {
  color: var(--color-black);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.testimonial-name { font-weight: 700; color: var(--color-navy-900); font-size: 0.95rem; }
.testimonial-role { font-size: 0.85rem; color: var(--color-gray-600); }

/* =========================================================
   Final CTA
   ========================================================= */

.final-cta {
  position: relative;
  background: var(--color-navy-900);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,192,204,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,192,204,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta .h2 { color: var(--color-white); margin-bottom: 1rem; }
.final-cta .lead { color: var(--color-silver-400); max-width: 560px; margin: 0 auto 2rem; }
.final-cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.site-footer {
  background: var(--color-navy-900);
  color: var(--color-silver-400);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; }
}

.footer-logo img { height: 32px; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.95rem; line-height: 1.65; max-width: 320px; }

.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav a {
  color: var(--color-silver-400);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
.footer-nav a:hover { color: var(--color-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   Animation utilities
   ========================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Hidden testimonial section (toggle via data-hidden)
   ========================================================= */

[data-hidden="true"] { display: none !important; }

/* =========================================================
   ▸ VISUAL UPGRADE (v2)
   Logo wordmark · Hero animations · Bar chart · Ambient FX
   ========================================================= */

/* ─── Logo (mark + wordmark side-by-side) ────────────────── */
.header-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-logo .logo-mark { height: 32px; margin-bottom: 0; }

.logo-word {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--color-navy-900);
  line-height: 1;
  padding-top: 2px;
}
.logo-word-light { color: var(--color-white); }

/* remove old img-only footer height rule spillover */
.footer-logo { margin-bottom: 1rem; }

/* ─── Hero background - ambient orbs + subtle grid ──────── */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,192,204,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #FBFCFD 0%, #FFFFFF 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(26,50,96,0.10) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(184,192,204,0.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient floating orbs */
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,50,96,0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbFloat 18s ease-in-out infinite;
  z-index: 0;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.06); }
  66% { transform: translate(30px, -20px) scale(0.96); }
}

.hero > .container { position: relative; z-index: 1; }

/* Subtle grid overlay for texture */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,29,58,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,29,58,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Hero chart - staircase animation ──────────────────── */
.hero-chart .bar {
  transform-origin: bottom center;
  transform-box: fill-box;
  transform: scaleY(0);
  transition: transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-chart .bar-1 { transition-delay: 200ms; }
.hero-chart .bar-2 { transition-delay: 450ms; }
.hero-chart .bar-3 { transition-delay: 700ms; }
.hero-chart .bar-4 { transition-delay: 950ms; }

.hero-visual.visible .hero-chart .bar { transform: scaleY(1); }

/* Faint reference gridlines: fade in first, before bars grow */
.hero-chart .grid-line {
  opacity: 0;
  transition: opacity 700ms ease-out;
}
.hero-chart .g-1 { transition-delay: 100ms; }
.hero-chart .g-2 { transition-delay: 200ms; }
.hero-chart .g-3 { transition-delay: 300ms; }
.hero-chart .g-4 { transition-delay: 400ms; }
.hero-chart .g-5 { transition-delay: 500ms; }
.hero-visual.visible .hero-chart .g-1 { opacity: 0.35; }
.hero-visual.visible .hero-chart .g-2 { opacity: 0.28; }
.hero-visual.visible .hero-chart .g-3 { opacity: 0.22; }
.hero-visual.visible .hero-chart .g-4 { opacity: 0.18; }
.hero-visual.visible .hero-chart .g-5 { opacity: 0.4; }

/* Data-point dots: pop in as each bar completes; float above bars with soft shadow */
.hero-chart .chart-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  transform-box: fill-box;
  transition:
    opacity 350ms ease-out,
    transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 3px 6px rgba(11, 29, 58, 0.3));
}
.hero-chart .dot-1 { transition-delay: 1000ms; }
.hero-chart .dot-2 { transition-delay: 1250ms; }
.hero-chart .dot-3 { transition-delay: 1500ms; }
.hero-chart .dot-4 { transition-delay: 1800ms; }

.hero-visual.visible .hero-chart .chart-dot {
  opacity: 1;
  transform: scale(1);
}

/* Sparkle particles: continuously rise + fade from around peak dot */
.hero-chart .sparkle {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.hero-visual.visible .hero-chart .sparkle {
  animation: sparkleRise 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hero-visual.visible .hero-chart .sp-1 { animation-delay: 2200ms; }
.hero-visual.visible .hero-chart .sp-2 { animation-delay: 2900ms; }
.hero-visual.visible .hero-chart .sp-3 { animation-delay: 3600ms; }
.hero-visual.visible .hero-chart .sp-4 { animation-delay: 4300ms; }
.hero-visual.visible .hero-chart .sp-5 { animation-delay: 5000ms; }

@keyframes sparkleRise {
  0%   { opacity: 0;    transform: translate(0, 20px) scale(0.3); }
  20%  { opacity: 0.85; transform: translate(0, 5px)  scale(1);   }
  60%  { opacity: 0.6;  transform: translate(2px, -35px) scale(1); }
  100% { opacity: 0;    transform: translate(4px, -60px) scale(0.5); }
}

/* Background V - subtle fade in first */
.hero-chart .hero-bg-v {
  opacity: 0;
  transition: opacity 1200ms ease-out;
}
.hero-visual.visible .hero-chart .hero-bg-v { opacity: 1; }

/* Floating chevrons - gentle bob */
.hero-chart .hero-chevrons .hc {
  opacity: 0;
  transition: opacity 800ms ease-out;
}
.hero-visual.visible .hero-chart .hero-chevrons .hc { opacity: 0.35; }

.hero-visual.visible .hero-chart .hero-chevrons .hc:nth-child(1) {
  animation: chevronBob 6s ease-in-out infinite 2800ms;
}
.hero-visual.visible .hero-chart .hero-chevrons .hc:nth-child(2) {
  animation: chevronBob 5s ease-in-out infinite 3100ms;
}
.hero-visual.visible .hero-chart .hero-chevrons .hc:nth-child(3) {
  animation: chevronBob 7s ease-in-out infinite 3400ms;
}

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

/* ─── Global section - ambient background gradient ──────── */
.section-bg-gray {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(184,192,204,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(26,50,96,0.05) 0%, transparent 60%),
    var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

/* ─── Enhanced cards - hover lift with border shimmer ───── */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 500ms ease;
  pointer-events: none;
}
.card:hover::before {
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-silver-400));
}
.card:hover .card-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(11,29,58,0.18);
}
.card-icon {
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 400ms ease;
}

/* Card shine on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.6) 50%,
    transparent 70%);
  transform: skewX(-25deg);
  transition: left 700ms ease;
  pointer-events: none;
  z-index: 1;
}
.card:hover::after { left: 130%; }

/* ─── Primary button - animated gradient shine ──────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, var(--color-navy-900), var(--color-navy-700), var(--color-navy-900));
  background-size: 200% 100%;
  transition: background-position 500ms ease, transform var(--transition-base), box-shadow var(--transition-base);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11,29,58,0.25);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.25) 50%,
    transparent 70%);
  transform: skewX(-20deg);
  transition: left 600ms ease;
}
.btn-primary:hover::after { left: 130%; }

/* ─── Header - slight visual lift on scroll ─────────────── */
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 24px rgba(11,29,58,0.06);
}

/* Nav underline animation on hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ─── Value items (about) - hover interaction ───────────── */
.value-item {
  transition: transform 300ms ease;
  padding: 1rem;
  border-radius: var(--radius-md);
}
.value-item:hover {
  transform: translateX(6px);
  background: rgba(184,192,204,0.08);
}

/* ─── Timeline - animate line drawing on scroll ─────────── */
.timeline::before {
  transform-origin: top;
  animation: timelineDraw 1s ease-out both;
}
@keyframes timelineDraw {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

.timeline-marker {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background 300ms ease,
              color 300ms ease;
}
.timeline-item:hover .timeline-marker {
  transform: scale(1.15);
  background: var(--color-navy-900);
  color: var(--color-white);
  box-shadow: 0 0 0 6px rgba(11,29,58,0.08);
}

/* ─── Service block - hover shift ───────────────────────── */
.service-block {
  transition: transform 400ms ease, box-shadow 400ms ease;
}
.service-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ─── Final CTA - animated shimmer background ───────────── */
.final-cta {
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(184,192,204,0.05) 50%,
    transparent 100%);
  background-size: 200% 200%;
  animation: ctaShimmer 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ─── Contact-item - subtle interaction ─────────────────── */
.contact-item {
  transition: transform 300ms ease, background 300ms ease, border-color 300ms ease;
}
.contact-item:hover {
  transform: translateX(6px);
  border-color: var(--color-navy-900);
}
.contact-item:hover .contact-icon {
  transform: scale(1.08) rotate(-4deg);
}
.contact-icon {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Form-input focus ring glow ────────────────────────── */
.form-input:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 4px rgba(26,50,96,0.12);
  border-color: var(--color-navy-900);
}

/* ─── Gradient text - subtle animated hue ───────────────── */
.gradient-text {
  background-size: 200% 200%;
  animation: gradientHue 6s ease-in-out infinite;
}
@keyframes gradientHue {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Ambient V-mark floating decorations (add to sections) ── */
.floating-v {
  position: absolute;
  color: var(--color-silver-200);
  opacity: 0.4;
  pointer-events: none;
  animation: floatV 12s ease-in-out infinite;
}
.floating-v svg { width: 100%; height: 100%; display: block; }

@keyframes floatV {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(8deg); }
}

/* ─── Reduce motion safety net ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .final-cta::after,
  .gradient-text,
  .floating-v,
  .hero-chart .bar,
  .hero-chart .chart-dot,
  .hero-chart .grid-line,
  .hero-chart .sparkle,
  .hero-chart .hero-chevrons .hc {
    animation: none !important;
  }
  .hero-chart .bar { transform: scaleY(1); }
  .hero-chart .chart-dot { opacity: 1; transform: none; }
  .hero-chart .grid-line { opacity: var(--grid-op, 0.25); }
  .hero-chart .sparkle { opacity: 0; }
  .hero-chart .hero-chevrons .hc,
  .hero-chart .hero-bg-v { opacity: 0.35; }
}

/* ─── Hero chart mouse-parallax smoothness ──────────────── */
.hero-chart {
  transition: transform 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* =========================================================
   ▸ VISUAL UPGRADE v3
   Real logo PNG · Site-wide ambient animations · Form UX
   ========================================================= */

/* ─── Real logo (PNG with mark + wordmark) ──────────────── */
.site-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-header:hover .site-logo,
.site-footer:hover .site-logo { transform: scale(1.03); }

/* Footer variant: convert dark logo to white silhouette on dark bg
   (the logo art is mostly navy - invert brightness to make it white,
   the silver arrow becomes off-white which reads well on navy) */
.site-logo-light {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.header-logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}
.footer-logo { margin-bottom: 1.25rem; }
.footer-logo .site-logo { height: 40px; }

/* Remove old wordmark styles (leftover from v2 - no longer used) */
.logo-mark, .logo-word, .logo-word-light { display: none !important; }

/* ─── SITE-WIDE AMBIENT BACKGROUND (fixed, animated) ────── */
html {
  background:
    linear-gradient(180deg, #FBFCFD 0%, #F5F7FA 100%);
}
body {
  background: transparent;
  position: relative;
  isolation: isolate;
}

/* Layer 1: three big blurred colored orbs, drifting slowly */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(circle 520px at 12% 18%,  rgba(26, 50, 96, 0.14) 0%, transparent 55%),
    radial-gradient(circle 460px at 88% 62%,  rgba(184,192,204, 0.30) 0%, transparent 60%),
    radial-gradient(circle 380px at 46% 90%,  rgba(11, 29, 58, 0.11) 0%, transparent 55%),
    radial-gradient(circle 300px at 78% 12%,  rgba(184,192,204, 0.22) 0%, transparent 60%);
  animation: ambientDrift 32s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes ambientDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  25%  { transform: translate3d(-30px, 20px, 0) scale(1.03); }
  50%  { transform: translate3d(20px, -30px, 0) scale(0.98); }
  75%  { transform: translate3d(-15px, -20px, 0) scale(1.02); }
  100% { transform: translate3d(30px, 15px, 0) scale(1); }
}

/* Layer 2: subtle mesh dots that slowly move - depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11,29,58,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 90%);
  animation: meshShift 40s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes meshShift {
  from { background-position: 0 0; }
  to { background-position: 320px 320px; }
}

/* ─── Sections become semi-translucent so ambient shows through ─ */
.section-bg-gray {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(184,192,204,0.15) 0%, transparent 60%),
    rgba(245, 247, 250, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
}

/* Hero - remove opaque bg, let ambient show */
.hero {
  background: transparent;
}
.hero::before {
  background:
    radial-gradient(circle at 85% 15%, rgba(26,50,96,0.06) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(184,192,204,0.10) 0%, transparent 50%);
}

/* Content on ambient bg - keep readable */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ─── Floating V-chevrons across sections (decorative) ─── */
.floating-v-set {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-v-set .fv {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0;
  animation: fvFloat 14s ease-in-out infinite;
}
.floating-v-set .fv svg {
  width: 100%; height: 100%;
  color: var(--color-silver-400);
  opacity: 0.4;
}
.floating-v-set .fv:nth-child(1) { top: 12%; left: 8%;  animation-delay: 0s;   width: 44px; height: 44px; }
.floating-v-set .fv:nth-child(2) { top: 22%; right: 12%; animation-delay: 2s;  width: 28px; height: 28px; }
.floating-v-set .fv:nth-child(3) { top: 68%; left: 18%; animation-delay: 4s;   width: 36px; height: 36px; }
.floating-v-set .fv:nth-child(4) { top: 78%; right: 8%;  animation-delay: 6s;  width: 32px; height: 32px; }
.floating-v-set .fv:nth-child(5) { top: 42%; left: 55%; animation-delay: 3s;   width: 24px; height: 24px; }

@keyframes fvFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%      { opacity: 0.5; }
  50%      { transform: translate(15px, -30px) rotate(6deg); opacity: 0.5; }
  90%      { opacity: 0.4; }
}

/* Section content sits above floaters */
.section > .container { position: relative; z-index: 1; }

/* ─── Header - glass effect over ambient ────────────────── */
.site-header {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.88);
}

/* ─── Form: loading / feedback ──────────────────────────── */
.form-submit { position: relative; overflow: hidden; }
.form-submit.is-loading {
  cursor: wait;
  opacity: 0.85;
}
.form-submit.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%);
  animation: loadingSweep 1.1s linear infinite;
}
@keyframes loadingSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  min-height: 0;
  transition: min-height 200ms ease;
}
.form-feedback:not(:empty) {
  background: rgba(220, 38, 38, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.form-feedback.is-error {
  background: rgba(220, 38, 38, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ─── Card / form-card / hero cards - solid on ambient bg ── */
.card, .form-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card:hover, .form-card:hover {
  background: rgba(255, 255, 255, 0.95);
}

/* ─── Reduced motion safety ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .floating-v-set .fv,
  .form-submit.is-loading::after { animation: none !important; }
  .floating-v-set .fv { opacity: 0.3; }
}

/* ─── Mobile - dial down ambient for perf & polish ──────── */
@media (max-width: 768px) {
  body::before {
    background:
      radial-gradient(circle 380px at 15% 20%, rgba(26, 50, 96, 0.12) 0%, transparent 55%),
      radial-gradient(circle 350px at 85% 75%, rgba(184,192,204, 0.25) 0%, transparent 60%);
  }
  body::after { display: none; }
  .floating-v-set { display: none; }
}

/* =========================================================
   ▸ VISUAL UPGRADE v4
   Sticky nav polish · Services page compaction · Hero cleanup
   ========================================================= */

/* Sticky header - visible boundary when scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 24px rgba(11, 29, 58, 0.08);
  border-bottom: 1px solid rgba(184, 192, 204, 0.3);
}

/* Services page - tighter spacing between service blocks */
.service-block {
  padding: 1.75rem 2rem;
}

/* Hero visual - center the arrow visually */
.hero-chart .hero-arrow path {
  filter: drop-shadow(0 4px 12px rgba(11, 29, 58, 0.18));
}

/* Value item title - bigger, more presence */
.value-title {
  font-size: 1.05rem;
  font-weight: 700;
}
