/* Dually Bros Group LLC - Working Background Fix */

:root {
  --brand: #b30000;
  --dark: #111;
  --text: #222;
  --muted: #f6f6f6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--dark);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  background: url('../oversize_hero.jpg') center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 80px 16px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero > .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-top: 350px; /* pushes text lower */
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 18px;
  margin: 10px 0 22px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background: #8a0000;
}

/* Sections */
.section {
  padding: 56px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  color: var(--brand);
  margin: 0 0 12px;
}

.section-muted {
  background: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Forms */
form input, form textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

form input[type=submit] {
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--dark);
  color: #ccc;
  text-align: center;
  padding: 26px 16px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 64px);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 16px;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .hero {
    min-height: 62vh;
    background-position: center;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
/* Fade-in animation for hero section */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fade-in for navigation bar */
.navbar {
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}