/* Fortelix Engineers - final polished website stylesheet */
:root{
  --navy:#06254c;
  --navy-2:#082a55;
  --orange:#ff5a22;
  --text:#17375d;
  --muted:#5d7694;
  --light:#f5f8fb;
  --line:#e1e8f0;
  --header-h:96px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.5}
img{max-width:100%}
a{color:inherit}
.section-anchor{scroll-margin-top:calc(var(--header-h) + 18px)}

.site-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid rgba(6,37,76,.08);transition:box-shadow .2s ease}
.site-header.scrolled{box-shadow:0 6px 24px rgba(6,37,76,.10)}
.header-inner{height:var(--header-h);width:100%;max-width:none;margin:auto;padding:0 42px;display:flex;align-items:center;position:relative}
.brand{width:355px;display:flex;align-items:center;flex:0 0 auto;text-decoration:none}
.brand img{display:block;width:100%;height:auto}
.nav-links{margin-left:auto;display:flex;align-items:stretch;height:100%;gap:40px}
.nav-links a{display:flex;align-items:center;position:relative;text-decoration:none;color:#0a2347;font-size:14px;font-weight:800;letter-spacing:.2px;white-space:nowrap}
.nav-links a:after{content:"";position:absolute;left:0;right:0;bottom:20px;height:3px;background:transparent;transition:.2s}
.nav-links a:hover,.nav-links a.active{color:var(--orange)}
.nav-links a:hover:after,.nav-links a.active:after{background:var(--orange)}
.menu-toggle{display:none}

/* Floating contact rail */
.floating-contact{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-50%);
  z-index:1200;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0;
}
.float-btn{
  position:relative;
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  overflow:visible;
  border-left:1px solid rgba(255,255,255,.14);
  transition:width .22s ease,filter .22s ease;
}
.float-btn:first-child{border-radius:7px 0 0 0}
.float-btn:last-child{border-radius:0 0 0 7px}
.float-btn.call,.float-btn.whatsapp,.float-btn.location{background:var(--navy)}
.float-btn.email{background:var(--orange)}
.float-btn:hover{width:150px;filter:brightness(1.04)}
.float-icon{width:25px;height:25px;display:flex;align-items:center;justify-content:center;flex:0 0 25px}
.float-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.float-label{
  position:absolute;
  right:58px;
  width:92px;
  text-align:center;
  font-size:13px;
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
  opacity:0;
  transform:translateX(8px);
  transition:opacity .18s ease,transform .18s ease;
  pointer-events:none;
}
.float-btn:hover .float-label{opacity:1;transform:translateX(0)}

