/* carnivaltransportation.app — public/assets/css/main.css */
/* v2.1.0 */
/* native app design system — system fonts, #225aa7 + #9932cc brand */

/* mcm-variables */
:root {
  --mcm-blue:        #225aa7;
  --mcm-purple:      #9932cc;
  --mcm-gradient:    linear-gradient(135deg, #225aa7, #9932cc);
  --mcm-light-gray:  #f4f4f5;
  --mcm-mid-gray:    #e5e7eb;
  --mcm-dark-text:   #1f2937;
  --mcm-body-text:   #374151;
  --mcm-muted:       #6b7280;
  --mcm-white:       #ffffff;
  --mcm-border:      #e5e7eb;
  --mcm-brand:       #225aa7;
  --mcm-accent:      #9932cc;

  /* mcm-native radii — match iOS/Android component radii */
  --mcm-radius-sm:   6px;
  --mcm-radius-md:   10px;
  --mcm-radius-lg:   14px;
  --mcm-radius-xl:   20px;
  --mcm-radius-pill: 100px;

  /* mcm-shadows — subtle, app-like depth */
  --mcm-shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --mcm-shadow-md:   0 4px 12px rgba(0,0,0,0.08);
  --mcm-shadow-lg:   0 8px 24px rgba(0,0,0,0.10);

  /* mcm-system font stacks — renders native on every device */
  --mcm-font-body:   -apple-system, BlinkMacSystemFont, "SF Pro Text",
                     "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mcm-font-head:   -apple-system, BlinkMacSystemFont, "SF Pro Display",
                     "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mcm-font-mono:   "SF Mono", "Fira Code", "Fira Mono",
                     "Roboto Mono", Menlo, monospace;

  --mcm-transition:  0.15s ease;
}

/* mcm-reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--mcm-font-body);
  color: var(--mcm-dark-text);
  background: var(--mcm-light-gray);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  /* mcm-native: remove 300ms tap delay */
  touch-action: manipulation;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  /* mcm-native: no blue flash on tap */
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  /* mcm-native: no tap highlight */
  -webkit-tap-highlight-color: transparent;
}

/* mcm-native: momentum scroll on scroll containers */
.mcm-scroll {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* mcm-safe areas — notched phones and home indicator */
.mcm-safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

.mcm-safe-top {
  padding-top: env(safe-area-inset-top);
}

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

:focus-visible {
  outline: 2px solid var(--mcm-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* mcm-typography — system font weights */
.mcm-h1 {
  font-family: var(--mcm-font-head);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--mcm-dark-text);
}

.mcm-h2 {
  font-family: var(--mcm-font-head);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--mcm-dark-text);
}

.mcm-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mcm-muted);
}

/* mcm-layout */
.mcm-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 env(safe-area-inset-bottom, 80px);
}

