/* ====================================================
   FUBUA CONSTRUCTION – Custom Stylesheet
   Author: GitHub Copilot for Fubua Construction Ltd
   ==================================================== */

/* ---- CSS VARIABLES ---- */
:root {
  --primary:       #E87B2C;
  --primary-dark:  #c4651c;
  --secondary:     #1A2E4A;
  --secondary-light:#253d61;
  --accent:        #F5C518;
  --light-bg:      #F8F9FA;
  --dark-bg:       #0D1B2A;
  --text-dark:     #1a1a2e;
  --text-muted:    #6c757d;
  --radius:        12px;
  --shadow:        0 8px 30px rgba(0,0,0,.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.18);
  --transition:    all .35s cubic-bezier(.25,.8,.25,1);
}

/* ---- GLOBAL ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a { text-decoration: none; transition: var(--transition); }

img { max-width: 100%; }

/* ---- UTILITY ---- */
.text-primary-custom { color: var(--primary) !important; }
.bg-light-custom { background: var(--light-bg) !important; }

.section-pad { padding: 90px 0; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--secondary);
  color: #adb5bd;
  font-size: .82rem;
}
.topbar a { color: #adb5bd; }
.topbar a:hover { color: var(--accent); }
.topbar .topbar-right a { font-size: 1rem; }

/* ---- NAVBAR LOGO ---- */
.navbar-logo {
  height: 52px;
  width: auto;
  transition: var(--transition);
}
#mainNav.scrolled .navbar-logo {
  height: 42px;
}

/* ---- FOOTER LOGO ---- */
.footer-logo {
  height: 56px;
  width: auto;
}

/* ---- NAVBAR ---- */
#mainNav {
  background: var(--secondary);
  padding: .85rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
#mainNav.scrolled {
  background: rgba(26,46,74,.97);
  padding: .5rem 0;
}
.brand-logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo-icon--light { background: var(--primary); }
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}
.brand-sub {
  font-size: .65rem;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .5px;
  color: rgba(255,255,255,.85) !important;
  padding: .5rem .75rem;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: .75rem;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: calc(100% - 1.5rem); }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: .88rem;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

/* ---- HERO ---- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 950px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(13,27,42,.85) 0%, rgba(26,46,74,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 1rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,123,44,.2);
  border: 1px solid var(--primary);
  color: var(--accent);
  padding: .4rem 1.2rem;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0 auto;
}
.hero-actions .btn { border-radius: 6px; font-weight: 700; }
.hero-scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-indicator span {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 20px;
  position: relative;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollAnim 1.8s infinite;
}
@keyframes scrollAnim {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}

/* ---- STATS BANNER ---- */
.stats-banner {
  background: var(--primary);
}
.stat-item { color: #fff; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  color: rgba(255,255,255,.8);
}

/* ---- ABOUT ---- */
.about-img-wrapper {
  position: relative;
  height: 480px;
}
.about-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 75%; height: 85%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-img-float {
  position: absolute;
  bottom: 0; right: 0;
  width: 50%;
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img-float img { display: block; }
.about-exp-badge {
  position: absolute;
  top: 50%; left: -20px; transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.1;
}
.badge-num { font-size: 2rem; font-weight: 900; font-family: 'Montserrat', sans-serif; display: block; }
.badge-txt { font-size: .75rem; font-weight: 600; letter-spacing: 1px; }

.about-checkpoints { list-style: none; padding: 0; }
.about-checkpoints li {
  padding: .4rem 0;
  font-weight: 500;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  padding: .7rem 1.8rem;
  transition: var(--transition);
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,123,44,.35);
}

