/* =========================================================
   PrimeBuild Construction — Shared Stylesheet
   ========================================================= */

:root {
  --navy: #0369a1;
  --navy-deep: #0c4a6e;
  --navy-soft: #0ea5e9;
  --sky-light: #7dd3fc;
  --orange: #f2610c;
  --orange-light: #ff8534;
  --orange-dim: #fff1e8;
  --ink: #1c2530;
  --gray: #667085;
  --gray-light: #f4f6f9;
  --border: #e6eaf0;
  --white: #ffffff;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(8, 29, 56, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-head {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.text-orange { color: var(--orange) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-navy-deep { background: var(--navy-deep) !important; }
.bg-soft { background: var(--gray-light) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.section { padding: 90px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }

/* ---------- Buttons ---------- */
.btn-prime {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  transition: all .25s ease;
}
.btn-prime:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--white); transform: translateY(-2px); }

.btn-outline-prime {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all .25s ease;
}
.btn-outline-prime:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: all .25s ease;
}
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cdd8e6;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar a { color: #cdd8e6; }
.topbar a:hover { color: var(--orange-light); }

/* ---------- Navbar ---------- */
.navbar-prime {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 2px 18px rgba(8,29,56,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar-prime .navbar-brand img { height: 50px; }
.navbar-prime .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy) !important;
  margin: 0 8px;
  white-space: nowrap;
  position: relative;
}
.navbar-prime .nav-link.active,
.navbar-prime .nav-link:hover { color: var(--orange) !important; }
.navbar-prime .btn-prime { font-size: 13.5px; padding: 11px 22px; white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-prime .nav-link { font-size: 12.5px; margin: 0 6px; }
  .navbar-prime .btn-prime { font-size: 12.5px; padding: 10px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 130px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(242,97,12,0.22) 0%, rgba(242,97,12,0) 70%);
}
.hero h1 { color: var(--white); font-size: 3rem; line-height: 1.12; }
.hero p.lead { color: #c7d3e3; font-size: 1.15rem; max-width: 560px; }
.hero-badge {
  display: inline-block;
  background: rgba(242,97,12,0.15);
  border: 1px solid rgba(242,97,12,0.4);
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 22px;
}

.page-hero {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb { justify-content: center; margin: 0; }
.page-hero .breadcrumb a { color: #c7d3e3; }
.page-hero .breadcrumb .active { color: var(--orange-light); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  padding: 34px 10px;
}
.stat-item { text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--navy); }
.stat-label { color: var(--gray); font-size: 14px; }
@media (max-width: 767px) {
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
  .stat-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}

/* ---------- Cards ---------- */
.service-card {
 
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  transition: all .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 58px; height: 58px;
  background: var(--orange-dim);
  color: var(--orange);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; }
.service-card a.card-link { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); }
.service-card a.card-link:hover { color: var(--orange); }

.why-item { display: flex; gap: 18px; margin-bottom: 30px; }
.why-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.project-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.project-card img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s ease; }
.project-card:hover img { transform: scale(1.07); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,29,56,0.9) 0%, rgba(8,29,56,0.1) 55%, rgba(8,29,56,0) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  color: var(--white);
}
.project-status {
  position: absolute; top: 16px; left: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 40px;
}
.project-overlay h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.project-overlay p { color: #c7d3e3; font-size: 13.5px; margin: 0; }

.testimonial-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.testimonial-quote { color: var(--orange); font-size: 28px; margin-bottom: 10px; display: block; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.avatar-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 30px 20px;
  height: 100%;
}
.cert-card img { height: 90px; object-fit: contain; margin-bottom: 18px; }

.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px;
  background: rgba(8,29,56,0); opacity: 0;
  transition: all .3s ease;
}
.gallery-item:hover::after { background: rgba(8,29,56,0.55); opacity: 1; }

.gallery-filter button {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 40px;
  margin: 0 6px 10px;
}
.gallery-filter button.active,
.gallery-filter button:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* ---------- Cost Calculator ---------- */
.calc-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.calc-box label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
}
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,97,12,0.12); }
.calc-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.calc-result .amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--orange-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band::after {
  content: "";
  position: absolute; right: -60px; bottom: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(242,97,12,0.25), transparent 70%);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #a8b6c9; padding: 70px 0 0; }
