/* 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;
    --taxi-orange: #FF6F00;   /* premium / floating CTA accent */
    --taxi-amber:  #FF8A1F;   /* orange hover */
}

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); }
}

.orange-glow {
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.65);
    animation: orangePulse 2.4s ease-in-out infinite;
}

@keyframes orangePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.6); }
    50%      { box-shadow: 0 0 0 16px rgba(255, 111, 0, 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;
    }
}

/* ============================================================
   THEME TOGGLE BUTTON (header pill)
   ============================================================ */
.theme-toggle i {
    transition: transform 0.4s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg) scale(1.05);
}

/* ============================================================
   LOGO SWAP - dark logo in dark mode, blue logo in light mode
   ============================================================ */
.logo-light { display: none; }
html[data-theme="light"] .logo-dark  { display: none; }
html[data-theme="light"] .logo-light { display: inline-block; }

/* ============================================================
   LIGHT MODE - subtle, blue-tinted off-white
   Default is dark; light kicks in when <html data-theme="light">.
   ============================================================ */
html[data-theme="light"] body {
    background-color: #F1F5FB;
    color: #0A1F44;
}

/* Section / surface background swaps -------------------------- */
html[data-theme="light"] .bg-taxi-dark     { background-color: #F1F5FB !important; }
html[data-theme="light"] .bg-taxi-charcoal { background-color: #E6EDF8 !important; }
html[data-theme="light"] .bg-taxi-slate    { background-color: #DDE5F2 !important; }

/* bg-navy-band and bg-taxi-blue / bg-taxi-orange stay as accent
   dark/coloured strips inside the light body for contrast. */

/* Header (sticky, slightly translucent) ----------------------- */
html[data-theme="light"] header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(10, 31, 68, 0.08) !important;
    color: #0A1F44 !important;
}

/* Header nav text - all top-level links, dropdown triggers and dropdown items
   must read clearly on the light header. Belt-and-braces so nothing inherits
   white-on-white from any deeper rule. */
html[data-theme="light"] header a,
html[data-theme="light"] header button,
html[data-theme="light"] header summary,
html[data-theme="light"] header span {
    color: #0A1F44 !important;
}

/* Brand-coloured CTAs inside the header keep their white text */
html[data-theme="light"] header .bg-taxi-blue,
html[data-theme="light"] header .bg-taxi-blue *,
html[data-theme="light"] header .bg-taxi-orange,
html[data-theme="light"] header .bg-taxi-orange * {
    color: #FFFFFF !important;
}

/* Active page highlight in the nav stays vivid blue */
html[data-theme="light"] header a.text-taxi-sky,
html[data-theme="light"] header a.text-taxi-sky * {
    color: #1865DC !important;
}

/* Sky-blue dropdown icons stay sky-blue, not navy */
html[data-theme="light"] header i.text-taxi-sky {
    color: #1865DC !important;
}

/* Service / Company / Careers dropdown panels */
html[data-theme="light"] header .bg-taxi-charcoal {
    background-color: #FFFFFF !important;
    border-color: rgba(10, 31, 68, 0.10) !important;
    box-shadow: 0 12px 30px -10px rgba(10, 31, 68, 0.20);
}

/* Mobile menu (lives inside the header, also needs the same belt-and-braces) */
html[data-theme="light"] #mobile-menu a,
html[data-theme="light"] #mobile-menu summary,
html[data-theme="light"] #mobile-menu span {
    color: #0A1F44 !important;
}

html[data-theme="light"] #mobile-menu a.bg-taxi-blue,
html[data-theme="light"] #mobile-menu a.bg-taxi-blue * {
    color: #FFFFFF !important;
}

/* Footer ------------------------------------------------------- */
html[data-theme="light"] footer {
    background-color: #E6EDF8 !important;
    border-color: rgba(10, 31, 68, 0.08) !important;
}

/* Cards / glass surfaces -------------------------------------- */
html[data-theme="light"] .glass-card {
    background: #FFFFFF !important;
    border-color: rgba(10, 31, 68, 0.10) !important;
    box-shadow: 0 4px 14px rgba(10, 31, 68, 0.06);
}

html[data-theme="light"] .hover-lift:hover {
    box-shadow:
        0 20px 40px -10px rgba(10, 31, 68, 0.18),
        0 0 0 1px rgba(24, 101, 220, 0.35);
}

/* Hero / page-hero stays atmospheric in both themes -----------
   Just nudge the overlay so the photo reads a touch lighter. */
html[data-theme="light"] .hero-gradient {
    background:
        linear-gradient(
            180deg,
            rgba(6, 18, 42, 0.50) 0%,
            rgba(10, 31, 68, 0.48) 40%,
            rgba(11, 18, 32, 0.78) 100%
        ),
        url('../img/background.jpg') center center / cover no-repeat !important;
}

