/* Premium Coaching Practice Design System */
:root {
  --primary-navy: #0f172a;
  --secondary-navy: #1e293b;
  --accent-gold: #c59b27;
  --accent-gold-hover: #b0881e;
  --bg-cream: #faf8f5;
  --bg-light: #f8f9fa;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 15px 40px rgba(15, 23, 42, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

.about-coach-img {
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}

@media (min-width: 992px) {
  .about-coach-img {
    min-height: 440px;
  }
}

/* Headings & Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-navy);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.text-gold { color: var(--accent-gold) !important; }
.bg-navy { background-color: var(--primary-navy) !important; }
.bg-navy-light { background-color: var(--secondary-navy) !important; }
.bg-cream { background-color: var(--bg-cream) !important; }

/* Buttons */
.btn-gold {
  background-color: var(--accent-gold);
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 28px;
  border: 2px solid var(--accent-gold);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.35);
}

.btn-outline-navy {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
  font-weight: 600;
  border-radius: 6px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Navigation Bar */
.navbar-custom {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar-custom .navbar-brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
}
.navbar-custom .nav-link {
  font-weight: 500;
  color: var(--primary-navy);
  margin: 0 8px;
  transition: color 0.2s ease;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.25) 75%, rgba(15, 23, 42, 0.05) 100%), url('../images/hero.jpg') right center / cover no-repeat;
  color: #ffffff;
  padding: 100px 0 115px 0;
  position: relative;
  min-height: 580px;
}
.hero-section h1 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  line-height: 1.25;
}

/* Feature Cards & Service Cards */
.card-service {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 32px 26px;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-gold);
}
.card-service .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(197, 155, 39, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

/* Testimonial Cards */
.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--accent-gold);
  height: 100%;
}

/* Footer */
.footer-main {
  background-color: var(--primary-navy);
  color: #94a3b8;
  padding: 80px 0 30px 0;
  font-size: 15px;
}
.footer-main h5 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 25px;
}
.footer-main a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-main a:hover {
  color: var(--accent-gold);
}
.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.footer-social-icon:hover {
  background: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────────────────────────
   INTERACTIVE PHOTO GALLERY SYSTEM
   ───────────────────────────────────────────────────────────── */
.gallery-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  height: 100%;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(197, 155, 39, 0.2);
  border-color: var(--accent-gold);
}
.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #f1f5f9;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(197, 155, 39, 0.4);
}
.gallery-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.gallery-card:hover .gallery-zoom-btn {
  opacity: 1;
  transform: scale(1);
}
.gallery-zoom-btn:hover {
  background: var(--accent-gold-hover);
  transform: scale(1.1);
}
.gallery-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 30px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
html[data-theme="dark"] .gallery-filter-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}
html[data-theme="dark"] .gallery-filter-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   PUBLIC WEBSITE DARK & LIGHT MODE STYLING ENGINE
   ───────────────────────────────────────────────────────────── */
html[data-theme="dark"] {
  --primary-navy: #f8fafc;
  --secondary-navy: #e2e8f0;
  --bg-cream: #0f172a;
  --bg-light: #1e293b;
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: #334155;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body {
  background-color: #0b101d;
  color: #f8fafc;
}

html[data-theme="dark"] header {
  background-color: #0f172a !important;
  border-bottom: 1px solid #1e293b;
}

html[data-theme="dark"] .navbar-custom {
  background-color: #0f172a !important;
}

html[data-theme="dark"] .navbar-custom .navbar-brand {
  color: #ffffff !important;
}

html[data-theme="dark"] .navbar-custom .nav-link {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .navbar-custom .nav-link:hover,
html[data-theme="dark"] .navbar-custom .nav-link.active {
  color: var(--accent-gold) !important;
}

html[data-theme="dark"] .dropdown-menu {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
}

html[data-theme="dark"] .dropdown-item {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .dropdown-item:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .card-service,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-cream {
  background-color: #0f172a !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #ffffff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span:not(.badge):not(.btn) {
  color: #cbd5e1;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text {
  background-color: #162032 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .footer-main {
  background-color: #090d16 !important;
  border-top: 1px solid #1e293b;
}

html[data-theme="dark"] .calendar-day-btn {
  background-color: #162032;
  border-color: #334155;
  color: #f8fafc;
}

.calendar-day-btn.selected {
  background-color: var(--accent-gold) !important;
  color: #ffffff !important;
  border-color: var(--accent-gold) !important;
}

/* Time Slot Buttons */
.time-slot-btn {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  text-align: center;
  font-weight: 600;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  min-height: 48px;
}
.time-slot-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.time-slot-btn.selected {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* ─────────────────────────────────────────────────────────────
   COMPREHENSIVE RESPONSIVE DESIGN ENGINE (MOBILE & TABLET)
   ───────────────────────────────────────────────────────────── */

/* Fluid Typography Helpers */
h1, .display-4 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.25;
}

h2, .display-5 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.25;
}

h3, .display-6 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* Touch Input Mobile Zoom Prevention */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  border-radius: 8px;
}

