:root {
  --primary: rgb(52, 152, 165);
  --secondary: rgb(39, 113, 140);
  --dark: #212529;
  --light: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  padding-top: 105px; /* Offset for fixed header */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* --- UTILITIES --- */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.o-cover { object-fit: cover !important; }
.z-1 { z-index: 1; }
.z-10 { z-index: 99999; }
.hover-primary:hover { color: var(--primary) !important; }

.text-gradient {
  background-color: white;
  background-image: linear-gradient(45deg, var(--primary), var(--secondary));
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.bg-gradient {
  background: linear-gradient(45deg, rgba(39, 113, 140, 1) 20%, rgba(52, 152, 165, 1) 100%) !important;
}

.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important; }
.text-shadow-lg { text-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 5px 15px rgba(0, 0, 0, 0.5) !important; }

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#top-bar {
  background: linear-gradient(45deg, rgba(39, 113, 140, 1) 20%, rgba(52, 152, 165, 1) 100%);
  color: white;
  font-size: 0.9rem;
  padding: 8px 0;
}

.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand img {
  height: 55px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.navbar-nav { align-items: center; }

.nav-link {
  color: #444 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem !important;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  margin-top: 0;
  padding: 0.5rem 0;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 8px 20px;
  color: #444;
}

.dropdown-item:hover {
  background-color: #f0f9fa;
  color: var(--primary);
}

/* --- FOOTER SPECIFICS --- */
.footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-link:hover {
    color: #fff;
    transform: translateX(3px);
}

/* --- HOME PAGE HERO --- */
#hero {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  z-index: 3;
  width: 100%;
  text-align: center;
}

/* --- INNER PAGE HERO (Split Layout) --- */
.hero-img {
  min-height: 400px;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
}

/* --- LIST STYLES --- */
.list-check { list-style: none; padding-left: 0; }
.list-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}
.list-check li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 3px;
}

/* Numbered Circle List (Auto Injury) */
.list-numbered-custom {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
}
.list-numbered-custom li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
    counter-increment: custom-counter;
}
.list-numbered-custom li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(52, 152, 165, 0.3);
}

/* --- CARD STYLES --- */
.card-hover {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.08);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: background 0.3s ease;
}
.card-hover:hover .icon-circle { background: var(--primary); }
.card-hover:hover .icon-circle img { filter: brightness(0) invert(1); }

/* --- OUT OF TOWN SPECIFICS --- */
.testimonial-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}
.hotel-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}
.hotel-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- OTHER SERVICES SPECIFICS --- */
.service-icon-box {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.service-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.service-card:hover {
    border-left-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateX(5px);
}
.nav-pills .nav-link {
    color: var(--secondary);
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.nav-pills .nav-link.active, .nav-pills .nav-link:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- VIDEO PLAYERS --- */
.video-container {
  background: linear-gradient(45deg, rgba(39, 113, 140, 1) 20%, rgba(52, 152, 165, 1) 100%) !important;
  border-radius: 1rem;
  overflow: hidden;
  max-height: 600px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-container video {
  display: block;
  width: auto;
  height: auto;
  max-height: 600px;
  max-width: 100%;
  object-fit: contain;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.ratio-square { padding-bottom: 100% !important; }
.ratio-vertical { padding-bottom: 177.77% !important; }

/* --- PARALLAX --- */
.parallax-section {
    position: relative;
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex; align-items: center; justify-content: center;
}
.parallax-section-small {
    height: 350px;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1400px) {
  .nav-link { font-size: 0.85rem; padding: 0.5rem 0.6rem !important; }
}

@media (max-width: 1199px) {
  body { padding-top: 100px; }
  /* Navbar adjustments for offcanvas */
  .navbar-nav { align-items: flex-start; padding-top: 1rem; }
  .nav-link {
    font-size: 1.1rem; padding: 12px 0 !important;
    width: 100%; border-bottom: 1px solid #eee;
  }
  .dropdown-menu {
    border-left: 2px solid var(--primary) !important;
    border-radius: 0; background: #f8f9fa; margin-left: 10px;
    box-shadow: none !important; margin-bottom: 15px;
  }
  .navbar-brand img { height: 45px; }
  .hero-img { border-radius: 0; min-height: 300px; }
}

@media (max-width: 992px) {
  .video-container, .video-container video { max-height: 500px; }
}

@media (max-width: 576px) {
  #top-bar .container { justify-content: center !important; }
  .display-4 { font-size: 2.5rem; }
}

/* --- CONDITIONS GRID --- */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.condition-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    height: 100%;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border-color: var(--primary);
}

.condition-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 165, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- ACCORDION STYLING (FAQ) --- */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.accordion-button {
    font-weight: 600;
    color: var(--dark);
    background-color: #fff;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(52, 152, 165, 0.05);
    color: var(--primary);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-body {
    padding: 1.5rem;
    color: #6c757d;
    line-height: 1.6;
}

/* --- CREDENTIALS LIST GRID --- */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .credentials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- DR BOELK PAGE SPECIFICS --- */
/* Sport Badges */
.sport-pill {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.sport-pill:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 165, 0.3);
}

/* Approach Section Image */
.collage-img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.collage-img:hover {
    transform: scale(1.02);
}

/* --- NXPT PAGE SPECIFICS --- */
/* Trainer Cards */
.trainer-card {
    transition: transform 0.3s ease;
    border: none;
    overflow: hidden;
}
.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.trainer-img {
    height: 350px;
    object-fit: cover;
    width: 100%;
    border-radius: 1rem;
}

/* NXPT Bar */
#nxpt-bar {
    border-top: 5px solid var(--primary);
    border-bottom: 5px solid var(--primary);
}

/* Video Grid Titles */
.video-title {
    font-weight: 700;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--dark);
}
.video-title-light {
    color: #fff;
}
/* CONTACT PAGE SPECIFICS */
.contact-form-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 165, 0.2);
}

@media (min-width: 768px) {
    .contact-btn {
        width: auto;
        margin-right: 1rem;
    }
}