/* 5‑pages/_our-teams.css */

/* ==========================================================================
   Our Teams Location Cards
   ========================================================================== */

/* Main banner section with quote */
.teams-banner-section {
  position: relative;
  background-color: var(--primary-blue);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.teams-banner-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Locations cards section */
.locations-section {
  background-color: var(--primary-blue);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* GLOBE background */
.locations-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url('/static/images/GLOBE.webp');
  background-size: 80% auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
}

/* Fallback if GLOBE.webp doesn't exist */
@supports not (background-image: url('/static/images/GLOBE.webp')) {
  .locations-section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(39, 171, 227, 0.05) 70%);
    z-index: 0;
  }
}

.locations-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Custom layout for cards */
.locations-grid {
  display: grid;
  grid-template-areas:
    "fort-worth pecos"
    "midland houston"
    "san-antonio san-antonio";
  grid-template-columns: 420px 420px !important;
  grid-gap: 25px !important;
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
}

.location-card-wrapper.fort-worth {
  grid-area: fort-worth;
}

.location-card-wrapper.pecos {
  grid-area: pecos;
}

.location-card-wrapper.midland {
  grid-area: midland;
}

.location-card-wrapper.houston {
  grid-area: houston;
}

.location-card-wrapper.san-antonio {
  grid-area: san-antonio;
  width: 420px !important;  /* Same width as other cards */
}

/* Location cards */
.location-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.location-card-wrapper {
  width: 420px !important;
  max-width: 420px !important;
  justify-self: center;
}

.location-image {
  height: 250px;
  width: 100%;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.location-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.location-description {
  font-size: 0.85rem;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
  flex-grow: 1;
}

/* Service tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.service-tag {
  background-color: #e9f5fd;
  color: #0c71c3;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Stats section */
.location-stats {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Team button */
.team-button-container {
  text-align: center;
  padding-top: 10px;
}

.meet-team-btn {
  background-color: var(--accent-orange, #F8B36A);
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.meet-team-btn:hover {
  background-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 992px) {
  .locations-grid {
    grid-template-areas:
      "fort-worth"
      "pecos"
      "midland"
      "houston"
      "san-antonio";
    grid-template-columns: 1fr;
    grid-gap: 20px;
    justify-items: center;
  }
  
  .location-card-wrapper {
    width: 100%;
    max-width: 420px !important;
  }
}

@media (max-width: 768px) {
  .teams-banner-section {
    padding: 40px 0;
  }
  
  .teams-banner-section h1 {
    font-size: 1.75rem;
  }
  
  .locations-section {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .service-tags {
    justify-content: center;
  }
  
  .location-stats {
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 0 0 33%;
    margin-bottom: 10px;
  }
}

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

/* Modal Overlay */
.team-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.team-modal {
  background-color: var(--primary-blue);
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  color: white;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-modal-content {
  padding: 30px;
}

.team-header {
  text-align: center;
  margin-bottom: 20px;
}

.team-header h2 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.team-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 25px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content wrapper for the changing content */
.team-content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  min-height: 120px;
}

.rotating-content {
  flex: 1;
  padding: 0 40px;
}

/* Modal sections styling */
.modal-section {
  display: none;
  text-align: center;
}

.modal-section.active {
  display: block;
}

.modal-section h3 {
  color: var(--accent-orange, #F8B36A);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.modal-section p {
  color: white;
  line-height: 1.6;
  font-size: 1rem;
}

.team-description p {
  color: white;
  line-height: 1.6;
}

/* Navigation arrows correctly positioned */
.nav-arrow {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.nav-arrow:hover {
  background-color: var(--accent-orange, #F8B36A);
}

.nav-arrow.left {
  left: 0;
}

.nav-arrow.right {
  right: 0;
}

/* Testimonial at the bottom */
.team-testimonial {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
  font-style: italic;
  border-left: 3px solid var(--accent-orange, #F8B36A);
}

.team-testimonial p {
  color: white;
  font-size: 0.9rem;
  line-height: 1.6;
}

.team-testimonial-author {
  text-align: right;
  margin-top: 10px;
  font-weight: bold;
  color: var(--accent-orange, #F8B36A);
  font-size: 0.85rem;
}

/* Modal close button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: var(--accent-orange, #F8B36A);
}

/* Indicators at the bottom */
.modal-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.modal-indicator.active {
  background-color: var(--accent-orange, #F8B36A);
}

/* Card layout tweaks */
.row-cols-lg-3 {
  justify-content: center;
}

/* Add specific margin and padding for better spacing */
.row {
  margin: 0 -15px;
}

.col {
  padding: 15px;
}

/* San Antonio card centering */
.col.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  /* Create a 3-2 grid layout for desktop */
  .row-cols-lg-3 > .col:last-child {
    margin-left: auto;
    margin-right: auto;
    /* Adjust to make it centered when it's alone in the last row */
    max-width: 33.333%;
  }
} 