/* Architectural Studio - Charcoal & Forge Red Theme */

/* ========================================
   ROOT VARIABLES & BASE STYLES
   ======================================== */
:root {
  --primary-color: #2D3748;
  --secondary-color: #E53E3E;
  --dark-charcoal: #1a202c;
  --light-charcoal: #4a5568;
  --forge-red-light: #fc8181;
  --forge-red-dark: #c53030;
  --white: #ffffff;
  --light-gray: #f7fafc;
  --border-gray: #e2e8f0;
  --text-muted: #718096;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-color) !important;
  background-color: var(--white) !important;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

.display-1 { font-size: clamp(3rem, 8vw, 6rem) !important; }
.display-2 { font-size: clamp(2.5rem, 6vw, 5rem) !important; }
.display-3 { font-size: clamp(2rem, 5vw, 4rem) !important; }
.display-4 { font-size: clamp(1.75rem, 4vw, 3.5rem) !important; }
.display-5 { font-size: clamp(1.5rem, 3vw, 3rem) !important; }
.display-6 { font-size: clamp(1.25rem, 2.5vw, 2.5rem) !important; }

.h3, .h4, .h5 {
  color: var(--primary-color) !important;
}

.lead {
  color: var(--light-charcoal) !important;
  font-size: 1.25rem !important;
}

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

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

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

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

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
  background-color: var(--dark-charcoal) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.fixed-top {
  z-index: 1030;
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: color var(--transition-speed) ease;
}

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

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 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='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border-radius: 4px;
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary,
.btn-lg {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.btn-primary:hover,
.btn-lg:hover {
  background-color: var(--forge-red-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 62, 62, 0.4);
}

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

.btn-outline-dark:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn .bi,
.btn .fas {
  transition: transform var(--transition-speed) ease;
}

.btn:hover .bi-arrow-right,
.btn:hover .bi-arrow-right-circle-fill {
  transform: translateX(5px);
}

/* ========================================
   CAROUSEL STYLES
   ======================================== */
.carousel {
  margin-top: 76px;
  height: 100vh;
  min-height: 600px;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--primary-color) 100%);
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 35, 48, 0.6);
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.4;
}

.carousel-caption {
  top: 50% !important;
  transform: translateY(-50%);
  bottom: auto !important;
  z-index: 2;
  left: 5%;
  right: 5%;
}

.carousel-caption h1,
.carousel-caption h2 {
  color: var(--white) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.carousel-caption .btn {
  animation: fadeInUp 1s ease 0.6s both;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(229, 62, 62, 0.7);
  border-radius: 50%;
  padding: 0.75rem;
}

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  transition: all var(--transition-speed) ease;
}

.carousel-indicators .active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: scale(1.2);
}

/* ========================================
   BADGE STYLES
   ======================================== */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.875rem !important;
}

/* ========================================
   CARD STYLES
   ======================================== */
.card {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
}

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

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

.card-body {
  padding: 2rem;
}

.card-footer {
  background-color: var(--white) !important;
  border-top: 1px solid var(--border-gray) !important;
  padding: 1rem 2rem;
}

.card img {
  transition: transform 0.5s ease;
}

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

