/* =========================================================
   TURUNTAI.online Delivery — Design Tokens
   Primary Red   #CC0404   (urgency, speed, the brand mark)
   Secondary Navy #010180  (trust, reliability)
   Signature motif: a dashed "route line" divider, echoing
   a rider's path on a map — used between sections instead
   of generic numbered markers.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #CC0404;
    --color-primary-dark: #9C0303;
    --color-secondary: #010169;
    --color-secondary-light: #1A1AA6;
    --color-ink: #0B0B12;
    --color-paper: #FFFFFF;
    --color-mist: #F6F6FA;
    --color-line: #E4E4EE;
    --color-success: #16A34A;
    --font-display: 'nunito black', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 30px rgba(1, 1, 128, 0.08);
    --shadow-pop: 0 16px 40px rgba(204, 4, 4, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  padding-bottom: 0;
}

html { scroll-behavior: smooth; }

@media(min-width:992px) {

    body {
        font-family: var(--font-body);
        color: var(--color-ink);
        background: var(--color-paper);
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

a { text-decoration: none; }

.text-brand-red { color: var(--color-primary); }
.text-brand-navy { color: var(--color-secondary); }
.bg-brand-red { background: var(--color-primary); }
.bg-brand-navy { background: var(--color-secondary); }

.btn-brand {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-pop);
}
.btn-brand:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }

.btn-brand-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: background .15s ease, transform .15s ease;
}
.btn-brand-outline:hover { background: rgba(255,255,255,0.14); color: #fff; transform: translateY(-2px); }

.btn-navy {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.btn-navy:hover { background: var(--color-secondary-light); color: #fff; }

/* ---------- Route-line divider (signature motif) ---------- */
.route-divider {
  height: 28px;
  width: 100%;
  background-image: radial-gradient(circle, var(--color-primary) 2.5px, transparent 2.6px);
  background-size: 26px 26px;
  background-position: center;
  background-repeat: repeat-x;
  opacity: 0.35;
}


/*
FLOATING NAVBAR


.floating-navbar {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    z-index: 9999;
}

.floating-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 60px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.4);
}

    .floating-nav-wrapper .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 85px;
        text-decoration: none;
        color: #6c757d;
        font-size: 13px;
        font-weight: 600;
        transition: .3s;
    }

        .floating-nav-wrapper .nav-item i {
            font-size: 22px;
            margin-bottom: 6px;
        }

        .floating-nav-wrapper .nav-item:hover {
            color: #CC0404;
            transform: translateY(-4px);
        }

        .floating-nav-wrapper .nav-item.active {
            color: #CC0404;
        }

            .floating-nav-wrapper .nav-item.active i {
                background: #CC0404;
                color: white;
                width: 42px;
                height: 42px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
            }

/* ---- Desktop (>=992px): collapse the icon-dock into a single-line
   pill of plain text links, e.g. Home | Services | Coverage | FAQ | About | Contact ---- 
@media (min-width: 992px) {
    .floating-nav-wrapper {
        gap: 0;
        padding: 8px 10px;
    }

    .floating-nav-wrapper .nav-item {
        flex-direction: row;
        min-width: auto;
        padding: 0.65rem 1.25rem;
        border-right: 1px solid var(--color-line);
        font-family: var(--font-body);
        font-size: 14px;
    }

    .floating-nav-wrapper .nav-item:last-child {
        border-right: none;
    }

    .floating-nav-wrapper .nav-item i {
        display: none;
    }

    .floating-nav-wrapper .nav-item:hover {
        transform: none;
    }

    .floating-nav-wrapper .nav-item.active {
        background: transparent;
    }

        .floating-nav-wrapper .nav-item.active i {
            display: none;
        }
}


 ---------- Navbar (desktop top bar) ---------- */
.navbar-turuntai {
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
} /*
.navbar-turuntai .navbar-brand { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); }
.navbar-turuntai .navbar-brand span { color: var(--color-primary); }  


/* ---------- Fixed bottom nav (mobile) ----------

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-paper);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
  z-index: 1030;
}
.bottom-nav .nav-link {
  color: #8A8AA3;
  font-size: 0.72rem;
  text-align: center;
  padding: 8px 4px;
}
.bottom-nav .nav-link.active,
.bottom-nav .nav-link:hover { color: var(--color-primary); }
.bottom-nav .nav-link i { display: block; font-size: 1.15rem; margin-bottom: 2px; }

@media (max-width: 1199.98px) {
  .bottom-nav { display: flex; }
  .navbar-desktop-only { display: none !important; }
} 
*/


/* ==========================================
   Floating Navigation
========================================== */

.floating-navbar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 9999;
}

