/**
 * DCBW Consulting - Custom Professional Styling
 * 
 * Professional consulting website styles
 * Emphasises credibility, expertise, and modern development
 */

/* ==============================================
   CUSTOM PROPERTIES & THEMING
   ============================================== */
:root {
  /* Professional colour palette */
  --dcbw-primary: #2563eb;      /* Professional blue */
  --dcbw-primary-dark: #1e40af;
  --dcbw-primary-light: #60a5fa;
  --dcbw-accent: #10b981;        /* Success green */
  --dcbw-secondary: #6366f1;     /* Purple accent */
  --dcbw-warning: #f59e0b;
  --dcbw-danger: #ef4444;
  
  /* Professional gradients */
  --dcbw-gradient-primary: linear-gradient(135deg, var(--dcbw-primary) 0%, var(--dcbw-secondary) 100%);
  --dcbw-gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --dcbw-gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(99, 102, 241, 0.95) 100%);
  
  /* Spacing */
  --dcbw-section-padding: 5rem 2rem;
  --dcbw-card-padding: 2rem;
  
  /* Shadows */
  --dcbw-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --dcbw-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --dcbw-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --dcbw-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   NAVBAR & FOOTER OVERRIDES
   ============================================== */
/* Keep navbar dark even on light theme */
.dm-theme-light .navbar {
  background: var(--dm-gray-900) !important;
  border-bottom: 1px solid var(--dm-gray-800);
}

.dm-theme-light .navbar a,
.dm-theme-light .navbar .navbar-brand,
.dm-theme-light .navbar .navbar-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.dm-theme-light .navbar a:hover {
  color: white !important;
}

/* Make navbar logo white */
.navbar .navbar-brand img,
.navbar-brand img {
  filter: brightness(0) invert(1);
  height: 32px;
  width: auto;
}

/* Keep footer dark on light theme */
.dm-theme-light .footer-professional {
  background: var(--dm-gray-900) !important;
  color: var(--dm-gray-400) !important;
}

/* ==============================================
   BUTTON STYLES
   ============================================== */
.btn {
  text-decoration: none !important;
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--dcbw-primary);
  border-color: var(--dcbw-primary);
  color: white !important;
  text-decoration: none !important;
}

