/* Summit Red & Shadow - Architecture Studio Theme */

:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #E57373;
  --secondary-color: #212121;
  --secondary-dark: #000000;
  --secondary-light: #484848;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #9E9E9E;
  --shadow: rgba(211, 47, 47, 0.2);
  --shadow-dark: rgba(33, 33, 33, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--secondary-color);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--medium-gray);
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, rgba(33, 33, 33, 0.95) 0%, rgba(33, 33, 33, 0.7) 100%);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: var(--secondary-color) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: var(--primary-color) !important;
  background-color: rgba(211, 47, 47, 0.1);
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.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: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow) !important;
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-dark) !important;
}

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

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

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

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

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

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

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

.btn:active {
  transform: translateY(0) !important;
}

/* Hero Section */
.position-relative.vh-100 {
  background-color: var(--secondary-color);
}

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.3) 0%, rgba(33, 33, 33, 0.7) 100%);
  z-index: 1;
}

.position-relative.vh-100 img {
  filter: grayscale(20%);
}

.position-relative.vh-100 .container {
  z-index: 2;
}

.text-white {
  color: var(--white) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

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

/* Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-15px) translateX(-50%);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.bi-chevron-down {
  color: var(--white) !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.bi-chevron-down:hover {
  opacity: 1;
  color: var(--primary-color) !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--medium-gray) !important;
}

.card-header {
  background-color: var(--light-gray) !important;
  border-bottom: 3px solid var(--primary-color) !important;
  font-weight: 600;
}

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

.shadow {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
}

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

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

/* Program Card */
.program-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.program-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.bi-lightning-charge-fill,
.bi-trophy-fill,
.bi-person-check-fill,
.bi-egg-fried,
.bi-speedometer2,
.bi-people-fill {
  color: var(--primary-color) !important;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.bi-check-circle-fill {
  color: var(--primary-color) !important;
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-geo-alt-fill {
  color: var(--primary-color) !important;
}

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

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

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

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

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

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

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--secondary-color) !important;
  background-color: var(--white) !important;
}

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

.form-control::placeholder {
  color: var(--medium-gray) !important;
}

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

.form-check-input {
  border: 2px solid #E0E0E0;
  width: 1.25em;
  height: 1.25em;
}

.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;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

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

.invalid-feedback {
  color: var(--primary-color) !important;
  font-weight: 500;
}

.valid-feedback {
  color: #4CAF50 !important;
  font-weight: 500;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--primary-color) !important;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #4CAF50 !important;
}

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

/* Alerts */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
}

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

/* Badges */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

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

/* Tables */
.table {
  color: var(--secondary-color) !important;
}

.table-hover tbody tr {
  transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(211, 47, 47, 0.05) !important;
  transform: scale(1.01);
}

/* Accordion */
.accordion-item {
  border: 1px solid #E0E0E0 !important;
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  transition: all 0.3s ease;
}

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

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

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
  color: var(--secondary-color) !important;
}

/* Carousel */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.modal-header {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 1.5rem 2rem;
  border-bottom: none;
}

.modal-title {
  color: var(--white) !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #E0E0E0;
  padding: 1.5rem 2rem;
}

.btn-close,
.btn-close-white {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Progress Bar */
.progress {
  height: 25px;
  border-radius: 12px;
  background-color: var(--light-gray);
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 0.6s ease;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 3rem 0 1.5rem;
}

footer a {
  color: var(--white) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

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

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

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

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

/* Borders */
.border {
  border: 1px solid #E0E0E0 !important;
}

.border-bottom {
  border-bottom: 1px solid #E0E0E0 !important;
}

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

.border-start {
  border-left: 1px solid #E0E0E0 !important;
}

.border-3 {
  border-width: 3px !important;
}

.border-0 {
  border: none !important;
}

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

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

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

/* Opacity */
.opacity-25 {
  opacity: 0.25 !important;
}

.opacity-50 {
  opacity: 0.5 !important;
}

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

/* Spacing */
.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

/* Position */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

.z-3 {
  z-index: 3 !important;
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
}

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

/* Ratio */
.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%;
}

/* Membership Options */
.membership-option {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.membership-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.membership-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(211, 47, 47, 0.05);
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

/* Success Styling */
.text-success {
  color: #4CAF50 !important;
}

/* Responsive Images in Grid */
.g-0 img,
.g-3 img,
.g-4 img {
  transition: transform 0.3s ease;
}

.g-0 img:hover,
.g-3 img:hover,
.g-4 img:hover {
  transform: scale(1.05);
}

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

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

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

/* 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(--primary-dark);
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(33, 33, 33, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
  }
  
  .nav-link:hover {
    background-color: rgba(211, 47, 47, 0.1);
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .vh-100 {
    min-height: 100vh;
  }
}

@media (max-width: 767.98px) {
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  footer {
    text-align: center;
  }
  
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
}

/* 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);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.5) !important;
}

/* High Contrast Improvements */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor !important;
  }
  
  .card {
    border: 2px solid var(--secondary-color) !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #2C2C2C !important;
  }
  
  .text-muted {
    color: #B0B0B0 !important;
  }
}