/* ===================================
   Industrial Red & Charcoal Architecture Studio
   Modern CSS with Bootstrap 5 Overrides
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-bg: #1a1a1a;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --text-dark: #212121;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark) !important;
}

.display-2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  line-height: 1.1 !important;
}

.display-4 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  font-weight: 300;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease;
  background-color: var(--secondary-color) !important;
  box-shadow: var(--shadow-md);
}

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

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.fw-bold {
  font-weight: 700 !important;
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.3) !important;
}

.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='%23D32F2F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--light-gray) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  border-radius: 0.375rem !important;
  transition: all var(--transition-speed) ease !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #b71c1c !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn-light {
  background-color: var(--white) !important;
  color: var(--secondary-color) !important;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION ===== */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-sticky {
  position: sticky !important;
  top: 0 !important;
}

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.bottom-0 { bottom: 0 !important; }

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-lg-end { text-align: right !important; }

@media (max-width: 991.98px) {
  .text-lg-end { text-align: left !important; }
}

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

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

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

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

/* ===== SPACING UTILITIES ===== */
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-lg-5 { padding-right: 3rem !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-lg-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

@media (max-width: 991.98px) {
  .mb-lg-0 { margin-bottom: 1.5rem !important; }
  .ps-lg-5 { padding-left: 1rem !important; }
  .pe-lg-5 { padding-right: 1rem !important; }
}

@media (max-width: 767.98px) {
  .mt-md-0 { margin-top: 0 !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
}

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

.card-body {
  padding: 1.5rem !important;
}

.card-header {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-bottom: 3px solid var(--primary-color) !important;
  font-weight: 600;
  padding: 1rem 1.5rem !important;
}

.card-footer {
  background-color: var(--light-gray) !important;
  border-top: 1px solid rgba(0,0,0,0.1) !important;
  padding: 1rem 1.5rem !important;
}

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

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

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

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

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

.service-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.2) !important;
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.service-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-overlay {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) rotate(15deg);
}

/* ===== PRICING REVEAL ===== */
.pricing-reveal {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  margin-top: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.pricing-reveal.show {
  opacity: 1;
  max-height: 200px;
  margin-top: 1rem;
}

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

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

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

.overflow-hidden {
  overflow: hidden !important;
}

.object-fit-cover {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

/* ===== GRID SYSTEM ===== */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

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

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

.g-0 { gap: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

.col-12,
.col-sm-6,
.col-sm-12,
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

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

@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%; }
  .offset-lg-2 { margin-left: 16.666667%; }
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.order-lg-1 { order: 1; }
.order-lg-2 { order: 2; }

@media (max-width: 991.98px) {
  .order-lg-1, .order-lg-2 { order: 0; }
}

/* ===== FLEXBOX UTILITIES ===== */
.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.d-grid {
  display: grid !important;
}

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-column {
  flex-direction: column !important;
}

/* ===== OPACITY ===== */
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

/* ===== LISTS ===== */
.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

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

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px var(--light-gray);
  transition: all var(--transition-speed) ease;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  background-color: var(--secondary-color);
}

/* ===== ICONS (Bootstrap Icons) ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-award::before { content: "\f273"; }
.bi-gear::before { content: "\f3e5"; }
.bi-cpu::before { content: "\f35f"; }
.bi-lightning-charge::before { content: "\f476"; }
.bi-geo-alt::before { content: "\f3e6"; }
.bi-telephone::before { content: "\f4ef"; }
.bi-envelope::before { content: "\f32f"; }
.bi-telephone-fill::before { content: "\f4f0"; }
.bi-envelope-fill::before { content: "\f330"; }
.bi-geo-alt-fill::before { content: "\f3e7"; }
.bi-send-fill::before { content: "\f4c6"; }
.bi-info-circle-fill::before { content: "\f431"; }
.bi-wrench::before { content: "\f552"; }
.bi-pin-map-fill::before { content: "\f4a4"; }
.bi-wrench-adjustable-circle::before { content: "\f554"; }
.bi-gear-wide-connected::before { content: "\f3e8"; }
.bi-disc::before { content: "\f318"; }
.bi-arrow-down-up::before { content: "\f268"; }
.bi-droplet-fill::before { content: "\f325"; }
.bi-clock-history::before { content: "\f2e9"; }
.bi-calendar-check::before { content: "\f2b3"; }
.bi-check-circle-fill::before { content: "\f26b"; }

.fs-2 { font-size: 2rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* ===== FORMS ===== */
.form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color) !important;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark) !important;
  background-color: var(--white) !important;
  background-clip: padding-box;
  border: 2px solid #dee2e6 !important;
  border-radius: 0.5rem !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  color: var(--text-dark) !important;
  background-color: var(--white) !important;
  border-color: var(--primary-color) !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.75em;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.125em;
  vertical-align: top;
  background-color: var(--white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.25em;
  transition: all 0.15s ease-in-out;
  margin-left: -1.75em;
  cursor: pointer;
}

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

.form-check-input:focus {
  border-color: var(--primary-color) !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

.form-check-label {
  color: var(--text-dark);
  cursor: pointer;
}

/* ===== ALERTS ===== */
.alert {
  position: relative;
  padding: 1rem 1.25rem !important;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  color: #0f5132 !important;
  background-color: #d1e7dd !important;
  border-color: #badbcc !important;
}

/* ===== TABLE ===== */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-dark);
  vertical-align: top;
  border-color: #dee2e6;
}

.table-borderless tbody tr {
  border-bottom: none !important;
}

.table tbody tr td {
  padding: 0.75rem;
  vertical-align: middle;
}

/* ===== NAV TABS ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ===== TEXT UTILITIES ===== */
.text-decoration-none {
  text-decoration: none !important;
}

.text-md-start {
  text-align: left !important;
}

.text-md-end {
  text-align: right !important;
}

@media (max-width: 767.98px) {
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
}

.fw-semibold {
  font-weight: 600 !important;
}

.small {
  font-size: 0.875em;
}

/* ===== BACKGROUNDS ===== */
.bg-white {
  background-color: var(--white) !important;
}

/* ===== BORDER UTILITIES ===== */
.border-0 {
  border: 0 !important;
}

/* ===== SECTION BACKGROUNDS ===== */
section {
  position: relative;
  overflow: hidden;
}

section:nth-child(even) {
  background-color: var(--white);
}

section:nth-child(odd) {
  background-color: var(--light-gray);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .navbar-collapse {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .card-body {
    padding: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ===== LOADING STATES ===== */
.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== FOCUS STYLES ===== */
*:focus-visible {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 3px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .card {
    page-break-inside: avoid;
  }
}