/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: 45 100% 50%;
  --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 0%;
  --secondary-foreground: 0 0% 100%;
  --accent: 45 80% 60%;
  --accent-foreground: 0 0% 0%;
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --card: 0 0% 100%;
  --card-foreground: 215 20% 15%;
  --muted: 215 20% 96%;
  --muted-foreground: 215 15% 45%;
  --border: 215 20% 88%;
  --input: 215 20% 88%;
  --ring: 215 100% 50%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navigation {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--primary));
}

.nav-logo img {
  height: 50px;
  width: auto; /* Fixed width to prevent stretching */
  object-fit: contain; /* Maintain aspect ratio */
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: hsl(var(--foreground));
  max-width: 200px; /* Prevent text from causing overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu-container {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.nav-menu a {
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: hsl(var(--primary));
}

.nav-mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: hsl(var(--foreground));
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  list-style: none;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  background: hsla(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.nav-mobile-menu.open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-menu-container {
    display: flex;
  }
  .nav-mobile-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(var(--secondary) / 0.95), hsla(var(--secondary) / 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: hsla(var(--secondary-foreground) / 0.9);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image {
  display: none;
}

.hero-image img {
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 512px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-text {
    text-align: left;
  }
  .hero-text h1 {
    font-size: 3.75rem;
  }
  .hero-text p {
    font-size: 1.5rem;
  }
  .hero-buttons {
    flex-direction: row;
  }
  .hero-image {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  /* Use brand primary (yellow) with subtle darken via opacity instead of old blue */
  opacity: 0.95;
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  /* Keep secondary (black) subtle on hover */
  opacity: 0.9;
}

/* Cards */
.card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  border-color: hsl(var(--primary));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card-description {
  color: hsl(var(--muted-foreground));
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section-bg {
  background: hsl(var(--card));
}

.section-gradient {
  background: linear-gradient(to bottom right, hsla(var(--primary) / 0.1), hsla(var(--accent) / 0.1));
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* Icons */
.icon {
  width: 3rem;
  height: 3rem;
  color: hsl(var(--primary));
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.footer {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: hsla(var(--secondary-foreground) / 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: hsl(var(--secondary-foreground));
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsla(var(--secondary-foreground) / 0.2);
  color: hsla(var(--secondary-foreground) / 0.8);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Features List */
.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: hsl(var(--primary));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

/* Spacing */
.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

/* Team Cards */
.team-photo {
  width: 10rem;
  height: 12rem;
  margin: 0 auto 1rem;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  border: 2px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Branch Photos */
.branch-photo {
  width: 100%;
  height: 300px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid hsl(var(--border));
}

/* Map */
.map-container {
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* Stats */

.stat-card {
  background: transparent; /* more lightweight / transparent */
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.375rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-4px);
}

.stat-value {
  font-size: 1.75rem; /* smaller */
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-info-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-buttons {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
}

.contact-buttons .btn {
  flex: 1;
}

@media (min-width: 640px) {
  .hero-buttons,
  .contact-buttons {
    flex-direction: row;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1.125rem;
  }

  .nav-logo {
    max-width: calc(100% - 50px); /* Leave space for mobile toggle */
  }

  .card {
    padding: 1rem;
  }

  .team-photo {
    width: 8rem;
    height: 10rem;
  }

  .grid {
    gap: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  .nav-content {
    padding: 0.5rem 0;
  }

  .nav-mobile-menu {
    margin-top: -1px; /* Remove gap between nav and menu */
  }

  .footer-content {
    text-align: center;
  }
}
