/* =========================================================
   RESET & BASE
   ========================================================= */
*{box-sizing:border-box;margin:0;padding:0;}
html,body{width:100%;overflow-x:hidden;}
body{
  font-family: Montserrat, Arial, sans-serif;
  background:#0E223A;
  color:#FFFFFF;
  line-height:1.6;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{line-height:1.25;}

/* =========================================================
   LAYOUT
   ========================================================= */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 1.25rem;
}
.section{
  padding:4rem 0;
  background:#FFFFFF;
  color:#0E223A;
}
.section-alt{
  padding:4rem 0;
  background:#F4F7FA;
  color:#0E223A;
}
.section-header{
  max-width:900px;
  margin:0 auto 2rem auto;
  text-align:center;
}
.section-header p{opacity:.85;}

.text-link{
  color:#1B5FA7;
  font-weight:800;
}
.text-link:hover{text-decoration:underline;}

/* =========================================================
   HEADER / NAV (DARK)
   ========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#0E223A;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 0;
}
.logo{
  display:flex;
  align-items:center;
  gap:.75rem;
}
img.site-logo{
  height:44px;     /* desktop */
  width:auto;
  max-width:none;
}
.logo-name{font-weight:900;display:block;}
.logo-tagline{font-size:.82rem;opacity:.82;display:block;}

.header-contact{
  display:flex;
  align-items:center;
  gap:1rem;
}
.header-phone{font-weight:800;}
.header-cta-btn{
  background:#1B5FA7;
  padding:.55rem 1rem;
  border-radius:10px;
  font-weight:900;
}
.header-cta-btn:hover{filter:brightness(1.06);}

.site-nav{border-top:1px solid rgba(255,255,255,.14);}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-links{
  list-style:none;
  display:flex;
  gap:1.25rem;
}
.nav-links a{
  padding:.85rem 0;
  font-weight:700;
}
.nav-links a.active{
  border-bottom:2px solid #5FB3F3;
}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:.9rem 0;
}
.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:#fff;
  margin:5px 0;
}

/* =========================================================
   HERO (DARK ON ALL PAGES)
   ========================================================= */
.page-hero{
  background:#0E223A;
  padding:3.5rem 0;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.page-hero-inner{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:2rem;
  align-items:center;
}
.page-hero-text p{opacity:.9;margin-top:.75rem;}
.page-hero-photo{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 14px 34px rgba(0,0,0,.35);
}

.hero-actions{
  display:flex;
  gap:1rem;
  margin-top:1.25rem;
  flex-wrap:wrap;
}
.hero-badges{
  list-style:none;
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top:1.25rem;
  padding-left:0;
}
.hero-badges li{
  background:rgba(255,255,255,.14);
  padding:.35rem .85rem;
  border-radius:999px;
  font-size:.85rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-block;
  padding:.65rem 1.15rem;
  border-radius:10px;
  font-weight:900;
}
.btn.primary{background:#1B5FA7;color:#fff;}
.btn.primary:hover{filter:brightness(1.06);}
.btn.ghost{
  border:1px solid rgba(255,255,255,.6);
  color:#fff;
}
.btn.ghost:hover{border-color:rgba(255,255,255,.9);}
.full-width{width:100%;text-align:center;}

/* =========================================================
   CARDS / GRID
   ========================================================= */
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
}
.card{
  background:#fff;
  color:#0E223A;
  padding:1.75rem;
  border-radius:14px;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}
.card h3{margin-bottom:.6rem;}
.bullet-list{
  margin-top:1rem;
  padding-left:1.25rem;
}
.bullet-list li{margin-bottom:.45rem;}

/* =========================================================
   CONTACT
   ========================================================= */
.two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}
.contact-form{margin-top:1rem;}
.form-row{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  margin-bottom:1rem;
}
.form-row label{font-weight:900;}
.form-row input,.form-row textarea{
  padding:.85rem .95rem;
  border-radius:12px;
  border:1px solid rgba(14,34,58,.18);
  font:inherit;
  outline:none;
}
.form-row input:focus,.form-row textarea:focus{
  border-color:rgba(27,95,167,.65);
  box-shadow:0 0 0 4px rgba(27,95,167,.14);
}
.contact-sidebar{
  background:#fff;
  color:#0E223A;
  padding:1.75rem;
  border-radius:14px;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}

/* =========================================================
   BEFORE / AFTER SLIDER (LOCKED + WORKING)
   ========================================================= */
