/* Root Variables for Easy Customization */
:root {
  --red: #7D2B2B;
  --gray: #2B2B2B;
  --white: #F4F4F4;
  --slate: #7A869A;
  --font-header: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* General Body Styling */
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--gray);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header Styling */
header {
  background-color: var(--gray);
  padding: 1rem 2rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header .logo {
  flex-grow: 1;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--red);
}

/* Hamburger Menu for Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: var(--gray);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  nav ul.show {
    height: auto;
    padding: 10px 0;
  }

  nav a {
    display: block;
    padding: 10px 15px;
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background-color: var(--red);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-header);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: auto;
}

/* Section Layout */
.section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-family: var(--font-header);
  color: var(--red);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Why Us Section Wrapper */
#why-wrapper {
  background-color: var(--slate);
  color: var(--white);
  padding: 3rem 0;
}

#why-wrapper .section ul,
.section#why ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  text-align: left;
}

#why-wrapper .section ul li,
.section#why ul li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Service Cards Container */
.service-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: stretch; /* Enforce equal height */
}

/* Service Cards Container */
.service-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: stretch;
}

/* Service Card Styling */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex: 1 1 300px;
  max-width: 300px;
  min-height: 5px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s;
  text-decoration: none;
  color: var(--gray);
  cursor: pointer;
}

.service-card:hover {
  transform: scale(1.03);
  background: #eaeaea;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-header);
  font-size: 1.2rem;
  min-height: 3rem;
}

.service-card p {
  margin: 0;
  line-height: 1.4;
  font-size: 1rem;
}


/* Image Styling */
.service-image-container {
  max-height: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.service-card img {
  max-width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

/* Responsive Service Cards */
@media (max-width: 768px) {
  .service-card {
    max-width: 45%;
  }
}

@media (max-width: 480px) {
  .service-card {
    max-width: 100%;
  }

  .service-card img {
    max-height: 120px;
  }
}

/* Services Section Background */
.services {
  background-color: var(--gray);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.services h2 {
  font-family: var(--font-header);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.services p {
  font-size: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--gray);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.contact h2 {
  font-family: var(--font-header);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact p {
  font-size: 1rem;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  background-color: var(--slate);
  color: var(--white);
  padding: 1rem;
}

footer a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  text-decoration: underline;
  color: #c9302c;
}

footer a.footer-link {
  color: var(--white);
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s;
}

footer a.footer-link:hover {
  color: var(--red);
  text-decoration: underline;
}

/* Utility Spacing */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Button Styling */
button {
  padding: 10px 15px;
  border: none;
  background-color: var(--red);
  color: var(--white);
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #c9302c;
}

/* Legal Page Formatting */
.legal-section {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  line-height: 1.6;
  background-color: #F4F4F4;
  color: #2B2B2B;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.legal-section h1 {
  font-family: var(--font-header);
  color: var(--red);
  text-align: center;
  margin-bottom: 1rem;
}

.legal-section h2 {
  color: var(--red);
  margin-top: 2rem;
}

.legal-section h3 {
  margin-top: 1.5rem;
  font-weight: bold;
}

.legal-section p {
  margin-bottom: 1rem;
}

.legal-section hr {
  margin: 2rem 0;
  border: none;
  height: 1px;
  background-color: #7A869A;
}

/* Updated Header Structure */
.header-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background-color: var(--gray);
    display: none;
    margin-top: 0.5rem;
  }

  .main-nav ul.show {
    display: flex;
  }

  .main-nav li a {
    width: 100%;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    margin-top: 0.5rem;
    cursor: pointer;
    align-self: flex-end;
  }
}

/* Styled bullet lists for all service pages */
.section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem auto;
  max-width: 700px;
  text-align: left;
}

.section ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
}
