/* ----------------------------------------------
   BECON DOORS - GLOBAL STYLESHEET
   Consolidated from all HTML pages
   ---------------------------------------------- */

/* ----- IMPORT GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ----- GLOBAL & THEME VARIABLES ----- */
:root {
  --primary-gold: #4f6d6c;
  --primary-gold-dark: #3d5655;
  --primary-gold-light: #6b8a89;
  --dark-charcoal: #1e1e1e;
  --light-gray-bg: #f5f5f5;
  --medium-gray: #dbdbdb;
  --text-dark: #1e1e1e;
  --text-light: #ffffff;
  --accent-teal: #7d8e8b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--light-gray-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-heading {
  font-family: 'Poppins', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ----- UTILITY CLASSES ----- */
.gold-text { color: var(--primary-gold); }
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
}

/* Cookie Banner Smooth Transitions */
#cookieBanner {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookieBanner.show {
  transform: translateY(0);
}

/* ----- BUTTONS ----- */
.btn-gold {
  background-color: var(--primary-gold);
  color: white;
  border: none;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 0;
  transition: all 0.3s ease;
  font-family: 'Manrope', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover {
  background-color: var(--primary-gold-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-primary-custom {
  background-color: var(--primary-gold);
  color: white;
  border-color: var(--primary-gold);
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 0;
}
.btn-primary-custom:hover {
  background-color: var(--primary-gold-dark);
  border-color: var(--primary-gold-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 109, 108, 0.3);
}

.btn-outline-light-custom {
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  transition: all 0.2s ease;
  background: transparent;
}
.btn-outline-light-custom:hover {
  background: white;
  color: #0f1a24;
  border-color: white;
}

/* ----- STRUCTURE / SECTIONS ----- */
section {
  padding: 80px 0;
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
}

/* ----- NAVIGATION ----- */
.navbar {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
  padding: 12px 0;
}
.navbar-brand img {
  max-height: 100px;
  width: auto;
}
.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark-charcoal);
  font-size: 1rem;
  margin: 0 0.5rem;
  transition: 0.2s;
  padding: 8px 16px;
  border-radius: 4px;
}
.navbar-nav .nav-link:hover {
  color: white;
  background-color: #1e2d4a;
}
.navbar-nav .nav-link.active {
  color: white;
  background-color: var(--primary-gold);
}
.contact-phone {
  font-weight: 700;
  color: var(--dark-charcoal);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ----- RESPONSIVE MEDIA BREAKPOINTS (Navigation) ----- */
@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 76px;
  }
  .contact-phone {
    font-size: 0.9rem;
  }
}

/* ----- HERO SECTION (HOME PAGE) ----- */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.40), rgba(0,0,0,0.40)), url('../images/background_02.jpg') center center/cover no-repeat;
  background-attachment: fixed;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: white;
}

@media (max-width: 1024px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* Default desktop behavior: Force one line and center */
.hero-heading {
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
}

/* Mobile behavior: Allow wrapping and reduce font size for readability */
@media (max-width: 767px) {
  .hero-heading {
    white-space: normal;
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

/* ----- PARALLAX FULL WIDTH IMAGE ----- */
.parallax-full-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  height: 450px;
}
@media (max-width: 1024px) {
  .parallax-full-img {
    background-attachment: scroll !important;
    height: 400px !important;
  }
}

/* ----- FEATURE BOXES (HOME) ----- */
.feature-box {
  background: white;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: 0.2s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  border-bottom: 3px solid transparent;
}
.feature-box:hover {
  border-bottom-color: var(--primary-gold);
  transform: translateY(-5px);
}
.feature-icon {
  font-size: 2.4rem;
  color: var(--primary-gold);
  margin-bottom: 1.2rem;
}

/* ----- GALLERY / SERVICE STRIP CARDS ----- */
.service-strip-card {
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  transition: 0.3s;
}
.service-strip-card h4 {
  background: rgba(0,0,0,0.7);
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: white;
  font-weight: 700;
  backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
  .service-strip-card { min-height: 280px; }
}

.gallery-card {
  margin-bottom: 30px;
  transition: all 0.3s;
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-card:hover img {
  transform: scale(1.03);
}
.gallery-card .card-body {
  padding: 1.5rem;
  text-align: center;
}
@media (max-width: 768px) {
  .gallery-card img { height: 220px; }
}

/* ----- CHESSBOARD GRID (Services Page) ----- */
.chessboard-tile {
  overflow: hidden;
}
.chessboard-img-wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.chessboard-img-wrap img {
  transition: transform 0.4s ease-in-out;
}
.col-xl-3:hover .chessboard-img-wrap img {
  transform: scale(1.06);
}
.chessboard-text-tile {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
.chessboard-text-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
  z-index: 2;
}
/* Step number styling for services page */
.step-number {
  background-color: #4f6d6c;
  color: white;
}

/* ----- PROJECTS PAGE (Our Work) ----- */
.project-row-stack {
  transition: background-color 0.3s ease;
  padding-top: 20px;
  cursor: pointer;
}
.project-row-stack:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.project-img-hover {
  transition: transform 0.5s ease;
}
.project-row-stack:hover .project-img-hover {
  transform: scale(1.02);
}
/* Modal Gallery Styles */
#projectModal.modal-fullscreen .modal-content {
  background-color: rgba(0, 0, 0, 0.4) !important;
}
#projectModal .modal-image-container img {
  width: 100vw !important;
  max-height: 65vh !important;
  object-fit: contain;
}
.modal-gallery-thumb {
  cursor: pointer;
  transition: opacity 0.2s ease, outline 0.2s ease;
}
.modal-gallery-thumb.active {
  outline: 3px solid var(--primary-gold);
  opacity: 1 !important;
}
/* Badge styling for project gallery button */
.bg-primary-custom {
  background-color: var(--primary-gold);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}
.bg-primary-custom:hover {
  background-color: var(--primary-gold-dark);
  color: white;
  transform: translateY(-2px);
}

/* ----- SERVICE CARDS (Services Page) ----- */
.service-card, .process-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 1rem;
  border: 1px solid #ede9e2;
  background: white;
}
.service-card:hover, .process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  border-color: #d9cdbc;
}
/* Service card icons */
.service-card i[class*="bi-"] {
  color: var(--primary-gold) !important;
}

/* ----- CONTACT PAGE ----- */
.contact-icon {
  background: #f0e9e0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary-gold);
}
/* Contact form submit button */
.btn-primary-custom i {
  color: white;
}

/* ----- FOOTER ----- */
footer {
  background-color: #000000;
  color: #ccc;
}
footer .footer-link,
footer a.footer-link {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
footer .footer-link:hover,
footer a.footer-link:hover {
  color: var(--primary-gold) !important;
  text-decoration: none !important;
}

/* ----- RESPONSIVE MEDIA BREAKPOINTS (Mobile Optimizations) ----- */
@media (max-width: 768px) {
  /* Navigation mobile adjustments */
  .navbar-brand img {
    max-height: 76px;
  }
  .contact-phone {
    font-size: 0.9rem;
  }

  /* Fix gallery images on home page - reduce height for mobile */
  .gallery-card img {
    height: 250px !important;
  }

  /* Fix process images on services page */
  .chessboard-img-wrap img {
    min-height: 220px !important;
  }

  /* Fix project images on ourwork page */
  .project-row-stack img {
    height: 250px !important;
  }

  /* Hero heading adjustments for very small screens */
  .hero-heading {
    font-size: 1.3rem !important;
    white-space: normal !important;
    padding: 0 15px;
  }
}