/* ==========================================================================
   TAXI ĐIỆN HÀM TÂN - STYLESHEET
   Design System & Custom Animations
   Colors: Deep Forest Green (#034524 / #056236), Electric Emerald (#00a651), Vivid Yellow (#ffd200 / #f59e0b)
   ========================================================================== */

/* 1. TYPOGRAPHY - GILROY FONT FACE */
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/SVN-Gilroy Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/SVN-Gilroy Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/SVN-Gilroy SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/SVN-Gilroy Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/SVN-Gilroy Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/SVN-Gilroy Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 2. ROOT VARIABLES & THEME TOKENS */
:root {
  --color-primary-dark: #034524;
  --color-primary: #056236;
  --color-primary-emerald: #00a651;
  --color-accent-yellow: #ffd200;
  --color-accent-gold: #f59e0b;
  --color-bg-light: #f4fbf7;
  --color-dark: #091e14;
  --font-content: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Phudu', 'Gilroy', cursive, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-content);
  color: #1e293b;
  background-color: #ffffff;
}

body {
  font-family: var(--font-content);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.font-phudu {
  font-family: var(--font-heading);
  font-weight: 600 !important;
}

.font-gilroy {
  font-family: var(--font-content);
}

/* Improve text legibility on small screens without changing desktop styling. */
@media (max-width: 767px) {
  p,
  li {
    font-weight: 500;
  }

  .text-slate-600 {
    color: #475569;
  }

  .text-slate-500 {
    color: #475569;
  }
}

b, strong {
  font-weight: 600;
}

/* 3. GLASSMORPHISM & BLURS */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(5, 98, 54, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 166, 81, 0.15);
}

.glass-card-dark {
  background: rgba(3, 69, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 210, 0, 0.25);
}

/* 4. GRADIENTS & BRAND ACCENTS */
.gradient-brand {
  background: linear-gradient(135deg, #034524 0%, #056236 50%, #00a651 100%);
}

.gradient-brand-reverse {
  background: linear-gradient(135deg, #00a651 0%, #056236 60%, #034524 100%);
}

.gradient-yellow {
  background: linear-gradient(135deg, #ffd200 0%, #f59e0b 100%);
}

.gradient-eco-surface {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.text-gradient-brand {
  background: linear-gradient(135deg, #034524 0%, #00a651 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #ffd200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. CALL TO ACTION & FLOATING HOTLINE BUTTONS */
.btn-pulse-ring {
  position: relative;
}

.btn-pulse-ring::before,
.btn-pulse-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background-color: inherit;
  z-index: -1;
  opacity: 0.7;
}

.btn-pulse-ring::before {
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.btn-pulse-ring::after {
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) 0.6s infinite;
}

@keyframes pulse-ring {
  0% {
    width: 90%;
    height: 90%;
    opacity: 0.8;
  }
  100% {
    width: 160%;
    height: 160%;
    opacity: 0;
  }
}

/* Phone vibration animation */
@keyframes shake-phone {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.shake-icon {
  animation: shake-phone 1.8s ease-in-out infinite;
  display: inline-block;
}

/* Floating Action Stack */
.floating-contact-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

/* 6. CARD HOVER EFFECTS */
.hover-card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(5, 98, 54, 0.15);
  border-color: #00a651;
}

/* 7. CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #056236;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #034524;
}

/* 8. HERO BADGE GLOW */
.badge-glow {
  box-shadow: 0 0 15px rgba(0, 166, 81, 0.35);
}

/* 9. CALCULATOR TABS */
.calc-tab.active {
  background-color: #056236;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 98, 54, 0.25);
}

.calc-tab:not(.active) {
  background-color: #f1f5f9;
  color: #475569;
}

.calc-tab:not(.active):hover {
  background-color: #e2e8f0;
}

/* 10. ACCORDION STYLES */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 300px;
  opacity: 1;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* 11. ADVANTAGES SWIPER */
.advantages-swiper {
  padding: 0 4px 2.5rem;
}

.advantages-swiper .swiper-slide {
  height: auto;
}

.advantages-swiper .advantages-pagination {
  position: static;
  margin-top: 18px;
}

.advantages-swiper .swiper-pagination-bullet-active {
  background: #00a651;
}

@media (min-width: 768px) {
  .advantages-swiper {
    padding: 0;
  }

  .advantages-swiper .swiper-wrapper {
    display: grid;
    transform: none !important;
  }

  .advantages-swiper .swiper-slide {
    width: auto !important;
  }

  .advantages-swiper .swiper-pagination {
    display: none;
  }
}

/* 12. MOBILE BOTTOM BAR */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}
