/* Reset & Basic Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #C4091C;
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Removes bottom space */
  margin: 0 auto;
  /* Centers the image */
}

/* Layout Wrapper */
.wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  /* Optional: adds nice depth */
}

/* Header */
.header {
  position: relative;
  text-align: center;
  background: #000;
  /* Fallback */
}

.header img {
    width: 100%;
    height: 375px;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #E1A31E;
  padding: 8px 0;
  gap: 18px;
  flex-wrap: wrap;
  /* Allows wrapping on smaller screens */
}

.navbar a {
  text-decoration: none;
  display: block;
  /* Helps touch targets */
}

.navbar img {
  height: 30px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar a:hover img {
  transform: scale(1.05);
}

/* Hamburger Menu Icon */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #E1A31E;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

.mobile-nav a {
  color: #000;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.mobile-nav a:hover {
  background: rgba(0,0,0,0.1);
}

/* Active State for Mobile Menu */
.mobile-nav.active {
  display: flex;
}

/* Hamburger Animation */
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fallback Text Nav (if needed in future, keeping accessible styles) */
.nav-text {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 10px 0;
  padding: 0 10px;
}

.nav-text a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
}

/* Main Content */
.content {
  padding: 32px 80px;
  text-align: center;
}

h1 {
  font-size: 34px;
  margin: 10px 0 18px;
}

h2 {
  font-size: 22px;
  margin-top: 28px;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  max-width: 1100px;
  margin: 10px auto;
}

.phone {
  color: red;
  font-size: 20px;
  font-weight: bold;
}

/* Utility Classes */
.cta-btn {
  text-align: center;
  margin-top: 20px;
}

.cta-btn img {
  margin: 0 auto;
  max-width: 320px;
  width: 100%;
}

/* Footer */
.footer {
  background: #E1A31E;
  padding: 12px;
  text-align: center;
  font-size: 12px;
}

/* Legacy Style Support (helpers for migrated content) */
.style2 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 12px;
}

.style4 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.style5 {
  font-size: 10px;
  color: #000000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.style7 {
  color: #0000CC;
}

.style8 {
  color: #FF0000;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .content {
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
    .header img {
    width: 100%;
    height: 100%;
}

  /* Tablet & Mobile */
  .navbar {
    gap: 10px;
    padding: 10px;
  }

  .navbar img {
    height: 25px;
    /* Slightly smaller nav items */
  }

  /* Show Hamburger and Mobile Nav on small screens */
  .navbar {
    position: relative;
    justify-content: space-between;
    padding: 10px 20px;
  }

  /* We hide the image links on mobile to use the hamburger instead */
  .navbar > a {
    display: none;
  }

  /* Always show the Home logo if preferred, or just the hamburger */
  .navbar a[title="Home"] {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .content {
    padding: 20px 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
  }

  /* Ensure tables inside content don't break layout */
  table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
  }
}