/* ============================================
   55846444.com.hk - 八五折的士 統一樣式表
   Version: 2.1 (Fixed dropdown)
   Last Updated: 2026-03-10
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #DC3545;
  --primary-hover: #B02A37;
  --primary-dark: #8B1A2B;
  --white: #FFFFFF;
  --bg-light: #F8F9FA;
  --border: #DEE2E6;
  --text-secondary: #6C757D;
  --text-body: #212529;
  --footer-bg: #1A1A2E;
  --footer-text: #ADB5BD;
  --whatsapp: #25D366;
  --whatsapp-hover: #1DA851;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  z-index: 1000;
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo .logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}
.site-logo .logo-text { display: flex; flex-direction: column; }
.site-logo .logo-title { font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.site-logo .logo-subtitle { font-size: 11px; color: var(--text-secondary); line-height: 1.2; }

/* Desktop Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 24px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  transition: var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li.active > a { color: var(--primary); }
.main-nav > li > a .arrow { font-size: 10px; margin-left: 3px; }

/* ---- Dropdown (FIXED) ---- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1001;
  pointer-events: none;
}
/* Show on hover */
.main-nav > li.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Dropdown links - target <a> inside <ul><li> */
.dropdown-menu ul { list-style: none; margin: 0; padding: 0; }
.dropdown-menu ul li a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-body);
  transition: var(--transition);
  white-space: nowrap;
}
.dropdown-menu ul li a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
/* Divider */
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* ---- Mega Dropdown (FIXED) ---- */
.dropdown-mega {
  min-width: 480px;
  max-width: 560px;
  padding: 16px;
}
.dropdown-mega .mega-section { margin-bottom: 12px; }
.dropdown-mega .mega-section:last-child { margin-bottom: 0; }
.dropdown-mega .mega-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.dropdown-mega ul { list-style: none; margin: 0; padding: 0; }
.dropdown-mega ul li a {
  display: block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-body);
}
.dropdown-mega ul li a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.dropdown-mega .mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.dropdown-mega .mega-grid a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
}
.dropdown-mega .mega-grid a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--primary-hover); color: var(--white) !important; transform: scale(1.03); }
.header-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--text-body);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 16px 0 100px;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav-overlay > ul { padding: 0; margin: 0; list-style: none; }
.mobile-nav-overlay > ul > li { border-bottom: 1px solid var(--border); }
.mobile-nav-overlay > ul > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
}
.mobile-nav-overlay > ul > li > a:hover { color: var(--primary); }
.mobile-nav-overlay .mobile-dropdown {
  display: none;
  background: var(--bg-light);
}
.mobile-nav-overlay .mobile-dropdown.active { display: block; }
.mobile-nav-overlay .mobile-dropdown a {
  display: block;
  padding: 10px 36px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav-overlay .mobile-dropdown a:last-child { border-bottom: none; }
.mobile-nav-overlay .mobile-dropdown a:hover { color: var(--primary); }
.mobile-cta {
  display: block;
  margin: 20px;
  text-align: center;
  background: var(--primary);
  color: var(--white) !important;
  padding: 14px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta:hover { opacity: 0.9; color: var(--white) !important; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content { min-height: 60vh; }
.page-section { padding: 48px 0; }
.page-section:nth-child(even) { background: var(--bg-light); }
.page-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-body);
  margin-bottom: 12px;
}
.page-section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 50%, #F8F9FA 100%);
  padding: 56px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-body);
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--primary); }
.hero .hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero .hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: #FFF0F0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Tables */
.table-responsive { overflow-x: auto; margin: 20px 0; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.price-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.price-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.price-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.price-table tbody tr:hover { background: #FFF5F5; }
.price-table .price-highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  color: var(--text-body);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .faq-toggle { font-size: 20px; color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.active .faq-answer { display: block; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 40px 0;
}
.cta-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.cta-banner .btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Related Services */
.related-services { padding: 40px 0; }
.related-services h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-links a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-body);
  transition: var(--transition);
  text-decoration: none;
}
.related-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFF5F5;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.footer-brand .footer-phone:hover { color: var(--primary); }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--footer-text);
  font-size: 13px;
  transition: var(--transition);
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-hours { font-size: 13px; line-height: 1.8; }
.footer-hours .highlight { color: var(--whatsapp); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-bottom a { color: var(--footer-text); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.floating-btn:hover { transform: scale(1.1); }
.floating-btn svg { width: 26px; height: 26px; fill: var(--white); }
.floating-btn-whatsapp { background: var(--whatsapp); }
.floating-btn-whatsapp:hover { background: var(--whatsapp-hover); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.floating-btn-phone { background: var(--primary); }
.floating-btn-phone:hover { background: var(--primary-hover); box-shadow: 0 6px 20px rgba(220,53,69,0.4); }

/* Pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.floating-btn-whatsapp { animation: pulse 2s infinite; }
.floating-btn-whatsapp:hover { animation: none; }

/* Floating label tooltip */
.floating-btn .btn-label {
  position: absolute;
  right: 66px;
  background: var(--text-body);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}
.floating-btn .btn-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--text-body);
  border-right: none;
}
.floating-btn:hover .btn-label { opacity: 1; visibility: visible; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  :root { --header-height: 64px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 28px; }
  .dropdown-mega { min-width: auto; }
  .page-section { padding: 36px 0; }
}

@media (max-width: 767px) {
  :root { --header-height: 60px; }
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 24px; }
  .hero .hero-subtitle { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
  .price-table { font-size: 13px; }
  .price-table thead th, .price-table tbody td { padding: 9px 10px; }
  .floating-btn { width: 64px; height: 64px; }
  .floating-btn svg { width: 30px; height: 30px; }
  .floating-cta { bottom: 16px; right: 16px; }
  .page-section-title { font-size: 22px; }
  .btn { padding: 11px 22px; font-size: 15px; }
  .cta-banner { padding: 32px 16px; margin: 24px 0; border-radius: var(--radius); }
  .cta-banner h2 { font-size: 22px; }
  .site-logo .logo-title { font-size: 16px; }
}

@media print {
  .site-header, .site-footer, .floating-cta, .cta-banner { display: none !important; }
  body { padding-top: 0; }
}