.footer h5 { color: var(--white); font-family: var(--font-head); margin-bottom: 22px; font-size: 16px; }
.footer a { color: #a8b6c9; }
.footer a:hover { color: var(--orange-light); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer .logo-white { height: 50px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 46px; padding: 20px 0; font-size: 13.5px; }
.social-circle {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-right: 8px;
}
.social-circle:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 998;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- Contact page ---------- */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; gap: 18px; align-items: flex-start;
  height: 100%;
}
.contact-info-card .why-icon { background: var(--orange-dim); color: var(--orange); }

.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* =========================================================
   Preloader
   ========================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-logo {
  width: 74px; height: 74px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top: 3px solid var(--orange);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 18px;
}
.preloader-text {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.preloader-text .text-orange { color: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Animated hero banner shapes
   ========================================================= */
.hero { isolation: isolate; }
.hero-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-shapes span {
  position: absolute;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  animation: floatShape 7s ease-in-out infinite;
}
.hero-shapes .shape-1 { width: 90px; height: 90px; top: 14%; left: 6%; animation-delay: 0s; border-radius: 50%; }
.hero-shapes .shape-2 { width: 60px; height: 60px; top: 62%; left: 14%; animation-delay: 1.2s; transform: rotate(15deg); }
.hero-shapes .shape-3 { width: 130px; height: 130px; top: 8%; right: 8%; animation-delay: 0.6s; border-radius: 50%; background: rgba(242,97,12,0.1); border-color: rgba(242,97,12,0.25); }
.hero-shapes .shape-4 { width: 46px; height: 46px; bottom: 12%; right: 18%; animation-delay: 2s; }
.hero-shapes .shape-5 { width: 22px; height: 22px; top: 40%; right: 30%; animation-delay: 1.6s; border-radius: 50%; background: rgba(242,97,12,0.25); border: none; }
.hero-shapes i {
  position: absolute; color: rgba(255,255,255,0.15); font-size: 30px;
  animation: floatShape 8s ease-in-out infinite;
}
.hero-shapes .icon-1 { top: 24%; right: 22%; animation-delay: 0.8s; }
.hero-shapes .icon-2 { bottom: 20%; left: 24%; animation-delay: 1.8s; font-size: 24px; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}
.hero .container { z-index: 1; }

.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(30px); animation: wordUp .7s ease forwards; }
.hero h1 .word:nth-child(1) { animation-delay: .1s; }
.hero h1 .word:nth-child(2) { animation-delay: .22s; }
.hero h1 .word:nth-child(3) { animation-delay: .34s; }
.hero h1 .word:nth-child(4) { animation-delay: .46s; }
.hero h1 .word:nth-child(5) { animation-delay: .58s; }
.hero h1 .word:nth-child(6) { animation-delay: .7s; }
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }
.hero .hero-badge { opacity: 0; animation: wordUp .6s ease forwards; animation-delay: .8s; }
.hero .lead { opacity: 0; animation: wordUp .6s ease forwards; animation-delay: .95s; }
.hero .hero-cta { opacity: 0; animation: wordUp .6s ease forwards; animation-delay: 1.1s; }

/* page-hero light animated dots */
.page-hero { position: relative; overflow: hidden; }
.page-hero-shapes span {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: floatShape 6s ease-in-out infinite;
}
.page-hero-shapes .ph-1 { width: 60px; height: 60px; top: 20%; left: 8%; }
.page-hero-shapes .ph-2 { width: 34px; height: 34px; bottom: 16%; right: 12%; animation-delay: 1s; background: rgba(242,97,12,0.2); }
.page-hero-shapes .ph-3 { width: 18px; height: 18px; top: 50%; right: 24%; animation-delay: 1.6s; }
.page-hero .container { position: relative; z-index: 1; }

/* =========================================================
   Section-wide reveal variants + stagger
   ========================================================= */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all .7s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all .7s ease; }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(.9); transition: all .6s ease; }
.reveal-zoom.active { opacity: 1; transform: scale(1); }

.row .reveal:nth-child(1) { transition-delay: 0s; }
.row .reveal:nth-child(2) { transition-delay: .12s; }
.row .reveal:nth-child(3) { transition-delay: .24s; }
.row .reveal:nth-child(4) { transition-delay: .36s; }
.row .reveal:nth-child(5) { transition-delay: .48s; }
.row .reveal:nth-child(6) { transition-delay: .6s; }

/* hover pop for icons/cards across sections */
.service-icon, .why-icon, .cert-card i, .stat-item { transition: transform .35s ease; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.1); }
.why-item:hover .why-icon { transform: scale(1.12); }
.cert-card:hover i { transform: scale(1.15) rotate(-6deg); }
.stat-item:hover .stat-num { color: var(--orange); }

/* =========================================================
   Lead popup form
   ========================================================= */
.lead-popup-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(8,29,56,0.65);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
.lead-popup-overlay.show { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lead-popup {
  background: var(--white);
  border-radius: 10px;
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  display: flex;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  animation: popIn .4s ease;
  position: relative;
}
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.lead-popup-visual {
  flex: 0 0 42%;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 40px 30px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.lead-popup-visual::after {
  content: "";
  position: absolute; right: -50px; bottom: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(242,97,12,0.3), transparent 70%);
}
.lead-popup-visual h3 { color: var(--white); font-size: 1.4rem; }
.lead-popup-form { flex: 1; padding: 40px 34px; }
.lead-popup-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(8,29,56,0.06);
  border: none; width: 34px; height: 34px; border-radius: 50%;
  color: var(--navy); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lead-popup-close:hover { background: var(--orange); color: var(--white); }
@media (max-width: 767px) {
  .lead-popup { flex-direction: column; max-height: 90vh; overflow-y: auto; }
  .lead-popup-visual { padding: 26px; }
}
