:root {
  --bg: #0b0f13;
  --bg-secondary: #0e151b;
  --bg-tertiary: #14222c;
  --text: #e8f1f3;
  --text-secondary: #b8c5d1;
  --brand: #0e7a83;
  --brand-2: #44c2b9;
  --brand-light: #6dd5cd;
  --accent: #ffd166;
  --success: #06d6a0;
  --error: #ef476f;
  --muted: #9eb1bb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 20px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px rgba(68, 194, 185, 0.3);
  --maxw: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Fullscreen intro */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000; /* or your preferred background color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

/* Logo styling */
#intro-logo {
  width: min(80vw, 600px);
  height: auto;
  max-width: 600px;
  animation: floatLogo 3s ease-in-out forwards;
}

/* Logo animation (move across screen + fade out) */
@keyframes floatLogo {
  0% {
    transform: translateX(-100vw) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) scale(0.5);
    opacity: 0;
  }
}

/* Optional: fade-in animation for the main content */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


::selection {
  background: var(--brand-2);
  color: var(--bg);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-lg); 
}

.btn:active {
  transform: translateY(0);
}

.btn.accent {
  /* Gradient endpoint clamped to a darker teal so white text passes WCAG AA across the full button.
     #147f78 ≈ 4.86:1 vs white; #0e7a83 ≈ 5.5:1. The lighter --brand-2 (#44c2b9) is kept for
     decorative accents elsewhere. */
  background: linear-gradient(135deg, var(--brand), #147f78);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.accent:hover {
  box-shadow: var(--shadow-glow);
}

.btn.secondary { 
  background: rgba(255,255,255,0.05); 
  border: 1px solid var(--bg-tertiary); 
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--brand-2);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: var(--shadow-glow); }
}

/* --- Header --- */
header.site {
  background: rgba(10,13,17,0.95);
  backdrop-filter: blur(20px);
  position: sticky; 
  top: 0; 
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

header.site.scrolled {
  background: rgba(10,13,17,0.98);
  box-shadow: var(--shadow);
}

nav.wrap {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  height: 70px;
}

.brand { 
  font-weight: 800; 
  display: flex; 
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.brand:hover {
  color: var(--brand-2);
}

.logo {
  width: 40px; 
  height: 40px; 
  margin-right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; 
  place-items: center; 
  color: #fff; 
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo:hover {
  transform: rotate(5deg) scale(1.05);
}

.navlinks { 
  display: flex; 
  gap: 24px; 
  align-items: center; 
}

.navlinks a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navlinks a:not(.btn):hover {
  color: var(--brand-2);
}

.navlinks a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-2);
  transition: width 0.3s ease;
}

.navlinks a:not(.btn):hover::after {
  width: 100%;
}

.mobile-toggle {
  background: none; 
  border: none; 
  font-size: 1.6rem; 
  color: var(--text); 
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: var(--brand-2);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  background: #0e151b;
  padding: 16px;
}
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid #1a2832; }
.mobile-menu.open { display: flex; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #071015 0%, #0a1318 50%, #05090d 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(14, 122, 131, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title { 
  font-size: clamp(2.5rem, 6vw, 4rem); 
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(68, 194, 185, 0.1);
  border: 1px solid rgba(68, 194, 185, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--brand-light);
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.animate-badge {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.truck {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: url('https://images.unsplash.com/photo-1544198365-3c3b4c43f5eb?q=80&w=1400&auto=format&fit=crop') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.truck img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truck::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(68, 194, 185, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.truck:hover::after {
  opacity: 1;
}

.parallax-element {
  transition: transform 0.1s ease-out;
}

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

/* --- Sections --- */
.section { 
  padding: 80px 0; 
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 48px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.grid { 
  display: grid; 
  gap: 32px; 
}

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

.grid-3 { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

/* --- Services --- */
.service {
  text-align: center;
  cursor: pointer;
}

.service .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  transition: var(--transition);
}

.service:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.service h3 {
  margin: 0 0 12px;
  color: var(--brand-light);
  font-weight: 600;
}

.service p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-features {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  background: rgba(68, 194, 185, 0.1);
  color: var(--brand-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(68, 194, 185, 0.2);
}

/* --- Form --- */
.quote-form { 
  display: grid; 
  gap: 20px; 
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-tertiary);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  appearance: none;
  cursor: pointer;
}

select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23e8f1f3" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(68, 194, 185, 0.1);
  outline: none;
  background: var(--bg-secondary);
}

select:hover {
  border-color: var(--brand-light);
}

select option {
  background: var(--bg-secondary);
  color: var(--text);
  padding: 12px;
  border: none;
}

/* --- Form Tabs --- */
.form-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bg-tertiary);
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--brand-2);
  border-bottom-color: var(--brand-2);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

input:invalid:not(:focus), textarea:invalid:not(:focus) {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-error.show {
  opacity: 1;
}

.submit-btn {
  margin-top: 8px;
  position: relative;
  min-height: 48px;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loader {
  animation: spin 1s linear infinite;
}

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

.form-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  opacity: 0;
  transition: var(--transition);
}

.form-status.show {
  opacity: 1;
}

.form-status.success {
  background: rgba(6, 214, 160, 0.1);
  color: var(--success);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.form-status.error {
  background: rgba(239, 71, 111, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 71, 111, 0.3);
}

/* --- Animations --- */
.fade-in { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: all 0.8s var(--bounce); 
}

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

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.loading {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

footer {
  border-top: 1px solid var(--bg-tertiary);
  background: linear-gradient(135deg, #070a0d, #0a0e12);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
}

/* --- Social Media Widgets --- */
.social-media {
  margin-top: 24px;
}

.social-media h4 {
  margin: 0 0 12px;
  color: var(--brand-light);
  font-size: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.social-link.instagram:hover {
  border-color: #E4405F;
  color: #E4405F;
}

.social-link.facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer Social */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .mobile-toggle { display: block; }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 32px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .actions {
    justify-content: center;
  }
  
  .truck { 
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .grid-2 { 
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
  
  .hero {
    padding: 40px 0 30px;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .grid {
    gap: 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .service-features {
    flex-direction: column;
    align-items: center;
  }
}