.btn-primary:hover {
  background-color: var(--dcbw-primary-dark);
  border-color: var(--dcbw-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-light {
  background-color: white;
  border-color: white;
  color: var(--dcbw-primary) !important;
  text-decoration: none !important;
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--dcbw-primary);
  color: var(--dcbw-primary) !important;
  text-decoration: none !important;
}

.btn-outline:hover {
  background-color: var(--dcbw-primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-professional {
  background: var(--dcbw-gradient-primary);
  color: white;
  padding: 6rem 2rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-professional::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 800px;
}

.hero-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   CREDIBILITY METRICS
   ============================================== */
.metrics-bar {
  background: white;
  padding: 2rem;
  margin: -2rem 2rem 0;
  border-radius: 12px;
  box-shadow: var(--dcbw-shadow-xl);
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-item {
  padding: 1rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dcbw-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dm-gray-600);
  font-weight: 500;
}

/* ==============================================
   SERVICES CARDS
   ============================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--dm-card-bg);
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dcbw-gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dcbw-shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--dcbw-gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dm-gray-900);
}

.service-description {
  color: var(--dm-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  background: var(--dm-gray-100);
  color: var(--dm-gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==============================================
   SECTOR EXPERTISE
   ============================================== */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Responsive adjustments for sectors */
@media (max-width: 1200px) {
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sector-card {
  text-align: center;
  padding: 2rem;
  background: var(--dm-card-bg);
  border-radius: 12px;
  border: 1px solid var(--dm-border);
  transition: all 0.3s ease;
}

.sector-card:hover {
  background: var(--dcbw-gradient-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--dcbw-shadow-lg);
}

.sector-card:hover .sector-icon {
  background: white;
  color: var(--dcbw-primary);
}

.sector-card:hover .sector-projects {
  color: rgba(255, 255, 255, 0.9);
}

.sector-icon {
  width: 80px;
  height: 80px;
  background: var(--dm-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--dcbw-primary);
  transition: all 0.3s ease;
}

.sector-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sector-projects {
  font-size: 0.875rem;
  color: var(--dm-gray-600);
  transition: all 0.3s ease;
}

/* ==============================================
   TECHNOLOGY SHOWCASE
   ============================================== */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-category {
  background: var(--dm-card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--dm-border);
}

.tech-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dcbw-primary);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--dm-gray-50);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tech-item:hover {
  background: var(--dm-gray-100);
  transform: translateX(4px);
}

.tech-name {
  font-weight: 500;
  color: var(--dm-text);
}

.tech-experience {
  font-size: 0.875rem;
  color: var(--dm-gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experience-bar {
  width: 60px;
  height: 4px;
  background: var(--dm-gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.experience-fill {
  height: 100%;
  background: var(--dcbw-gradient-primary);
  border-radius: 2px;
}

/* ==============================================
   PORTFOLIO/CASE STUDIES
   ============================================== */
.portfolio-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: var(--dm-gray-100);
  border: 1px solid var(--dm-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--dm-gray-200);
}

.filter-btn.active {
  background: var(--dcbw-primary);
  color: white;
  border-color: var(--dcbw-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--dm-card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dm-border);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dcbw-shadow-lg);
}

.portfolio-header {
  background: var(--dcbw-gradient-primary);
  color: white;
  padding: 1.5rem;
}

.portfolio-sector {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.portfolio-body {
  padding: 1.5rem;
}

.portfolio-challenge {
  color: var(--dm-gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-results {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.result-badge {
  background: var(--dcbw-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==============================================
   AVAILABILITY INDICATOR
   ============================================== */
.availability-status {
  color: var(--dm-gray-900);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--dm-gray-100);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dcbw-accent);
  animation: pulse 2s infinite;
}

.availability-status.available .availability-dot {
  background: var(--dcbw-accent);
}

.availability-status.busy .availability-dot {
  background: var(--dcbw-warning);
}

.availability-status.unavailable .availability-dot {
  background: var(--dcbw-danger);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ==============================================
   SECTION STYLING
   ============================================== */
.section {
  padding: var(--dcbw-section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: var(--dcbw-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dm-text);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--dm-gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==============================================
   PROFESSIONAL FOOTER
   ============================================== */
.footer-professional {
  background: var(--dcbw-gradient-dark);
  color: var(--dm-gray-400);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.footer-logo img {
  filter: brightness(0) invert(1);
  width: 32px;
  height: 32px;
}

.footer-description {
  line-height: 1.6;
  opacity: 0.8;
}

.footer-column h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--dm-gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--dcbw-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 768px) {
  .hero-title {
    color: white;
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    color: white;
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .services-grid,
  .sector-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   ANIMATIONS
   ============================================== */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }

/* ==============================================
   ADDITIONAL HOMEPAGE STYLES
   ============================================== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--dm-gray-50);
}

.section-badge {
  display: inline-block;
  background: var(--dcbw-primary);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dm-text);
}

.section-description {
  font-size: 1.125rem;
  color: var(--dm-gray-600);
  margin-bottom: 2rem;
}

/* Service Cards for Homepage */
.service-card {
  background: var(--dm-card-bg);
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dcbw-shadow-lg);
}

.service-icon {
  margin-bottom: 1.5rem;
  color: var(--dcbw-primary);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dm-text);
}

.service-description {
  color: var(--dm-gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--dcbw-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.service-link:hover {
  color: var(--dcbw-primary-dark);
  text-decoration: none;
}

/* Stat Cards */
.stat-card {
  background: white;
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: var(--dcbw-shadow-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dcbw-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dm-gray-600);
}

/* Feature Cards */
.feature-card {
  background: white;
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--dcbw-shadow-md);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dm-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Technology Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.tech-category h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dm-text);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  display: inline-block;
  background: var(--dm-gray-100);
  color: var(--dm-gray-700);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: var(--dcbw-primary);
  color: white;
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  background: var(--dcbw-gradient-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Text utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.g-4 { gap: 1.5rem; }

/* Additional utilities */
.py-5 { 
  padding-top: 3rem !important; 
  padding-bottom: 3rem !important;
}
.bg-light {
  background-color: var(--dm-gray-50) !important;
}
.bg-primary {
  background-color: var(--dcbw-primary) !important;
}
.text-white {
  color: white !important;
}
.text-muted {
  color: var(--dm-gray-600) !important;
}
.text-primary {
  color: var(--dcbw-primary) !important;
}
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.d-flex {
  display: flex !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.justify-content-center {
  justify-content: center !important;
}
.gap-2 {
  gap: 0.5rem !important;
}
.gap-3 {
  gap: 1rem !important;
}
.me-2 {
  margin-right: 0.5rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mt-3 {
  margin-top: 1rem !important;
}
.small {
  font-size: 0.875rem;
}
.text-uppercase {
  text-transform: uppercase !important;
}
.h-100 {
  height: 100% !important;
}

/* Responsive column fixes */
@media (max-width: 768px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ==============================================
   CONTACT PAGE STYLES
   ============================================== */

/* Contact page container */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Contact grid - two column layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Contact form card */
.contact-form-card {
  height: fit-content;
}

.contact-form-card .card-header {
  padding: 2rem 2rem 0;
}

.contact-form-card .card-body {
  padding: 2rem;
}

/* Contact info section - uses row/col grid */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Contact info cards */
.contact-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
  margin-bottom: 1rem;
  color: var(--dcbw-primary);
}

.contact-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dm-text);
}

.contact-card-content {
  color: var(--dm-gray-600);
  line-height: 1.6;
}

.contact-card-content a {
  color: var(--dcbw-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card-content a:hover {
  color: var(--dcbw-primary-dark);
}

.contact-card-content small {
  font-size: 0.875rem;
  opacity: 0.8;
  display: block;
  margin-top: 0.25rem;
}

/* Availability card special styling */
.availability-card {
  background: var(--dcbw-gradient-primary) !important;
  color: white;
  padding: 2rem 1.5rem;
}

.availability-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dm-text);
}

.required {
  color: var(--dcbw-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--dm-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--dcbw-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dm-border);
  margin-top: 1rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--dm-gray-600);
}

/* Success and error messages */
.success-message,
.error-message {
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

.success-message {
  background: #f0fdf4;
  border: 1px solid #10b981;
  color: #065f46;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* Responsive contact card spacing */
@media (max-width: 767px) {
  .contact-info-section .mb-4 {
    margin-bottom: 1.5rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet: ensure proper spacing for 2-column layout */
  .contact-info-section .row {
    margin-bottom: 1rem;
  }
}