/*
Theme Name: Dan Dispatch Pro
Description: Clean, responsive freight dispatch theme with cinematic hero.
Version: 1.0
*/

/* ================================
   GLOBAL RESET & BASE STYLES
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 120px; /* space for fixed header */
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================
   HEADER — FINAL VERSION
================================ */
.site-header {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px; /* desktop branding size */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
}

/* Logo */
.site-logo img {
  height: 115px; /* Desktop branding size */
  width: auto;
  object-fit: contain;
}

.logo-link img {
  transition: opacity 0.3s ease;
}

.logo-link:hover img {
  opacity: 0.8;
}

/* Title next to logo */
.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin-left: 15px;
  text-transform: uppercase;
}

/* ================================
   NAVIGATION (.main-nav only)
================================ */
nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #000;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav.main-nav a:hover {
  color: #00bfff;
}

/* ================================
   MOBILE MENU TOGGLE
================================ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 10px;
}

/* ================================
   HERO SECTION DEFAULT LAYOUT
================================ */
.hero,
.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  margin-top: 120px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero h1,
.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.hero p,
.hero-section p {
  font-size: 1.3rem;
  max-width: 900px;
  margin: 20px auto 30px;
  line-height: 1.7;
}

.hero a.button,
.hero-section a.button {
  background-color: #00bfff;
  color: white;
  padding: 14px 34px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  transition: 0.3s ease;
}

.hero a.button:hover,
.hero-section a.button:hover {
  background-color: #009acd;
  transform: translateY(-2px);
}

/* ================================
   ABOUT PAGE
================================ */
.about-section {
  padding: 80px 20px;
  background: #fafafa;
}

.about-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-left img {
  max-width: 300px;
  border-radius: 15px;
}

.about-right h2 {
  font-size: 2rem;
  color: #f45a2a;
}

.about-right p {
  line-height: 1.7;
  color: #333;
}

/* ================================
   SERVICES PAGE
================================ */
.services-main {
  padding: 80px 20px;
  text-align: center;
}

.services-main h1 {
  font-size: 2.6rem;
  color: #f45a2a;
  margin-bottom: 50px;
}

.service-block img {
  border-radius: 12px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 800px;
}

.service-block p {
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
}

/* ================================
   CONTACT FORM SECTION
================================ */
.contact-section {
  background: #111;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact-section form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section input,
.contact-section textarea {
  padding: 15px;
  border-radius: 8px;
  border: none;
}

/* ================================
   FOOTER
================================ */
footer {
  background: #111;
  color: white;
  padding: 35px;
  text-align: center;
}

/* ================================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 768px) {

  body {
    padding-top: 100px;
  }

  .site-header {
    height: auto;
    padding: 10px 20px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo img {
    height: 80px; /* mobile branding size */
  }

  nav.main-nav ul {
    display: none; /* hide desktop menu */
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .mobile-menu-toggle {
    display: block;
    margin-top: 10px;
  }

  /* ABOUT PAGE */
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  /* HERO TEXT */
  .hero h1,
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero p,
  .hero-section p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {

  body {
    padding-top: 90px;
  }

  .site-logo img {
    height: 70px;
  }

  .hero h1,
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero p,
  .hero-section p {
    font-size: 0.95rem;
  }
}
