/* ==========================================================================
   WhiteClubs - Modern Design System
   ========================================================================== */

/* CSS Variables */
:root {
  --wc-primary: #0d6efd;
  --wc-primary-dark: #0a58ca;
  --wc-secondary: #6c757d;
  --wc-success: #198754;
  --wc-info: #0dcaf0;
  --wc-warning: #ffc107;
  --wc-danger: #dc3545;
  --wc-light: #f8f9fa;
  --wc-dark: #212529;
  --wc-body-bg: #ffffff;
  --wc-body-color: #212529;
  --wc-border-color: #dee2e6;
  --wc-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --wc-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --wc-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --wc-radius: 0.75rem;
  --wc-transition: all 0.3s ease;
  --wc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--wc-font-family);
  background-color: #f8f9fa;
  color: var(--wc-body-color);
  line-height: 1.6;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.topbar {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
  font-size: 0.85rem;
}

.site-navbar {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.site-navbar .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.site-navbar .nav-link {
  font-weight: 500;
  color: #495057 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: var(--wc-transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.1);
}

.site-navbar .btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
  font-weight: 500;
}

.site-navbar .btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

.site-navbar .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 500;
}

.site-navbar .btn-primary:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

/* Search in navbar */
.site-navbar .input-group {
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.site-navbar .input-group-text {
  background: transparent;
  border: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  border-radius: 0 0 4rem 0;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-section p.lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-search {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-search .input-group {
  background: #fff;
  border-radius: 8px;
  border: none;
  overflow: hidden;
}

.hero-search .input-group-text {
  background: transparent;
  border: none;
  padding-right: 0;
}

.hero-search .form-control {
  border: none;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
}

.hero-search .form-control:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-card {
  background: #fff;
  border: 1px solid var(--wc-border-color);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow-sm);
  transition: var(--wc-transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wc-shadow);
  border-color: rgba(13, 110, 253, 0.2);
}

.service-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.service-card-footer {
  border-top: 1px solid var(--wc-border-color);
  padding-top: 1rem;
  margin-top: auto;
}

/* Service card internals (markup uses the wc- prefix) */
.wc-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.wc-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.wc-card-desc {
  color: #6c757d;
  font-size: 0.875rem;
}

.wc-card-footer {
  border-top: 1px solid var(--wc-border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.wc-card-biz {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.wc-biz-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.wc-biz-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wc-biz-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.3;
}

.wc-biz-city {
  font-size: 0.8rem;
  color: #6c757d;
}

.wc-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  flex-shrink: 0;
}

.wc-card-cta:hover {
  background: #0a58ca;
  color: #fff;
}

.btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.category-card {
  background: #fff;
  border: 1px solid var(--wc-border-color);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow-sm);
  transition: var(--wc-transition);
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wc-shadow);
  border-color: rgba(13, 110, 253, 0.2);
  color: inherit;
}

.category-card .card-body {
  padding: 1.5rem;
  text-align: center;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #212529;
}

.category-card p {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
}

.category-card .badge {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Business Cards & Profile
   ========================================================================== */
.business-card {
  background: #fff;
  border: 1px solid var(--wc-border-color);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow-sm);
  transition: var(--wc-transition);
  height: 100%;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--wc-shadow);
}

.business-card .card-body {
  padding: 1.5rem;
}

.business-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.business-card .text-muted {
  font-size: 0.875rem;
}

/* ==========================================================================
   Service Detail Page
   ========================================================================== */
.service-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--wc-border-color);
  padding: 2rem 0;
}

.service-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
}

.business-info-card {
  background: #fff;
  border: 1px solid var(--wc-border-color);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow-sm);
  overflow: hidden;
}

.business-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  padding: 1.5rem;
}

.business-header h2 {
  color: #fff;
  font-size: 1.5rem;
}

.business-details {
  padding: 1.5rem;
}

.business-contact-card {
  background: #f8f9fa;
  border-radius: var(--wc-radius);
  padding: 1.5rem;
}

.service-content-section {
  line-height: 1.8;
}

.service-content-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #212529;
}

.service-content-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

/* Service Location Cards */
.service-location-card {
  background: #fff;
  border: 1px solid var(--wc-border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: var(--wc-transition);
}

.service-location-card:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
}

.service-location-card .badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

/* Related Services */
.related-card {
  background: #fff;
  border: 1px solid var(--wc-border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--wc-transition);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wc-shadow);
}

/* ==========================================================================
   Category Page
   ========================================================================== */
.category-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  padding: 3rem 0;
  border-radius: 0 0 3rem 0;
}

.category-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--wc-border-color);
  margin-top: 3rem;
}

.site-footer h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
}

.site-footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

.site-footer .list-unstyled a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .list-unstyled a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 3rem 0 2rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .site-navbar .navbar-brand .brand-text {
    font-size: 1.1rem;
  }
}