.mcm-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* mcm-nav — native app top bar */
.mcm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: var(--mcm-white);
  border-bottom: 1px solid var(--mcm-border);
  position: sticky;
  top: 0;
  z-index: 20;
  /* mcm-native: frosted glass feel */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.mcm-nav-logo {
  font-family: var(--mcm-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--mcm-dark-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mcm-nav-logo span { color: var(--mcm-brand); }

/* mcm-card — native app card */
.mcm-card {
  background: var(--mcm-white);
  border-radius: var(--mcm-radius-lg);
  border: 1px solid var(--mcm-border);
  padding: 20px;
}

/* mcm-buttons — native app button feel */
.mcm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  /* mcm-native: min touch target 44px */
  min-height: 44px;
  border-radius: var(--mcm-radius-md);
  font-family: var(--mcm-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--mcm-transition), transform 0.1s;
  white-space: nowrap;
  /* mcm-native */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* mcm-native: active scale instead of hover brightness */
.mcm-btn:active:not(:disabled) {
  transform: scale(0.97);
  opacity: 0.85;
}

.mcm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

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

.mcm-btn-gradient {
  background: var(--mcm-gradient);
  color: var(--mcm-white);
}

.mcm-btn-secondary {
  background: var(--mcm-light-gray);
  color: var(--mcm-dark-text);
  border: 1px solid var(--mcm-border);
}

.mcm-btn-full { width: 100%; }

.mcm-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* mcm-form — native app input style */
.mcm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcm-field label {
  font-family: var(--mcm-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--mcm-body-text);
  letter-spacing: 0.1px;
}

.mcm-field-inner {
  display: flex;
  align-items: center;
  background: var(--mcm-light-gray);
  border-radius: var(--mcm-radius-md);
  border: 1.5px solid transparent;
  transition: border-color var(--mcm-transition), background var(--mcm-transition);
  overflow: hidden;
  /* mcm-native: min touch target */
  min-height: 44px;
}

.mcm-field-inner:focus-within {
  border-color: var(--mcm-brand);
  background: var(--mcm-white);
}

.mcm-field-icon {
  padding: 0 12px 0 14px;
  color: var(--mcm-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mcm-field-icon svg { width: 16px; height: 16px; }

.mcm-input {
  flex: 1;
  padding: 12px 14px 12px 0;
  border: none;
  background: transparent;
  font-family: var(--mcm-font-body);
  font-size: 16px; /* mcm-native: 16px prevents iOS auto-zoom */
  color: var(--mcm-dark-text);
  outline: none;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

.mcm-input::placeholder { color: #9ca3af; }

.mcm-textarea {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-family: var(--mcm-font-body);
  font-size: 16px; /* mcm-native: prevents iOS auto-zoom */
  color: var(--mcm-dark-text);
  outline: none;
  resize: none;
  min-height: 88px;
  line-height: 1.55;
  -webkit-appearance: none;
  appearance: none;
}

.mcm-textarea::placeholder { color: #9ca3af; }

.mcm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 400px) {
  .mcm-row { grid-template-columns: 1fr; }
}

/* mcm-divider */
.mcm-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mcm-divider-line {
  flex: 1;
  height: 1px;
  background: var(--mcm-border);
}

.mcm-divider-text {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}

/* mcm-badge */
.mcm-badge {
  display: inline-block;
  font-family: var(--mcm-font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--mcm-radius-pill);
}

.mcm-badge-blue   { background: #dbeafe; color: #1e40af; }
.mcm-badge-purple { background: #f3e8ff; color: #6b21a8; }
.mcm-badge-green  { background: #dcfce7; color: #166534; }
.mcm-badge-gray   { background: #f3f4f6; color: #4b5563; }
.mcm-badge-amber  { background: #fef3c7; color: #92400e; }
.mcm-badge-red    { background: #fee2e2; color: #991b1b; }

/* mcm-shimmer skeleton */
@keyframes mcm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mcm-skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: mcm-shimmer 1.4s infinite;
  border-radius: var(--mcm-radius-md);
}

/* mcm-error state */
.mcm-error-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--mcm-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* mcm-footer */
.mcm-footer {
  text-align: center;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.8;
}

.mcm-footer a {
  color: var(--mcm-brand);
  text-decoration: none;
}

/* mcm-responsive */
@media (max-width: 640px) {
  .mcm-page { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   mcm-global header — matches screenshot layout v2.0.0
   logo circle + brand identity left | login buttons right
   ============================================================ */

.mcm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mcm-border);
}

.mcm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  max-width: 1080px;
  margin: 0 auto;
  gap: 16px;
  min-height: 72px;
}

/* mcm-header left — logo circle + brand identity */
.mcm-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.mcm-header-logo-link {
  display: block;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mcm-header-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--mcm-border);
  background: var(--mcm-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.mcm-header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.mcm-header-logo-initials {
  font-family: var(--mcm-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--mcm-brand);
  z-index: 1;
}

/* hide initials when image loads */
.mcm-header-logo-circle:has(.mcm-header-logo-img[src]) .mcm-header-logo-initials {
  display: none;
}

.mcm-header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mcm-header-brand-name {
  font-family: var(--mcm-font-head);
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--mcm-dark-text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcm-header-brand-sub {
  font-family: var(--mcm-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--mcm-muted);
  white-space: nowrap;
}

.mcm-header-sub-link {
  color: var(--mcm-brand);
  text-decoration: none;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.mcm-header-sub-link:active { text-decoration: underline; }

/* mcm-header right — login buttons + hamburger */
.mcm-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mcm-header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 540px) {
  .mcm-header-btns { display: none; }
}

/* mcm-header buttons */
.mcm-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  min-height: 44px;
  border-radius: var(--mcm-radius-pill);
  font-family: var(--mcm-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity var(--mcm-transition), background var(--mcm-transition);
}

.mcm-header-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mcm-header-btn:active { opacity: 0.8; }

.mcm-header-btn-outline {
  background: transparent;
  color: var(--mcm-brand);
  border: 1.5px solid var(--mcm-brand);
}

.mcm-header-btn-outline:active { background: rgba(34,90,167,0.06); }

.mcm-header-btn-filled {
  background: var(--mcm-brand);
  color: var(--mcm-white);
  border: 1.5px solid var(--mcm-brand);
}

/* mcm-hamburger — shows on mobile */
.mcm-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 7px;
  background: transparent;
  border: 1px solid var(--mcm-border);
  cursor: pointer;
  border-radius: var(--mcm-radius-md);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 540px) {
  .mcm-nav-hamburger { display: flex; }
}

.mcm-nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mcm-dark-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mcm-nav-hamburger.mcm-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mcm-nav-hamburger.mcm-hamburger-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mcm-nav-hamburger.mcm-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mcm-mobile menu */
.mcm-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--mcm-border);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: mcm-menu-slide 0.18s ease;
}

@keyframes mcm-menu-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.mcm-menu-open { overflow: hidden; }

.mcm-mobile-link {
  display: flex;
  align-items: center;
  padding: 13px 12px;
  min-height: 44px;
  border-radius: var(--mcm-radius-md);
  font-family: var(--mcm-font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--mcm-dark-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--mcm-transition);
}

.mcm-mobile-link:active { background: var(--mcm-light-gray); }
.mcm-mobile-link-active { color: var(--mcm-brand); font-weight: 600; }

.mcm-mobile-menu-divider {
  height: 1px;
  background: var(--mcm-border);
  margin: 4px 12px;
}

.mcm-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 14px;
  min-height: 44px;
  border-radius: var(--mcm-radius-pill);
  background: var(--mcm-brand);
  color: var(--mcm-white);
  font-family: var(--mcm-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity var(--mcm-transition);
}

.mcm-mobile-cta:active { opacity: 0.85; }

/* ============================================================
   mcm-global footer — matches screenshot layout v2.0.0
   nav links · description · legal · instagram icon
   ============================================================ */

.mcm-footer {
  text-align: center;
  padding: 28px 20px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--mcm-border);
  background: var(--mcm-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* nav links row */
.mcm-footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
}

.mcm-footer-nav-link {
  font-family: var(--mcm-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--mcm-muted);
  text-decoration: none;
  padding: 4px 8px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--mcm-radius-sm);
  transition: color var(--mcm-transition), background var(--mcm-transition);
}

.mcm-footer-nav-link:hover  { color: var(--mcm-brand); }
.mcm-footer-nav-link:active { background: var(--mcm-light-gray); }

/* first nav link — platform name is slightly bolder */
.mcm-footer-nav .mcm-footer-nav-link:first-child {
  color: var(--mcm-dark-text);
  font-weight: 600;
}

.mcm-footer-dot {
  font-family: var(--mcm-font-body);
  font-size: 13px;
  color: var(--mcm-border);
  user-select: none;
  padding: 0 2px;
}

/* description text */
.mcm-footer-desc {
  font-family: var(--mcm-font-body);
  font-size: 13px;
  color: var(--mcm-muted);
  line-height: 1.55;
  max-width: 480px;
}

.mcm-footer-desc-link {
  color: var(--mcm-brand);
  text-decoration: none;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.mcm-footer-desc-link:active { text-decoration: underline; }

/* legal text */
.mcm-footer-legal {
  font-family: var(--mcm-font-body);
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

/* instagram icon */
.mcm-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--mcm-border);
  color: var(--mcm-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color var(--mcm-transition), border-color var(--mcm-transition);
  margin-top: 4px;
}

.mcm-footer-social:hover  { color: var(--mcm-brand); border-color: var(--mcm-brand); }
.mcm-footer-social:active { background: var(--mcm-light-gray); }

.mcm-footer-social svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   mcm-dark mode
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --mcm-light-gray: #1c1c1e;
    --mcm-mid-gray:   #2c2c2e;
    --mcm-dark-text:  #f2f2f7;
    --mcm-body-text:  rgba(235,235,245,0.8);
    --mcm-muted:      #8e8e93;
    --mcm-white:      #2c2c2e;
    --mcm-border:     #38383a;
  }

  .mcm-header,
  .mcm-mobile-menu {
    background: rgba(28,28,30,0.95);
    border-color: #38383a;
  }

  .mcm-footer {
    background: #1c1c1e;
    border-top-color: #38383a;
  }

  .mcm-skeleton {
    background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%);
    background-size: 200% 100%;
  }
}

