/* ===================================
   Architectural Studio CSS
   Theme: Deep Navy & Gold
   =================================== */

:root {
  --primary-color: #1A365D;
  --secondary-color: #D4AF37;
  --dark-navy: #0F1F3D;
  --light-navy: #2A4A7D;
  --gold-light: #E5C76B;
  --gold-dark: #B8962D;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --text-dark: #212529;
}

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

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

/* ===================================
   NAVBAR STYLES
   =================================== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-navy) 100%) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  color: var(--secondary-color) !important;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

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

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-navy) 50%, var(--primary-color) 100%);
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23D4AF37" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  animation: fadeInUp 1s ease;
}

.hero-content .display-3 {
  font-weight: 800;
  color: var(--white) !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content .fs-3 {
  color: var(--secondary-color) !important;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-content .fs-5,
.hero-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 400;
  line-height: 1.8;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: 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-lg {
  background: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-lg:hover {
  background: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: transparent !important;
  font-weight: 600;
}

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

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

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(26, 54, 93, 0.3);
}

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

.btn-outline:hover {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
}

/* ===================================
   HEXAGON CONTAINER
   =================================== */
.hexagon-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  animation: fadeInRight 1s ease;
}

.hex-tile {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid var(--secondary-color);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hex-tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hex-tile:hover::before {
  opacity: 0.1;
}

.hex-tile:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.hex-tile .bi {
  color: var(--secondary-color) !important;
  font-size: 3rem !important;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.hex-tile:hover .bi {
  transform: scale(1.2) rotate(10deg);
  color: var(--gold-light) !important;
}

.hex-tile h5 {
  color: var(--white) !important;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hex-tile p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.display-5,
.display-4 {
  font-weight: 800;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

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

.service-card .bi {
  color: var(--secondary-color) !important;
  font-size: 3rem !important;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .bi {
  transform: scale(1.15) rotate(5deg);
  color: var(--gold-dark) !important;
}

.service-card h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--medium-gray) !important;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===================================
   CARD STYLES
   =================================== */
.card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none !important;
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--light-navy)) !important;
  color: var(--white) !important;
  border-bottom: 3px solid var(--secondary-color) !important;
  font-weight: 700;
}

.card-body {
  padding: 2rem;
}

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

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

/* ===================================
   PRACTICE CARD
   =================================== */
.practice-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s ease;
  height: 100%;
}

.practice-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  transform: translateY(-8px);
}

.practice-card .bi {
  color: var(--secondary-color) !important;
  font-size: 2.5rem !important;
  margin-bottom: 1rem;
}

.practice-card h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

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

/* ===================================
   CASE CARD
   =================================== */
.case-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid var(--light-gray);
}

.case-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-10px);
}

.featured-case {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.featured-case img {
  transition: all 0.5s ease;
}

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

/* ===================================
   BADGE
   =================================== */
.badge {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ===================================
   STAT BOX
   =================================== */
.stat-box {
  background: linear-gradient(135deg, var(--primary-color), var(--light-navy));
  color: var(--white) !important;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.stat-box:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.stat-box h3 {
  color: var(--secondary-color) !important;
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.stat-box p {
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 0;
  font-weight: 500;
}

/* ===================================
   OUTCOME BOX
   =================================== */
.outcome-box {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 1rem;
}

.outcome-box h6 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.outcome-box p {
  color: var(--medium-gray) !important;
  margin-bottom: 0;
}

/* ===================================
   TIMELINE
   =================================== */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
  transform: translateX(-50%);
}

/* ===================================
   IMAGE STYLES
   =================================== */
.img-fluid {
  border-radius: 15px;
  transition: all 0.4s ease;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

.form-control,
.form-select {
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark) !important;
  background: var(--white) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
  outline: none;
}

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

.form-check-input {
  border: 2px solid var(--light-gray);
  transition: all 0.3s ease;
}

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

.form-check-input:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  font-weight: 500;
}

/* ===================================
   MAP CONTAINER
   =================================== */
.map-container {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-color) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 4rem 0 0;
}

footer h5,
footer .h5,
footer h4,
footer .h4,
footer h3 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

footer p,
footer .small {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

.list-unstyled li a {
  display: inline-block;
  position: relative;
  padding-left: 1.5rem;
}

.list-unstyled li a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.list-unstyled li a:hover::before {
  left: 5px;
}

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

footer .py-4 {
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  margin-top: 3rem;
}

/* ===================================
   SOCIAL ICONS
   =================================== */
.bi-linkedin,
.bi-twitter,
.bi-twitter-x,
.bi-facebook,
.bi-envelope {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: inline-block;
}

a .bi-linkedin:hover,
a .bi-twitter:hover,
a .bi-twitter-x:hover,
a .bi-facebook:hover,
a .bi-envelope:hover {
  transform: translateY(-3px) scale(1.2);
  color: var(--gold-light) !important;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

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

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

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

.opacity-10 {
  opacity: 0.1 !important;
}

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

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

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

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

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

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

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

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease;
}

/* Stagger animations for children */
.stagger-animation > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(15, 31, 61, 0.98);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px solid var(--secondary-color);
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .navbar-dark .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-content .display-3 {
    font-size: 2.5rem;
  }
  
  .hero-content .fs-3 {
    font-size: 1.5rem;
  }
  
  .hexagon-container {
    margin-top: 3rem;
  }
  
  .service-card,
  .practice-card {
    margin-bottom: 1.5rem;
  }
  
  .timeline-line::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-content .display-3 {
    font-size: 2rem;
  }
  
  .display-4,
  .display-5 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .map-container {
    height: 300px;
  }
  
  .stat-box h3 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .hero-content .display-3 {
    font-size: 1.75rem;
  }
  
  .hero-content .fs-3 {
    font-size: 1.25rem;
  }
  
  .hero-content .fs-5 {
    font-size: 1rem;
  }
  
  .service-card,
  .practice-card,
  .hex-tile {
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer .col-md-4,
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.navbar-toggler:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High contrast for readability */
.hero-section *,
footer *,
.navbar * {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure all text is readable */
.text-dark {
  color: var(--text-dark) !important;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .navbar,
  .btn,
  footer,
  .navbar-toggler {
    display: none !important;
  }
  
  .hero-section {
    background: white;
    color: black;
  }
  
  * {
    color: black !important;
    text-shadow: none !important;
  }
}