.floating-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.floating-nav-wrapper .nav-item{

    display:flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    padding:14px 22px;

    color:#666;

    font-weight:600;

    font-size:15px;

    border-radius:40px;

    transition:.25s;

}

    .floating-nav-wrapper .nav-item:hover {
        color: var(--color-primary);
        background: #FFF5F5;
    }
    .floating-nav-wrapper .nav-item.active {
        background: var(--color-primary);
        color: white;
    }
    .floating-nav-wrapper .nav-item i {
        font-size: 18px;
    }

@media(min-width:992px) {
    .floating-nav-wrapper .nav-item {
        padding: 15px 24px;
    }

        .floating-nav-wrapper .nav-item i {
            display: none;
        }
}

@media(max-width:991px) {

    .floating-navbar {
        width: 95%;
        bottom: 14px;
    }

    .floating-nav-wrapper {
        width: 100%;
        justify-content: space-between;
        border-radius: 24px;
        padding: 10px;
    }

        .floating-nav-wrapper .nav-item {
            flex-direction: column;
            gap: 4px;
            padding: 8px;
            font-size: 11px;
        }

            .floating-nav-wrapper .nav-item i {
                display: block;
                font-size: 20px;
            }
}

.floating-nav-wrapper .nav-item.active {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(204,4,4,.25);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('/images/Hero.png') center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}
.hero .eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #FFD9D9;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
}
.hero p.lead { color: rgb(255, 255, 255); font-size: 1.15rem; max-width: 560px; }

/* ---------- Cards / sections ---------- */
.section { padding: 5.5rem 0; }
.section-mist { background: var(--color-mist); }

.service-card, .stat-card, .review-card, .feature-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover, .review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(1,1,128,0.14);
}

.stat-card { text-align: center; padding: 1.75rem 1rem; }
.stat-card .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--color-primary);
}
.stat-card .stat-label { color: #6b6b80; font-size: 0.9rem; }

.section-eyebrow {
  font-family: var(--font-display);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.auth-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 1, 55, .9), rgba(1, 1, 105, .54)),
    url('../images/Hero.png') center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}
