/* ===========================================================================
   TRAVEL BY TAXI - SITE STYLES
   ===========================================================================
   Bootstrap 5 does most of the layout (grid, spacing, buttons, navbar).
   This file adds the Travel By Taxi look on top of it:
     1. Brand colours + font
     2. Header / navigation
     3. Buttons
     4. Sections + headings
     5. Cards, icon tiles, numbered steps, check lists
     6. Notes / callouts
     7. App store badges + phone mock-up
     8. FAQ accordion
     9. Legal pages (Terms / Privacy)
    10. Footer
    11. Animations
   LEARNING NOTE: Change a colour once in the :root block below and it
   updates everywhere, because every rule uses var(--name).
   =========================================================================== */


/* ---------------------------------------------------------------------------
   1. BRAND COLOURS + FONT
   --------------------------------------------------------------------------- */

/* Inter font, stored locally in /assets/fonts (no Google Fonts call). One
   "variable" file covers every weight from 100 to 900. */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand:       #00D9E8;  /* Travel By Taxi cyan (from the logo) */
    --brand-dark:  #00B8C5;  /* Hover state for cyan buttons */
    --brand-soft:  rgba(0, 217, 232, 0.10);  /* Light cyan behind icons */
    --brand-tint:  rgba(0, 217, 232, 0.05);  /* Very light cyan card background */
    --brand-line:  rgba(0, 217, 232, 0.30);  /* Cyan border on card hover */

    /* Greys (same values the original Tailwind design used) */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --header-height: 80px;

    /* Tell Bootstrap to use our font and text colour */
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --bs-body-color: var(--gray-900);
    --bs-link-color-rgb: 0, 217, 232;
}

body {
    padding-top: var(--header-height);   /* Room for the fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
}

/* Colour helpers used in the page templates */
.text-brand { color: var(--brand) !important; }
.text-muted-600 { color: var(--gray-600) !important; }
.text-muted-700 { color: var(--gray-700) !important; }
.text-muted-500 { color: var(--gray-500) !important; }
.link-brand { color: var(--brand); text-decoration: none; }
.link-brand:hover { text-decoration: underline; color: var(--brand-dark); }

/* Page width: 1280px max (matches the original design) */
.container-xl { max-width: 1280px; }
@media (min-width: 1024px) { .container-xl { padding-left: 2rem; padding-right: 2rem; } }

/* Spacing helpers Bootstrap doesn't have */
.lh-relaxed { line-height: 1.625 !important; }   /* Comfortable paragraph line height */
.p-card     { padding: 1.5rem; }                  /* Standard card padding */
.p-card-lg  { padding: 2rem; }                    /* Roomier card padding */
.p-card-xl  { padding: 3rem; }

/* Max text widths (keeps paragraphs a readable line length) */
.mw-3xl { max-width: 48rem; }
.mw-4xl { max-width: 56rem; }
.mw-sm  { max-width: 24rem; }

/* Cyan scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }


/* ---------------------------------------------------------------------------
   2. HEADER / NAVIGATION
   --------------------------------------------------------------------------- */
.site-header {
    min-height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}
.site-header .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}
.site-header .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--brand); }

/* On mobile the menu drops down under the logo: give links some padding */
@media (max-width: 767.98px) {
    .site-header .navbar-collapse { padding-bottom: 1rem; }
    .site-header .nav-link { padding: 0.5rem 1rem; border-radius: 0.375rem; }
    .site-header .nav-link:hover { background: var(--gray-100); color: var(--gray-700); }
    .site-header .nav-link.active { background: var(--brand-soft); color: var(--brand); }
}

/* Shown in place of the logo until assets/img/logo-icon.png is uploaded */
.logo-fallback {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;
    border-radius: 12px; font-size: 1.5rem;
}


/* ---------------------------------------------------------------------------
   3. BUTTONS
   Bootstrap buttons are re-coloured using their own CSS variables.
   --------------------------------------------------------------------------- */
.btn {
    /* Default button: compact, small text (like the original design) */
    --bs-btn-font-size: 0.875rem;
    --bs-btn-font-weight: 500;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
/* Large button: taller and wider, same small text */
.btn-lg {
    --bs-btn-font-size: 0.875rem;
    --bs-btn-padding-y: 0.625rem;
    --bs-btn-padding-x: 2rem;
    --bs-btn-border-radius: 0.375rem;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .bi { font-size: 1rem; }   /* Icons inside buttons stay small */

/* Solid cyan (main call-to-action) */
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}

/* Cyan outline that fills on hover */
.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand);
    --bs-btn-active-border-color: var(--brand);
    background: #fff;
}

/* Grey outline that turns cyan on hover ("Join as Driver", "Try Web Version") */
.btn-outline-muted {
    --bs-btn-color: var(--gray-900);
    --bs-btn-border-color: var(--gray-300);
    --bs-btn-hover-color: var(--brand);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-color: var(--brand);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: var(--brand);
    background: #fff;
}

