/* ===== Custom Properties ===== */
:root {
  --brand-navy: #0A2D5C;
  --brand-navy-dark: #040D21;
  --brand-navy-light: #1A4A8A;
  --brand-accent: #2E86DE;
  --brand-accent-light: #54A0FF;
  --brand-gray-700: #374151;
  --brand-gray-500: #6B7280;
  --brand-gray-300: #D1D5DB;
  --brand-gray-100: #F3F4F6;
  --brand-white: #FFFFFF;
  --brand-success: #16A34A;
  --brand-error: #DC2626;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--brand-gray-700);
  line-height: 1.7;
}

h1, h2, h3, .font-display {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

/* ===== Fluid Typography ===== */
h1, .text-4xl, .text-5xl {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

h2, .text-3xl {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ===== Section Label ===== */
.section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===== Header ===== */
.header-nav {
  background: transparent;
  transition: background-color 0.3s ease;
}

.header-nav .logo-white { display: block; }
.header-nav .logo-dark { display: none; }

.header-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #e5e7eb;
}
.header-nav.scrolled .logo-white { display: none; }
.header-nav.scrolled .logo-dark { display: block; }

.header-nav.scrolled .nav-link,
.header-nav.scrolled .nav-link[class*="text-white"] {
  color: var(--brand-gray-700);
}

.header-nav.scrolled .nav-link[class*="text-white"]:not([class*="text-white/70"]),
.header-nav.scrolled .nav-link.active-link {
  color: var(--brand-navy);
}

.header-nav.scrolled .nav-link:hover {
  color: var(--brand-navy);
}

.header-nav.scrolled #menu-btn {
  color: var(--brand-gray-500);
}

.header-nav.scrolled #menu-btn:hover {
  color: var(--brand-navy);
}

/* ===== Nav Link ===== */
.nav-link {
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Card Styles ===== */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10, 45, 92, 0.12);
}

/* ===== Button ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: var(--brand-accent);
  color: white;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #2578C9;
  box-shadow: 0 6px 20px rgba(46, 134, 222, 0.4), 0 0 40px rgba(46, 134, 222, 0.15);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #25D366;
  color: white;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  border-radius: 14px;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Give footer bottom row clearance from WhatsApp button */
footer {
  padding-bottom: 4rem;
}

/* ===== Services Anchor Nav ===== */
.services-nav-link {
  transition: color 0.2s ease, border-color 0.2s ease;
}

.services-nav-link.active {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

/* ===== Form Focus ===== */
.form-input {
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.12);
}

/* Select dropdown — extra right padding for chevron */
select.form-input {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ===== Mobile Nav ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 300px;
}

/* ===== Form Messages ===== */
.form-success {
  background-color: #f0fdf4;
  border: 1px solid var(--brand-success);
  color: var(--brand-success);
}

.form-error {
  background-color: #fef2f2;
  border: 1px solid var(--brand-error);
  color: var(--brand-error);
}

/* ===== Smooth anchor offset ===== */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* ===== Hero arc animation ===== */
@keyframes arc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.arc-float {
  animation: arc-float 6s ease-in-out infinite;
}

.arc-float-delayed {
  animation: arc-float 6s ease-in-out 2s infinite;
}

.arc-float-slow {
  animation: arc-float 8s ease-in-out 1s infinite;
}

/* ===== Service Panels (Homepage) ===== */
.service-panels {
  display: flex;
  gap: 0;
  min-height: 200px;
}

.service-panel {
  flex: 1;
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
  border-right: 1px solid #e5e7eb;
  overflow: hidden;
}

.service-panel:last-child {
  border-right: none;
}

.service-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-accent);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.service-panel:hover::before,
.service-panel.active::before {
  transform: scaleY(1);
}

.service-panel:hover,
.service-panel.active {
  flex: 2.2;
  background: rgba(10, 45, 92, 0.03);
}

.service-panel .panel-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3rem;
  color: rgba(10, 45, 92, 0.08);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.service-panel:hover .panel-number,
.service-panel.active .panel-number {
  color: rgba(46, 134, 222, 0.15);
}

.service-panel .panel-detail {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.1s, max-height 0.5s ease;
}

.service-panel:hover .panel-detail,
.service-panel.active .panel-detail {
  opacity: 1;
  max-height: 200px;
}

@media (max-width: 768px) {
  .service-panels {
    flex-direction: column;
    min-height: auto;
  }
  .service-panel {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
  }
  .service-panel:last-child {
    border-bottom: none;
  }
  .service-panel .panel-detail {
    opacity: 1;
    max-height: 200px;
  }
  .service-panel .panel-number {
    font-size: 2.5rem;
  }
}

/* ===== Accordion ===== */
.accordion-item + .accordion-item {
  margin-top: 2px;
}

.accordion-trigger {
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--brand-accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  opacity: 1;
}

.accordion-trigger .accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-trigger .accordion-icon {
  transform: rotate(180deg);
}

/* ===== Feature List Items (Services - Employee Benefits) ===== */
.feature-list-item {
  transition: transform 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}

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

.feature-list-item:hover {
  transform: translateX(8px);
  border-color: var(--brand-accent);
}

