/* ============================================
   Solvere Transport LLC - Main Stylesheet
   Clean, friendly, professional NEMT site
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #2E6FB5;
  --primary-light: #3A8AD4;
  --primary-dark: #1C2833;
  --accent: #5B7FBA;
  --accent-light: #7BA1D4;
  --accent-hover: #4A6BA3;
  --warm: #8E9CC0;
  --warm-light: #E8ECF4;
  --text: #1C2833;
  --text-light: #4A5568;
  --text-muted: #8E9CC0;
  --bg: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-alt: #E8EEF6;
  --bg-warm: #F0F3F9;
  --border: #E8EDF1;
  --shadow-sm: 0 2px 8px rgba(46, 111, 181, 0.06);
  --shadow-md: 0 4px 20px rgba(46, 111, 181, 0.10);
  --shadow-lg: 0 8px 40px rgba(46, 111, 181, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-light);
  max-width: 680px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

section {
  padding: 3rem 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* --- Page transition --- */
body {
  animation: pageIn 0.4s ease-out;
}

body.page-exit {
  animation: pageOut 0.25s ease-in forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 127, 186, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 127, 186, 0.4);
}

.btn-secondary {
  background: var(--bg);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn svg, .btn i {
  width: 18px;
  height: 18px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.nav-logo .logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
  object-fit: contain;
}

.nav-logo:hover .logo-icon,
.nav-logo:hover .logo-img {
  transform: rotate(-5deg) scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: transparent;
}

.nav-cta {
  margin-left: 0.75rem;
}

.nav-links .nav-cta {
  display: none;
}

.nav-cta .btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(91, 127, 186, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(142, 156, 192, 0.1) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.hero h1 span {
  color: var(--accent-light);
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.hero-card-title {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card-title svg {
  color: var(--accent-light);
}

.service-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.service-preview-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.service-preview-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-preview-text h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.service-preview-text p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

/* Floating decorative elements */
.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #fff;
  animation: float 8s ease-in-out infinite;
}

.float-shape:nth-child(1) { width: 300px; height: 300px; top: -100px; right: -80px; animation-delay: 0s; }
.float-shape:nth-child(2) { width: 200px; height: 200px; bottom: -60px; left: -60px; animation-delay: 2s; }
.float-shape:nth-child(3) { width: 120px; height: 120px; top: 40%; right: 10%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* --- Features / Services Overview --- */
.features {
  background: var(--bg);
  position: relative;
  padding: 3rem 0;
}

.features-header {
  text-align: center;
  margin-bottom: 2rem;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icon.blue { background: var(--bg-alt); color: var(--primary); }
.feature-icon.green { background: #E8EEF6; color: var(--accent); }
.feature-icon.orange { background: var(--warm-light); color: var(--warm); }

.feature-card h3 {
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- About Section --- */
.about {
  background: var(--bg-light);
  padding: 3rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: var(--radius-lg);
  padding: 3px;
  position: relative;
}

.about-image-inner {
  background: var(--bg-alt);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 2rem;
  text-align: center;
}

.about-image-inner .big-quote {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.about-image-inner .quote-text {
  font-size: 1.15rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
}

.about-image-inner .quote-attr {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-stat-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-stat-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.about-stat-badge .badge-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-content > p {
  margin-bottom: 1rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-highlight .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8EEF6;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.about-highlight p {
  font-size: 0.95rem;
}

.about-highlight strong {
  color: var(--text);
}

/* --- Team Section --- */
.team {
  background: var(--bg);
  padding: 3rem 0;
}

.team-header {
  text-align: center;
  margin-bottom: 2rem;
}

.team-header .section-subtitle {
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.team-avatar.avatar-1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.team-avatar.avatar-2 { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
.team-avatar.avatar-3 { background: linear-gradient(135deg, var(--warm), #7B8AB8); }

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
  border: 3px solid var(--bg-alt);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover .team-photo {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.team-card h3 {
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Testimonial / Rating Bar --- */
.rating-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
  min-height: auto;
  display: flex;
  align-items: center;
}

.rating-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.rating-stars {
  display: flex;
  gap: 0.3rem;
  font-size: 1.5rem;
  color: #F4C430;
}

.rating-text h3 {
  color: #fff;
  font-size: 1.4rem;
}

.rating-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  text-align: center;
  padding: 0;
  height: auto;
  min-height: unset;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(91, 127, 186, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(142, 156, 192, 0.1) 0%, transparent 50%);
}

.cta-section .float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #fff;
  animation: float 8s ease-in-out infinite;
}

.cta-section .float-shape:nth-child(1) { width: 200px; height: 200px; top: -60px; right: -50px; animation-delay: 0s; }
.cta-section .float-shape:nth-child(2) { width: 140px; height: 140px; bottom: -40px; left: -40px; animation-delay: 2s; }
.cta-section .float-shape:nth-child(3) { width: 80px; height: 80px; top: 30%; right: 15%; animation-delay: 4s; }

.cta-card {
  background: transparent;
  border-radius: 0;
  padding: 1.5rem 3rem;
  color: #fff;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-card h2 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  position: relative;
}

.cta-phone a {
  color: #fff;
  font-weight: 700;
}

.cta-phone a:hover {
  color: var(--accent-light);
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .nav-logo .logo-icon {
  background: rgba(255,255,255,0.15);
}

.footer-brand .nav-logo .logo-img {
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  padding: 2px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact .icon {
  color: var(--accent-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social a.linkedin:hover { background: #0A66C2; }
.footer-social a.indeed:hover { background: #2164f3; }

/* --- Services Page Styles --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 5.5rem 0 1.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: unset;
  height: auto;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(91, 127, 186, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(142, 156, 192, 0.1) 0%, transparent 50%);
}

.page-hero h1 { color: #fff; position: relative; }
.page-hero p { color: rgba(255,255,255,0.75); margin: 1rem auto 0; position: relative; font-size: 1.15rem; }

.services-detail {
  background: var(--bg);
}

.service-category {
  margin-bottom: 4rem;
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-icon.medical { background: var(--bg-alt); color: var(--primary); }
.category-icon.social { background: #E8EEF6; color: var(--accent); }

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.service-item:hover {
  background: rgba(110, 150, 210, 1.0);
  color: #fff;
  transform: translateX(4px);
}

.service-item:hover .check-icon {
  color: #fff;
}

.service-item .check-icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  transition: color 0.6s ease;
}

/* Rate table */
.rate-section {
  background: var(--bg-light);
}

.rate-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 700px;
  margin: 2.5rem auto 0;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.rate-table th {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.rate-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.rate-table tr:last-child td {
  border-bottom: none;
}

.rate-table tr:hover td {
  background: var(--bg-light);
}

.rate-table .price {
  font-weight: 700;
  color: var(--primary);
}

.rate-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Fleet section */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.fleet-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.fleet-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.fleet-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.fleet-card h3 {
  margin-bottom: 0.5rem;
}

.fleet-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* --- Careers Page Styles --- */
.careers-intro {
  background: var(--bg);
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.benefit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.benefit-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}

.benefit-card:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.benefit-card .benefit-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.benefit-card h4 {
  margin-bottom: 0.35rem;
}

.benefit-card p {
  font-size: 0.85rem;
}

/* Job listing */
.job-listing {
  background: var(--bg-light);
}

.job-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
  transition: all var(--transition);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.job-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.job-tag.type { background: var(--bg-alt); color: var(--primary); }
.job-tag.pay { background: #E8EEF6; color: var(--accent); }
.job-tag.location { background: var(--warm-light); color: var(--warm); }

.job-requirements h4 {
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.job-requirements li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-light);
}

.job-requirements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Reviews section */
.reviews {
  background: var(--bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.review-stars {
  color: #F4C430;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.review-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Contact Page Styles --- */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-info-card:hover {
  background: var(--bg-alt);
  transform: translateX(4px);
}

.contact-info-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin-bottom: 0.2rem;
}

.contact-info-card p, .contact-info-card a {
  font-size: 0.92rem;
  color: var(--text-light);
}

.contact-info-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.contact-info-card a:hover {
  color: var(--primary-light);
}

/* Contact form */
.contact-form-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-card h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235D6D7E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46, 111, 181, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Request transportation form */
.request-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.request-form-card {
  padding: 3rem;
}

.request-form-card .form-subtitle {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.required-mark {
  color: #e53e3e;
  font-weight: 700;
}

.form-section-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-alt);
}

.form-section-heading:first-of-type {
  margin-top: 0;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hours-card {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}

.hours-card h4 {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-card p {
  font-size: 0.92rem;
}

.hours-card .hours-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Mobile CTA Float Button --- */
.mobile-cta-float {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(91, 127, 186, 0.4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-cta-float:active {
  transform: scale(0.93);
}

.mobile-cta-float svg {
  width: 24px;
  height: 24px;
}

/* --- Responsive --- */

/* Tablet landscape / small desktop */
@media (max-width: 968px) {
  section {
    min-height: auto;
  }

  .rating-bar {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual { order: 2; }

  .hero-grid { gap: 2rem; }
  .hero-text { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual { order: 2; }
  .about-content { order: 1; }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .careers-grid {
    grid-template-columns: 1fr;
  }

  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 2.5rem auto 0;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 3.5rem 0;
    min-height: auto;
  }

  .rating-bar {
    min-height: auto;
  }

  /* Nav: mobile hamburger menu */
  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile menu: slides down from navbar, not fullscreen overlay */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    animation: slideDown 0.25s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    color: var(--text);
  }

  .nav-links.open a:active,
  .nav-links.open a.active {
    background: var(--bg-alt);
    color: var(--accent);
  }

  .nav-links.open .nav-cta {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .nav-links.open .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    font-size: 1rem;
  }

  /* Hero */
  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero-card { max-width: 100%; }
  .hero-stats { gap: 1.5rem; }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .team-card { padding: 2rem 1.5rem; }

  /* Fleet */
  .fleet-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 2.5rem auto 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Sub-page hero */
  .page-hero { padding: 7rem 0 3rem; }

  /* Jobs */
  .job-header { flex-direction: column; }
  .job-card { padding: 1.75rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.75rem; }
  .request-form-card { padding: 2rem; }

  /* Benefits */
  .benefit-cards { grid-template-columns: 1fr; }

  /* Rate table: make scrollable on small screens */
  .rate-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }

  .rate-table .price {
    white-space: nowrap;
  }

  /* Rating bar */
  .rating-bar { padding: 2.5rem 0; }
  .rating-bar-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .rating-stars { justify-content: center; }

  /* Show mobile floating CTA */
  .mobile-cta-float { display: flex; }

  /* Add bottom padding so floating CTA doesn't cover footer content */
  .footer-bottom { padding-bottom: 5rem; }

  /* About grid: reduce gap when stacked */
  .about-grid { gap: 2rem; }

  /* About badge repositioning */
  .about-stat-badge {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: 1rem;
  }

  .about-image-wrapper { text-align: center; }

  /* Service list: allow smaller items */
  .service-list {
    grid-template-columns: 1fr;
  }

  /* Ensure touch targets are at least 44px */
  .btn {
    min-height: 44px;
    padding: 0.8rem 1.75rem;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .footer-links a,
  .footer-contact li {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 1rem; }

  .hero { padding: 6.5rem 0 2.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-badge { font-size: 0.78rem; padding: 0.4rem 0.85rem; }
  .hero-text { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .hero-stats { gap: 1rem; }
  .hero-stat .number { font-size: 1.6rem; }
  .hero-stat .label { font-size: 0.72rem; }

  .hero-card { padding: 1.5rem; }
  .service-preview-item { padding: 0.75rem 1rem; }
  .service-preview-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .service-preview-text h4 { font-size: 0.88rem; }
  .service-preview-text p { font-size: 0.75rem; }

  .page-hero { padding: 5.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .page-hero p { font-size: 1rem; }

  /* Address autocomplete: touch-friendly */
  .address-suggestions li { min-height: 44px; display: flex; align-items: center; font-size: 0.85rem; }

  /* Success checkmark: cap size */
  .form-success div[style*="font-size: 3rem"],
  .form-success div[style*="font-size:3rem"] { font-size: 2rem !important; }

  /* Textarea */
  textarea { min-height: 80px !important; }

  .feature-card { padding: 1.5rem; }
  .feature-icon { width: 46px; height: 46px; }

  .about-image-inner { padding: 2rem 1.5rem; }
  .about-image-inner .big-quote { font-size: 2.5rem; }
  .about-image-inner .quote-text { font-size: 1rem; }

  .cta-card { padding: 2rem 1.25rem; }
  .cta-card h2 { font-size: 1.5rem; }
  .cta-card p { font-size: 0.95rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }

  .contact-info-card { padding: 1rem; }
  .contact-info-card .card-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .hours-card { padding: 1.25rem; }

  .review-card { padding: 1.5rem; }

  .job-card { padding: 1.25rem; }
  .job-tag { font-size: 0.72rem; padding: 0.25rem 0.65rem; }

  .benefit-card { padding: 1.25rem; }

  .team-avatar { width: 80px; height: 80px; font-size: 1.8rem; }
  .team-photo { width: 100px; height: 100px; }

  /* Prevent body overflow */
  body { overflow-x: hidden; }
}

/* Extra small phones (320px and under) */
@media (max-width: 360px) {
  .container { padding: 0 0.75rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero-stats { flex-direction: column; gap: 0.75rem; align-items: center; }
  .rating-bar-inner { padding: 0 0.5rem; }
  .rating-text h3 { font-size: 1.1rem; }
}

/* --- Widescreen / Ultrawide --- */
@media (min-width: 1400px) {
  :root {
    --max-width: 1400px;
  }

  html { font-size: 17px; }

  .hero-grid { gap: 5rem; }
  .features-grid { gap: 2.5rem; }
  .about-grid { gap: 4rem; }
  .team-grid { max-width: 1000px; gap: 2.5rem; }
  .footer-grid { gap: 4rem; }
}

@media (min-width: 1800px) {
  :root {
    --max-width: 1600px;
  }

  html { font-size: 18px; }

  .hero-grid { gap: 6rem; }
  .hero-card { max-width: 480px; }
  .features-grid { gap: 3rem; }
  .team-grid { max-width: 1100px; }
}

@media (min-width: 2200px) {
  :root {
    --max-width: 1800px;
  }

  html { font-size: 19px; }
}

/* Short viewports (landscape laptops, etc.) */
@media (max-height: 750px) and (min-width: 769px) {
  section { padding: 2rem 0; }
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  .hero-text { font-size: 1rem; margin-bottom: 1.25rem; line-height: 1.6; }
  .hero-badge { margin-bottom: 1rem; }
  .hero-stats { margin-top: 1.25rem; padding-top: 1rem; }
  .hero-stat .number { font-size: 1.6rem; }
  .hero-card { padding: 1.5rem; }
  .hero-card-title { margin-bottom: 1rem; }
  .service-preview { gap: 0.6rem; }
  .service-preview-item { padding: 0.6rem 1rem; }
  .features-header { margin-bottom: 1.5rem; }
  .feature-card { padding: 1.25rem; }
  .feature-icon { width: 44px; height: 44px; margin-bottom: 0.75rem; }
  .about-grid { gap: 2rem; }
  .about-image-inner { padding: 1.5rem; }
  .about-image-inner .big-quote { font-size: 2.5rem; margin-bottom: 0.5rem; }
  .team-header { margin-bottom: 1.5rem; }
  .team-card { padding: 1.25rem 1rem; }
  .team-photo { width: 90px; height: 90px; margin-bottom: 0.75rem; }
  .cta-card { padding: 2.5rem 2rem; }
}

/* Ultrawide aspect ratios (21:9 and wider) */
@media (min-aspect-ratio: 21/9) {
  .hero { padding-top: 4rem; padding-bottom: 2rem; }
  .hero-grid { gap: 6rem; }

  section { padding: 2.5rem 0; }
}

/* --- Cross-document View Transitions --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.25s ease-in;
}

::view-transition-new(root) {
  animation: fade-in 0.3s ease-out;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Keep navbar stable across transitions */
.navbar {
  view-transition-name: navbar;
}

::view-transition-old(navbar),
::view-transition-new(navbar) {
  animation: none;
}

/* Keep footer stable across transitions */
.footer {
  view-transition-name: footer;
}

::view-transition-old(footer),
::view-transition-new(footer) {
  animation: none;
}

/* --- PEX Renewal Banner --- */
.pex-renewal-banner {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff0f0;
  border: 1px solid #e8aaaa;
  color: #8b2020;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(139, 32, 32, 0.12);
  display: none;
  animation: bannerSlideIn 0.3s ease-out;
  max-width: 500px;
  text-align: center;
}
.pex-renewal-banner a { color: #8b2020; font-weight: 600; text-decoration: underline; }
.pex-renewal-banner .banner-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #8b2020;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- Tab Notification Badges --- */
.sidebar-nav button[data-tab] {
  position: relative;
}
.tab-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e8820c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(232, 130, 12, 0.35);
}
.tab-badge.visible {
  display: block;
}
/* Collapsed sidebar: float badge over top-right of centered icon */
.sidebar.collapsed .tab-badge {
  top: -2px;
  right: 6px;
  z-index: 2;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- Reduced Motion (OS-level preference) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
