/* Adelaide Independent Taxis - All-blue brand palette */

:root {
    --taxi-blue:   #1865DC;   /* deep brand blue - CTA backgrounds (WCAG AA w/ white text) */
    --taxi-sky:    #3B8DFF;   /* vivid blue - accent text & icons */
    --taxi-azure:  #5BA4FF;   /* soft blue - hover / highlight */
    --taxi-navy:   #0A1F44;
    --taxi-deep:   #06122A;
    --taxi-dark:   #0B1220;
    --taxi-charcoal: #111A2E;
    --taxi-slate:  #1B2640;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background-color: var(--taxi-dark);
    color: #fff;
}

/* ============================================================
   HOMEPAGE HERO - Adelaide night photograph as backdrop
   ============================================================ */
.hero-gradient {
    background:
        linear-gradient(
            180deg,
            rgba(6, 18, 42, 0.55) 0%,
            rgba(10, 31, 68, 0.50) 40%,
            rgba(11, 18, 32, 0.78) 100%
        ),
        url('../img/background.jpg') center center / cover no-repeat;
    background-attachment: scroll;
}

/* Slightly stronger overlay on small screens so text never washes out */
@media (max-width: 768px) {
    .hero-gradient {
        background:
            linear-gradient(
                180deg,
                rgba(6, 18, 42, 0.70) 0%,
                rgba(10, 31, 68, 0.68) 40%,
                rgba(11, 18, 32, 0.88) 100%
            ),
            url('../img/background.jpg') center center / cover no-repeat;
    }
}

/* Composable diagonal stripe overlay - sits on top of any background
   without clobbering background-image on the host element. */
.stripe-pattern {
    position: relative;
}

.stripe-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 2px,
            transparent 2px,
            transparent 18px
        );
    z-index: 1;
}

/* Hero/page sections include relative + z-10 wrappers around content, so
   the stripe overlay sits between the background image and the content. */

/* ============================================================
   SUBPAGE HERO BANDS - navy gradient with a faint photo tint
   ============================================================ */
.page-hero {
    background:
        linear-gradient(
            180deg,
            rgba(6, 18, 42, 0.75) 0%,
            rgba(11, 18, 32, 0.88) 100%
        ),
        url('../img/background.jpg') center center / cover no-repeat;
}

/* Solid navy section utility */
.bg-navy-band {
    background: linear-gradient(135deg, #0A1F44 0%, #06122A 100%);
}

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(59, 141, 255, 0.40);
}

/* ============================================================
   BUTTON GLOW - primary brand pulse
   ============================================================ */
.blue-glow {
    box-shadow: 0 0 0 0 rgba(24, 101, 220, 0.6);
    animation: bluePulse 2.6s ease-in-out infinite;
}

@keyframes bluePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(24, 101, 220, 0.55); }
    50%      { box-shadow: 0 0 0 14px rgba(24, 101, 220, 0); }
}

/* ============================================================
   HEADLINE "AWAITS" - now pure blue gradient shine
   ============================================================ */
.phone-number {
    background: linear-gradient(90deg, #3B8DFF 0%, #5BA4FF 35%, #1865DC 70%, #3B8DFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.7s ease-out both;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--taxi-sky);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--taxi-sky);
    outline-offset: 2px;
}

/* ============================================================
   HEADER - sticky + thin blue accent line on top
   ============================================================ */
header {
    position: sticky;
    top: 0;
}

header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #1865DC 0%, #3B8DFF 50%, #5BA4FF 100%);
    z-index: 2;
}

/* ============================================================
   BUTTON HOVER GUARD
   Many blue CTAs have hover:bg-white. After flipping to white,
   text must read as blue, not invisible white.
   ============================================================ */
a.bg-taxi-blue.hover\:bg-white:hover,
button.bg-taxi-blue.hover\:bg-white:hover {
    color: var(--taxi-blue) !important;
}

a.bg-taxi-blue.hover\:bg-white:hover *,
button.bg-taxi-blue.hover\:bg-white:hover * {
    color: var(--taxi-blue) !important;
}

/* ============================================================
   PROSE HELPERS (content-heavy pages)
   ============================================================ */
.prose-dark p {
    color: #C7C7C7;
    line-height: 1.75;
}

.prose-dark p + p {
    margin-top: 1rem;
}

.prose-dark h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #fff;
    letter-spacing: 0.04em;
}

.prose-dark h3 {
    color: #fff;
    font-weight: 700;
}

.prose-dark ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: #C7C7C7;
}

.prose-dark ul li + li {
    margin-top: 0.4rem;
}

.prose-dark a {
    color: var(--taxi-sky);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-dark a:hover {
    color: var(--taxi-azure);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}
