/* APV Logistics LLP - Primary Design Tokens & Global Stylesheet */
:root {
  /* Brand Color Palette from APV Logo */
  --dl-color-primary: #233996;
  --dl-color-primary-dark: #192973;
  --dl-color-primary-light: #EBF0FF;
  
  --dl-color-accent: #EE6F27;
  --dl-color-accent-dark: #D45A14;
  --dl-color-accent-light: #FFF2EA;
  
  --dl-color-theme-neutral-dark: #0F172A;
  --dl-color-theme-neutral-muted: #475569;
  --dl-color-theme-neutral-light: #F8FAFC;
  --dl-color-white: #FFFFFF;
  --dl-color-border: #E2E8F0;

  /* Legacy variable mapping for compatibility */
  --dl-color-theme-primary1: var(--dl-color-primary);
  --dl-color-theme-primary2: var(--dl-color-primary-dark);
  --dl-color-theme-accent1: var(--dl-color-accent);
  --dl-color-theme-accent2: var(--dl-color-accent-light);
  --dl-color-theme-secondary1: #F1F5F9;
  --dl-color-theme-secondary2: #E2E8F0;

  /* Spacing & Layout */
  --dl-size-maxwidth: 1280px;
  --dl-space-unit: 16px;
  --dl-space-halfunit: 8px;
  --dl-space-twounits: 32px;
  --dl-space-threeunits: 48px;
  --dl-space-fourunits: 64px;
  --dl-space-fiveunits: 80px;

  /* Radii & Shadows */
  --dl-radius-radius4: 4px;
  --dl-radius-radius8: 8px;
  --dl-radius-radius12: 12px;
  --dl-radius-buttonradius: 8px;
  --dl-radius-inputradius: 8px;
  --dl-radius-cardradius: 12px;
  --dl-radius-round: 50%;
  
  --dl-shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --dl-shadow-md: 0 4px 6px -1px rgba(15,23,42,0.1), 0 2px 4px -1px rgba(15,23,42,0.06);
  --dl-shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.1), 0 4px 6px -2px rgba(15,23,42,0.05);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  font-family: 'Inter', 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dl-color-theme-neutral-dark);
  background-color: var(--dl-color-theme-neutral-light);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* Typography Classes */
.thq-heading-1 {
  font-family: 'Urbanist', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dl-color-theme-neutral-dark);
  letter-spacing: -0.02em;
}

.thq-heading-2 {
  font-family: 'Urbanist', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dl-color-theme-neutral-dark);
  letter-spacing: -0.01em;
}

.thq-heading-3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dl-color-theme-neutral-dark);
}

.thq-body-large {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--dl-color-theme-neutral-muted);
}

.thq-body-small {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dl-color-theme-neutral-muted);
}

/* Utility Containers */
.thq-section-padding {
  width: 100%;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thq-section-max-width {
  width: 100%;
  max-width: var(--dl-size-maxwidth);
  margin: 0 auto;
}

/* Top Notification / Contact Bar */
.top-bar {
  background-color: var(--dl-color-theme-neutral-dark);
  color: var(--dl-color-white);
  font-size: 0.85rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94A3B8;
}

.top-bar-item a {
  color: var(--dl-color-white);
}

.top-bar-item a:hover {
  color: var(--dl-color-accent);
}

.top-bar-badge {
  background-color: rgba(238, 111, 39, 0.2);
  color: var(--dl-color-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Header & Navbar */
.navbar-container {
  width: 100%;
  background-color: var(--dl-color-white);
  box-shadow: var(--dl-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-interactive {
  max-width: var(--dl-size-maxwidth);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.navbar-desktop-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.navbar-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dl-color-theme-neutral-dark);
  padding: 0.5rem 0;
  position: relative;
}

.navbar-link:hover, .navbar-link.active {
  color: var(--dl-color-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--dl-color-accent);
  transition: width 0.25s ease;
}

.navbar-link:hover::after, .navbar-link.active::after {
  width: 100%;
}

.navbar-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Mobile Menu Toggle */
.navbar-burger-menu {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dl-color-theme-neutral-dark);
}

.navbar-burger-menu svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.navbar-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dl-color-white);
  z-index: 2000;
  padding: 2rem 1.5rem;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.navbar-mobile-menu.teleport-show {
  transform: translateX(0);
  display: flex;
}

.navbar-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.navbar-close-menu {
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-close-menu svg {
  width: 28px;
  height: 28px;
  fill: var(--dl-color-theme-neutral-dark);
}

.navbar-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.navbar-mobile-links a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dl-color-theme-neutral-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dl-color-border);
}

/* Button Component Styles */
.button, .thq-button-filled, .thq-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--dl-radius-buttonradius);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.thq-button-filled {
  background-color: var(--dl-color-primary);
  color: var(--dl-color-white);
  border-color: var(--dl-color-primary);
  box-shadow: 0 2px 4px rgba(35, 57, 150, 0.2);
}