.feature-list-item .item-number {
  font-family: 'DM Serif Display', Georgia, serif;
  color: rgba(10, 45, 92, 0.15);
  font-size: 1.125rem;
  min-width: 2rem;
}

.feature-list-item:hover .item-number {
  color: var(--brand-accent);
}

/* ===== Hover Tabs (Services - Commercial Risk) ===== */
.hover-tab-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-left: 3px solid transparent;
}

.hover-tab-item:hover,
.hover-tab-item.active {
  color: white;
  border-left-color: var(--brand-accent-light);
  background: rgba(255, 255, 255, 0.05);
}

.hover-tab-item:not(.active) {
  color: rgba(255, 255, 255, 0.5);
}

.tab-content-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tab-content-panel.active {
  display: block;
  opacity: 1;
}

/* ===== Timeline (Services - Affinity) ===== */
.timeline-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.timeline-track::-webkit-scrollbar {
  height: 4px;
}

.timeline-track::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 2px;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: var(--brand-accent);
  border-radius: 2px;
}

.timeline-node {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  text-align: center;
  position: relative;
  padding: 0 0.75rem;
}

.timeline-node .node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-accent);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(46, 134, 222, 0.15);
}

.timeline-connector {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
}

.timeline-connector-line {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--brand-accent) 0,
    var(--brand-accent) 6px,
    transparent 6px,
    transparent 12px
  );
  animation: dash-move 1s linear infinite;
}

@keyframes dash-move {
  0% { background-position: 0 0; }
  100% { background-position: 12px 0; }
}

@media (min-width: 1024px) {
  .timeline-node {
    flex: 1;
    width: auto;
  }
  .timeline-track {
    overflow-x: visible;
  }
}

/* ===== Stats Counter Strip (About) ===== */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 2.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #e5e7eb;
}

.stat-value {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem;
  color: var(--brand-navy);
  line-height: 1.1;
}

@media (max-width: 640px) {
  .stats-strip {
    flex-direction: column;
    gap: 0;
  }
  .stat-item {
    padding: 1rem 1.5rem;
  }
  .stat-item:not(:last-child)::after {
    right: 20%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 60%;
  }
  .stat-value {
    font-size: 2rem;
  }
}

/* ===== Mission/Vision Split Screen (About) ===== */
.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.split-panel {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-panel-left {
  background: linear-gradient(160deg, #040D21 0%, #0A2D5C 100%);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  padding-right: 4rem;
}

.split-panel-right {
  background: linear-gradient(160deg, #0E3668 0%, #1A4A8A 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -5%;
  padding-left: 4rem;
}

@media (max-width: 768px) {
  .split-screen {
    grid-template-columns: 1fr;
  }
  .split-panel-left,
  .split-panel-right {
    clip-path: none;
    margin-left: 0;
    padding: 3rem 1.5rem;
  }
}

/* ===== Values Grid (About) ===== */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.values-cell {
  padding: 2.5rem;
}

/* Structural divider lines via borders */
.values-cell:nth-child(1),
.values-cell:nth-child(2) {
  border-bottom: 1px solid #e5e7eb;
}

.values-cell:nth-child(1),
.values-cell:nth-child(3) {
  border-right: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .values-cell {
    padding: 1.75rem 0;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb;
  }
  .values-cell:last-child {
    border-bottom: none;
  }
}

/* ===== Contact Sidebar (borderless) ===== */
.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
}

.contact-block:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-block-icon {
  width: 44px;
  height: 44px;
  background: rgba(10, 45, 92, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-callout {
  border-left: 3px solid var(--brand-accent);
  padding: 1.25rem 1.5rem;
  background: rgba(46, 134, 222, 0.04);
  margin-top: 1.5rem;
}

/* ===== Value Bars (Homepage Value Prop) ===== */
.value-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.value-bar:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.value-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.value-bar:hover::after {
  width: 3px;
}

.value-bar:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 60px rgba(46, 134, 222, 0.06), 0 1px 0 rgba(255, 255, 255, 0.04);
}

.value-bar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(46, 134, 222, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-accent-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.value-bar:hover .value-bar-icon {
  background: rgba(46, 134, 222, 0.22);
  transform: scale(1.05);
}

.value-bar-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  width: 300px;
  flex-shrink: 0;
}

.value-bar-desc {
  font-size: 0.9375rem;
  color: rgba(209, 213, 219, 0.6);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.value-bar:hover .value-bar-desc {
  color: rgba(209, 213, 219, 0.85);
}

@media (max-width: 768px) {
  .value-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }
  .value-bar-title {
    min-width: auto;
    flex: 1;
  }
  .value-bar-desc {
    width: 100%;
    padding-left: 3.75rem;
    font-size: 0.875rem;
  }
}

/* ===== Scroll Indicator ===== */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ===== Closing Statement (pull-quote accent) ===== */
.closing-statement {
  border-left: 3px solid var(--brand-accent);
  padding-left: 1.5rem;
  max-width: 48rem;
}

.closing-statement-dark {
  border-left-color: var(--brand-accent-light);
}

/* ===== Counter animation utility ===== */
.count-up {
  display: inline-block;
}