html[data-theme="light"] .page-hero {
    background:
        linear-gradient(
            180deg,
            rgba(6, 18, 42, 0.70) 0%,
            rgba(11, 18, 32, 0.85) 100%
        ),
        url('../img/background.jpg') center center / cover no-repeat !important;
}

/* Stripe overlay: switch to subtle navy tint on light surfaces */
html[data-theme="light"] .stripe-pattern::before {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(10, 31, 68, 0.045) 0,
        rgba(10, 31, 68, 0.045) 2px,
        transparent 2px,
        transparent 18px
    );
}

/* Text colour swaps (Tailwind utility classes) ---------------- */
html[data-theme="light"] .text-white      { color: #0A1F44 !important; }
html[data-theme="light"] .text-gray-300   { color: #4B5C7A !important; }
html[data-theme="light"] .text-gray-400   { color: #5A6B89 !important; }
html[data-theme="light"] .text-gray-500   { color: #7384A0 !important; }
html[data-theme="light"] .text-gray-600   { color: #4B5C7A !important; }

/* Brand-colour text classes keep their identity */
html[data-theme="light"] .text-taxi-sky    { color: #1865DC !important; }
html[data-theme="light"] .text-taxi-blue   { color: #1865DC !important; }
html[data-theme="light"] .text-taxi-azure  { color: #1865DC !important; }
html[data-theme="light"] .text-taxi-orange { color: #FF6F00 !important; }

/* Re-force WHITE text inside elements that stay dark in light mode */
html[data-theme="light"] .bg-taxi-blue,
html[data-theme="light"] .bg-taxi-blue *,
html[data-theme="light"] .bg-taxi-orange,
html[data-theme="light"] .bg-taxi-orange *,
html[data-theme="light"] .bg-navy-band,
html[data-theme="light"] .bg-navy-band *,
html[data-theme="light"] .hero-gradient h1,
html[data-theme="light"] .hero-gradient h2,
html[data-theme="light"] .hero-gradient h3,
html[data-theme="light"] .hero-gradient p,
html[data-theme="light"] .hero-gradient li,
html[data-theme="light"] .hero-gradient span,
html[data-theme="light"] .hero-gradient a,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .page-hero h2,
html[data-theme="light"] .page-hero h3,
html[data-theme="light"] .page-hero p,
html[data-theme="light"] .page-hero li,
html[data-theme="light"] .page-hero span,
html[data-theme="light"] .page-hero a {
    color: #FFFFFF !important;
}

/* The "AWAITS" gradient text is transparent-clipped, so reassert that */
html[data-theme="light"] .phone-number {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* Borders: white tints become navy tints ---------------------- */
html[data-theme="light"] .border-white\/5  { border-color: rgba(10, 31, 68, 0.06) !important; }
html[data-theme="light"] .border-white\/10 { border-color: rgba(10, 31, 68, 0.10) !important; }
html[data-theme="light"] .border-white\/20 { border-color: rgba(10, 31, 68, 0.14) !important; }
html[data-theme="light"] .border-white\/30 { border-color: rgba(10, 31, 68, 0.18) !important; }

/* Soft white overlays become subtle navy overlays ------------- */
html[data-theme="light"] .bg-white\/5,
html[data-theme="light"] .bg-white\/10 {
    background-color: rgba(10, 31, 68, 0.05) !important;
}

html[data-theme="light"] .hover\:bg-white\/5:hover,
html[data-theme="light"] .hover\:bg-white\/10:hover {
    background-color: rgba(10, 31, 68, 0.08) !important;
}

/* Prose helpers ----------------------------------------------- */
html[data-theme="light"] .prose-dark p,
html[data-theme="light"] .prose-dark ul { color: #4B5C7A; }
html[data-theme="light"] .prose-dark h2,
html[data-theme="light"] .prose-dark h3 { color: #0A1F44; }

/* Theme toggle button restyle for light bg -------------------- */
html[data-theme="light"] .theme-toggle {
    border-color: rgba(10, 31, 68, 0.18) !important;
    color: #1865DC !important;
}

html[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(10, 31, 68, 0.06) !important;
    color: #0A1F44 !important;
}

/* Mobile menu hamburger icon: pick up the navy text colour ---- */
html[data-theme="light"] #mobile-menu-btn { color: #0A1F44 !important; }

/* Hover guard re-affirmation: blue/orange CTAs must show white text */
html[data-theme="light"] a.bg-taxi-blue,
html[data-theme="light"] button.bg-taxi-blue,
html[data-theme="light"] a.bg-taxi-orange,
html[data-theme="light"] button.bg-taxi-orange {
    color: #FFFFFF !important;
}

/* The hover:bg-white guard previously defined keeps blue text on hover - already global */
