/* ==========================================================================
   OMRI MOBILITY ENTERPRISE DESIGN SYSTEM
   Official Public Website - Production Stylesheet
   Brand Colors: Royal Blue (#2563EB), Dark Navy (#0F172A), Emerald (#10B981)
   Typography: Poppins (Source of Truth matching Flutter Mobile App)
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. ROOT DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --omri-primary: #2563eb;
  --omri-primary-hover: #1d4ed8;
  --omri-primary-dark: #1e40af;
  --omri-primary-light: #3b82f6;
  --omri-primary-tint: #eff6ff;
  --omri-primary-subtle: rgba(37, 99, 235, 0.08);

  --omri-navy: #0f172a;
  --omri-navy-deep: #090d16;
  --omri-navy-surface: #1e293b;
  --omri-navy-border: #334155;

  --omri-secondary: #10b981;
  --omri-secondary-hover: #059669;
  --omri-secondary-tint: #ecfdf5;

  --omri-accent: #f59e0b;
  --omri-accent-hover: #d97706;
  --omri-accent-tint: #fffbeb;

  --omri-danger: #ef4444;
  --omri-danger-hover: #dc2626;
  --omri-danger-tint: #fef2f2;

  --omri-cyan: #0ea5e9;

  /* Neutrals & Surfaces */
  --omri-white: #ffffff;
  --omri-bg: #f8fafc;
  --omri-surface: #ffffff;
  --omri-surface-alt: #f1f5f9;
  --omri-border: #e2e8f0;
  --omri-border-hover: #cbd5e1;

  /* Typography Colors */
  --omri-text-primary: #0f172a;
  --omri-text-secondary: #475569;
  --omri-text-muted: #64748b;
  --omri-text-inverse: #f8fafc;

  /* Shadows */
  --omri-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --omri-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --omri-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --omri-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --omri-shadow-card: 0 12px 32px rgba(37, 99, 235, 0.08);
  --omri-shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);

  /* Spacing System */
  --omri-space-xs: 0.25rem;  /* 4px */
  --omri-space-sm: 0.5rem;   /* 8px */
  --omri-space-md: 1rem;     /* 16px */
  --omri-space-lg: 1.5rem;   /* 24px */
  --omri-space-xl: 2rem;     /* 32px */
  --omri-space-2xl: 3rem;    /* 48px */
  --omri-space-3xl: 4.5rem;  /* 72px */

  /* Border Radii */
  --omri-radius-sm: 8px;
  --omri-radius-md: 12px;
  --omri-radius-lg: 16px;
  --omri-radius-xl: 24px;
  --omri-radius-full: 9999px;

  /* Transitions */
  --omri-transition-fast: 0.15s ease;
  --omri-transition-normal: 0.25s ease;
  --omri-transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --omri-max-width: 1240px;
  --omri-nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--omri-nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--omri-text-primary);
  background-color: var(--omri-bg);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Copy deterrent (see assets/js/copy-protection.js for the caveats —
     this discourages casual copying, it does not prevent it). Form
     fields are re-enabled below so visitors can still fill in bookings. */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-drag: none;
}

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

a:hover {
  color: var(--omri-primary-hover);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--omri-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
  color: var(--omri-text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--omri-primary) 0%, #1d4ed8 50%, var(--omri-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--omri-primary-tint);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--omri-radius-full);
  color: var(--omri-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.section-tag.tag-green {
  background: var(--omri-secondary-tint);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--omri-secondary);
}

.section-tag.tag-amber {
  background: var(--omri-accent-tint);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--omri-accent);
}

.section-tag.tag-navy {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--omri-navy);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--omri-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: var(--omri-space-3xl);
  padding-bottom: var(--omri-space-3xl);
  position: relative;
}

.section-alt {
  background-color: var(--omri-surface-alt);
}

.section-dark {
  background-color: var(--omri-navy);
  color: var(--omri-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--omri-white);
}

.section-dark p {
  color: #94a3b8;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   5. NAVIGATION / NAVBAR
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--omri-transition-normal);
  padding: 1rem 0;
  /* Always white/opaque, even before the page is scrolled — previously
     this had no background at all until .scrolled was added by JS, so
     the dark hero gradient showed through behind the nav at the top of
     the page. */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar-wrapper.scrolled {
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo Sizing - Preserves exact aspect ratio, no distortion */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background-color: var(--omri-white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  transition: transform var(--omri-transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--omri-navy);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--omri-primary);
  line-height: 1.2;
  margin-top: 2px;
}

/* Nav Links Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--omri-text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--omri-transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--omri-primary);
  border-radius: 2px;
  transition: width var(--omri-transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--omri-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--omri-navy);
  border-radius: 4px;
  transition: all var(--omri-transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(10.75px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10.75px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: var(--omri-white);
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2.5rem 2rem;
  transition: right var(--omri-transition-slow);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--omri-transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--omri-navy);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--omri-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  color: var(--omri-primary);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   6. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.75rem 1.4rem;
  border-radius: var(--omri-radius-md);
  transition: all var(--omri-transition-fast);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  background: var(--omri-primary);
  color: var(--omri-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--omri-primary-hover);
  color: var(--omri-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--omri-white);
  color: var(--omri-navy);
  border-color: var(--omri-border);
  box-shadow: var(--omri-shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--omri-primary);
  color: var(--omri-primary);
  background: var(--omri-primary-tint);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--omri-navy);
  color: var(--omri-white);
}

.btn-dark:hover {
  background: #1e293b;
  color: var(--omri-white);
  transform: translateY(-2px);
}

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

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

.btn-danger {
  background: var(--omri-danger);
  color: var(--omri-white);
}

.btn-danger:hover {
  background: var(--omri-danger-hover);
  color: var(--omri-white);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--omri-radius-lg);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: var(--omri-radius-sm);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--omri-navy);
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  max-width: 320px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #ffffff;
  object-fit: contain;
}

.footer-heading {
  color: var(--omri-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--omri-transition-fast), transform var(--omri-transition-fast);
}

.footer-link:hover {
  color: var(--omri-white);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--omri-primary-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: #94a3b8;
}

.footer-legal-links a:hover {
  color: var(--omri-white);
}

/* --------------------------------------------------------------------------
   8. BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--omri-primary);
  color: var(--omri-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--omri-transition-normal);
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--omri-primary-hover);
  color: var(--omri-white);
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: span 3;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  :root {
    --omri-nav-height: 70px;
    --omri-space-3xl: 3.25rem;
  }
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
