/* ==========================================================================
   Base & Dynamic Dark SaaS Glow System
   ========================================================================== */
:root {
  --bg-dark: #0a0c10;
  --card-bg: rgba(18, 22, 31, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-gold: #e5a93c;
  --accent-silver: #d1d5db;
  --glow-gold: rgba(229, 169, 60, 0.35);
  --glow-blue: rgba(45, 90, 240, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family:
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  font-weight: 500;
}

/* Ambient Radiant Mesh Background Blurs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
  top: 40%;
  right: -150px;
  animation-delay: -4s;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
  bottom: -100px;
  left: 20%;
  animation-delay: -8s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15) translate(30px, -20px);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.95) translate(-20px, 30px);
    opacity: 0.6;
  }
}

/* Glassmorphism Container Card Styling */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(229, 169, 60, 0.3);
  box-shadow: 0 12px 40px rgba(229, 169, 60, 0.15);
}

/* ==========================================================================
   Header Section (Modeled after video reference)
   ========================================================================== */
/* Header Base Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

/* Hamburger button hidden by default on desktop */
.hamburger-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  margin: 0;
}

.hamburger-toggle:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Mobile Responsive Navigation Breakpoint (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .hamburger-toggle {
    display: block !important; /* Show icon on small screens */
    margin-left: auto !important;
    align-self: center !important;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);

    /* Hidden transition state */
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Active State triggered by JS */
  .nav-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Extra small screen fallback: scale down logo size so they fit without wrapping */
  @media (max-width: 380px) {
    .brand-logo img {
      height: 60px; /* Shrinks logo on tiny screens so hamburger stays beside it */
    }
  }
}

.brand-logo img {
  height: 105px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Blends away the dark background box of the image */
  mix-blend-mode: screen;
}

.brand-logo img:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.2rem 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-silver));
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   About Section Styling
   ========================================================================== */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Include watermark for About section too */
.about-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background-image: url("logo.png"); /* Ensure your logo path matches */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.about-section .glass-card,
.about-section .section-title {
  position: relative;
  z-index: 1;
}

.about-content h3 {
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-content [contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--accent-gold);
  outline: none;
  border-radius: 4px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--text-main);
  background: linear-gradient(135deg, #ffffff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Translucent Watermark Background for Content Sections */
.services-section,
.contact-section {
  position: relative;
  overflow: hidden; /* Keeps logo bounds contained within section */
}

/* Watermark pseudo-element overlay */
.services-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; /* Adjust overall width of watermark logo */
  height: 800px; /* Adjust height to match proportion */
  background-image: url("images/LOGO.png"); /* Ensure filename matches your logo path */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.045; /* Keep low (0.04 - 0.08) so text stays easily readable */
  pointer-events: none; /* Allows clicks to pass through to buttons/cards */
  z-index: 0; /* Sits behind cards and text */
}

/* Ensure glass cards stay sharp over the watermark */
.services-section .glass-card,
.contact-section .glass-card,
.services-section .section-title,
.contact-section .section-title {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Hero Image Slider Section
   ========================================================================== */
.hero-section {
  padding: 1.5rem 0 4rem 0;
  max-width: 95%;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 830px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition:
    opacity 0.8s ease-in-out,
    transform 1.2s ease-out;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide img.slide-adjust {
  object-fit: contain !important;
  background-color: #0a0c10;
  /*object-position: center top;*/
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 2rem 2rem;
  background: linear-gradient(
    to top,
    rgba(10, 12, 16, 0.9) 0%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
}

.slide-overlay h2 {
  font-size: 2rem;
  color: var(--text-main);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  border-left: 4px solid var(--accent-gold);
  padding-left: 1rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--card-border);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent-gold);
  width: 28px;
  border-radius: 12px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section,
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--text-main);
}

.title-underline {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card [contenteditable="true"] {
  outline: none;
  transition: var(--transition);
  border-radius: 4px;
  padding: 2px 4px;
}

.service-card [contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Contact Section & CTA
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.8rem;
  color: #fff;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.4rem;
  color: var(--accent-gold);
  background: rgba(229, 169, 60, 0.1);
  padding: 12px;
  border-radius: 10px;
}

.info-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.info-item p {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-top: 2px;
}

.action-box {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b88220);
  color: #0b0e14;
  box-shadow: 0 4px 20px var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 169, 60, 0.6);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--glow-gold);
}

.btn-glow-submit {
  background: linear-gradient(135deg, #1f293d, #111827);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-glow-submit:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 20px var(--glow-gold);
}

/* Modal Popup Window */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.8rem;
}

.modal-btn {
  padding: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wa-btn {
  background: #25d366;
  color: #fff;
}
.mail-btn {
  background: #333;
  color: #fff;
  border: 1px solid var(--card-border);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  background: rgba(8, 10, 14, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Main Top Section: Logo & Links */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

/* Larger Footer Logo */
.footer-logo {
  height: 90px; /* Adjust height as needed */
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 450px;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* Full-Width Legal Section at Very Bottom */
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   MOBILE-ONLY FIXES (Does not touch Desktop)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Scale down hero slider height so truck images aren't overly zoomed in */
  .slider-container {
    height: 350px !important;
  }

  /* 2. Stack Get In Touch cards vertically so Request Quote drops underneath */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .contact-card,
  .quote-card {
    width: 100% !important;
  }
}

/* ==========================================================================
   DUAL CTA BUTTONS
   ========================================================================== */
.form-btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-action {
  flex: 1;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

/* WhatsApp Button Style */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1da851;
}

/* Email Button Style */
.btn-email {
  background: var(--accent-gold);
  color: #0a0c10;
}

.btn-email:hover {
  filter: brightness(1.1);
}

/* Stack buttons vertically on mobile screens */
@media (max-width: 500px) {
  .form-btn-group {
    flex-direction: column;
  }
}