/* ---- SERVICE CARDS ---- */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 4px;
  background: var(--primary);
  transition: width .4s ease;
}
.service-card:hover::before { width: 100%; }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.service-icon--orange { background: rgba(232,123,44,.12); color: var(--primary); }
.service-icon--blue   { background: rgba(26,46,74,.1);   color: var(--secondary); }
.service-icon--green  { background: rgba(40,167,69,.12); color: #28a745; }
.service-icon--purple { background: rgba(111,66,193,.12);color: #6f42c1; }
.service-icon--red    { background: rgba(220,53,69,.12); color: #dc3545; }
.service-icon--teal   { background: rgba(32,201,151,.12);color: #20c997; }
.service-title { font-size: 1rem; font-weight: 700; }
.service-desc  { font-size: .9rem; }
.service-link  { color: var(--primary); font-weight: 600; font-size: .9rem; }
.service-link:hover { color: var(--primary-dark); letter-spacing: .5px; }

/* ---- WHY US ---- */
.why-us-section {
  background: var(--secondary);
  position: relative;
  overflow: hidden;
}
.why-us-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 350px; height: 350px;
  background: rgba(232,123,44,.07);
  border-radius: 50%;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-item i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.why-item h6 { color: #fff; margin: 0 0 .25rem; font-size: .95rem; }
.why-item p  { color: rgba(255,255,255,.55); font-size: .82rem; margin: 0; }

.why-us-visual {
  position: relative;
  display: inline-block;
}
.why-us-img {
  width: 100%; max-width: 440px;
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.why-us-video-btn {
  position: absolute;
  bottom: -20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .75rem;
  background: var(--primary);
  padding: .7rem 1.4rem;
  border-radius: 40px;
  color: #fff;
  box-shadow: 0 8px 25px rgba(232,123,44,.4);
  white-space: nowrap;
  font-weight: 600;
  font-size: .9rem;
}
.play-btn {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.play-btn:hover { transform: scale(1.1); color: var(--primary); }

/* ---- PROJECT CARDS ---- */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.92) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}
.project-cat {
  background: var(--primary);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: .5rem;
}
.project-title { font-size: 1.1rem; margin: 0; }
.project-desc { display: none; }
.project-card:hover .project-desc { display: block; }

/* ---- PROCESS ---- */
.process-step {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}
.process-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  opacity: .15;
  line-height: 1;
  margin-bottom: -10px;
}
.process-icon {
  width: 70px; height: 70px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(232,123,44,.3);
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  background: var(--secondary);
}
.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.testimonial-text { color: rgba(255,255,255,.8); font-style: italic; font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { font-size: 2.5rem; color: var(--accent); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: url('../images/cta-bg.jpg') center/cover no-repeat fixed;
  padding: 100px 0;
  position: relative;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: rgba(13,27,42,.8);
}
.cta-heading {
  font-size: clamp(1.8rem, 4vw, 3rem);
  position: relative;
}
.cta-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ---- FOOTER ---- */
.footer-main {
  background: var(--dark-bg);
  color: #fff;
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--primary);
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact {
  list-style: none; padding: 0; margin: 0;
}
.footer-contact li {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-contact i { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--accent); }

.footer-divider { border-color: rgba(255,255,255,.1); }

.social-icons { display: flex; gap: .75rem; }
.social-icons a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(232,123,44,.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-1.jpg') center/cover no-repeat;
  opacity: .1;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.6); font-size: .9rem; }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---- CONTACT PAGE ---- */
.contact-form-section .contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  padding: .7rem 1rem;
  font-size: .9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,123,44,.15);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--text-dark); }

.contact-info-card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  height: 100%;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: rgba(232,123,44,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-item h6 { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 .2rem; }
.contact-info-item p  { color: rgba(255,255,255,.7); margin: 0; font-size: .9rem; }

/* ---- ALERT MESSAGES ---- */
.alert-success-custom {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 8px;
  padding: 1rem 1.5rem;
}
.alert-error-custom {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

/* ---- ABOUT PAGE ---- */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo {
  height: 240px;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,.3);
}
.team-info { padding: 1.2rem; }
.team-info h5 { margin: 0; font-size: 1rem; }
.team-info span { color: var(--primary); font-size: .82rem; font-weight: 600; }

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  text-align: center;
}
.value-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: .5rem; }

/* ---- SERVICES PAGE ---- */
.service-detail-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-detail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-detail-img {
  height: 220px;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: var(--primary);
}
.service-detail-body { padding: 1.5rem; }

/* ---- PROJECTS PAGE ---- */
.project-filter { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  background: #fff;
  border: 1.5px solid #dee2e6;
  color: var(--text-dark);
  padding: .4rem 1.2rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  .section-pad { padding: 60px 0; }
  .hero-section { height: 85vh; }
  .why-grid { grid-template-columns: 1fr; }
  .about-exp-badge { left: 10px; }
}

@media (max-width: 767.98px) {
  .hero-headline { font-size: 2.2rem; }
  .section-pad { padding: 50px 0; }
  .hero-section { height: 75vh; min-height: 520px; }
  .about-img-wrapper { height: 320px; }
  .about-img-main { width: 85%; }
  .about-img-float { width: 55%; }
  .about-exp-badge { display: none; }
  .hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; }
  .hero-actions .btn { width: 220px; }
  .why-us-img { max-width: 100%; height: 260px; }
  .why-us-video-btn { font-size: .8rem; padding: .5rem 1rem; }
  .cta-banner .btn { display: block; width: 100%; max-width: 280px; margin: .4rem auto !important; }
}

@media (max-width: 575.98px) {
  .stats-banner .stat-number { font-size: 2rem; }
  .project-img { height: 230px; }
}
