/* ==========================================================================
   Skypass Aviation Services — custom.css
   Only what the Tailwind CDN can't do cleanly (Alpine cloak, form field
   styling, keyframes, prose, reduced-motion, accessibility helpers).
   ========================================================================== */

:root {
    --navy: #0A2540;
    --navy-800: #123A5C;
    --sky: #0E7FD4;
    --sky-light: #E8F3FC;
    --gold: #FEBC0E;
    --gold-deep: #A67C00;
    --slate: #4A5568;
    --slate-100: #F5F7FA;
    --success: #16A34A;
}

/* Alpine.js: hide elements until Alpine initialises */
[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

/* Skip link (keyboard/screen-reader users) */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: var(--navy);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.5rem 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Screen-reader-only utility (in case Tailwind sr-only isn't applied yet) */
.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;
}

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.form-input {
    width: 100%;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--navy);
    min-height: 48px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder { color: #94A3B8; }
.form-input:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(14, 127, 212, 0.15);
}
.form-input-error { border-color: #DC2626; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-error {
    color: #DC2626;
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

/* Honeypot: visually hidden but present in DOM (bots fill it) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Focus visibility (keyboard users) — applies where Tailwind ring isn't set
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

/* Hide scrollbar on the services sub-nav */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* --------------------------------------------------------------------------
   WhatsApp float pulse ring
   -------------------------------------------------------------------------- */
.wa-float { position: fixed; }
.wa-pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: var(--success);
    opacity: 0.65;
    animation: wa-pulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}

/* --------------------------------------------------------------------------
   How-it-works dashed connector line (desktop only)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .steps-line::before {
        content: "";
        position: absolute;
        top: 32px;
        left: 16.66%;
        right: 16.66%;
        border-top: 2px dashed #C7D2DE;
        z-index: 0;
    }
}

/* Google Maps iframe fills its container */
.map-embed iframe { width: 100%; height: 100%; display: block; border: 0; }

/* --------------------------------------------------------------------------
   Prose (privacy policy)
   -------------------------------------------------------------------------- */
.prose-page { color: var(--slate); line-height: 1.75; }
.prose-page .lead { font-size: 1.125rem; color: #334155; margin-bottom: 2rem; }
.prose-page h2 {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.prose-page p { margin-bottom: 1.25rem; }
.prose-page ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-page li { margin-bottom: 0.5rem; }
.prose-page a { color: var(--sky); text-decoration: underline; }
.prose-page a:hover { color: var(--navy-800); }
.prose-page strong { color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   Reduced motion: disable transforms/animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .wa-pulse { display: none; }
}