/* Portfolio Card Specific */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.portfolio-card img {
  transition: transform 0.5s ease, filter 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(229, 62, 62, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  color: var(--white) !important;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover img {
  transform: scale(1.1);
  filter: blur(2px);
}

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.portfolio-card:hover .portfolio-overlay h3,
.portfolio-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay p {
  transform: translateY(0);
}

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

.form-control,
.form-select {
  border: 2px solid var(--border-gray) !important;
  border-radius: 4px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-check-input {
  border: 2px solid var(--border-gray) !important;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.15) !important;
}

.form-check-label {
  color: var(--primary-color) !important;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
  padding: 5rem 0;
  position: relative;
}

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

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

.my-5 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

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

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

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

/* ========================================
   TIMELINE STYLES
   ======================================== */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 2rem;
  bottom: -1rem;
  width: 2px;
  background-color: var(--border-gray);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
  z-index: 1;
}

/* ========================================
   PROGRESS BAR STYLES
   ======================================== */
.progress {
  height: 1.5rem;
  border-radius: 4px;
  background-color: var(--border-gray) !important;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
}

/* ========================================
   ICON STYLES
   ======================================== */
.bi,
.fas,
.fa {
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-tree-fill,
.bi-recycle,
.bi-award-fill,
.bi-check-circle-fill,
.bi-arrow-right-circle-fill,
.bi-building-fill-check,
.bi-globe-americas,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill,
.bi-exclamation-triangle-fill {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.bi-check-lg {
  color: var(--secondary-color) !important;
  font-size: 1.25rem;
}

.bi-linkedin,
.bi-instagram,
.bi-facebook {
  font-size: 1.5rem;
  color: var(--white) !important;
  transition: all var(--transition-speed) ease;
}

.bi-linkedin:hover,
.bi-instagram:hover,
.bi-facebook:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
  background-color: var(--dark-charcoal) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 3rem 0 1.5rem;
}

footer h5,
footer .h5 {
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

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

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   BREADCRUMB STYLES
   ======================================== */
.breadcrumb {
  background-color: transparent !important;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item {
  color: var(--text-muted) !important;
}

.breadcrumb-item.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/' !important;
  color: var(--text-muted) !important;
}

.breadcrumb-item a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

.breadcrumb-item a:hover {
  color: var(--forge-red-dark) !important;
}

/* ========================================
   FILTER BUTTON STYLES
   ======================================== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.shadow {
  box-shadow: var(--box-shadow) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

.rounded {
  border-radius: 8px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

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

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

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

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.top-50 { top: 50% !important; }
.start-50 { left: 50% !important; }
.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-none { display: none !important; }

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

.opacity-75 { opacity: 0.75 !important; }
.opacity-25 { opacity: 0.25 !important; }

.object-fit-cover {
  object-fit: cover !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.ratio {
  position: relative;
  width: 100%;
}

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

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

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

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease;
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease;
}

.animate-slide-in-left {
  animation: slideInLeft 1s ease;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease;
}

.animate-scale-in {
  animation: scaleIn 0.8s ease;
}

/* Scroll Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ========================================
   LEGAL/PRIVACY DOCUMENT STYLES
   ======================================== */
.privacy-document,
.legal-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.privacy-document h2,
.privacy-document h3,
.legal-content h2,
.legal-content h3 {
  color: var(--dark-charcoal) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-document p,
.legal-content p {
  color: var(--light-charcoal) !important;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-document ul,
.legal-content ul {
  color: var(--light-charcoal) !important;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .display-1 { font-size: 2.5rem !important; }
  .display-2 { font-size: 2rem !important; }
  .display-3 { font-size: 1.75rem !important; }
  .display-4 { font-size: 1.5rem !important; }
  
  .carousel {
    margin-top: 56px;
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-caption {
    left: 5%;
    right: 5%;
  }
  
  .carousel-caption .display-1 {
    font-size: 2rem !important;
  }
  
  .carousel-caption .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg,
  .btn {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  section,
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0 !important;
    text-align: center;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .timeline-year {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
  }
  
  footer {
    text-align: center !important;
  }
  
  footer .col-lg-2,
  footer .col-lg-3,
  footer .col-lg-4 {
    margin-bottom: 2rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .carousel {
    margin-top: 66px;
    height: 75vh;
  }
  
  .carousel-caption .display-1 {
    font-size: 2.5rem !important;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel {
    height: 80vh;
  }
  
  .navbar-collapse {
    background-color: var(--dark-charcoal);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .py-lg-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  footer,
  .btn {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .carousel-item {
    page-break-inside: avoid;
  }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--secondary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-control,
  .navbar {
    border: 2px solid currentColor !important;
  }
}

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

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

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

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

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-gray);
}

/* ========================================
   HOVER EFFECTS & INTERACTIONS
   ======================================== */
.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.hover-zoom {
  overflow: hidden;
}

.hover-zoom img {
  transition: transform 0.5s ease;
}

.hover-zoom:hover img {
  transform: scale(1.1);
}

/* Text selection */
::selection {
  background-color: var(--secondary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--white);
}