/* Crimson Authority - Architectural Studio CSS */

/* Root Variables */
:root {
  --primary-color: #C62828;
  --secondary-color: #1565C0;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Navbar Styles */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.navbar-dark {
  background-color: var(--dark-bg) !important;
}

.bg-dark {
  background-color: var(--dark-bg) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 700;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: #E53935 !important;
  transform: scale(1.05);
}

.navbar-toggler {
  border-color: var(--primary-color) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C62828' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Sticky Navigation */
.sticky-top {
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2c2c2c 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23C62828" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.3;
  animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.hero-section .text-white {
  position: relative;
  z-index: 2;
}

.hero-section .display-2 {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Countdown Timer */
.countdown-timer {
  background-color: rgba(198, 40, 40, 0.9) !important;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1.2s ease;
}

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

.bg-opacity-75 {
  background-color: rgba(198, 40, 40, 0.75) !important;
}

.time-unit {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  min-width: 80px;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.time-unit:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.time-unit .display-4 {
  color: var(--text-light) !important;
  font-weight: 700;
}

.time-unit small {
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Badges */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.rounded-pill {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transition: var(--transition);
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Pulsing Animations */
.pulsing-badge {
  animation: pulse 2s infinite;
}

.pulsing-cta {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(198, 40, 40, 0);
  }
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-primary:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-secondary:hover {
  background-color: #0D47A1 !important;
  border-color: #0D47A1 !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-danger:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
}

.btn-warning {
  background-color: #FFA726 !important;
  color: var(--text-dark) !important;
  border: 2px solid #FFA726 !important;
}

.btn-warning:hover {
  background-color: #FB8C00 !important;
  border-color: #FB8C00 !important;
}

.btn-light {
  background-color: var(--text-light) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--text-light) !important;
}

.btn-light:hover {
  background-color: transparent !important;
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}

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

.btn-outline-light:hover {
  background-color: var(--text-light) !important;
  color: var(--primary-color) !important;
}

.btn-outline-secondary {
  color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

.btn-lg {
  padding: 1rem 2rem !important;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem !important;
  font-size: 0.875rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--text-light);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-10px);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 700;
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-dark) !important;
  line-height: 1.8;
}

.shadow-sm {
  box-shadow: var(--shadow) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.05);
}

.rounded {
  border-radius: 1rem !important;
}

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-clock-fill,
.bi-telephone-fill,
.bi-lightning-charge-fill,
.bi-shield-fill-check,
.bi-exclamation-triangle-fill,
.bi-building-fill,
.bi-file-earmark-text-fill,
.bi-airplane-fill,
.bi-briefcase-fill,
.bi-headset,
.bi-check-circle-fill,
.bi-geo-alt-fill,
.bi-envelope-fill,
.bi-clock-history,
.bi-calendar-check-fill,
.bi-trophy-fill,
.bi-search,
.bi-clock,
.bi-bullseye,
.bi-people-fill,
.bi-shield-check,
.bi-stopwatch,
.bi-shield-fill-exclamation,
.bi-building-fill-exclamation,
.bi-person-fill-slash,
.bi-hammer,
.bi-speedometer2,
.bi-rocket-takeoff-fill,
.bi-chat-dots-fill {
  color: var(--primary-color);
}

.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* Text Colors */
.text-white {
  color: var(--text-light) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-danger {
  color: var(--primary-color) !important;
}

.text-warning {
  color: #FFA726 !important;
}

.text-info {
  color: var(--secondary-color) !important;
}

.text-light {
  color: var(--text-light) !important;
}

/* Background Colors */
.bg-white {
  background-color: var(--text-light) !important;
}

.bg-success {
  background-color: #43A047 !important;
}

/* Sections */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.py-4 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Lists */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary-color);
}

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--text-light);
  box-shadow: var(--shadow);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Partner Cards */
.partner-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: var(--transition);
}

.partner-card:hover {
  transform: scale(1.05);
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.partner-card:hover .card-img-top {
  transform: scale(1.1);
}

.partner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-light) !important;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.partner-card:hover .partner-overlay {
  transform: translateY(0);
}

/* Forms */
.form-floating {
  margin-bottom: 1rem;
}

.form-control {
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: var(--transition);
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !important;
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

.form-select {
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  transition: var(--transition);
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !important;
}

.form-select-lg {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
}

.form-check-input {
  width: 1.5em;
  height: 1.5em;
  border: 2px solid #dee2e6;
  transition: var(--transition);
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !important;
}

.form-check-label {
  margin-left: 0.5rem;
  color: var(--text-dark);
}

.invalid-feedback {
  color: var(--primary-color) !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: none;
}

.alert-success {
  background-color: #C8E6C9 !important;
  color: #1B5E20 !important;
}

/* Input Groups */
.input-group {
  margin-bottom: 1rem;
}

.input-group-text {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color) !important;
  font-weight: 600;
}