.thq-button-filled:hover {
  background-color: var(--dl-color-primary-dark);
  border-color: var(--dl-color-primary-dark);
  color: var(--dl-color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(35, 57, 150, 0.3);
}

.thq-button-outline {
  background-color: transparent;
  color: var(--dl-color-primary);
  border-color: var(--dl-color-primary);
}

.thq-button-outline:hover {
  background-color: var(--dl-color-primary-light);
  color: var(--dl-color-primary-dark);
}

.button-accent {
  background-color: var(--dl-color-accent);
  color: var(--dl-color-white);
  border-color: var(--dl-color-accent);
  box-shadow: 0 2px 4px rgba(238, 111, 39, 0.2);
}

.button-accent:hover {
  background-color: var(--dl-color-accent-dark);
  border-color: var(--dl-color-accent-dark);
  color: var(--dl-color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(238, 111, 39, 0.3);
}

/* Card & Container Styles */
.thq-card {
  background-color: var(--dl-color-white);
  border: 1px solid var(--dl-color-border);
  border-radius: var(--dl-radius-cardradius);
  padding: 2rem;
  box-shadow: var(--dl-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thq-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-md);
  border-color: var(--dl-color-primary-light);
}

.thq-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

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

.thq-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

/* Forms & Input Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dl-color-theme-neutral-dark);
}

.thq-input, select.thq-input, textarea.thq-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--dl-color-theme-neutral-dark);
  background-color: var(--dl-color-white);
  border: 1px solid var(--dl-color-border);
  border-radius: var(--dl-radius-inputradius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.thq-input:focus {
  border-color: var(--dl-color-primary);
  box-shadow: 0 0 0 3px rgba(35, 57, 150, 0.15);
}

select.thq-input {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg width%3D%2220%22 height%3D%2220%22 xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 20 20%22 fill%3D%22%23233996%22%3E%3Cpath d%3D%22M4.293 7.293a1 1 0 011.414 0L10 11.586l4.293-4.293a1 1 0 111.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Modal Popup Component Styles */
.apv-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.apv-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.apv-modal-dialog {
  background: var(--dl-color-white);
  border-radius: var(--dl-radius-cardradius);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--dl-shadow-lg);
  border-top: 5px solid var(--dl-color-accent);
  position: relative;
  animation: apvModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes apvModalPop {
  from {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.apv-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--dl-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apv-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--dl-color-theme-neutral-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.apv-modal-close:hover {
  color: var(--dl-color-theme-neutral-dark);
  background-color: var(--dl-color-border);
}

.apv-modal-body {
  padding: 1.75rem;
}

/* Stats Counter Badge */
.stat-box {
  background-color: var(--dl-color-white);
  border: 1px solid var(--dl-color-border);
  border-top: 4px solid var(--dl-color-accent);
  border-radius: var(--dl-radius-cardradius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--dl-shadow-sm);
}

.stat-number {
  font-family: 'Urbanist', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dl-color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dl-color-theme-neutral-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Accordion FAQs Component */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.faq-item {
  background-color: var(--dl-color-white);
  border: 1px solid var(--dl-color-border);
  border-radius: var(--dl-radius-cardradius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--dl-color-primary);
  box-shadow: var(--dl-shadow-sm);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dl-color-theme-neutral-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dl-color-primary);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--dl-color-theme-neutral-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px dashed var(--dl-color-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* Footer Component */
.footer-container {
  background-color: var(--dl-color-theme-neutral-dark);
  color: var(--dl-color-white);
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 4px solid var(--dl-color-primary);
}

.footer-content {
  max-width: var(--dl-size-maxwidth);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94A3B8;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.footer-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dl-color-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--dl-color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--dl-color-white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: #94A3B8;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--dl-color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  max-width: var(--dl-size-maxwidth);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748B;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748B;
}

.footer-bottom-links a:hover {
  color: #94A3B8;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .thq-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .navbar-desktop-menu {
    display: none;
  }
  .navbar-burger-menu {
    display: block;
  }
  .thq-heading-1 {
    font-size: 2.2rem;
  }
  .thq-heading-2 {
    font-size: 1.65rem;
  }
  .thq-grid-2, .thq-grid-3, .thq-grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