/* White button with cyan text (used on cyan backgrounds) */
.btn-white {
    --bs-btn-color: var(--brand);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--brand);
    --bs-btn-hover-bg: var(--gray-100);
    --bs-btn-hover-border-color: var(--gray-100);
    --bs-btn-active-color: var(--brand);
    --bs-btn-active-bg: var(--gray-100);
}

/* White outline (used on cyan backgrounds) */
.btn-outline-white {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--brand);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: var(--brand);
    --bs-btn-active-bg: #fff;
}

/* Extra-large hero buttons */
.btn-xl {
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    border-width: 2px;
    border-radius: 0.375rem;
}
.btn-xl.btn-brand,
.btn-xl.btn-white { font-weight: 600; }


/* ---------------------------------------------------------------------------
   4. SECTIONS + HEADINGS
   --------------------------------------------------------------------------- */
.section { padding: 5rem 0; }                 /* Standard vertical spacing */
.hero { padding: 5rem 0; }
.hero-home { padding: 3rem 0 5rem; }           /* Homepage hero sits a bit higher */

.bg-soft { background: var(--gray-50); }                                       /* Light grey band */
.bg-fade { background: linear-gradient(to bottom, var(--gray-50), #fff); }    /* Grey fading to white */
.bg-brand { background: var(--brand); }
.bg-brand-gradient { background: linear-gradient(to right, var(--brand), var(--brand-dark)); }

/* Big page headings. Second line is wrapped in <span class="accent"> to go cyan. */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}
.hero-title .accent { display: block; color: var(--brand); }
@media (min-width: 576px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 992px) { .hero-title-xl { font-size: 4.5rem; } }

.hero-lead {
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--gray-600);
}
@media (min-width: 576px) { .hero-lead-lg { font-size: 1.5rem; } }

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
}
.section-lead { font-size: 1.25rem; color: var(--gray-600); }

/* Section text on cyan backgrounds */
.on-brand .section-title { color: #fff; }
.on-brand .section-lead { color: rgba(255, 255, 255, 0.9); }
@media (min-width: 576px) { .section-title-lg { font-size: 3rem; } }

.fw-800 { font-weight: 800; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }


/* ---------------------------------------------------------------------------
   5. CARDS, ICON TILES, NUMBERED STEPS, CHECK LISTS
   --------------------------------------------------------------------------- */

/* Base card: white box, 2px light border, soft rounded corners */
.tbt-card {
    background: #fff;
    border: 2px solid var(--gray-100);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: border-color 0.2s ease;
}
.tbt-card.border-mid { border-color: var(--gray-200); }

/* Cards whose border goes faint cyan on hover */
.tbt-card.hover-line:hover { border-color: var(--brand-line); }
.tbt-card.hover-brand:hover { border-color: var(--brand); }

/* Lift-up effect on hover (feature cards, airport cards) */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease; }
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 217, 232, 0.15);
}

/* Highlighted card: cyan border + very light cyan fill */
.tbt-card.card-accent { border-color: var(--brand); background: var(--brand-tint); }
.tbt-card.card-grey { border-color: var(--gray-200); background: var(--gray-50); }

/* Cyan icon on a light cyan square/circle */
.icon-tile {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
    flex-shrink: 0;
}
.icon-tile-sm { width: 48px; height: 48px; font-size: 1.5rem; }
.icon-tile-md { width: 56px; height: 56px; font-size: 1.75rem; }
.icon-tile-lg { width: 80px; height: 80px; font-size: 2.5rem; }
.icon-tile-xl { width: 96px; height: 96px; font-size: 3rem; }
.icon-tile-rounded { border-radius: 0.75rem; }
.icon-tile-lg.icon-tile-rounded { border-radius: 1rem; }
.icon-tile-circle { border-radius: 50%; }

