/* ========================================
   FORGE RED & IRON GREY ARCHITECTURE STUDIO
   Modern Professional Stylesheet
======================================== */

/* ============ ROOT VARIABLES ============ */
:root {
  --primary-color: #C62828;
  --primary-dark: #8E0000;
  --primary-light: #FF5F52;
  --secondary-color: #37474F;
  --secondary-dark: #102027;
  --secondary-light: #62727B;
  --text-dark: #212121;
  --text-light: #FFFFFF;
  --text-muted: #757575;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ============ TYPOGRAPHY ============ */
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--text-dark) !important;
}

.h2,
.h3,
.h4,
.h5,
h2, h3, h4, h5 {
  font-weight: 700 !important;
  color: var(--text-dark) !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

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

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

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

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

/* ============ NAVIGATION ============ */
.navbar {
  padding: 1.5rem 0 !important;
  transition: var(--transition);
  background-color: var(--secondary-color) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar.sticky-top {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  font-size: 1.75rem !important;
  color: var(--text-light) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-light) !important;
  transform: scale(1.05);
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.5) !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.75rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-light) !important;
  background-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

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

/* ============ BUTTONS ============ */
.btn {
  font-weight: 600 !important;
  border-radius: var(--border-radius) !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.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;
}

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

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

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

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

.btn-outline-light:hover {
  color: var(--secondary-color) !important;
  background-color: var(--text-light) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-light:hover {
  color: var(--text-light) !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4);
}

/* Primary Button Styles */
.btn-primary,
.btn[style*="background"] {
  color: var(--text-light) !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: var(--text-light) !important;
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4) !important;
}

/* ============ HERO SECTION ============ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 50%, var(--secondary-light) 100%);
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(198, 40, 40, 0.1) 50%, transparent 70%),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { background-position: 0 0; }
  100% { background-position: 100% 100%; }
}

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

.hero-section .h3,
.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  animation: fadeInUp 1.2s ease-out;
}

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

.hero-section .img-fluid {
  animation: fadeInRight 1.5s ease-out;
  transition: var(--transition);
}

.hero-section .img-fluid:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: var(--shadow-lg);
}

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

.bi-chevron-down {
  animation: bounce 2s infinite;
  font-size: 2rem !important;
  color: var(--text-light) !important;
}

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

/* ============ SECTIONS ============ */
.py-5 {
  padding: 5rem 0 !important;
}

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

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

.pb-3 {
  padding-bottom: 2rem !important;
}

section {
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

/* ============ PROGRAM CARDS (MASONRY) ============ */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.program-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
}

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

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

.program-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.program-details {
  padding: 2rem;
}

.shield-price {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light) !important;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

/* ============ BADGES ============ */
.badge {
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50px !important;
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

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

.accordion-button {
  background-color: var(--bg-light) !important;
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  padding: 1.5rem !important;
  transition: var(--transition) !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: 0 0 0 0.25rem rgba(198, 40, 40, 0.25) !important;
}

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

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

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

/* ============ FORMS ============ */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: var(--border-radius) !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--bg-white) !important;
  color: var(--text-dark) !important;
}

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

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

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

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

/* ============ ICONS ============ */
.bi {
  vertical-align: middle;
  transition: var(--transition);
}

.bi-lightning-charge-fill,
.bi-trophy-fill,
.bi-fire,
.bi-person-fill-check,
.bi-star-fill,
.bi-shield-fill,
.bi-shield-fill-check,
.bi-exclamation-triangle-fill,
.bi-check-circle,
.bi-check2,
.bi-people-fill,
.bi-gear-fill,
.bi-calendar-check-fill,
.bi-shield-check-fill {
  color: var(--primary-color) !important;
}

.bi-send-fill {
  margin-left: 0.5rem;
}

/* ============ DRAWBRIDGE CTA ============ */
.drawbridge-cta {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.drawbridge-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><line x1="0" y1="0" x2="100" y2="100" stroke="rgba(198,40,40,0.1)" stroke-width="2"/><line x1="100" y1="0" x2="0" y2="100" stroke="rgba(198,40,40,0.1)" stroke-width="2"/></svg>');
  opacity: 0.3;
}

.drawbridge-cta * {
  position: relative;
  z-index: 1;
}

.drawbridge-cta .display-4,
.drawbridge-cta .display-5 {
  color: var(--text-light) !important;
}

/* ============ FOOTER ============ */
footer {
  background-color: var(--secondary-dark) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

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

footer .h4,
footer .h5 {
  color: var(--text-light) !important;
}

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

/* ============ SOCIAL ICONS ============ */
.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-youtube {
  font-size: 1.5rem;
  color: var(--text-light) !important;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-twitter:hover,
.bi-youtube:hover {
  color: var(--primary-light) !important;
  transform: scale(1.2) rotate(10deg);
}

/* ============ UTILITIES ============ */
.rounded {
  border-radius: var(--border-radius) !important;
}

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

.ratio-16x9 {
  position: relative;
  padding-bottom: 56.25%;
}

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

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

.fst-italic {
  font-style: italic !important;
}

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

.text-uppercase {
  text-transform: uppercase !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

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

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

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

.g-0 {
  gap: 0 !important;
}

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

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

/* ============ RESPONSIVE IMAGES ============ */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* ============ ANIMATIONS ============ */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

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

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

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

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

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

/* ============ HOVER EFFECTS ============ */
.hover-lift {
  transition: var(--transition);
}

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

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--secondary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
  }
  
  .navbar-nav .nav-link {
    padding: 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    padding: 6rem 0 3rem;
    min-height: auto;
  }
  
  .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;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .accordion-button,
  .accordion-body {
    padding: 1rem !important;
  }
  
  footer {
    text-align: center !important;
  }
  
  footer .col-md-4,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 1rem 0 !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
}

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

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

:focus-visible {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 3px;
}

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

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

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

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

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

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

/* ============ ADDITIONAL CONTRAST FIXES ============ */
.text-white a,
.text-white .nav-link,
.hero-section a {
  color: var(--text-light) !important;
}

.text-white a:hover,
.text-white .nav-link:hover {
  color: var(--primary-light) !important;
}

.btn-outline-light:focus,
.btn-light:focus,
.btn-primary:focus {
  outline: 3px solid rgba(198, 40, 40, 0.5) !important;
  outline-offset: 2px;
}

/* Ensure all dark backgrounds have light text */
[style*="background: #37474F"],
[style*="background-color: #37474F"],
.bg-secondary {
  color: var(--text-light) !important;
}

[style*="background: #37474F"] *,
[style*="background-color: #37474F"] * {
  color: var(--text-light) !important;
}

/* End of Stylesheet */