.auth-visual::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 45%;
  background: linear-gradient(transparent, rgba(204, 4, 4, .3));
  content: '';
}
.auth-logo-link { display: inline-flex; width: fit-content; }
.auth-logo {
  display: block;
  width: min(280px, 78%);
  height: auto;
}
.auth-role-option {
  color: var(--color-primary);
  background: #fff;
  border-color: var(--color-primary);
}
.auth-role-option:hover {
  color: #fff;
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-check:checked + .auth-role-option {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-check:focus + .auth-role-option {
  box-shadow: 0 0 0 .2rem rgba(204, 4, 4, .2);
}
.auth-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
}

/* ---------- Dashboard shell ---------- */
.dash-sidebar {
  background: var(--color-ink);
  color: #d9d9e6;
  min-height: 100vh;
}
.dash-sidebar .brand { color: #fff; font-family: var(--font-display); font-weight: 800; }
.dash-sidebar .nav-link {
  color: #b4b4c8;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  margin-bottom: 2px;
}
.dash-sidebar .nav-link.active, .dash-sidebar .nav-link:hover {
  background: rgba(204,4,4,0.18);
  color: #fff;
}
.dash-sidebar .nav-link i { width: 20px; display: inline-block; }

.dash-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
}

.status-badge { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; padding: 0.32rem 0.7rem; border-radius: 999px; }
.status-Pending { background: #FFF3CD; color: #8A6D00; }
.status-Assigned, .status-PickupCreated, .status-PickupSuccess, .status-OnTheWay, .status-Arrived { background: #DCE4FF; color: var(--color-secondary); }
.status-Delivered { background: #DCF7E3; color: var(--color-success); }
.status-Cancelled { background: #FBD8D8; color: var(--color-primary-dark); }

.service-icon {
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(145deg, #e60000, #b90000);
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(204, 4, 4, 0.2);
}

.service-icon i {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.coverage-selector { max-width: 520px; }
.coverage-selector .form-select {
  border-color: var(--color-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(1, 1, 105, 0.08);
}
.coverage-selector .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(204, 4, 4, 0.12);
}
.coverage-map { border: 1px solid var(--color-line); }

.service-area-directory { max-width: 920px; }
.service-area-search {
  position: relative;
  display: flex;
  gap: .75rem;
  align-items: stretch;
}
.service-area-search > i {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 2;
  color: var(--color-primary);
  transform: translateY(-50%);
}
.service-area-search .form-control {
  min-width: 0;
  padding-left: 2.8rem;
  border-color: var(--color-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(1, 1, 105, 0.08);
}
.service-area-search .btn {
  min-width: 112px;
  border-radius: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.service-area-table-wrap {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.service-area-table thead th {
  padding: 1rem 1.1rem;
  color: #fff;
  background: var(--color-secondary);
  border: 0;
  white-space: nowrap;
}
.service-area-table tbody td {
  padding: 1rem 1.1rem;
  vertical-align: middle;
  border-color: var(--color-line);
}
.service-area-table tbody tr:last-child td { border-bottom: 0; }
.service-area-table tbody tr:hover { background: #fff8f8; }

@media (max-width: 575.98px) {
  .service-area-search { gap: .5rem; }
  .service-area-search .form-control {
    padding-right: .75rem;
    font-size: 1rem;
  }
  .service-area-search .btn {
    min-width: 82px;
    padding-right: .85rem;
    padding-left: .85rem;
  }
  .service-area-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .service-area-table,
  .service-area-table tbody {
    display: block;
    width: 100%;
  }
  .service-area-table thead { display: none; }
  .service-area-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(1, 1, 105, .07);
  }
  .service-area-table tbody td {
    display: flex;
    min-width: 0;
    padding: .75rem .85rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
    border: 0;
  }
  .service-area-table tbody td:nth-child(-n+2) {
    border-bottom: 1px solid var(--color-line);
  }
  .service-area-table tbody td:nth-child(odd) {
    border-right: 1px solid var(--color-line);
  }
  .service-area-table tbody td::before {
    margin-bottom: .25rem;
    color: var(--color-muted);
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .service-area-table tbody td:first-child,
  .service-area-table tbody td:nth-child(2) {
    justify-content: center;
  }
}

.live-location-card {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff, #fff5f5);
  border: 1px solid rgba(204, 4, 4, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.live-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 14px;
  font-size: 1.35rem;
}
.live-location-button { padding: 0.65rem 1.15rem; }
.live-location-map-card iframe { min-height: 260px; }
.delivery-map{height:320px;border:1px solid var(--color-line);border-radius:14px;overflow:hidden;z-index:1}.location-search-wrap{position:relative;display:flex;gap:.5rem}.location-search-wrap .form-control{min-width:0}.location-search-results{position:absolute;top:calc(100% + .3rem);left:0;right:0;z-index:1100;max-height:230px;overflow:auto;background:#fff;border:1px solid var(--color-line);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.18)}.location-result-item{display:block;width:100%;padding:.7rem .85rem;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--color-line);font-size:.84rem}.location-result-item:hover{background:#fff5f5}.map-pin{display:flex;align-items:center;justify-content:center;width:38px;height:38px;color:#fff;border:3px solid #fff;border-radius:50% 50% 50% 0;box-shadow:0 5px 14px rgba(0,0,0,.35);transform:rotate(-45deg)}.map-pin i{transform:rotate(45deg)}.order-location-map{height:380px;border-radius:14px;overflow:hidden}

/* ---------- Shared responsive navigation ---------- */
.navbar-turuntai {
  min-height: 60px;
  padding: 0;
  background: #e60000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(130, 0, 0, 0.22);
}

.red-panel-logo {
  display: block;
  width: 240px;
  height: 59px;
  object-fit: contain;
  border-radius: 9px;
}

.navbar-turuntai .nav-link {
  position: relative;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 0.75rem;
}

.navbar-turuntai .nav-link:hover,
.navbar-turuntai .nav-link:focus { color: #fff; opacity: 0.78; }

.navbar-turuntai .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  box-shadow: none;
}

.navbar-turuntai .navbar-toggler-icon { filter: brightness(0) invert(1); }

.navbar-turuntai .btn-navy {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.navbar-turuntai .btn-navy:hover { color: #e60000; background: #fff; }

.navbar-turuntai .btn-brand {
  color: #e60000;
  background: #fff;
  box-shadow: 0 8px 20px rgba(110, 0, 0, 0.2);
}

.navbar-turuntai .btn-brand:hover { color: #b60000; background: #fff; }

.dashboard-logo-link { display: flex; justify-content: center; }
.dashboard-red-panel-logo {
  width: 220px;
  height: 76px;
  object-fit: contain;
  border-radius: 9px;
}

.dashboard-mobile-logo img {
  display: block;
  width: 145px;
  height: 48px;
  object-fit: contain;
  border-radius: 7px;
}

.dashboard-menu-button {
  color: var(--color-secondary);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .navbar-turuntai { min-height: 54px; padding: 0.2rem 0; }
  .red-panel-logo { width: 185px; height: 46px; }
  .navbar-turuntai .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
  .navbar-turuntai .navbar-nav { align-items: stretch !important; }
  .navbar-turuntai .nav-link { padding: 0.72rem 0.25rem; }
  .navbar-turuntai .navbar-nav .btn { display: block; width: 100%; margin-top: 0.5rem; }
}

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.team-photo { width: 100px; height: 100px; object-fit: cover; }
.team-photo-fallback { display: flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; font: 800 2rem var(--font-display); }
.dashboard-shell { min-height: 100vh; background: var(--color-mist); }
.dashboard-content { min-width: 0; }
.dashboard-content main { min-height: 100vh; }
.dash-sidebar .nav-link.disabled { opacity: .48; cursor: not-allowed; }

@media (max-width: 575.98px) {
  .auth-shell > .p-4 { padding: 1rem !important; }
  .auth-card { padding: 1.35rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
