/* ==========================================================================
   HPreno.com — Main Stylesheet
   Navy & Safety-Orange construction / renovation theme
   ========================================================================== */

:root {
  --navy-900: #0a1a30;
  --navy-800: #0f2647;
  --navy-700: #163461;
  --navy-600: #1d4180;
  --orange-500: #ff6a00;
  --orange-600: #e35d00;
  --orange-100: #fff1e6;
  --gray-50: #f6f8fb;
  --gray-100: #edf1f6;
  --gray-200: #dde3ec;
  --gray-500: #6b7688;
  --text: #16202e;
  --white: #ffffff;
  --whatsapp: #25d366;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 26, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 26, 48, 0.14);
  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 1em; color: var(--gray-500); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-alt { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy p { color: #b9c4d6; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--orange-600);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-size: 1.5rem; font-weight: 900; color: var(--navy-900); letter-spacing: -.02em; }
.brand .brand-name span { color: var(--orange-500); }
.brand .brand-tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); font-weight: 700; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange-600); background: var(--orange-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: .92rem;
}
.header-call svg { flex-shrink: 0; color: var(--orange-500); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,26,48,.92) 20%, rgba(10,26,48,.72) 55%, rgba(10,26,48,.42) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 60px 0; }
.hero-content h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: .4em; }
.hero-content h1 span { color: var(--orange-500); }
.hero-content p { color: #dbe3ee; font-size: 1.08rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.hero-badges div { font-size: .85rem; font-weight: 700; color: #cfd9e6; display: flex; align-items: center; gap: 8px; }
.hero-badges strong { color: var(--white); font-size: 1.3rem; display: block; font-weight: 900; }

.page-hero {
  position: relative;
  color: var(--white);
  padding: 130px 0 60px;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,26,48,.93), rgba(10,26,48,.75));
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.breadcrumb { font-size: .85rem; color: #cfd9e6; font-weight: 600; }
.breadcrumb a { color: var(--orange-500); }

/* ==================== SERVICES ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card img { height: 190px; width: 100%; object-fit: cover; }
.service-card-body { padding: 20px 22px 26px; }
.service-card-body h3 { font-size: 1.15rem; }
.service-card-body p { font-size: .92rem; margin-bottom: .6em; }
.service-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: .04em;
}

/* ==================== ABOUT / TRUST INTRO BLOCK ==================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; height: 420px; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.checklist li { display: flex; gap: 12px; margin-bottom: 14px; font-weight: 600; color: var(--text); align-items: flex-start; }
.checklist li svg { color: var(--orange-500); flex-shrink: 0; margin-top: 3px; }

/* Stats */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip .stat-num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: var(--orange-500); }
.stats-strip .stat-label { font-size: .85rem; color: #b9c4d6; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* Trust / value cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.trust-card .icon-circle { margin-bottom: 16px; }
.trust-card h3 { font-size: 1.1rem; }
.trust-card p { font-size: .92rem; margin-bottom: 0; }
.icon-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-500);
  display: flex; align-items: center; justify-content: center;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step { position: relative; padding-top: 8px; }
.step .step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h4 { font-size: 1rem; }
.step p { font-size: .88rem; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--orange-500); font-size: .9rem; margin-bottom: 10px; }
.testimonial p.quote { font-style: italic; color: var(--text); font-size: .93rem; }
.testimonial .who { font-weight: 800; font-size: .88rem; color: var(--navy-900); }

/* ==================== GALLERY ==================== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.gallery-filters button {
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(10,26,48,.88), transparent);
  color: var(--white);
  padding: 30px 14px 12px;
  font-size: .82rem;
  font-weight: 700;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(6,12,22,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 3000; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  color: var(--white); font-size: 2rem; cursor: pointer; background: none; border: none;
}
.lightbox-cap { color: #dbe3ee; margin-top: 14px; font-weight: 600; text-align: center; }

/* ==================== CAREERS ==================== */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.job-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .83rem; color: var(--gray-500); font-weight: 700; margin-bottom: 10px; }
.job-meta span { display: flex; align-items: center; gap: 6px; }
.job-badge {
  display: inline-block;
  background: var(--orange-500);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.job-desc { font-size: .9rem; max-width: 620px; margin-bottom: 0; }
.job-actions { flex-shrink: 0; }

/* ==================== CONTACT ==================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.contact-info-card h3 { color: var(--white); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row .icon-circle { background: rgba(255,106,0,.16); }
.contact-row div a, .contact-row div span { color: #dbe3ee; font-weight: 600; font-size: .95rem; }
.contact-row div strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: 3px; }
.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 22px; border: 0; width: 100%; height: 230px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--gray-50);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  background: var(--white);
}
.form-note { font-size: .78rem; color: var(--gray-500); margin-top: 10px; }
#form-status { font-size: .88rem; font-weight: 700; margin-top: 12px; }
#form-status.success { color: #1a8f4b; }
#form-status.error { color: #c8342a; }

/* App promo */
.app-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--navy-900);
  border-radius: 18px;
  padding: 48px;
  color: var(--white);
}
.app-promo h2 { color: var(--white); }
.app-badges { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.app-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 10px 18px; border-radius: 8px;
  font-weight: 700; font-size: .82rem;
  color: var(--white);
}
.app-badge small { display: block; font-size: .65rem; font-weight: 500; color: #b9c4d6; }
.app-mock {
  background: var(--navy-700);
  border-radius: 24px;
  height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: #8fa2c2; font-size: .85rem; font-weight: 700;
  border: 6px solid var(--navy-600);
}

/* CTA band */
.cta-band {
  background: var(--orange-500);
  color: var(--white);
  padding: 46px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #fff1e6; }
.cta-band .btn-outline { border-color: var(--white); }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--navy-900); color: #b9c4d6; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: .9rem; }
.footer-grid ul li a:hover { color: var(--orange-500); }
.footer-brand .brand-name { color: var(--white); font-size: 1.4rem; font-weight: 900; }
.footer-brand .brand-name span { color: var(--orange-500); }
.footer-brand p { font-size: .88rem; margin-top: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
}

/* ==================== FIXED FLOATING BUTTONS ==================== */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  color: var(--white);
  animation: fab-pulse 2.4s ease-in-out infinite;
}
.fab-call { background: var(--navy-900); }
.fab-whatsapp { background: var(--whatsapp); }
.fab:hover { transform: scale(1.07); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 6px 18px rgba(0,0,0,.28), 0 0 0 8px rgba(37,211,102,0); }
}
.fab-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-900);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.fab:hover .fab-label { opacity: 1; }

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 899;
  background: var(--navy-900);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-call-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-call-bar .call-btn { background: var(--orange-500); color: var(--white); }
.mobile-call-bar .wa-btn { background: var(--whatsapp); color: var(--white); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .services-grid, .trust-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-wrap, .app-promo { grid-template-columns: 1fr; }
  .split img { height: 300px; }
  .split-reverse { direction: ltr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
  .nav-toggle { display: block; }
  .header-call { display: none; }
  section { padding: 48px 0; }
  .services-grid, .trust-grid, .testimonial-grid, .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero-content { padding: 30px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .job-card { flex-direction: column; align-items: stretch; }
  .mobile-call-bar { display: flex; }
  .floating-actions { bottom: 78px; right: 14px; }
  .fab { width: 50px; height: 50px; }
  body { padding-bottom: 0; }
  .app-mock { height: 220px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .brand .brand-name { font-size: 1.25rem; }
}