/* 📱 MOBILE VIEWPORT (< 768px) */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  /* Navbar Adjustments */
  .navbar-custom {
    padding: 12px 0;
  }
  .navbar-custom .navbar-brand {
    font-size: 18px;
  }
  .navbar-custom .navbar-collapse {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  }
  html[data-theme="dark"] .navbar-custom .navbar-collapse {
    background-color: #0f172a;
    border: 1px solid #1e293b;
  }
  .navbar-custom .nav-link {
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 6px;
  }
  .navbar-custom .nav-link.active {
    background-color: rgba(197, 155, 39, 0.12);
  }

  /* Hero Section Mobile Overrides */
  .hero-section {
    padding: 80px 16px 60px 16px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.75) 100%), url('../images/hero.jpg') center center / cover no-repeat !important;
    min-height: auto !important;
    text-align: left !important;
  }
  .hero-section .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .hero-section .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .hero-section h1 {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.2px !important;
  }
  .hero-section p.lead {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }
  .hero-section .badge {
    font-size: 10px !important;
    padding: 6px 10px !important;
    margin-bottom: 12px !important;
  }
  .hero-section .btn {
    width: 100%;
    text-align: center;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
  }
  .hero-section .btn-lg {
    font-size: 0.9rem !important;
  }

  /* Hero trust metrics compact on mobile */
  .hero-section .border-top {
    margin-top: 16px !important;
    padding-top: 12px !important;
  }
  .hero-section .vr {
    display: none !important;
  }

  /* Sections & Cards */
  .py-6, .py-5 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .card-service {
    padding: 24px 20px !important;
  }
  .testimonial-card {
    padding: 24px 20px !important;
  }

  /* Filter Tabs Scrollable Bar */
  #serviceTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  #serviceTabs .nav-item {
    flex: 0 0 auto;
  }
  #serviceTabs .nav-link {
    font-size: 14px;
    padding: 8px 16px !important;
  }

  /* Booking Form Steps Stack */
  .service-option-card {
    padding: 14px !important;
  }
  .border-end {
    border-right: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
  }

  /* Footer Mobile Alignment */
  .footer-main {
    padding: 50px 0 25px 0;
  }
  .footer-main .col-lg-4,
  .footer-main .col-lg-2,
  .footer-main .col-lg-3 {
    margin-bottom: 28px;
  }
}

/* 📲 TABLET VIEWPORT (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  }
  html[data-theme="dark"] .navbar-custom .navbar-collapse {
    background-color: #0f172a;
    border: 1px solid #1e293b;
  }

  .hero-section {
    padding: 85px 0 80px 0 !important;
    min-height: auto !important;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.88) 55%, rgba(15, 23, 42, 0.55) 100%), url('../images/hero.jpg') right center / cover no-repeat !important;
  }
  .hero-section .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .hero-section h1 {
    font-size: 1.85rem !important;
  }
  .hero-section p.lead {
    font-size: 1rem !important;
    max-width: 90% !important;
  }
  .hero-section .btn {
    padding: 12px 20px !important;
  }

  .card-service {
    padding: 28px 24px !important;
  }

  .footer-main {
    padding: 60px 0 30px 0;
  }
}

/* 📱 EXTRA SMALL PHONES (< 400px) */
@media (max-width: 399.98px) {
  .hero-section {
    padding: 70px 12px 50px 12px !important;
  }
  .hero-section h1 {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }
  .hero-section p.lead {
    font-size: 0.85rem !important;
  }
  .hero-section .badge {
    font-size: 9px !important;
    padding: 5px 8px !important;
  }
  .hero-section .btn {
    font-size: 0.82rem !important;
    padding: 10px 14px !important;
  }
}

/* 💻 DESKTOP MODE & LARGE VIEWPORTS (>= 992px) */
@media (min-width: 992px) {
  .hero-section {
    padding: 110px 0 120px 0 !important;
    min-height: 580px !important;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(15, 23, 42, 0.28) 75%, rgba(15, 23, 42, 0.05) 100%), url('../images/hero.jpg') right center / cover no-repeat !important;
  }
  .hero-section .col-lg-7 {
    width: 58.333333% !important;
    max-width: 58.333333% !important;
    flex: 0 0 58.333333% !important;
  }
  .navbar-custom .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .card-service {
    padding: 35px 28px !important;
  }
  .border-end {
    border-right: 1px solid var(--border-light) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
