/* ------------------------------
   GLOBAL STYLES
------------------------------ */

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Box-sizing and responsive media defaults */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* Make media scale properly on small screens */
img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  color: #003366;
}

p {
  line-height: 1.6;
}

/* ------------------------------
   NAVIGATION
------------------------------ */

header {
  background-color: #003366;
  color: white;
  padding: 1em;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6em;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2em;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: white;
}

/* ------------------------------
   HERO SECTION (Homepage)
------------------------------ */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 2em;
  background-color: white;
}

.hero img {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-right: 2em;
}

.hero-text {
  max-width: 600px;
}

/* ------------------------------
   VALUES SECTION
------------------------------ */

.values {
  background-color: #e6f0ff;
  padding: 2em;
  text-align: center;
}

/* ------------------------------
   TEAM SECTION (Homepage)
------------------------------ */

.team {
  padding: 2em;
  background-color: white;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 1.5em;
}

.team-member {
  background: #e6f0ff;
  padding: 1em;
  border-radius: 8px;
  flex: 1 1 250px;
  max-width: 250px;
}

.team-member img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5em;
}

.member-name {
  font-size: 1.05em;
  font-weight: 600;
  margin: 0.25em 0;
  color: #003366;
}

/* Team header and toggle */
.team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

.staff-toggle {
  background-color: #003366;
  color: white;
  border: none;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.staff-toggle:focus {
  outline: 3px solid rgba(0,51,102,0.2);
}

/* Ensure hidden sections are not visible */
.team[hidden] {
  display: none;
}

/* ------------------------------
   SERVICES PAGE (Meineke Style)
------------------------------ */

.services-page {
  padding: 2em;
}

.service-category {
  background: #ffffff;
  padding: 1.5em;
  margin: 1.5em 0;
  border-radius: 8px;
  border-left: 6px solid #003366;
}

.service-category h2 {
  margin-top: 0;
}

.service-category ul {
  padding-left: 1.2em;
}

.service-category ul li {
  margin-bottom: 0.3em;
}

/* ------------------------------
   ABOUT PAGE
------------------------------ */

.about-page {
  padding: 2em;
}

.about-section {
  background: white;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 8px;
  border-left: 6px solid #003366;
}

/* ------------------------------
   CONTACT PAGE
------------------------------ */

.contact-page {
  padding: 2em;
}

.contact-info {
  background: white;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 8px;
  border-left: 6px solid #003366;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
}

/* ------------------------------
   RESPONSIVE DESIGN
------------------------------ */

@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: min(90vw, 240px);
    padding: 1em 0;
  }

  .nav-links li {
    padding: 1em;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero img {
    margin: 0 0 1em 0;
  }

  .hero-text {
    max-width: 100%;
    padding: 0 1em;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    width: 100%;
    max-width: 420px;
  }
}