:root {
  --chocolate: #3D1C06;
  --dark-orange: #D9531E;
  --white: #FFFFFF;
  --off-white: #F9F4F0;
  --text-dark: #2A1508;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gill Sans MT', 'Gill Sans', 'Calibri', 'Segoe UI', Tahoma, sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevents horizontal layout breaking */
}

body {
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body.loaded {
  opacity: 1;
}

p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Page Loader Spinner */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--chocolate);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--dark-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation & Header */
header {
  background-color: var(--white);
  color: var(--chocolate);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  width: 100%;
}

.logo-container img {
  height: auto;
  width: 220px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--chocolate);
  text-decoration: none;
  padding: 0.6rem 1rem;
  display: block;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav ul li a:hover, nav ul li a.active {
  background-color: var(--dark-orange);
  color: var(--white);
}

nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-top: 3px solid var(--dark-orange);
  border-radius: 0 0 4px 4px;
  z-index: 100;
}

nav ul li:hover .dropdown {
  display: block;
}

nav ul li .dropdown li a {
  color: var(--chocolate);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
}

nav ul li .dropdown li a:hover {
  background-color: var(--off-white);
  color: var(--dark-orange);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 2px;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--chocolate);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Breadcrumbs - Locked Safe Container */
.breadcrumb-container {
  background-color: var(--white);
  border-bottom: 1px solid #E5E5E5;
  padding: 0.6rem 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.breadcrumb li + li::before {
  content: "/\00a0";
  padding: 0 0.5rem;
  color: #888;
}

.breadcrumb li a {
  color: var(--dark-orange);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb li.active {
  color: var(--chocolate);
  font-weight: 600;
}

/* Global Container */
.container {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem auto;
  padding: 0 1.2rem;
  width: 100%;
}

.btn {
  display: inline-block;
  background-color: var(--dark-orange);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #b83f12;
}

/* Section Title */
.section-title {
  text-align: center;
  color: var(--chocolate);
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem 0;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--dark-orange);
  margin: 0.4rem auto 0 auto;
  border-radius: 2px;
}

/* Team Grid Styling (Fully Responsive Auto-Fit) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-top: 4px solid var(--dark-orange);
  text-align: center;
  padding-bottom: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.team-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.team-card h3 {
  color: var(--chocolate);
  font-size: 1.1rem;
  margin: 0.8rem 0 0.2rem 0;
  padding: 0 0.5rem;
}

.team-card .role {
  color: var(--dark-orange);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0.5rem;
}

.team-contact {
  list-style: none;
  padding: 0 0.5rem;
  font-size: 0.82rem;
}

.team-contact li {
  margin-bottom: 0.3rem;
  color: #555;
  word-break: break-word;
}

.team-contact a {
  color: var(--chocolate);
  text-decoration: none;
  font-weight: 600;
}

.team-contact a:hover {
  color: var(--dark-orange);
}

/* Testimonial Slider Container */
.testimonial-container {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem 3rem 2rem 3rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-left: 5px solid var(--dark-orange);
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  text-align: center;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: bold;
  color: var(--chocolate);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--dark-orange);
  margin-top: 0.2rem;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--chocolate);
  color: var(--white);
  border: none;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.testimonial-btn:hover {
  background: var(--dark-orange);
}

.testimonial-prev { left: 8px; }
.testimonial-next { right: 8px; }

/* Cards & Grid Utilities */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-top: 4px solid var(--dark-orange);
}

.card h3 {
  color: var(--chocolate);
  margin-bottom: 0.6rem;
}

/* Footer */
footer {
  background-color: var(--chocolate);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 3px solid var(--dark-orange);
}

footer p {
  color: var(--white);
  font-size: 0.95rem;
}

/* Mobile & Tablet Responsiveness Breakpoints */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    padding-top: 4.5rem;
    z-index: 1000;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li a {
    padding: 0.9rem 1.5rem;
    border-radius: 0;
  }

  nav ul li .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: #F4F4F4;
    min-width: 100%;
  }

  nav ul li .dropdown li a {
    padding-left: 2.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  .testimonial-container {
    padding: 2rem 2.2rem;
  }
}