/* --- ROOT VARIABLES --- */
:root {
  --primary-dark: #1A2E40;
  --primary-accent: #DAA520;
  --primary-accent-dark: #B8860B;
  --secondary-light: #F8F9FA;
  --text-dark: #2E3A59;
  --text-light: #6B7280;
  --background-light: #FFFFFF;
  --background-muted: #F1F4F9;
  --border-color: #E2E8F0;
  --shadow: 0 6px 32px rgba(26, 46, 64, 0.10);
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

/* --- GLOBAL --- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--background-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  letter-spacing: 0.01em;
}

/* --- GENERAL LINKS & BUTTONS --- */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
a:hover,
a:focus {
  opacity: 0.85;
  color: var(--primary-accent);
}
.btn {
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 3px 16px rgba(218,165,32,0.06);
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary-accent);
  border: none;
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(218,165,32,0.12);
}
.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
  background: #fff;
  color: var(--primary-dark);
}

/* --- NAVBAR --- */
.navbar {
  background-color: var(--primary-dark);
  padding: 1rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.navbar-brand {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 12px rgba(26, 46, 64, 0.18);
}
.navbar-brand i {
  color: var(--primary-accent);
  font-size: 1.45rem;
  margin-right: 0.5rem;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  filter: invert(100%);
}
.nav-link {
  font-weight: 600;
  color: #f1f1f1 !important;
  padding: 0.6rem 1.1rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-accent) !important;
  text-shadow: 0 1px 6px rgba(218,165,32,0.12);
}

/* --- HERO SECTIONS --- */

/* Video Hero Section (Home) */
.video-hero {
  position: relative;
  height: 85vh;
  min-height: 400px;
  overflow: hidden;
}
.hero-bg-video,
.hero-bg-image,
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-bg-video {
  object-fit: cover;
  filter: brightness(0.53) blur(1.2px);
  pointer-events: none;
}
.hero-bg-image {
  background: url('/images/hero-construction.jpg') center center/cover no-repeat;
  display: none;
}
.hero-overlay {
  background: linear-gradient(120deg,rgba(26,46,64,0.80) 65%,rgba(218,165,32,0.22) 100%);
  z-index: 2;
}
.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 100%;
  max-width: 900px;
}
.custom-shape-divider-bottom-1717697712 {
  position: absolute; bottom: -2px; left:0; width:100%; line-height:0; z-index: 4;
}
.hero-section h1, .hero-section .display-3, .hero-section .display-5 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  color: #fff;
  text-shadow: 0 4px 16px rgba(26,46,64,0.28);
}
.hero-section p.lead {
  font-size: 1.3rem;
  color: #eaeaea;
  text-shadow: 0 2px 8px rgba(26,46,64,0.17);
  margin-bottom: 2.4rem;
}
.hero-section .btn {
  font-size: 1.18rem;
  padding: 0.8rem 2.3rem;
}
.hero-section .btn + .btn {
  margin-left: 1rem;
}

/* Image Hero (for all other pages) */
.image-hero {
  height: 45vh;
  min-height: 220px;
  background: url('/images/about-hero.jpg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-overlay {
  background: linear-gradient(120deg,rgba(26,46,64,0.7) 55%,rgba(218,165,32,0.12) 100%);
  position: absolute; top:0; left:0; width:100%; height:100%;
  z-index: 2;
}
.image-hero .container {
  z-index: 3;
  position: relative;
}

/* --- SECTION HEADINGS --- */
.section-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 2.7rem;
  letter-spacing: 0.01em;
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 78px; height: 3px;
  background: var(--primary-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(218,165,32,0.14);
}

/* --- FEATURE CARDS --- */
.feature-card {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 0.95rem;
  padding: 2.2rem 1.5rem 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 12px rgba(26,46,64,0.06);
  transition: var(--transition);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 10px 30px rgba(218,165,32,0.10), 0 4px 16px rgba(26,46,64,0.10);
  border-color: var(--primary-accent);
}
.feature-card i {
  font-size: 2.3rem;
  color: var(--primary-accent);
  margin-bottom: 1.1rem;
  background: #fff6e3;
  border-radius: 50%;
  padding: 0.6rem;
  display: inline-block;
  box-shadow: 0 1px 7px rgba(218,165,32,0.13);
}
.feature-card h3 {
  font-size: 1.19rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.99rem;
  color: var(--text-light);
}

/* --- PROJECT CARD --- */
.project-card img {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 0.85rem;
  border-top-right-radius: 0.85rem;
}
.project-card .card-body {
  padding: 1rem 1.2rem;
}
.project-card h5 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}
.project-card .badge {
  background: var(--primary-accent);
}
.project-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 1px 14px rgba(26,46,64,0.09);
}
.project-card:hover {
  box-shadow: 0 8px 36px rgba(218,165,32,0.12), 0 4px 16px rgba(26,46,64,0.13);
  transform: translateY(-4px) scale(1.012);
}

