/* ==========================================================================
   SkyAirways - Global Styles
   Reset, typography, responsive grid, utilities. Mobile-first.
   ========================================================================== */

@import url("theme.css?v=13c6ac8070");

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.6;
  color: var(--rb-text);
  background-color: var(--rb-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   Typography Scale
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--rb-text);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

body,
.body-text {
  font-size: 1rem;
}

small,
.text-small {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

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

@media (min-width: 1024px) {
  .container {
    padding-inline: 32px;
  }
}

@media (min-width: 1440px) {
  .container {
    padding-inline: 40px;
  }
}

/* --------------------------------------------------------------------------
   Responsive Grid Utilities
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    gap: 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 24px;
  }

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

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

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

/* Focus Visible - keyboard navigation */
:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
a:not([class]) {
  color: var(--rb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--rb-transition);
}

a:not([class]):hover {
  color: var(--rb-accent-hover);
}

/* --------------------------------------------------------------------------
   Button Base
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: var(--rb-radius);
  cursor: pointer;
  transition: background-color var(--rb-transition), color var(--rb-transition),
    box-shadow var(--rb-transition), transform var(--rb-transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--rb-accent);
  color: var(--rb-accent-contrast);
}

.btn-primary:hover {
  background-color: var(--rb-accent-hover);
  box-shadow: var(--rb-shadow);
}

.btn-secondary {
  background-color: var(--rb-navy);
  color: var(--rb-off-white);
}

.btn-secondary:hover {
  background-color: var(--rb-navy-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--rb-navy);
  border: 2px solid var(--rb-navy);
}

.btn-outline:hover {
  background-color: var(--rb-accent);
  color: var(--rb-accent-contrast);
  border-color: var(--rb-accent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--rb-text);
}

.btn-ghost:hover {
  background-color: var(--rb-surface);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Form Elements Base
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rb-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--rb-text);
  background-color: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--rb-text-secondary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rb-accent);
  box-shadow: 0 0 0 3px rgba(27, 184, 245, 0.2);
  outline: none;
}

.form-input::placeholder {
  color: var(--rb-text-secondary);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-error {
  font-size: 0.8125rem;
  color: #DC2626;
}

.form-input.is-error,
.form-select.is-error {
  border-color: #DC2626;
}

/* --------------------------------------------------------------------------
   Loading Skeleton Animation
   -------------------------------------------------------------------------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--rb-surface);
  border-radius: var(--rb-radius);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-heading {
  height: 24px;
  margin-bottom: 12px;
  width: 40%;
  border-radius: 4px;
}

.skeleton-image {
  height: 200px;
  border-radius: var(--rb-radius);
}

.skeleton-card {
  height: 300px;
  border-radius: var(--rb-radius-lg);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--rb-text-secondary);
}

.text-accent {
  color: var(--rb-accent);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-lg {
  gap: 24px;
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-tablet-up {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop-up {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Skip link (W-12)
   The anchor ships on every page with class="skip-link" but no stylesheet
   ever defined the class, so it painted as ordinary text above the header and
   read as a broken navbar. It must stay reachable by keyboard and invisible
   otherwise.
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 10px 16px;
  background: var(--rb-navy, #1B3A5F);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--rb-radius, 6px) 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
  outline: 2px solid var(--rb-sky, #2AAEE4);
  outline-offset: 2px;
}