.hero{background:var(--light)}
.hero-inner{width:100%;max-width:none;margin:0;min-height:535px;display:grid;grid-template-columns:45% 55%}
.hero-copy{padding:72px 55px 65px 70px;display:flex;flex-direction:column;justify-content:center}
.eyebrow{font-size:13px;letter-spacing:1px;font-weight:800;color:#315477}
.eyebrow span{display:inline-block;width:46px;height:3px;background:var(--orange);margin-right:12px;vertical-align:middle}
.eyebrow b,.hero h1 em,.about h2 em,.section-heading h2 em,.contact h2 em,.bim h2 em{color:var(--orange);font-style:normal}
.hero h1{font-size:54px;line-height:1.03;letter-spacing:-1px;color:var(--navy);margin:20px 0 22px}
.hero-copy>p{max-width:600px;font-size:17px;line-height:1.65;color:#345474;margin:0 0 28px}
.buttons{display:flex;gap:16px;flex-wrap:wrap}
.btn{min-height:50px;padding:0 27px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;letter-spacing:.5px;border-radius:3px;border:2px solid transparent}
.btn.primary{background:var(--navy);color:#fff}
.btn.primary:hover{background:var(--orange)}
.btn.secondary{border-color:var(--orange);background:#fff;color:var(--navy)}
.btn.secondary:hover{background:var(--orange);color:#fff}
.btn.white{background:#fff;color:var(--navy)}
.btn.white:hover{background:var(--orange);color:#fff}
.hero-visual{min-height:535px;position:relative;overflow:hidden}
.hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

.services{padding:80px 34px 72px;background:#fff}
.section-heading{max-width:760px;margin:0 auto 38px}
.section-heading.centered{text-align:center}
.section-heading h2{font-size:38px;line-height:1.15;color:var(--navy);margin:12px 0 10px}
.section-heading p{font-size:16px;color:var(--muted);margin:0}
.service-grid{width:100%;max-width:none;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.service-card{min-height:290px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 7px 25px rgba(8,38,77,.08);padding:28px 20px 24px;text-align:center;transition:transform .2s ease,box-shadow .2s ease}
.service-card:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(8,38,77,.13)}
.service-icon{height:76px;display:flex;align-items:center;justify-content:center;margin-bottom:9px}
.service-icon img{width:74px;height:68px;object-fit:contain}
.service-card h3{font-size:15px;line-height:1.3;margin:4px 0 10px;color:var(--navy)}
.orange-line{width:38px;height:3px;background:var(--orange);margin:0 auto 15px}
.service-card p{font-size:13px;line-height:1.6;color:#526b88;margin:0}

.stats{width:calc(100% - 68px);max-width:none;margin:0 34px 78px;min-height:104px;background:var(--navy);border-radius:9px;display:flex;align-items:center;justify-content:space-around;color:#fff;padding:16px 26px;box-shadow:0 10px 28px rgba(6,37,76,.12)}
.stat{display:flex;align-items:center;gap:13px;min-width:220px}
.stat img{width:60px;height:60px;object-fit:contain;flex:0 0 auto}
.stat strong{display:block;font-size:28px;line-height:1.05;color:#fff}
.stat span{display:block;font-size:12px;line-height:1.35;margin-top:5px;color:#fff}
.stat.safe strong{font-size:17px}
.stats>i{width:1px;height:54px;background:rgba(255,255,255,.45)}

.about{background:var(--light);padding:82px 34px}
.about-inner{width:100%;max-width:none;margin:0;display:grid;grid-template-columns:45% 55%;gap:62px;align-items:center}
.about-profile{position:relative;border:1px solid #dce5ee;background:#fff;border-radius:8px;min-height:440px;display:flex;align-items:flex-start;justify-content:center;padding:22px 24px 112px;box-shadow:0 8px 25px rgba(8,38,77,.05);overflow:hidden}
.profile-logo{display:flex;align-items:center;justify-content:center;width:100%;height:300px}
.profile-logo img{display:block;width:min(360px,100%);height:100%;object-fit:contain;object-position:center}
.name-box{position:absolute;left:10%;right:10%;bottom:22px;background:var(--navy);color:#fff;padding:13px 18px 14px;min-height:88px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:7px;text-align:center}
.name-box strong{font-size:17px;line-height:1.25}.name-box b{font-size:12px;line-height:1.35;color:#ff5a22}.name-box span{font-size:12px;line-height:1.35}
.about-copy .eyebrow{margin-bottom:15px}
.about h2{font-size:39px;line-height:1.13;color:var(--navy);margin:0 0 19px;letter-spacing:-.4px}
.about-copy p{font-size:15px;line-height:1.7;color:#4e6886;margin:0 0 13px}
.about-copy ul{list-style:none;margin:20px 0 0;padding:0}
.about-copy li{position:relative;padding-left:27px;font-size:15px;line-height:1.6;margin:9px 0;color:#365371}
.about-copy li:before{content:"✓";position:absolute;left:0;top:0;color:var(--orange);font-weight:900}

.projects{padding:82px 34px;background:#fff}
.project-grid{width:100%;max-width:none;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.project-item{border-top:4px solid var(--navy);background:#f8fafc;padding:27px 24px 24px;min-height:210px}
.project-item span{font-size:13px;color:var(--orange);font-weight:800;letter-spacing:1px}
.project-item h3{font-size:18px;color:var(--navy);margin:13px 0 9px}
.project-item p{font-size:13px;line-height:1.6;color:#5b728d;margin:0}

.bim{background:var(--navy);padding:82px 34px;color:#fff}
.bim-inner{width:100%;max-width:none;margin:0;min-height:480px;display:grid;grid-template-columns:48% 52%;align-items:center}
.bim-copy{padding:30px 55px 30px 0}
.eyebrow.light{color:#fff}
.bim h2{font-size:48px;line-height:1.06;margin:18px 0 20px;color:#fff;letter-spacing:-.6px}
.bim-copy p{font-size:16px;line-height:1.7;color:#fff;max-width:570px;margin:0 0 28px}
.bim .btn{font-size:13px}
.bim-visual{height:420px;overflow:hidden;border-left:1px solid rgba(255,255,255,.25);padding-left:34px;display:flex;align-items:center}
.bim-visual img{width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}

.contact{padding:82px 34px;background:#f7f9fc}
.contact-inner{width:100%;max-width:none;margin:0;display:grid;grid-template-columns:48% 52%;gap:60px;align-items:center}
.contact h2{font-size:42px;line-height:1.12;color:var(--navy);margin:15px 0}
.contact p{font-size:16px;line-height:1.7;color:#58708d;max-width:580px}
.contact-details{display:grid;gap:14px}
.contact-details>a,.contact-details>div{background:#fff;border:1px solid var(--line);border-radius:6px;padding:17px 20px;text-decoration:none;display:flex;flex-direction:column;box-shadow:0 5px 16px rgba(8,38,77,.05)}
.contact-details strong{color:var(--orange);font-size:12px;letter-spacing:.8px;text-transform:uppercase}
.contact-details span{color:var(--navy);font-size:15px;margin-top:3px}

footer{background:var(--navy);color:#fff}
.footer-inner{width:100%;max-width:none;margin:0;min-height:135px;padding:24px 0;display:flex;align-items:center;gap:18px}
.footer-inner img{width:155px;height:auto;background:#fff;padding:8px}
.footer-brand{display:flex;flex-direction:column}
.footer-brand strong{font-size:16px;letter-spacing:1px}.footer-brand span{font-size:11px;letter-spacing:1.2px;color:#d9e4f1;margin-top:3px}
.copyright{margin-left:auto;font-size:12px;color:#d9e4f1}

@media(max-width:1150px){
  :root{--header-h:86px}
  .header-inner{padding:0 24px}.brand{width:300px}.nav-links{gap:24px}
  .hero-inner{grid-template-columns:1fr 1fr}.hero-copy{padding-left:40px}.hero h1{font-size:45px}
  .service-grid,.project-grid{grid-template-columns:repeat(2,1fr);max-width:850px}
  .stats{margin-left:24px;margin-right:24px}.stat{min-width:0}
  .about-inner,.bim-inner,.contact-inner{max-width:950px;gap:38px}
}

@media(max-width:850px){
  :root{--header-h:76px}
  .header-inner{height:76px;padding:0 18px}.brand{width:245px}.menu-toggle{display:flex;margin-left:auto;width:42px;height:42px;border:0;background:transparent;flex-direction:column;justify-content:center;gap:5px;cursor:pointer}.menu-toggle span{width:24px;height:2px;background:var(--navy);display:block;margin:auto}
  .nav-links{display:none;position:absolute;left:0;right:0;top:76px;height:auto;margin:0;padding:8px 20px;background:#fff;box-shadow:0 10px 22px rgba(0,0,0,.12);flex-direction:column;gap:0}.nav-links.open{display:flex}.nav-links a{padding:15px 0;border-bottom:1px solid #edf1f5}.nav-links a:after{display:none}
  .hero-inner{grid-template-columns:1fr}.hero-copy{padding:58px 28px 48px}.hero h1{font-size:42px}.hero-copy>p{font-size:15px}.hero-visual{height:350px;min-height:0}
  .services,.about,.projects,.bim,.contact{padding:65px 22px}.section-heading h2{font-size:32px}
  .stats{margin:0 18px 60px;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:12px}.stats>i{display:none}.stat{padding:12px}.stat img{width:52px;height:52px}
  .about-inner,.bim-inner,.contact-inner{grid-template-columns:1fr}.about-profile{min-height:390px;padding-bottom:108px}.profile-logo{height:275px}.profile-logo img{width:min(330px,100%)}.bim-visual{height:350px;border-left:0;border-top:1px solid rgba(255,255,255,.25);padding:28px 0 0}.bim-copy{padding:0}.bim h2{font-size:40px}
  .contact-details{margin-top:8px}.footer-inner{padding:24px;flex-wrap:wrap}.copyright{width:100%;margin-left:0;margin-top:10px}
  /* Keep the existing mobile layout unchanged; quick-contact rail is desktop only. */
  .floating-contact{display:none}
}

@media(max-width:560px){
  .brand{width:220px}.hero-copy{padding:48px 20px 40px}.hero h1{font-size:33px;letter-spacing:-.4px}.eyebrow{font-size:11px}.hero-visual{height:270px}
  .buttons{flex-direction:column}.btn{width:100%}
  .services,.about,.projects,.bim,.contact{padding:52px 16px}.service-grid,.project-grid{grid-template-columns:1fr}.service-card{min-height:260px}
  .stats{grid-template-columns:1fr;margin:0 12px 45px;border-radius:0}.stat{justify-content:flex-start;padding:12px 18px}.stats .safe{padding-bottom:18px}
  .about-profile{min-height:350px;padding:16px 14px 96px}.profile-logo{height:235px}.profile-logo img{width:245px}.name-box{left:10%;right:10%;bottom:12px;padding:12px 12px;min-height:78px}
  .about h2,.contact h2{font-size:31px}.bim h2{font-size:34px}.bim-visual{height:270px}
  .footer-inner{justify-content:center;text-align:center}.footer-brand{align-items:center}.footer-inner img{width:135px}.copyright{text-align:center}
}

/* Desktop full-width / zoom fix */
@media(min-width:1151px){
  .header-inner,.hero-inner,.service-grid,.about-inner,.project-grid,.bim-inner,.contact-inner,.footer-inner{
    width:100%;max-width:none;
  }
  .stats{
    width:calc(100% - 68px);max-width:none;margin-left:34px;margin-right:34px;
  }
  .hero-copy{
    padding-left:clamp(42px,4.8vw,90px);
    padding-right:clamp(42px,4vw,80px);
  }
  .service-grid,.about-inner,.project-grid,.bim-inner,.contact-inner,.footer-inner{
    padding-left:34px;padding-right:34px;
  }
}


/* Clickable Office map link */
.contact-details>a.office-address{
  cursor:pointer;
}

/* Office map link - mobile touch support */
.contact-details>a.office-address{
  display:flex;
  width:100%;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
