/* =========================================================
   Outstation Dead Body Freezer Ambulance Service
   Theme: dignified teal / deep navy / soft white
   ========================================================= */

:root {
  --teal: #1597a5;
  --teal-dark: #0e5a6d;
  --navy: #083346;
  --navy-deep: #052433;
  --ice: #e8f7f8;
  --mist: #f4fafa;
  --gold: #d9a441;
  --ink: #22333b;
  --muted: #6b7c85;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(8, 51, 70, .08);
  --shadow-md: 0 14px 34px rgba(8, 51, 70, .14);
  --shadow-lg: 0 24px 60px rgba(8, 51, 70, .22);
  --radius: 18px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, .display-font { font-family: var(--font-head); }

::selection { background: var(--teal); color: #fff; }

/* ---------- Utility ---------- */
.text-teal { color: var(--teal) !important; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-ice { background: var(--ice) !important; }
.bg-mist { background: var(--mist) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before, .eyebrow.center::after {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal));
}
.eyebrow.center::after { background: linear-gradient(90deg, var(--teal), transparent); }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.lead-soft { color: var(--muted); font-weight: 300; }

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-font-weight: 600;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .8rem 2rem;
  box-shadow: 0 10px 24px rgba(21, 151, 165, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-brand:hover, .btn-brand:focus {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(21, 151, 165, .45);
}
.btn-outline-brand {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 50px;
  padding: .8rem 2rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}
.btn-outline-brand:hover {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
  transform: translateY(-3px);
}
.btn-gold {
  background: linear-gradient(135deg, #e9b857, var(--gold));
  color: var(--navy-deep);
  border: none;
  border-radius: 50px;
  padding: .8rem 2rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(217, 164, 65, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-gold:hover { color: var(--navy-deep); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(217,164,65,.5); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfe8ec;
  font-size: .82rem;
}
.topbar a { color: #cfe8ec; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .bi { color: var(--teal); }

/* ---------- Navbar ---------- */
.navbar-main {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(8,51,70,.08);
  padding: .6rem 0;
  transition: all .3s ease;
}
.navbar-logo { height: 52px; width: auto; }
.navbar-main .nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  margin: 0 .35rem;
  position: relative;
  padding-bottom: .35rem;
}
.navbar-main .nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: translateX(-50%);
  transition: width .3s ease;
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { width: 70%; }
.navbar-main .nav-link.active { color: var(--teal-dark); }

.call-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--ice);
  border: 1px solid rgba(21,151,165,.3);
  border-radius: 50px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal-dark);
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.call-chip:hover { background: var(--teal); color: #fff; }
.call-chip .bi { animation: ring 2.4s ease infinite; }
@keyframes ring {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(14deg); }
  92% { transform: rotate(-12deg); }
  94% { transform: rotate(10deg); }
  96% { transform: rotate(-8deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(21,151,165,.35), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(217,164,65,.18), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--teal-dark) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-pulse {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  right: -140px; top: -140px;
  animation: pulse 7s ease-in-out infinite;
}
.hero-pulse.two { width: 760px; height: 760px; right: -240px; top: -240px; animation-delay: 1.4s; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.06); opacity: .25; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: .45rem 1.2rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61,220,132,.7);
  animation: beat 1.8s infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); }
  70% { box-shadow: 0 0 0 12px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #7fe7ef, #fff, #f0cd8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.hero-stat { text-align: center; padding: .8rem .4rem; }
.hero-stat .num { font-size: 1.7rem; font-weight: 700; color: #fff; font-family: var(--font-head); }
.hero-stat .lbl { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-hint .bi { display: block; font-size: 1.1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(7px);} }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 7.5rem 0 4.5rem;
  color: #fff;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(21,151,165,.4), transparent 60%),
    linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, var(--teal-dark));
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 30% 0%, black 20%, transparent 70%);
}
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: #fff; }

/* ---------- Cards ---------- */
.lift-card {
  background: #fff;
  border: 1px solid rgba(8,51,70,.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.lift-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.icon-tile {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 10px 20px rgba(21,151,165,.3);
  margin-bottom: 1.1rem;
}
.icon-tile.gold { background: linear-gradient(135deg, #e9b857, var(--gold)); box-shadow: 0 10px 20px rgba(217,164,65,.3); color: var(--navy-deep); }

/* ---------- Feature band ---------- */
.feature-band {
  background:
    radial-gradient(600px 300px at 110% 0%, rgba(21,151,165,.35), transparent 60%),
    linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.feature-band .mini {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  height: 100%;
}
.feature-band .mini .bi { font-size: 1.4rem; color: #7fe7ef; }

/* ---------- Steps ---------- */
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 8px 18px rgba(21,151,165,.35);
  font-family: var(--font-head);
  font-size: 1.15rem;
}

/* ---------- Price table ---------- */
.price-toolbar {
  background: #fff;
  border: 1px solid rgba(8,51,70,.08);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}
.price-search {
  border-radius: 50px;
  border: 1.5px solid rgba(8,51,70,.15);
  padding: .65rem 1.2rem .65rem 2.8rem;
  width: 100%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231597a5' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 1rem center;
  font-size: .95rem;
}
.price-search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21,151,165,.15); background-color: #fff; }

.table-price { border-collapse: separate; border-spacing: 0; }
.table-price thead th {
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  position: sticky; top: 0; z-index: 2;
  white-space: nowrap;
}
.table-price tbody td { padding: .85rem 1rem; vertical-align: middle; border-bottom: 1px solid rgba(8,51,70,.07); }
.table-price tbody tr { transition: background .2s ease; }
.table-price tbody tr:hover { background: var(--ice); }
.table-price .route-city { font-weight: 600; color: var(--navy); }
.km-badge {
  display: inline-block;
  background: var(--ice);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: .82rem;
  border-radius: 50px;
  padding: .25rem .8rem;
  white-space: nowrap;
}
.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(21,151,165,.12), rgba(217,164,65,.14));
  border: 1px solid rgba(21,151,165,.25);
  color: var(--navy);
  font-weight: 700;
  font-size: .86rem;
  border-radius: 10px;
  padding: .3rem .7rem;
  white-space: nowrap;
}
.table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(8,51,70,.08);
  max-height: 640px;
  overflow-y: auto;
  background: #fff;
}
.table-wrap::-webkit-scrollbar { width: 10px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 8px; }
.table-wrap::-webkit-scrollbar-track { background: var(--ice); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(500px 260px at 90% 10%, rgba(217,164,65,.3), transparent 60%),
    linear-gradient(135deg, var(--teal-dark), var(--navy));
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "\F4CC";
  font-family: "bootstrap-icons";
  position: absolute;
  font-size: 16rem;
  right: -2rem; bottom: -4rem;
  color: rgba(255,255,255,.05);
  transform: rotate(-12deg);
}

/* ---------- Contact ---------- */
.contact-tile {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(8,51,70,.08);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-tile .icon-tile { margin-bottom: 0; width: 52px; height: 52px; font-size: 1.25rem; flex-shrink: 0; }

.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid rgba(8,51,70,.14);
  padding: .7rem 1rem;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(21,151,165,.14);
}
.form-card {
  border-radius: 24px;
  border: 1px solid rgba(8,51,70,.08);
  box-shadow: var(--shadow-md);
  background: #fff;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
}
footer .foot-logo { height: 58px; filter: brightness(0) invert(1); opacity: .95; }
footer h6 { color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
footer a:hover { color: #7fe7ef; }
.foot-links li { margin-bottom: .55rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: all .25s ease;
}
.social-btn:hover { background: var(--teal); transform: translateY(-3px); }

/* ---------- Floating call button ---------- */
.float-call {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 1050;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 14px 34px rgba(21,151,165,.5);
  text-decoration: none;
  animation: beat 2s infinite;
}
.float-call:hover { color: #fff; transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.quote-mark { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--teal); opacity: .35; }
.divider-wave { height: 1px; background: linear-gradient(90deg, transparent, rgba(21,151,165,.5), transparent); }
.text-justify { text-align: justify; }

/* ---------- Responsive price table (mobile cards) ---------- */
@media (max-width: 767.98px) {

  /* Release the fixed-height scroll box so the page scrolls naturally */
  .table-wrap {
    max-height: none;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  /* Generic card stacking for any .table-price (e.g. home page teaser) */
  .table-price, .table-price thead, .table-price tbody { display: block; width: 100%; }
  .table-price thead { display: none; }
  .table-price tbody tr {
    display: block;
    background: #fff;
    border: 1px solid rgba(8,51,70,.1);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: .9rem 1rem;
    margin-bottom: .8rem;
  }
  .table-price tbody td {
    display: block;
    border: none;
    padding: .18rem 0;
  }

  /* Full rate list (#priceTable): num | route | call on row 1, km + fare on row 2 */
  #priceTable tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .8rem;
  }
  #priceTable tbody td { padding: 0; }
  #priceTable td:nth-child(1) {
    order: 1;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ice);
    color: var(--teal-dark);
    border-radius: 12px;
    font-weight: 700;
    font-size: .88rem;
  }
  #priceTable td:nth-child(2) {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    font-size: .98rem;
  }
  #priceTable td:nth-child(5) { order: 3; margin-left: auto; }
  #priceTable td:nth-child(5) .call-chip { padding: .45rem .9rem; }
  #priceTable td:nth-child(3) { order: 4; margin-left: calc(38px + .8rem); }
  #priceTable td:nth-child(4) { order: 5; }
}

@media (max-width: 380px) {
  #priceTable td:nth-child(3) { margin-left: 0; }
}