/* Numbered cyan circles (1, 2, 3...) */
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; font-weight: 700;
    border-radius: 50%; flex-shrink: 0;
}
.step-num-xl { width: 64px; height: 64px; font-size: 1.5rem; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.step-num-lg { width: 48px; height: 48px; font-size: 1.25rem; }
.step-num-md { width: 32px; height: 32px; font-size: 1rem; }
.step-num-sm { width: 24px; height: 24px; font-size: 0.875rem; margin-top: 0.15rem; }

/* Arrow between the homepage "How It Works" steps (desktop only) */
.step-arrow { position: absolute; top: 1.5rem; right: -1.75rem; font-size: 1.5rem; color: var(--gray-300); }

/* List with a cyan tick before each item */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.check-list.tight { gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-list li > .bi { color: var(--brand); font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }
.check-list.small-icons li > .bi { font-size: 1.25rem; }

/* Solid cyan tick circles (homepage "Pre-Paid" / "Instant Hail" lists) */
.tick {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 0.1rem;
}

/* "NEW" pill */
.badge-new {
    background: var(--brand); color: #fff;
    font-size: 0.75rem; font-weight: 700;
    padding: 0.25rem 0.75rem; border-radius: 999px;
}

/* Large cyan number/word ("100%", "24/7", "Real-Time Tracking") */
.stat { font-weight: 700; color: var(--brand); line-height: 1.1; }

/* Airport code square on airport list cards */
.airport-code {
    width: 48px; height: 48px; border-radius: 0.5rem;
    background: var(--brand-soft); color: var(--brand);
    font-weight: 700; font-size: 0.875rem;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Whole-card links shouldn't be underlined or blue */
a.card-link-wrap { color: inherit; text-decoration: none; display: block; height: 100%; }

/* Big phone number box (Phone Connection page) */
.phone-box {
    display: inline-flex; flex-direction: column; align-items: center;
    padding: 2rem; background: #fff; border-radius: 1rem;
}
.phone-box a { font-weight: 700; color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
.phone-box a:hover { color: var(--brand-dark); }


/* ---------------------------------------------------------------------------
   6. NOTES / CALLOUTS
   --------------------------------------------------------------------------- */
.note { border-left: 4px solid; padding: 1rem; border-radius: 0.25rem; }
.note-info  { background: #eff6ff; border-color: #60a5fa; color: #1e3a8a; }   /* Blue */
.note-brand { background: var(--brand-soft); border-color: var(--brand); color: var(--gray-900); }
.note-info .bi { color: #2563eb; }

.card-danger { background: #fef2f2 !important; border-color: #fecaca !important; }  /* Light red */


/* ---------------------------------------------------------------------------
   7. APP STORE BADGES + PHONE MOCK-UP
   --------------------------------------------------------------------------- */
.store-badge { display: inline-block; transition: transform 0.2s ease; }
.store-badge:hover { transform: scale(1.05); }

/* Plain button shown until the official badge SVGs are uploaded */
.store-fallback {
    display: inline-flex; align-items: center; gap: 0.6em;
    background: #000; color: #fff;
    border: 1px solid #a6a6a6; border-radius: 0.5em;
    padding: 0 1em; text-decoration: none; white-space: nowrap;
}
.store-fallback .bi { font-size: 1.6em; }
.store-fallback span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.15em; }
.store-fallback small { font-size: 0.55em; font-weight: 400; letter-spacing: 0.02em; }

/* Cyan phone shape with the app icon (Android / iOS pages) */
.phone-mock {
    aspect-ratio: 9 / 16;
    background: linear-gradient(to bottom right, var(--brand), var(--brand-dark));
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex; align-items: center; justify-content: center;
}
.phone-mock img { width: 192px; height: 192px; border-radius: 1.5rem; }
.phone-mock .logo-fallback { width: 192px; height: 192px; border-radius: 1.5rem; font-size: 6rem; background: rgba(255, 255, 255, 0.2); }


/* ---------------------------------------------------------------------------
   8. FAQ ACCORDION (Bootstrap accordion, restyled as separate boxes)
   --------------------------------------------------------------------------- */
.faq .accordion-item {
    border: 2px solid var(--gray-100) !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq .accordion-item:hover { border-color: var(--brand-line) !important; }
.faq .accordion-button {
    font-size: 1.125rem; font-weight: 600; color: var(--gray-900);
    padding: 1rem 1.5rem; background: #fff; box-shadow: none !important;
}
.faq .accordion-button:not(.collapsed) { background: #fff; color: var(--gray-900); }
.faq .accordion-button:hover { transform: none; }
.faq .accordion-body { color: var(--gray-700); line-height: 1.65; padding: 0.25rem 1.5rem 1rem; }


/* ---------------------------------------------------------------------------
   9. LEGAL PAGES (Terms & Conditions, Privacy Policy)
   --------------------------------------------------------------------------- */
.legal { color: var(--gray-700); font-size: 1.0625rem; line-height: 1.7; }
.legal h1 { font-size: 3rem; font-weight: 800; color: var(--gray-900); }
.legal h2 { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin: 2.5rem 0 1rem; }
.legal h3 { font-size: 1.25rem; font-weight: 600; color: var(--gray-900); margin: 1.5rem 0 0.75rem; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal ul.plain { list-style: none; padding-left: 0; }
.legal a { color: var(--brand); text-decoration: none; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal .panel { background: var(--gray-50); padding: 1.5rem; border-radius: 0.5rem; }
.legal .panel-sm { background: var(--gray-50); padding: 1rem; border-radius: 0.5rem; }


/* ---------------------------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------------------------- */
.site-footer { background: var(--gray-900); color: var(--gray-300); }
.site-footer a { color: var(--gray-300); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--brand); }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-800); }


/* ---------------------------------------------------------------------------
   11. ANIMATIONS
   --------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }

/* Respect visitors who have asked their device for less motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up { animation: none; }
    .card-hover:hover, .btn:hover, .store-badge:hover { transform: none; }
}

/* Solid cyan border (featured card on the Business page) */
.tbt-card.border-brand-solid { border-color: var(--brand); }

/* Check list in two columns on tablet and up (app pages) */
@media (min-width: 768px) { .check-list.two-col { grid-template-columns: 1fr 1fr; } }
