:root {
  --primary-color: #652d2c; /* Burgendy */
  --secondary-color: #fff7e3; /* Beige */
  --third-color: whitesmoke;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--third-color);
  font-family: "Segoe UI", Arial, sans-serif;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px 40px;
  height: 150px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo img {
  max-width: 170px;
  margin-top: 30px;
}
.logo h1 {
  color: var(--primary-color);
}

/* Cleaned up nav selectors */
.nav-links ul {
  color: var(--primary-color);
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  font-size: 1.3em;
  font-family: Arial, Helvetica, sans-serif;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: inherit; /* <-- ADD THIS LINE */
}

.dropbtn {
  color: var(--primary-color);
  font-family: Arial, Helvetica, sans-serif;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit; /* <-- ADD THIS LINE */
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0px;
  background-color: #f1f1f1;
  min-width: 350px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--primary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: end;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  text-decoration: underline;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.socialIcons img {
  padding-top: 5px;
  margin-right: 20px;
  height: 30px;
}

.socialIcons a:hover img {
  opacity: 0.8;
  transform: scale(1.15);
}

.callbtn {
  display: flex;
  height: 50px;
  width: 100px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  justify-content: center;
  align-items: center;
  border-radius: 15px;
}

/* --- NEW RESPONSIVE HERO SECTION --- */
.cover-container {
  position: relative;
  width: 100%;
  height: 90vh; /* 90% of the viewport height */
  overflow: hidden; /* Hides any part of the image that spills over */
  margin-bottom: 10rem;
}

cover-container .image img {
  position: absolute; /* 1. Make the image fill the container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 2. Now it's 100% height of .cover-container */
  object-fit: cover; /* 3. This will now work correctly */
  z-index: -1; /* 4. Puts the image *behind* the text */
}

.cover-container .tag-line {
  position: absolute;
  top: 45%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  font-family: sans-serif;
  font-size: 6vw;
  font-weight: 500;
  z-index: 1; /* Makes sure text is on top */
}

.cover-container .cta-quote {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: sans-serif;
  font-size: 3vw;
  z-index: 1; /* Makes sure text is on top */
  text-align: center;
}

/* --- NEW SIMPLIFIED OFFERINGS SECTION --- */
.overlap-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  width: 90%;
  margin: 0 auto 10rem auto;
}
.overlap-container > * {
  grid-area: 1 / 1;
}

.overlap-container img {
  width: 60%;
  height: 100%;
  object-fit: cover;
}

.overlap-container .overlap-text {
  width: 50%;
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px 40px;
  color: black;
  background-color: white;
  box-sizing: border-box;
  font-size: 2em;
}

/* 1. Set the default layout (Image Left, Text Right) */
.overlap-container img {
  justify-self: start;
}
.overlap-container .overlap-text {
  justify-self: end;
}

/* 2. On every EVEN child, flip the layout */
.offerings .overlap-container:nth-child(even) img {
  justify-self: end;
}
.offerings .overlap-container:nth-child(even) .overlap-text {
  justify-self: start;
}
/* --- END OF SIMPLIFIED SECTION --- */

.overlap-text h2 {
  font-size: 2em; /* This is 2em * 2em = 4em. Use 2rem if you want it to be 2x root */
  font-weight: bolder;
  padding-top: 0;
  padding-bottom: 20px;
}

.overlap-text p {
  padding: 20px;
}

/* --- UPDATED LEARN MORE BUTTON --- */
.learnbtn {
  background-color: var(--primary-color);
  padding: 16px 18px;
  text-align: center;
  font-size: 0.5em;
  color: white;
  text-decoration: none;
  display: inline-block;
  border-radius: 30px;
  margin-top: 20px;
}

.quotebtn {
  display: block;
  width: fit-content;
  font-size: 1.1em;
  margin: 20px auto;
}

.quotelnk {
  padding: 3px 0;
}

/* --- NEW RESPONSIVE CARRIERS GRID --- */
.carriers {
  width: 90%;
  margin: 5rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  place-items: center;
}

.carriers img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

/* --- ABOUT/BIO/CONTACT PAGES (NO CHANGES) --- */
.about-img {
  width: 100%;
}
.about-img img {
  width: 100%;
}

.about-body {
  background-color: white;
  font: 3em sans-serif;
  padding: 20px 200px;
}
.about-body p {
  padding: 50px 30px;
}
.our-team-header {
  width: 100%;
  display: flex;
}
.our-team-header h1 {
  font-size: 4em;
  margin: 90px auto;
}
.bio-container {
  display: flex;
  column-gap: 20px;
  justify-content: center;
  text-align: center;
  margin-bottom: 50px;
}
.bio-container .desc-container {
  width: 30%;
  background-color: white;
}
.desc-container img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  margin: 10px auto;
}
.fred img {
  object-position: center 25%;
}
.desc-container .description h2,
.desc-container .description h3 {
  text-align: left;
  padding-left: 0px;
  width: 400px;
  margin: 0 auto;
}
.desc-container .description p {
  padding: 20px;
  text-align: left;
  font-size: 1.4em;
  width: 400px;
  margin: 0 auto;
}

