/*
Theme Name: CM Builders
Description: Custom theme for CM Builders - Construction Materials, Building Construction & Real Estate
Author: CM Builders
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:#F0F2F5;
  --dark:#1A3636;
  --accent:#40E0D0;
  --gold:#D9962B;
  --cream:#F5EEE0;
  --text:#22302d;
}

*{box-sizing:border-box}
body{
  margin:0;
  background-color:var(--bg);
  font-family:'Inter',sans-serif;
  color:var(--text);
  line-height:1.65;
}
h1,h2,h3,h4,h5,h6{
  font-family:'Space Grotesk',sans-serif;
  color:var(--dark);
  line-height:1.2;
  margin-top:0;
}
a{ color:var(--dark); text-decoration:none; }
a:hover{ color:var(--accent); }
.accent-word{ color:var(--accent); }
.accent-word-soft{ color:#a9ece5; font-style:italic; font-weight:500; }
.hero-title{
  font-size:58px;
  line-height:1.15;
}
@media (max-width:600px){ .hero-title{ font-size:38px; } }
img{ max-width:100%; height:auto; display:block; }

/* ===== Header ===== */
.site-header{
  background-color:var(--dark);
  position:sticky;
  top:0;
  z-index:200;
  box-shadow:0 2px 14px rgba(0,0,0,.18);
}
.site-header.header-overlay{
  position:absolute;
  top:0; left:0; right:0;
  background:linear-gradient(to bottom, rgba(10,20,20,.65), rgba(10,20,20,0));
  box-shadow:none;
}
.header-inner{
  max-width:1240px;
  margin:0 auto;
  padding:22px 24px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  border-bottom:1px solid rgba(255,255,255,.2);
}
.header-overlay .header-inner{ border-bottom-color:rgba(255,255,255,.3); }
.site-logo{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:24px;
  color:#ffffff !important;
  letter-spacing:0.5px;
}
.site-nav ul{
  list-style:none;
  display:flex;
  gap:28px;
  margin:0;
  padding:0;
  flex-wrap:wrap;
}
.site-nav a{
  color:#e7ecea !important;
  font-weight:600;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1px;
  position:relative;
  padding-bottom:6px;
  display:inline-block;
}
.site-nav a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background-color:var(--accent);
  transition:width .25s ease;
}
.site-nav a:hover::after,
.site-nav .current-menu-item a::after{ width:100%; }
.site-nav a:hover{ color:var(--accent) !important; }
.site-nav .current-menu-item a{ color:var(--accent) !important; }
.header-cta{
  background-color:var(--gold);
  color:#ffffff !important;
  padding:10px 20px;
  border-radius:6px;
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
}
.header-cta:hover{ background-color:#c2831f; color:#ffffff !important; }
.menu-toggle{ display:none; }

@media (max-width:820px){
  .header-inner{ flex-direction:column; align-items:flex-start; }
  .site-nav ul{ gap:16px; }
}

/* ===== Content wrapper ===== */
.site-main{ min-height:60vh; }
.container{ max-width:1200px; margin:0 auto; padding:0 24px; }

/* Gutenberg alignment helpers */
.alignwide{ max-width:1200px; margin-left:auto; margin-right:auto; }
.alignfull{ width:100%; max-width:100%; }
.wp-block-group{ padding-left:24px; padding-right:24px; }
.wp-block-cover{ margin:0; }

/* Hero (left aligned) */
.hero-cover .wp-block-cover__inner-container{
  max-width:1240px;
  margin:0 auto;
  padding:0 40px;
  width:100%;
  text-align:left;
  align-items:flex-start !important;
}
.hero-eyebrow{
  font-size:13px;
  letter-spacing:3px;
  color:var(--accent);
  font-weight:600;
  margin-bottom:14px;
}
.hero-title-left{
  font-size:52px;
  line-height:1.18;
  max-width:680px;
}
@media (max-width:600px){ .hero-title-left{ font-size:32px; } }
.hero-sub{ font-size:18px; max-width:560px; }
.hero-btns{ display:flex; align-items:center; gap:26px; margin-top:28px; flex-wrap:wrap; }
.btn-solid{
  background-color:var(--gold);
  color:#ffffff !important;
  padding:15px 30px;
  border-radius:50px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.5px;
}
.btn-solid:hover{ background-color:#c2831f; }
.btn-link{
  color:#ffffff !important;
  font-weight:600;
  font-size:14px;
  letter-spacing:.5px;
  border-bottom:2px solid var(--accent);
  padding-bottom:4px;
}
.btn-link:hover{ color:var(--accent) !important; }

/* Floating stats scoop - overlaps hero bottom */
.stats-scoop{
  background-color:#ffffff;
  max-width:1080px;
  margin:-55px auto 0;
  padding:36px 40px;
  border-radius:24px;
  box-shadow:0 25px 60px rgba(26,54,54,.22);
  position:relative;
  z-index:20;
  display:flex;
  justify-content:space-around;
  flex-wrap:wrap;
  gap:20px;
}
.stats-scoop .stat-item{ text-align:center; }
.stats-scoop .stat-num{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:30px; color:var(--gold); }
.stats-scoop .stat-label{ font-size:13px; letter-spacing:1px; text-transform:uppercase; color:#6c7d7a; }
@media (max-width:700px){ .stats-scoop{ margin:-35px 16px 0; padding:24px; } }

/* Section heading pattern - used for About, Services, and any future section */
.section-heading,
.about-heading{
  text-align:center;
  margin:0 auto 48px;
  max-width:680px;
}
.section-heading .hero-eyebrow,
.about-heading .hero-eyebrow{ justify-content:center; }
.section-heading h2,
.about-heading h2{
  font-size:36px;
  font-weight:700;
  letter-spacing:-.5px;
}

/* About section */
.about-section{ padding:90px 24px 40px; max-width:1200px; margin:0 auto; }
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:820px){ .about-grid{ grid-template-columns:1fr; gap:32px; } }
.about-collage{ position:relative; padding:10px 30px 40px 0; }
.about-collage::before{
  content:'';
  position:absolute;
  top:26px; left:26px;
  width:78%;
  height:78%;
  border:3px solid var(--gold);
  border-radius:16px;
  z-index:0;
}
.about-collage .img-back,
.about-collage .img-front{
  position:relative;
  background:#ffffff;
  padding:10px;
  border-radius:16px;
  box-shadow:0 22px 45px rgba(26,54,54,.28);
}
.about-collage .img-back img,
.about-collage .img-front img{
  border-radius:10px;
  display:block;
  width:100%;
}
.about-collage .img-back{ width:76%; z-index:1; }
.about-collage .img-front{
  width:56%;
  position:absolute;
  right:0;
  bottom:0;
  z-index:2;
}
.about-badge{
  position:absolute;
  top:-18px;
  left:0;
  background-color:var(--gold);
  color:#ffffff;
  padding:10px 20px;
  border-radius:50px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.5px;
  box-shadow:0 10px 25px rgba(217,150,43,.4);
  z-index:3;
}

.about-intro{
  font-size:18px;
  border-left:3px solid var(--gold);
  padding-left:18px;
  margin:0 0 20px;
  color:#3a4644;
}
.about-highlights{ list-style:none; padding:0; margin:24px 0 0; display:flex; flex-direction:column; gap:14px; }
.about-highlights li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  background:#ffffff;
  padding:14px 18px;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(26,54,54,.08);
}
.about-highlights .check-badge{
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:50%;
  background-color:var(--gold);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
}
.about-highlights li{ background-color:#ffffff; }
.about-highlights strong{ display:block; color:var(--dark); font-family:'Space Grotesk',sans-serif; }
.about-highlights span.desc{ font-size:14px; color:#5c6b68; }

/* Services section - image showcase cards */
.services-section{ padding:30px 24px 100px; max-width:1200px; margin:0 auto; }
.services-intro{ max-width:600px; margin:14px auto 0; text-align:center; color:#5c6b68; }
.services-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:26px;
  margin-top:50px;
}
.service-card:nth-child(-n+3){ grid-column:span 2; }
.service-card:nth-child(n+4){ grid-column:span 3; }
@media (max-width:900px){
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .service-card:nth-child(-n+3),
  .service-card:nth-child(n+4){ grid-column:span 1; }
}
@media (max-width:560px){
  .services-grid{ grid-template-columns:1fr; }
}
.service-card{
  background-color:#ffffff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(26,54,54,.1);
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:0 22px 40px rgba(26,54,54,.18); }
.service-card .card-img{ aspect-ratio:16/10; overflow:hidden; }
.service-card .card-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s ease; }
.service-card:hover .card-img img{ transform:scale(1.06); }
.service-card .card-body{ padding:22px 22px 26px; border-top:3px solid var(--gold); }
.service-card .card-body h3{ font-size:18px; margin:0 0 6px; }
.service-card .card-body p{ font-size:14px; color:#5c6b68; margin:0 0 14px; }
.service-card .card-link{
  font-size:13px;
  font-weight:700;
  color:var(--dark) !important;
  border-bottom:2px solid var(--gold);
  padding-bottom:2px;
}
.service-card .card-link:hover{ color:var(--gold) !important; }
.services-cta{ text-align:center; margin-top:54px; }
.services-cta .btn-solid{ display:inline-block; }

/* Buttons */
.wp-block-button__link,.wp-element-button{
  background-color:var(--accent);
  color:#0c2422 !important;
  border-radius:6px;
  padding:14px 28px;
  font-weight:600;
  display:inline-block;
}
.wp-block-button__link:hover{ background-color:#33c9bc; }
.wp-block-button.is-style-outline .wp-block-button__link{
  background-color:transparent;
  border:2px solid #ffffff;
  color:#ffffff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover{
  background-color:var(--accent);
  border-color:var(--accent);
  color:#0c2422 !important;
}

/* Media & text block spacing */
.wp-block-media-text{ padding:56px 0; gap:40px; }
.wp-block-media-text .wp-block-media-text__content{ padding:0 24px; }

/* ===== Footer ===== */
.site-footer{
  background-color:var(--dark);
  color:#cfe0dd;
  margin-top:40px;
}
.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:56px 24px 24px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}
.footer-col h3{ color:#ffffff; font-size:18px; margin-bottom:14px; }
.footer-col p,.footer-col li{ color:#cfe0dd; font-size:15px; }
.footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-col ul li{ margin-bottom:8px; }
.footer-col a{ color:#cfe0dd !important; }
.footer-col a:hover{ color:var(--accent) !important; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  text-align:center;
  padding:18px 24px;
  font-size:13px;
  color:#9fb5b1;
}
@media (max-width:820px){
  .footer-inner{ grid-template-columns:1fr; }
}
