/*
  M.M New Project Construction & Civil — Website Theme
  Goal: Match the visual tone of Constra 1.0.0 (industrial / safety-yellow / bold headings)
  while keeping existing MM content + project images.
*/

@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,800,900|Open+Sans:400,400i,600,700,800&display=swap');

:root{
  --primary:#ffb600;        /* Constra yellow */
  --dark:#23282d;           /* Constra header/nav */
  --dark2:#0d0d0d;          /* Footer */
  --light:#ebebeb;          /* Top bar */
  --bg:#ffffff;

  --text:#555;
  --heading:#212121;
  --muted:#707070;
  --border:#dadada;

  --shadow: 0 10px 30px rgba(0,0,0,.12);

  /* script.js expects these */
  --orange: var(--primary);
}

*{box-sizing:border-box}
html,body{padding:0;margin:0}

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size:15px;
  line-height:26px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased !important;
}

a{color:inherit; text-decoration:none; transition: .2s ease}
a:hover{color:#000}
a[href^=tel]{color:inherit; text-decoration:none}

img{max-width:100%; height:auto}

/* Container (bootstrap-like) */
.container{
  width:100%;
  max-width:1140px;
  margin:0 auto;
  padding:0 18px;
}

/* Headings */
h1,h2,h3,h4,h5,h6{
  font-family:'Montserrat', sans-serif;
  color: var(--heading);
  font-weight:700;
  letter-spacing:-.2px;
  margin:0;
}
h2{
  font-size:34px;
  line-height:42px;
  text-transform: uppercase;
  letter-spacing:-1px;
}
h3{
  font-size:24px;
  line-height:32px;
  text-transform: uppercase;
  letter-spacing:-.5px;
  margin-bottom:16px;
}
h4{
  font-size:18px;
  line-height:26px;
  text-transform: uppercase;
}

/* Top bar */
.top-bar{
  background: var(--light);
  padding:8px 0;
}
.top-bar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.top-info{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight:600;
  flex-wrap:wrap;
}
.top-info .icon{
  width:18px;
  height:18px;
  border-radius:4px;
  background: var(--primary);
  display:inline-block;
}

/* Small utility icons (used in contact hint) */
.icon{
  display:inline-block;
  width:18px;
  height:18px;
  border-radius:999px;
  position:relative;
  flex:0 0 auto;
}
.icon.call{background:#2b6cb0}
.icon.wa{background:#22c55e}
.icon.call::after{
  content:"";
  position:absolute;
  inset:4px 5px 4px 5px;
  border:2px solid rgba(255,255,255,.95);
  border-top-color:transparent;
  border-left-color:transparent;
  border-radius: 2px 10px 10px 2px;
  transform: rotate(45deg);
}
.icon.wa::after{
  content:"";
  position:absolute;
  left:4px; top:4px; right:4px; bottom:4px;
  border:2px solid rgba(255,255,255,.95);
  border-radius:999px;
}
.top-social{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.top-social a{
  color:#2c2c2c;
  font-weight:700;
  font-size:13px;
  padding:6px 10px;
}
.top-social a:hover{color:#333}

/* Header */
.header{
  background:#fff;
  box-shadow: 0 3px 3px rgba(0,0,0,.1);
}

.logo-area{
  /* Grid keeps the right-side info aligned, even when the company name wraps */
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:18px;
  padding:22px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 0; /* allow text wrapping in grid */
}

.logo{
  width:74px;
  height:74px;
  object-fit:contain;
}

.brandText{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.brandText h1{
  font-size:18px;
  line-height:24px;
  text-transform: uppercase;
  letter-spacing:-.3px;
}
.brandText p{
  margin:4px 0 0;
  color: var(--muted);
  font-weight:600;
  font-size:13px;
}

.header-right{
  display:flex;
  align-items:center;
  gap:14px;
  justify-self:end;
}

.top-info-box{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:22px;
}

.top-info-box li{
  display:flex;
  flex-direction:column;
  gap:2px;
  justify-content:center;
  min-height:52px;
}

.info-box-title{
  text-transform: uppercase;
  font-size:12px;
  font-weight:800;
  color: var(--muted);
  letter-spacing:.2px;
  white-space:nowrap;
}

.info-box-subtitle{
  font-family:'Montserrat', sans-serif;
  font-weight:800;
  color: var(--heading);
  font-size:14px;
  white-space:nowrap;
}

.header-get-a-quote{margin-left:8px}

.header-get-a-quote a{
  /* Visually align the CTA with the info boxes */
  padding:12px 18px;
}

/* Navigation */
.site-nav{
  background: var(--dark);
}
.nav{
  display:flex;
  align-items:center;
  gap:28px;
  padding:0;
}
.nav a{
  color:#fff;
  font-weight:800;
  text-transform: uppercase;
  letter-spacing:.2px;
  padding:16px 0;
  position:relative;
}
.nav a:hover{color: var(--primary)}

.nav a.cta{
  background: var(--primary);
  color:#000;
  padding:10px 14px;
  border-radius:3px;
  margin-left:auto;
}
.nav a.cta:hover{background:#000; color:#fff}

/* Mobile menu */
.menuBtn{
  display:none;
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  border-radius:3px;
  padding:10px 12px;
  font-size:18px;
  cursor:pointer;
}

.mobileNav{
  display:none;
  background: var(--dark);
  padding:10px 0;
}

.mobileNav .container{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.mobileNav a{
  color:#fff;
  font-weight:800;
  text-transform: uppercase;
  font-size:13px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:3px;
}
.mobileNav a:hover{border-color: var(--primary); color: var(--primary)}

/* Buttons (Constra-like) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:3px;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing:.2px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}

.btn.primary,
.btn.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
  color:#fff;
}

.btn.primary:hover,
.btn.btn-primary:hover{
  background:#000;
  border-color:#000;
  color:#fff;
}

.btn.border{
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color:#fff;
}
.btn.border:hover{
  background:#fff;
  border-color:#fff;
  color:#000;
}

/* Hero (slider background like Constra) */
.hero{
  position:relative;
  min-height:640px;
  overflow:hidden;
}

.hero .slideshow{
  position:absolute;
  inset:0;
}

.slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity .8s ease;
}
.slide.active{opacity:1}

/* Dark mask to match Constra slider contrast */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  /* Reduced so project photos stay visible now that the hero box is below the slider */
  background: rgba(0,0,0,.18);
  pointer-events:none;
}

/* Hero intro section (the old hero box now lives here) */
.section.heroIntro{
  /* Make this section follow the same vertical rhythm as the rest of the page (e.g. About Us) */
  padding:70px 0;
}

.hero-box{
  /* Match the page layout like About Us: full container width, left aligned */
  max-width:none;
  width:100%;
  background:#fff;
  border-left: 3px solid var(--primary);
  padding:26px 24px;
  box-shadow: none;
  margin:0;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:12px;
  color: var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
}

.lead{
  margin:12px 0 0;
  color:#555;
}

.quick{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.quick .span{grid-column: 1 / -1}

.card{
  background:#fff;
  border:1px solid var(--border);
  padding:16px;
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}

.card .label{
  text-transform: uppercase;
  font-family:'Montserrat', sans-serif;
  font-weight:900;
  font-size:12px;
  color: var(--muted);
  margin-bottom:6px;
}

.heroButtons{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

/* Slider controls */
.dots{
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  z-index:3;
}

.dotsInner{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.45);
  cursor:pointer;
}
.dot.active{background: var(--primary); border-color: rgba(255,182,0,.95)}

.slideOverlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:14px 0 42px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65));
  color:#fff;
}

.overlayTitle{
  font-family:'Montserrat', sans-serif;
  font-weight:900;
  text-transform: uppercase;
  letter-spacing:.3px;
}

.overlaySub{
  opacity:.85;
  font-size:12px;
  margin-top:4px;
}

/* Sections */
.section{
  padding:70px 0;
}

.section.alt{
  background:#f5f5f5;
}

.sectionTitle{
  border-left: 3px solid var(--primary);
  padding-left:12px;
  margin-bottom:18px;
}

.section p{margin:0 0 12px}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:18px;
}

.grid3 h4{margin:0 0 10px}

.grid3 ul{margin:0; padding-left:18px; color: var(--text)}
.grid3 li{margin:6px 0}

.areas{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.areas li{
  background:#fff;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:3px;
  font-weight:700;
  color: var(--muted);
}

/* Contact */
.contactGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  /* Stretch both cards to the same height so their bottoms align */
  align-items:stretch;
}

/* Ensure the card containers can stretch to match the grid row height */
.contactGrid > .card{height:100%}

.form{display:grid; gap:12px}

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:3px;
  border:1px solid var(--border);
  background:#fff;
  color:#111;
  outline:none;
}

input:focus, textarea:focus{border-color: var(--primary)}

textarea{min-height:120px; resize:vertical}

.formMsg{margin-top:6px; font-size:13px; color: var(--muted)}

.map{margin-top:12px; border-radius:3px; overflow:hidden; border:1px solid var(--border)}

.contactHint{margin-top:14px; padding-top:12px; border-top:1px solid rgba(0,0,0,.08)}
.hintRow{display:flex; gap:10px; align-items:center; color: var(--muted); font-size:13px; margin-top:8px}

/* Footer */
.footer{margin-top:0}

.footer-main{
  background: var(--dark2);
  color:#999;
  padding:60px 0;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap:26px;
}

.footer h4{
  color:#fff;
  margin:0 0 14px;
}

.footer p{margin:0 0 10px}

.footer a{color:#999}
.footer a:hover{color: var(--primary)}

.footer-links{list-style:none; padding:0; margin:0; display:grid; gap:10px}

.footer-logo{
  width:70px;
  height:70px;
  object-fit:contain;
  display:block;
  margin-bottom:10px;
}

.copyright{
  background:#000;
  color:#777;
  padding:16px 0;
  font-size:13px;
}

/* Responsive */
@media (max-width: 1020px){
  .top-info-box{display:none}
  .menuBtn{display:inline-flex}
  .nav{display:none}
  .hero{min-height:720px}
  .footer-grid{grid-template-columns: 1fr}
}

@media (max-width: 820px){
  h2{font-size:28px; line-height:36px}
  .logo-area{grid-template-columns: 1fr auto}
  .header-right{margin-left:0}
  .quick{grid-template-columns: 1fr}
  .grid3{grid-template-columns: 1fr}
  .contactGrid{grid-template-columns: 1fr}
}