.input-group-lg .input-group-text {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
}

/* Accordion */
.accordion {
  border-radius: 0.5rem;
  overflow: hidden;
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 0.5rem;
  border-radius: 0.5rem !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: var(--transition);
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button.collapsed::after {
  filter: none;
}

.accordion-collapse {
  border: none;
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--text-light);
  color: var(--text-dark);
}

/* Filter Buttons */
.filter-btn {
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color) !important;
  border-radius: 2rem;
  transition: var(--transition);
  cursor: pointer;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

/* Case Cards */
.case-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.blur-confidential {
  filter: blur(5px);
  transition: var(--transition);
}

.case-card:hover .blur-confidential {
  filter: blur(0);
}

/* Emergency Styles */
.emergency-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  color: var(--text-light) !important;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.emergency-beacon {
  animation: beacon 1.5s infinite;
}

@keyframes beacon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.info-strip {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

/* Service Tier Cards */
.service-tier-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  border: 3px solid transparent;
}

.service-tier-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg) !important;
}

.service-tier-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.tier-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.tier-immediate {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border: 3px solid var(--primary-color) !important;
}

.tier-sameday {
  background-color: #FFA726 !important;
  color: var(--text-dark) !important;
  border: 3px solid #FFA726 !important;
}

.tier-nextday {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border: 3px solid var(--secondary-color) !important;
}

.response-time {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.phone-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light) !important;
  text-decoration: none;
  display: block;
  margin: 1rem 0;
  transition: var(--transition);
}

.phone-large:hover {
  color: var(--text-light) !important;
  transform: scale(1.05);
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--text-light) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
  animation: bounce 2s infinite;
}

.chat-widget:hover {
  transform: scale(1.1);
  background-color: #B71C1C;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Stretched Link */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Utility Classes */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; top: 100px; }
.overflow-hidden { overflow: hidden !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.d-grid { display: grid !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-md-center { justify-content: center !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-md-start { text-align: left !important; }
.text-md-end { text-align: right !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.fw-bold { font-weight: 700 !important; }
.text-decoration-none { text-decoration: none !important; }
.text-break { word-wrap: break-word !important; word-break: break-word !important; }
.opacity-25 { opacity: 0.25 !important; }
.border-0 { border: 0 !important; }
.border-start { border-left: 1px solid #dee2e6 !important; }
.border-3 { border-width: 3px !important; }

/* Spacing */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-md-0 { margin-bottom: 0 !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-lg-0 { margin-top: 0 !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.g-0 { gap: 0 !important; }
.g-0 > * { padding: 0 !important; }
.g-3 > * { padding: 0.5rem !important; }
.g-4 > * { padding: 0.75rem !important; }

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-sm-6 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-md-3 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-md-4 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-2 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-3 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-4 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-5 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-6 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-7 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-8 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-9 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-lg-10 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive Design - Mobile First */
@media (min-width: 576px) {
  .col-sm-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%; }
  
  .d-md-flex { display: flex !important; }
  .flex-md-row { flex-direction: row !important; }
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .justify-content-md-center { justify-content: center !important; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  
  .d-lg-block { display: block !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .navbar-brand { font-size: 1.25rem; }
  .display-2 { font-size: 2.5rem !important; }
  .display-3 { font-size: 2rem !important; }
  .display-4 { font-size: 1.75rem !important; }
  .display-5 { font-size: 1.5rem !important; }
  .display-6 { font-size: 1.25rem !important; }
  
  .hero-section { min-height: auto; padding: 3rem 0; }
  .btn-lg { padding: 0.75rem 1.5rem !important; font-size: 1rem; }
  .time-unit { min-width: 60px; padding: 0.5rem; }
  .time-unit .display-4 { font-size: 1.5rem !important; }
  
  .card-body { padding: 1.5rem; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  .chat-widget { width: 50px; height: 50px; font-size: 1.25rem; bottom: 1rem; right: 1rem; }
  
  .phone-large { font-size: 1.75rem; }
  
  .position-sticky { position: relative !important; top: 0 !important; }
}

/* Print Styles */
@media print {
  .navbar, .chat-widget, .btn { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
  .card { border: 1px solid #000 !important; page-break-inside: avoid; }
}

/* Accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Performance Optimizations */
.card, .btn, .nav-link, .form-control {
  will-change: transform;
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--text-light);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--text-light);
}