/* styles/custom.css
   Trek-Tech landing — small custom polish for Tailwind Play site
   - Smooth scrolling
   - Focus-visible rings for keyboard users
   - Lightweight modal + backdrop styles
   - Glass card / brand gradient utilities
   - Small icon helpers for inline SVGs
*/

:root {
  /* Aviation-friendly brand colors (used by custom utilities) */
  --tk-navy: #0b3d91;       /* deep navy */
  --tk-sky:  #06b6d4;       /* cyan/sky accent */
  --tk-accent: #00aaff;     /* bright accent */
  --tk-panel: rgba(255,255,255,0.85);
  --tk-ring: rgba(6,182,212,0.18);
}

/* Use Inter if available from Google Fonts; fallback to system sans */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus visible styling for keyboard focus (complement Tailwind focus:outline-none) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--tk-ring), 0 2px 6px rgba(2,6,23,0.12);
  border-radius: 0.375rem; /* 6px matches Tailwind rounded-md */
}

/* Lightweight utility to prevent background scroll when modal open */
.no-scroll {
  height: 100%;
  overflow: hidden;
}

/* Modal backdrop / panel used by demo modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none; /* toggled via JS (set to block/flex) */
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.45);
  backdrop-filter: blur(4px) saturate(120%);
  z-index: 60; /* above typical content, below any global overlays */
}

.modal-backdrop.show {
  display: flex;
}

.modal-panel {
  width: min(720px, calc(100% - 48px));
  background: var(--tk-panel);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.18);
  border: 1px solid rgba(11,61,145,0.06);
}

/* Glass card for feature/product tiles */
.glass-card {
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(11,61,145,0.05);
  box-shadow: 0 6px 18px rgba(11,61,145,0.06);
  backdrop-filter: blur(6px) saturate(110%);
}

/* Subtle brand gradient used in hero accents and separators */
.brand-gradient {
  background: linear-gradient(90deg, rgba(6,182,212,0.12) 0%, rgba(11,61,145,0.06) 100%);
}

/* Inline SVG icon helpers */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  fill: currentColor; /* inherit color */
}

.icon-lg {
  width: 1.875rem; /* 30px */
  height: 1.875rem;
}

/* Decorative separator line */
.separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(11,61,145,0.06), rgba(6,182,212,0.06));
  border-radius: 9999px;
}

/* Small utility for muted text used under headings */
.muted {
  color: rgba(2,6,23,0.6);
}

/* Accessible visually-hidden (in case Tailwind's sr-only isn't used) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* Small responsive tweaks that pair with Tailwind's utilities */
@media (min-width: 1024px) {
  .modal-panel {
    padding: 1.5rem;
  }
}

/* Tiny polished styles for forms (will enhance default Tailwind form classes) */
input[type="text"],
input[type="email"],
textarea,
select {
  transition: box-shadow 150ms ease, border-color 150ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  box-shadow: 0 6px 18px rgba(6,182,212,0.12);
}

/* Utility to nudge footer to bottom if page short */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
}

/* Footer sits at bottom */
.site-footer {
  flex-shrink: 0;
}
