/* =========================================================
   Rosendo's Concrete & Design — styles.css (CLEAN + MOBILE)
   Replace your entire styles.css with this file
========================================================= */

/* ---------- Base / Safety ---------- */
*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; overflow-x: hidden; }
img{ max-width: 100%; height: auto; display: block; }

/* ---------- Link preview (if used anywhere) ---------- */
.link-preview{
  display:flex;
  max-width:720px;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* =========================================================
   HEADER / NAV (ALL PAGES)
========================================================= */
.site-header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav{
  max-width:1100px;
  margin:0 auto;
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.nav a{
  text-decoration:none;
  color:#2b2b2b;
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
  transition:.2s;
}

.nav a:hover{
  background:rgba(0,0,0,.06);
}

/* Optional: if you add class="phone" to your tel link */
.phone{
  margin-left:auto;
  background:#4b2bbf;
  color:#fff !important;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
}
.phone:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* =========================================================
   MAIN CONTENT WRAPPER (About/Projects/Reviews/Contact pages)
========================================================= */
.content{
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

/* Used on many pages */
.page-title{
  text-align:center;
  margin: 60px 0 80px;
  font-size: 48px;
  font-weight: 800;
}

/* About page thick paragraph */
.body-thick{
  font-family:"Times New Roman", Times, serif;
  font-size:18px;
  font-weight:bold;
  line-height:1.6;
  text-align:center;
  max-width:900px;
  margin:40px auto;
}

/* Hero image used on About/Reviews */
.hero-img{
  width:100%;
  max-width:700px;
  border-radius:12px;
  margin:40px auto;
}

/* Button used across site */
.btn{
  display:inline-block;
  margin-top:30px;
  padding:14px 28px;
  background:#000;
  color:#fff;
  text-decoration:none;
  font-size:16px;
  border-radius:8px;
  transition:background .2s ease;
}
.btn:hover{ background:#333; }

/* Reviews page button areas */
.review-buttons{
  text-align:center;
  margin-bottom:5px;
}
.estimate-button{
  text-align:center;
}

/* =========================================================
   PROJECTS PAGE
========================================================= */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
  padding:20px;
}

.card{
  overflow:hidden;
  border-radius:14px;
  cursor:pointer;
}

.card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

/* Lightbox (Projects + Services) */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.lightbox img{
  max-width:90vw;
  max-height:90vh;
  border-radius:12px;
}

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-wrap{
  padding:60px 20px;
}

.contact-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  align-items: stretch;
}

/* Map section */
.map-box{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.1);
  background:#f2f2f2;
}

.map{
  flex:1;
  width:100%;
  border:none;
}

.map-title{
  position:absolute;
  top:0; left:0; right:0;
  padding:14px 18px;
  background:rgba(0,0,0,.6);
  color:#fff;
  font-weight:800;
  letter-spacing:1px;
  font-size:14px;
  text-align:center;
  z-index:10;
}

/* Form section */
.contact_form{ padding-top:6px; }

.contact-title{
  font-size:36px;
  font-weight:800;
  margin:0;
  letter-spacing:1px;
}

.contact-line{
  width:70px;
  height:3px;
  background:rgba(0,0,0,.2);
  margin:14px 0 24px;
}

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

.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}

.form label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
}

.form input,
.form select,
.form textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:12px;
  font-size:15px;
  outline:none;
}

.form textarea{
  min-height:180px;
  resize:vertical;
}

.send-btn{
  margin-top:10px;
  width:100%;
  padding:16px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg, #000, #222);
  color:#fff;
  font-weight:800;
  letter-spacing:2px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.send-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

/* =========================================================
   SERVICES PAGE
========================================================= */





.services-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 140px; /* 👈 adds space before footer */
}


.service{
  padding:28px 0 46px;
  border-top:1px solid rgba(0,0,0,.08);
}
.service:first-of-type{ border-top:none; }

.service-head h2{
  margin:0;
  font-size:28px;
  font-weight:800;
}

.service-head p{
  margin:10px 0 22px;
  max-width:720px;
  line-height:1.5;
  font-weight: bold;
}

.service-grid{
  display:grid;
  gap:18px;
}

/* Thumbnails */
.thumbs{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

.thumbs img,
.feature img{
  width:100%;
  display:block;
  object-fit:cover;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.thumbs img:hover,
.feature img:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.15);
}

/* Heights */
.thumbs img{ height:370px; }
.feature img{
  height:420px;
  margin-bottom:18px;
}

/* =========================================================
   FOOTER (ALL PAGES)
========================================================= */
.site-footer{
  background:transparent;
  color:#000;
  padding:50px 20px;
  margin-top:60px;
}

.footer-content{
  max-width:1100px;
  margin:auto;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
}

.site-footer h3{
  margin-bottom:10px;
  font-size:20px;
  color:#000;
}

.site-footer h4{
  margin-bottom:12px;
  font-size:15px;
  color:#000;
}

.site-footer p{
  font-size:14px;
  line-height:1.5;
  color:#000;
}

.site-footer a{
  display:block;
  color:#000;
  text-decoration:none;
  font-size:14px;
  margin-bottom:8px;
  transition: color .2s ease;
}
.site-footer a:hover{ color:#555; }

.footer-content{
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* force 4 columns */
  gap: 20px;
}









.footer-bottom{
  text-align: center;
  margin-top: 60px;
  font-size: 13px;
  color: #000;
}
























/* =========================================================
   MOBILE RESPONSIVE (FINAL)
========================================================= */
@media (max-width: 900px){

  /* NAV: wrap */
  .nav{
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    padding:12px 14px;
    text-align:center;
  }
  .nav a, .nav strong{
    font-size:14px;
    white-space:nowrap;
  }
  .phone{ margin-left:0; }

  /* Content spacing */
  .content{
    margin:40px auto;
    padding:0 14px;
  }

  .page-title{
    font-size:40px;
    line-height:1.1;
    margin:40px 0;
  }

  /* Projects gallery */
  .gallery{
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
    padding:14px;
  }

  /* Contact stack */
  .contact-grid{
    grid-template-columns: 1fr;
    gap:22px;
  }
  .map-box{ height:360px; }
  .contact-title{ font-size:28px; }
  .two{ grid-template-columns: 1fr; }

  /* Reviews buttons stack */
  .review-buttons{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    padding:0 14px;
  }
  .review-buttons .btn,
  .estimate-button .btn{
    width:100%;
    max-width:360px;
    text-align:center;
  }

  /* Services adjustments */
  .services-page{
    padding-left:14px;
    padding-right:14px;
  }
  .thumbs{
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
  }
  .thumbs img{ height:300px; }
  .feature img{ height:300px; }

  /* Footer stack */
  .footer-content{
    grid-template-columns: 1fr;
    text-align:center;
    gap:18px;
    padding:0 14px;
  }

  /* Hero image spacing */
  .hero-img{
    width: calc(100% - 28px);
    margin: 14px auto;
  }
}

@media (max-width: 520px){

  .page-title{ font-size:34px; }

  .gallery{ grid-template-columns: 1fr; }

  .thumbs{ grid-template-columns: 1fr; }
  .thumbs img,
  .feature img{ height:260px; }

  /* Helps your inline 56px titles (About/Reviews) */
  .content > div{ font-size:36px !important; }
}