.ba-wrapper{
  max-width:900px;
  margin:0 auto;
}

.ba-images{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#000;
  /* Gives the absolute children a height. This is the key. */
  aspect-ratio: 3 / 2;
}

/* Fallback for older browsers */
.ba-images::before{
  content:"";
  display:block;
  padding-top:66.666%;
}

/* Force overlay: both images fill the same box */
.ba-images img,
.ba-images .ba-handle{
  position:absolute;
  inset:0;
}

.ba-before,
.ba-after{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ba-after{
  clip-path: inset(0 50% 0 0);
}

.ba-handle{
  left:50%;
  width:3px;
  background:#fff;
  transform:translateX(-50%);
  z-index:3;
}

.ba-handle::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.ba-slider{
  width:100%;
  margin-top:1rem;
}

.ba-labels{
  display:flex;
  justify-content:space-between;
  margin-top:.5rem;
  font-weight:900;
  color:rgba(14,34,58,.75);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:#0E223A;
  color:#fff;
  padding:2rem 0;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.14);
}
.footer-nap{opacity:.85;font-size:.9rem;}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:900px){
  .page-hero-inner,.two-column,.card-grid{grid-template-columns:1fr;}
  img.site-logo{height:30px;}

  .header-contact{
    flex-direction:column;
    align-items:flex-end;
    gap:.5rem;
  }

  .nav-toggle{display:block;}
  .nav-links{
    display:none;
    flex-direction:column;
    width:100%;
    background:#0E223A;
    padding:.75rem 0;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:.65rem 1.25rem;}

  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:480px){
  .section,.section-alt{padding:3rem 0;}
}
/* === CONTACT AREA LOGO === */
.contact-logo{
  height:150px;
  width:auto;
  margin-bottom:1rem;
}

/* Slightly smaller on phones */
@media (max-width:900px){
  .contact-logo{
    height:60px;
  }
}
/* === FORCE HEADER LOGO SIZE (FINAL) === */
header .logo img.site-logo{
  height: 48px !important;
  width: auto !important;
  max-width: none !important;
}

/* Mobile */
@media (max-width: 900px){
  header .logo img.site-logo{
    height: 36px !important;
  }
}
/* ===== LOGO SIZING (SEPARATE CLASSES - NO CONFLICT) ===== */

/* Header logo (make bigger) */
.header-logo{
  height: 48px;
  width: auto;
  max-width: none;
  display: block;
}

/* Contact-section logo (~75px) */
.contact-logo{
  height: 75px;
  width: auto;
  max-width: none;
  display: block;
  margin-bottom: 1rem;
}

/* Mobile sizes */
@media (max-width: 900px){
  .header-logo{ height: 36px; }
  .contact-logo{ height: 60px; }
}
/* === FORCE HEADER LOGO TO NOT USE FULL FILE SIZE === */
header img.header-logo{
  height: 42px !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}
/* ===== HEADER LOGO (ALL PAGES) ===== */
header img.header-logo{
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
}

/* Mobile */
@media (max-width: 900px){
  header img.header-logo{
    height: 34px;
  }
}
/* =========================================================
   MULTI BEFORE/AFTER SLIDERS (works on any page, any number)
   ========================================================= */

.ba-wrapper{
  max-width: 980px;
  margin: 0 auto;
}

.ba-images{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  aspect-ratio: 3 / 2;
}

/* fallback height */
.ba-images::before{
  content:"";
  display:block;
  padding-top:66.666%;
}

.ba-images img,
.ba-images .ba-handle{
  position:absolute;
  inset:0;
}

.ba-before,
.ba-after{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ba-after{
  clip-path: inset(0 50% 0 0);
}

.ba-handle{
  left:50%;
  width:3px;
  background:#fff;
  transform:translateX(-50%);
  z-index:3;
}

.ba-handle::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.ba-slider{
  width:100%;
  margin-top:1rem;
}

.ba-labels{
  display:flex;
  justify-content:space-between;
  margin-top:.5rem;
  font-weight:900;
  color:rgba(14,34,58,.75);
}

/* Simple project grid for home page */
.project-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.project-tile{
  background:#fff;
  color:#0E223A;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.project-tile img{
  width:100%;
  height:240px;
  object-fit:cover;
}

.project-tile .tile-body{
  padding:1rem;
}

@media (max-width:900px){
  .project-grid{ grid-template-columns: 1fr; }
  .project-tile img{ height:220px; }
}