.contact-us-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}
.contact-us-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}
.contact-us-container .contact-info,
.contact-us-container .form-side {
  flex: 1;
  min-width: 300px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-info h2 {
  font-size: 2.5em;
  line-height: 1.2;
}
.contact-details a,
.contact-details .address p {
  display: block;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
}
.contact-details .address p {
  margin: 0;
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}
.form-side form {
  display: flex;
  flex-direction: column;
}
.form-side label {
  margin-bottom: 5px;
  font-weight: bold;
}
.form-side input[type="text"],
.form-side input[type="email"],
.form-side textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.form-side textarea {
  height: 150px;
  resize: vertical;
}
.form-side input[type="submit"] {
  width: auto;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  /* Use your variable here! */
  background-color: var(--primary-color);
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
}
.form-side input[type="submit"]:hover {
  filter: brightness(0.9);
}

.main-content {
  width: 100%;
  height: 100%;
}
.offer-container {
  width: 100%;
  height: 100%;
  background-color: white;
  padding-bottom: 10px;
}

.offer-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.offer-container .offer-content {
  max-width: 70%;
  margin: 50px auto;
  padding-bottom: 0px;
}
.offer-container .offer-content h1 {
  margin: 20px auto;
  text-align: center;
  font-size: 4em;
}
.offer-container .offer-content p,
.offer-container .offer-content ul {
  font-size: 2em;
  margin-bottom: 30px;
}
.offer-container .offer-content ul {
  padding-left: 65px;
}

.thanks-container {
  width: 100%;
  height: 300px;
  background-color: white;
  margin: 0 auto;
}

.thanks-container p {
  text-align: center;
  padding-top: 30px;
  font-size: 2em;
}

/* ========== Footer Styles ========== */
footer {
  background-color: #f8f9fa;
  padding: 40px 20px;
  font-family: sans-serif;
  font-size: 14px;
  color: #333;
}
footer a {
  color: #333;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
footer h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}
/* Removed the duplicated .socialIcons rule */
.socialIcons {
  margin-top: 5px;
}
.socialIcons img {
  height: 40px;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.socialIcons a:hover img {
  transform: scale(1.15);
  opacity: 0.8;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #666;
}

/* === Custom Branding Overrides === */
.quote-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}
.quote-form h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.form-label {
  font-weight: 600;
  color: #333;
}
.form-control {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 0.75rem;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 6px;
}
.btn-primary:hover {
  filter: brightness(0.9); /* <--- Better hover effect */
}

/* --- Style for the new hamburger button --- */
.mobile-nav-toggle {
  display: none; /* Hidden on desktop by default */
  width: 35px;
  height: 30px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* This creates the 3 hamburger lines */
.mobile-nav-toggle::before,
.mobile-nav-toggle::after,
.mobile-nav-toggle span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle span {
  top: 13px;
}
.mobile-nav-toggle::before {
  top: 0;
}
.mobile-nav-toggle::after {
  top: 26px;
}

/* --- Toggled (X) state for hamburger button --- */
.mobile-nav-toggle[aria-expanded="true"] span {
  opacity: 0; /* Hides middle line */
}
.mobile-nav-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
  top: 13px;
}
.mobile-nav-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
  top: 13px;
}

/* --- This is the media query for mobile --- */
@media (max-width: 768px) {
  /* 1. Show the hamburger button */
  .mobile-nav-toggle {
    display: block;
    z-index: 1001; /* Make sure it's on top */
  }

  /* 2. Reposition the nav-links to be a slide-out menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%; /* Menu takes 60% of the screen */

    /* This moves the menu off-screen */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;

    background-color: white;
    padding: 10rem 2rem 2rem; /* Add padding to top */
    z-index: 1000;
  }

  /* 3. This class (added by JS) slides the menu on-screen */
  .nav-links[data-visible="true"] {
    transform: translateX(0);
  }

  /* 4. Make the list items stack vertically */
  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  /* 5. Make the dropdown work better on mobile */
  .dropdown {
    width: 100%;
  }
  .dropdown-content {
    position: static; /* No longer "absolute" */
    box-shadow: none;
    min-width: 0;
    background-color: transparent;
  }
  .dropdown-content a {
    padding: 8px 16px;
    text-align: left;
    font-size: 0.9em;
  }
  .dropdown:hover .dropdown-content {
    /* We want it to always be visible, not just on hover */
    display: block;
  }

  /* --- Other mobile fixes from before --- */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-body {
    padding: 20px 40px;
  }

  .cover-container .tag-line {
    font-size: 2.5rem; /* Locks to a good, readable size on small screens */
  }

  .cover-container .cta-quote {
    font-size: 1.5rem; /* Locks to a good, readable size on small screens */
  }

  /* --- STACKING CONTENT FOR MOBILE --- */

  /* 1. Makes the overlap container stack */
  .overlap-container {
    margin: 0 auto 5rem auto; /* Smaller bottom margin for mobile */
  }

  .overlap-container img,
  .overlap-container .overlap-text {
    grid-area: auto; /* This stops them from overlapping */
    width: 100%; /* Makes them full-width */
    height: auto; /* Lets height be automatic */
    justify-self: center;
  }

  /* 2. Reset the alternating layout, since they are stacked now */
  .offerings .overlap-container:nth-child(even) img,
  .offerings .overlap-container:nth-child(even) .overlap-text {
    justify-self: center;
  }

  .overlap-text {
    padding: 40px 20px; /* Adds vertical padding on mobile */
  }

  /* 3. Fixes your "common page" content */
  .offer-container .offer-content {
    max-width: 90%; /* Uses more of the screen */
  }

  .offer-container .offer-content h1 {
    font-size: 2.5em; /* Smaller font on mobile */
  }
  .offer-container .offer-content p,
  .offer-container .offer-content ul {
    font-size: 1.2em; /* Smaller font on mobile */
  }

  /* 4. Fixes the "Our Team" bio containers */
  .bio-container {
    flex-direction: column; /* Stacks the bios */
    align-items: center; /* Centers them */
    gap: 30px;
  }

  .bio-container .desc-container {
    width: 90%; /* Make bios wider on mobile */
    max-width: 400px; /* But not too wide */
  }
}
