/* =========================================================
   OlloSoft — Design System
   Brand: Navy + Rust (logo-derived)
   ========================================================= */

:root {
  --brand-navy:        #2E4A8A;   /* logo navy (brightened for dark bg) */
  --brand-navy-deep:   #14274A;   /* deep navy / background tints */
  --brand-rust:        #C2410C;   /* logo rust-orange */
  --brand-rust-bright: #E97316;   /* bright rust for CTAs / hovers */
  --brand-amber:       #F59E0B;   /* warm accent / highlights */
  --brand-emerald:     #10B981;   /* success states */

  --bg-obsidian: #0A0A0F;
  --bg-panel:    #111118;
  --bg-elev:     #16161F;
  --bg-bone:     #FAFAF7;
  --text-mist:   #E4E4E7;
  --text-muted:  #A1A1AA;
  --text-graphite:#18181B;
  --divider:     #27272A;

  --gradient-brand: linear-gradient(135deg, #2E4A8A 0%, #C2410C 100%);
  --gradient-soft:  linear-gradient(135deg, rgba(46,74,138,0.14) 0%, rgba(194,65,12,0.10) 100%);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-obsidian);
  color: var(--text-mist);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}

.font-display {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.font-serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Italic + gradient text gets clipped because background-clip:text
   uses the glyph bounding box; italic letters extend beyond it on the right,
   and descenders (g, y, p, j) extend below the baseline. Pad both sides. */
.font-serif-italic.text-gradient-brand,
.text-gradient-brand .font-serif-italic {
  padding-right: 0.12em;
  padding-bottom: 0.12em;
  display: inline-block;
  line-height: 1.15;
  vertical-align: baseline;
}

/* Display headings with descenders + tight line-height need a touch more room */
h1.font-display,
h2.font-display,
h3.font-display {
  padding-bottom: 0.05em;
}

/* ---------- Backgrounds & Effects ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(46,74,138,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,74,138,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

.bg-dots {
  background-image: radial-gradient(rgba(228,228,231,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-radial-glow {
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(46,74,138,0.28), transparent 60%),
    radial-gradient(50% 40% at 85% 10%, rgba(194,65,12,0.18), transparent 60%),
    var(--bg-obsidian);
}

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

/* ---------- Glass panels ---------- */
.glass {
  background: rgba(22, 22, 31, 0.55);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(46,74,138,0.20);
}

.glass-strong {
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(46,74,138,0.14);
}

/* ---------- Gradient border (animated) ---------- */
.gradient-border {
  position: relative;
  border-radius: 1rem;
  isolation: isolate;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.gradient-border:hover::before { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.625rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(194,65,12,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(194,65,12,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-secondary {
  background: rgba(228,228,231,0.04);
  color: var(--text-mist);
  border: 1px solid rgba(228,228,231,0.12);
}
.btn-secondary:hover {
  background: rgba(228,228,231,0.08);
  border-color: rgba(228,228,231,0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mist);
}
.btn-ghost:hover { color: var(--brand-rust-bright); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 1rem; }

/* ---------- Eyebrow / micro labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-rust-bright);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand-rust-bright);
  display: inline-block;
  opacity: 0.7;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(46,74,138,0.14);
  color: #93B4E0;
  border: 1px solid rgba(46,74,138,0.32);
}
.chip-cyan { background: rgba(194,65,12,0.12); color: #FDBA74; border-color: rgba(194,65,12,0.30); }
.chip-emerald { background: rgba(16,185,129,0.10); color: #6EE7B7; border-color: rgba(16,185,129,0.24); }
.chip-neutral { background: rgba(228,228,231,0.06); color: var(--text-mist); border-color: rgba(228,228,231,0.12); }

/* ---------- Card hover ---------- */
.card {
  background: var(--bg-panel);
  border: 1px solid rgba(228,228,231,0.06);
  border-radius: 1rem;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(194,65,12,0.38);
  background: var(--bg-elev);
}

/* ---------- Nav link underline ---------- */
.nav-link {
  position: relative;
  color: var(--text-mist);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
  padding-right: 4rem;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- Client logos (in marquee or grid) ---------- */
.client-logo {
  height: 2.75rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: grayscale(0.2);
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

/* ---------- Country-code custom dropdown ---------- */
.country-select {
  position: relative;
}
.country-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: rgba(228,228,231,0.03);
  border: 1px solid rgba(228,228,231,0.1);
  border-radius: 0.625rem;
  padding: 0.85rem 0.75rem 0.85rem 0.85rem;
  color: var(--text-mist);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: left;
}
.country-trigger:hover {
  background: rgba(228,228,231,0.06);
}
.country-trigger:focus {
  outline: none;
  border-color: var(--brand-rust-bright);
  background: rgba(194,65,12,0.07);
}
.country-trigger .fi {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.country-trigger .dial {
  flex: 1;
  font-variant-numeric: tabular-nums;
}
.country-trigger svg.chev {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.country-select.open .country-trigger svg.chev {
  transform: rotate(180deg);
}

.country-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: max(280px, 100%);
  background: #16161F;
  border: 1px solid rgba(228,228,231,0.12);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(194,65,12,0.10);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.country-select.open .country-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.country-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(228,228,231,0.08);
}
.country-search-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.country-search {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-mist);
  font-size: 0.875rem;
  font-family: inherit;
}
.country-search::placeholder { color: var(--text-muted); }

.country-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: #3F3F46 transparent;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: 0;
  color: var(--text-mist);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.country-option:hover,
.country-option:focus,
.country-option.active {
  background: rgba(194,65,12,0.15);
  outline: none;
}
.country-option.selected {
  background: rgba(46,74,138,0.20);
}
.country-option .fi {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.country-option .cname {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-option .cdial {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.country-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Location card (Contact) ---------- */
.location-card {
  background: linear-gradient(135deg, rgba(46,74,138,0.10), rgba(194,65,12,0.05));
  border: 1px solid rgba(228,228,231,0.10);
  border-radius: 0.875rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}
.location-card:hover {
  border-color: rgba(194,65,12,0.34);
  transform: translateY(-3px);
}
.location-card .flag-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(46,74,138,0.25), rgba(194,65,12,0.18));
  border: 1px solid rgba(194,65,12,0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FDBA74;
}

/* ---------- Floating elements / orbs ---------- */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.05); }
}

/* ---------- Stats counter ---------- */
.stat-num {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* ---------- Form ---------- */
.input, .textarea, .select {
  width: 100%;
  background: rgba(228,228,231,0.03);
  border: 1px solid rgba(228,228,231,0.1);
  border-radius: 0.625rem;
  padding: 0.85rem 1rem;
  color: var(--text-mist);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-rust-bright);
  background: rgba(194,65,12,0.07);
}

/* Native browser dropdown options need explicit colors,
   otherwise they inherit the page's dark theme on hover but show white-on-white on default. */
.select option,
select option {
  background-color: #16161F;
  color: #E4E4E7;
}
.select option:checked,
select option:checked {
  background-color: #2E4A8A;
  color: #ffffff;
}
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ---------- AOS-like fade-up (lightweight fallback) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ---------- Service icon badge ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(46,74,138,0.22), rgba(194,65,12,0.14));
  border: 1px solid rgba(46,74,138,0.36);
  color: #FDBA74;
}

/* ---------- Divider with text ---------- */
.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(228,228,231,0.1);
}

/* ---------- Section padding ---------- */
.section { padding: 6rem 0; }
@media (max-width: 768px) { .section { padding: 4rem 0; } }

/* ---------- Process step number ---------- */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(194,65,12,0.14);
  border: 1px solid rgba(194,65,12,0.38);
  color: #FDBA74;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-obsidian); }
::-webkit-scrollbar-thumb { background: #27272A; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3F3F46; }

/* ---------- Selection ---------- */
::selection { background: rgba(194,65,12,0.45); color: #fff; }

/* ---------- Loader ---------- */
.dot-loader {
  display: inline-flex;
  gap: 4px;
}
.dot-loader span {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--brand-rust-bright);
  animation: bounce 1.2s ease-in-out infinite;
}
.dot-loader span:nth-child(2) { animation-delay: 0.15s; }
.dot-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(18px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  padding: 0.75rem 0;
  color: var(--text-mist);
  border-bottom: 1px solid rgba(228,228,231,0.08);
}
.mobile-menu a:hover { color: var(--brand-rust-bright); }

/* ---------- Footer ---------- */
footer a { color: var(--text-muted); transition: color 0.2s ease; }
footer a:hover { color: var(--text-mist); }

/* ---------- Print ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
