/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #3FBFBF;
    --color-primary-hover: #35a8a8;
    --color-secondary: #5DD3D1;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --color-text-light: #999999;
    --color-background: #FFFFFF;
    --color-border: #e0e0e0;
    --color-section-bg: #e8f6f6;
    --font-family-body: 'Quattrocento Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Catamaran', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    line-height: 1.5;
}

a {
  outline: none !important;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
}

/* ==================== */
/* Header Styles        */
/* ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
}

.nav-desktop {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn.btn-sm {
  padding: 5px 10px;
  display: inline-flex;
}

.btn-outline {
    color: var(--color-primary);
    background-color: transparent;
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: rgba(63, 191, 191, 0.1);
}

.btn-primary {
    color: white;
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #16575f;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.hamburger {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    top: 8px;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile.active {
    display: flex;
}

/* ==================== */
/* Hero Video Section   */
/* ==================== */
.hero-video {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    background-color: #000;
}

.hero-video__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-control:hover {
    background-color: white;
    transform: scale(1.05);
}

.video-control svg {
    width: 24px;
    height: 24px;
    color: #16575f;
}

.icon-play {
    margin-left: 3px; /* Offset for visual centering of play triangle */
}

/* ==================== */
/* Locations Section    */
/* ==================== */
.locations {
    padding: 50px 24px;
    background-color: var(--color-section-bg);
}

.section-heading {
    text-align: center;
    color: #16575f;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.locations__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-background);
}

.locations__list {
    max-height: 600px;
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
}

/* Location Card */
.location-card {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.location-card:last-child {
    border-bottom: none;
}

.location-card:hover {
    background-color: #f9f9f9;
}

.location-card.active {
    background-color: #16575f;
    border-left: 3px solid var(--color-primary);
}

.location-card.active h3,
.location-card.active p,
.location-card.active a {
  color: #fff
}


.location-card__name {
    font-size: 18px;
    font-weight: 600;
    color: #16575f;
    margin-bottom: 8px;
}

.location-card__address,
.location-card__state {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-bottom: 2px;
}

.location-card__website,
.location-card__phone {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 6px;
}

.location-card__website:hover,
.location-card__phone:hover {
    text-decoration: underline;
}

/* Map Container */
.locations__map {
    position: relative;
    min-height: 500px;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Mapbox Popup Styling */
.mapboxgl-popup-content {
    padding: 18px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.mapboxgl-popup-close-button {
    font-size: 18px;
    padding: 4px 8px;
}

.popup-content {
    font-family: var(--font-family-body);
    line-height: 1.2;
}

.popup-content h3 {
    font-family: var(--font-family-heading);
    font-size: 16px;
    font-weight: 600;
    color: #16575f;
    margin-bottom: 8px;
}

.popup-content p {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 2px;
}

.popup-content a {
    display: block;
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 6px;
}

.popup-content strong {
  margin-top: 6px;
  display: block;
}

.popup-content a.btn {
  color: #fff;
}

.popup-content a:hover {
    text-decoration: underline;
}

/* Custom Map Marker */
.custom-marker {
    width: 30px;
    height: 40px;
    cursor: pointer;
}

.custom-marker svg {
    width: 100%;
    height: 100%;
}

/* ==================== */
/* Responsive Styles    */
/* ==================== */
@media (max-width: 1024px) {
    .locations__container {
        grid-template-columns: 1fr;
    }

    .locations__list {
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .locations__map {
        min-height: 400px;
    }

    #map {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 16px;
    }

    .section-heading {
      font-size: 1.875rem;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-video {
      height: 250px;
      min-height: 250px;
    }

    .video-control {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }

    .video-control svg {
        width: 20px;
        height: 20px;
    }

    .locations {
        padding: 24px 40px;
    }

    .locations__container {
        border-radius: 4px;
        background: transparent;
        border: none;
    }

    .locations__list {
      max-height: unset;
      border: none;
    }

    .location-card {
        padding: 16px;
        background: #fff;
        margin-bottom: 12px;
        border-radius: 12px;
        border: 1px solid var(--color-border);
    }

    .location-card__name {
        font-size: 15px;
    }

    .location-card__address,
    .location-card__state,
    .location-card__website,
    .location-card__phone {
        font-size: 13px;
    }

    #map {
      border: 1px solid var(--color-border);
      border-radius: 12px;
    }

    .careers {
        padding: 24px 40px;
    }

    .video-section {
        padding: 24px 40px;
    }
}

/* ==================== */
/* Video Section        */
/* ==================== */
.video-section {
    padding: 50px 24px;
    background-color: var(--color-section-bg);
}

.video-section__container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.video-section__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-section__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
  .video-section__container {
    max-width: 100%;
  }
}

/* ==================== */
/* Careers Section      */
/* ==================== */
.careers {
    padding: 50px 24px;
    background-color: var(--color-section-bg);
}

.careers__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.career-card {
    background: var(--color-background);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.career-card__name {
    font-size: 18px;
    font-weight: 600;
    color: #16575f;
    margin-bottom: 12px;
}

.career-card__info {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-bottom: 4px;
}

.career-card__info:last-of-type {
    margin-bottom: 16px;
}

.career-card__phone {
    color: var(--color-primary);
    text-decoration: none;
}

.career-card__phone:hover {
    text-decoration: underline;
}

.career-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Careers Responsive */
@media (max-width: 1100px) {
    .careers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .careers__grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling for Location List */
.locations__list::-webkit-scrollbar {
    width: 6px;
}

.locations__list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.locations__list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.locations__list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}