/*
# ==========================================
# Project:     Derby Taxi Service ~ derbytaxiservice.com.au
# Author:      Colin Dixon BSc, DipEd, Coxswain Grade 1 NC, Cert IV TAE
# Contact:     crdixon@gmail.com
# Timestamp:   28/10/2025 09:30 PM AWST (Derby)
# Version:     25.10.008
# File Name:   style.css
# Description: OzeGlass V1-10-02 styles; centred hero grid; 3D glass pills; footer link style; modals/table polish; responsive.
# ==========================================
*/

/* ---------- Theme tokens ---------- */
:root {
  --maxw: 1100px;
  --radius: 12px;
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.25);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --blur: 12px;

  /* Palette */
  --accent: #ffc107;
  --accent-ink: #1a1a1a;

  /* Light theme surfaces */
  --card-bg-light: rgba(255, 255, 255, 0.16);
  --card-bd-light: rgba(255, 255, 255, 0.35);
  --ink-light: #1c1e21;
  --page-bg-light: #f0f2f5;

  /* Dark theme surfaces */
  --card-bg-dark: rgba(0, 0, 0, 0.32);
  --card-bd-dark: rgba(0, 0, 0, 0.55);
  --ink-dark: #f5f5f5;
  --page-bg-dark: #333;

  /* Background image (optional; safe if missing) */
  --bg-img: url("images/ai-van-sunset-background.webp");
}

/* Theme mapping */
[data-theme="light"] {
  --card-bg: var(--card-bg-light);
  --card-bd: var(--card-bd-light);
  --ink: var(--ink-light);
  --page-bg: var(--page-bg-light);
}
[data-theme="dark"] {
  --card-bg: var(--card-bg-dark);
  --card-bd: var(--card-bd-dark);
  --ink: var(--ink-dark);
  --page-bg: var(--page-bg-dark);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--page-bg) var(--bg-img) no-repeat center/cover fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 96px; /* space for bottom pills */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- OzeGlass cards ---------- */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- Top floating controls ---------- */
.floating-top {
  position: fixed;
  inset: 16px 16px auto auto; /* top-right cluster */
  display: flex;
  gap: 10px;
  z-index: 1001;
}
.floating-top .glass-pill.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

/* ---------- 3D Glass pill buttons ---------- */
.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.28),
        rgba(255, 255, 255, 0.12)
      )
      /* sheen */,
    rgba(0, 0, 0, 0.08); /* base tint */
  color: var(--accent-ink);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-inset), var(--shadow-strong);
  text-transform: none;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.glass-pill.large {
  padding: 14px 22px;
  font-size: 1.05rem;
}
.glass-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-inset), 0 14px 36px rgba(0, 0, 0, 0.42);
}
.glass-pill:active {
  transform: translateY(0);
  box-shadow: var(--shadow-inset), var(--shadow-soft);
}
.glass-pill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Accent variant (if needed) */
.glass-pill.accent {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.32),
      rgba(255, 255, 255, 0.08)
    ),
    var(--accent);
  color: var(--accent-ink);
}

/* ---------- HERO ---------- */
.hero-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(20px, 6vw, 48px) 16px;
}
.hero.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
}
.hero-col.hero-text h1 {
  margin: 0 0 0.35em;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}
.hero-col.hero-text p {
  margin: 0 0 0.9rem;
  opacity: 0.95;
}
.logo {
  width: min(260px, 38vw);
  height: auto;
}

/* ---------- Sections ---------- */
main {
  padding: 0 0 24px;
  display: block;
}

#services .services-list {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 0.9rem;
}
#services .services-list li {
  position: relative;
  padding-left: 1.25rem;
}
#services .services-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

.content-image {
  margin-top: 0.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Fares table ---------- */
.table-wrap {
  overflow-x: auto;
}
.fare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}
.fare-table thead th {
  text-align: left;
  font-weight: 700;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--card-bd);
  background: rgba(0, 0, 0, 0.14);
}
.fare-table td {
  padding: 0.6rem 0.55rem;
  border-bottom: 1px solid var(--card-bd);
}
.smallprint {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.6rem;
}
.source-note {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.main-footer {
  margin: 24px 0;
  text-align: center;
  padding: 10px 16px;
  width: 100%;
}
.footer-link {
  font-weight: 700;
  text-decoration: none;
}
.footer-link:hover {
  text-decoration: underline;
}

/* ---------- Bottom floating actions ---------- */
.floating-bottom {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}
.floating-bottom .glass-pill.large {
  white-space: nowrap;
}

/* ---------- Modals ---------- */
.modal {
  display: none; /* toggled via JS */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1500;
}
.modal-card {
  max-width: 720px;
  margin: 6vh auto;
  padding: 0;
  position: relative;
}
.modal-card.glass-card {
  padding: clamp(1rem, 2vw, 1.25rem);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
}

/* Enquiry form grid */
#enquiry-form .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 0.9rem;
  margin: 0.5rem 0 0;
}
#enquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}
#enquiry-form input,
#enquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-bd);
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}
#enquiry-form .full {
  grid-column: 1 / -1;
}

.enquiry-notice {
  margin: 0.25rem 0 0.75rem;
  opacity: 0.95;
}

/* ---------- Media queries ---------- */
@media (max-width: 860px) {
  .hero.container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-col.hero-logo {
    justify-self: center;
  }
  .hero-col.hero-text {
    justify-self: center;
  }
  .logo {
    width: min(220px, 45vw);
  }
}

@media (max-width: 600px) {
  #enquiry-form .grid {
    grid-template-columns: 1fr;
  }
  .floating-top {
    inset: 12px 12px auto auto;
  }
  .floating-bottom {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- Misc polish ---------- */
::selection {
  background: rgba(255, 193, 7, 0.35);
}
hr {
  border: 0;
  height: 1px;
  background: var(--card-bd);
}

/* Optional: make <b> inside paragraphs slightly heavier without overdoing it */
b,
strong {
  font-weight: 700;
}