/* --- CONTACT CARDS --- */
.contact-card {
  background-color: #fff;
  border-radius: 1.05rem;
  box-shadow: 0 3px 18px rgba(26,46,64,0.08);
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
}
.contact-card:hover {
  box-shadow: 0 10px 30px rgba(218,165,32,0.11);
  border-color: var(--primary-accent);
}
.contact-info li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- MAP --- */
.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 0.6rem;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--primary-dark);
  color: #d1d5db;
  padding: 2.3rem 0 1.1rem 0;
  font-size: 0.99rem;
  border-top: 4px solid var(--primary-accent);
  box-shadow: 0 -3px 24px rgba(26,46,64,0.07);
}
.footer-heading {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.footer p,
.footer li,
.footer a {
  color: #d1d5db;
  font-size: 0.97rem;
}
.footer a {
  text-decoration: none;
  transition: var(--transition);
}
.footer a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}
.social-links a {
  color: #ccc;
  font-size: 1.26rem;
  margin-right: 1rem;
  transition: var(--transition);
  display: inline-block;
}
.social-links a:hover {
  color: var(--primary-accent);
  transform: scale(1.15) rotate(-7deg);
  text-shadow: 0 2px 12px rgba(218,165,32,0.17);
}
.footer hr {
  border-color: rgba(255,255,255,0.18);
  margin-top: 1.7rem;
  margin-bottom: 1.1rem;
}
.footer .text-center {
  font-size: 0.87rem;
  color: #aaa;
  margin-top: 0.6rem;
}

/* --- FORM --- */
.form-label {
  font-weight: 600;
  color: var(--primary-dark);
}
input.form-control, textarea.form-control {
  border-radius: 0.55rem;
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(26,46,64,0.04);
}
input.form-control:focus, textarea.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 4px 12px rgba(218,165,32,0.11);
}
.btn-close {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: var(--transition);
}
.btn-close:hover {
  opacity: 1;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .hero-section h1, .hero-section .display-3 {
    font-size: 2.1rem;
  }
}
@media (max-width: 992px) {
  .video-hero { height: 54vh; min-height: 240px; }
  .section-heading { font-size: 1.65rem; }
  .feature-card, .contact-card { padding: 1.35rem; }
  .feature-card h3 { font-size: 1.09rem; }
}
@media (max-width: 768px) {
  .navbar-brand { font-size: 1.2rem; }
  .hero-section h1, .hero-section .display-3 { font-size: 1.5rem; }
  .footer { padding: 1.1rem 0 0.6rem 0; font-size: 0.93rem; }
  .project-card img { height: 148px; }

  .video-hero { height: 55vh; min-height: 230px; }
  .hero-bg-video { display: none !important; }
  .hero-bg-image { display: block !important; }
  .hero-content { max-width: 99vw; padding: 0 1rem; }
}
@media (min-width: 769px) {
  .hero-bg-image { display: none !important; }
}
@media (max-width: 480px) {
  .hero-section h1, .hero-section .display-3 { font-size: 1.1rem; }
  .hero-section p.lead { font-size: 0.92rem; }
  .feature-card { padding: 1rem 0.8rem 0.8rem 0.8rem; }
  .image-hero { height: 28vh; min-height: 120px; background-position: center top; }
}

/* --- MICROINTERACTIONS / MISC --- */
::-webkit-scrollbar {
  width: 7px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-accent);
  border-radius: 6px;
}

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

/* --- ANIMATIONS (OPTIONAL: Animate.css recommended for .animate__*) --- */
/* Fallback simple fadeIn if Animate.css not present */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: none;}
}
.animate__fadeInUp {
  animation: fadeInUp 1s both;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: none;}
}
.animate__fadeInDown {
  animation: fadeInDown 1s both;
}
