/* Masonry Masters LLC — site stylesheet
   Fonts: Archivo Black (display) + Space Grotesk (body), both Google Fonts */

:root{
  --black:#0a0a0a;
  --white:#ffffff;
  --gray-100:#f4f4f2;
  --gray-300:#d9d9d6;
  --gray-600:#6b6b68;
  --max-width:1180px;
  --gap:1.5rem;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Space Grotesk', Arial, sans-serif;
  color:var(--black);
  background:var(--white);
  line-height:1.5;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{
  font-family:'Archivo Black', Arial, sans-serif;
  text-transform:uppercase;
  line-height:1.1;
  margin:0 0 .6em;
  letter-spacing:.01em;
}
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 1.5rem;
}
.visually-hidden{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  font-family:'Archivo Black', Arial, sans-serif;
  text-transform:uppercase;
  font-size:.85rem;
  letter-spacing:.04em;
  padding:.9rem 1.8rem;
  border:2px solid var(--black);
  border-radius:2px;
  background:var(--white);
  color:var(--black);
  cursor:pointer;
  transition:background .15s,color .15s;
}
.btn:hover{background:var(--black);color:var(--white);}
.btn-invert{background:var(--black);color:var(--white);border-color:var(--white);}
.btn-invert:hover{background:var(--white);color:var(--black);}
.btn-row{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem;}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--black);
  color:var(--white);
  border-bottom:1px solid #222;
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:.9rem;padding-bottom:.9rem;
}
.logo{
  display:flex;align-items:center;gap:.6rem;
  font-family:'Archivo Black', Arial, sans-serif;
  font-size:1.05rem;
  color:var(--white);
}
.logo img{height:38px;width:auto;}
.nav-toggle{
  display:none;
  background:none;border:0;color:var(--white);
  font-size:1.6rem;cursor:pointer;line-height:1;
}
.main-nav ul{
  display:flex;gap:1.8rem;list-style:none;margin:0;padding:0;
  font-size:.85rem;text-transform:uppercase;letter-spacing:.03em;
}
.main-nav a{padding:.4rem 0;border-bottom:2px solid transparent;}
.main-nav a:hover, .main-nav a.active{border-bottom-color:var(--white);}
.nav-cta{margin-left:1.8rem;}

@media (max-width:820px){
  .nav-toggle{display:block;}
  .main-nav{
    position:absolute;top:100%;left:0;right:0;
    background:var(--black);
    display:none;
    border-bottom:1px solid #222;
  }
  .main-nav.open{display:block;}
  .main-nav ul{flex-direction:column;gap:0;padding:1rem 1.5rem 1.5rem;}
  .main-nav li{border-top:1px solid #222;}
  .main-nav li:first-child{border-top:0;}
  .main-nav a{display:block;padding:.9rem 0;}
  .nav-cta{margin-left:0;}
}

/* ---------- Hero ---------- */
.hero{
  background:var(--black);color:var(--white);
  padding:5rem 0 4.5rem;
  text-align:center;
}
.hero h1{font-size:clamp(2.2rem,6vw,4rem);margin-bottom:.4em;}
.hero p{font-size:1.05rem;color:var(--gray-300);max-width:640px;margin:0 auto;}
.hero .btn-row{justify-content:center;}

/* ---------- Home hero: background photo + carousel + sticky CTA row ----------
   Structure: a tall section with one continuous background photo absolutely
   positioned behind everything (stretches to the section's full, content-driven
   height — no overflow:hidden anywhere here, or position:sticky below would break).
   hero-content has generous top padding so, on load, you mostly see the bare
   photo; scrolling brings the carousel up over it, then the CTA row locks in
   place (position:sticky) while the tail of the photo scrolls past beneath it,
   releasing just before the next section. */
.hero-carousel-section{
  position:relative;
  background:var(--white); /* matches the section that follows, so the jagged divider cuts clean instead of showing a black wedge */
}
.hero-bg{
  position:absolute;inset:0;
  background-size:cover;
  background-position:top center;
  clip-path:polygon(0 0, 100% 0, 100% 93%, 55% 100%, 0 93%);
  z-index:0;
}
.hero-bg::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.05) 30%, rgba(10,10,10,.97) 100%);
}
.hero-content{
  position:relative;z-index:1;
  padding:2.5rem 1.5rem 0;
}
.carousel-heading{
  display:flex;align-items:center;justify-content:space-between;
  max-width:var(--max-width);margin:0 auto .8rem;
  padding:0 .2rem;
}
.carousel-heading h2{font-size:1.1rem;margin:0;color:var(--white);}
.carousel-arrows{display:flex;gap:.5rem;}
.carousel-arrow{
  width:36px;height:36px;border-radius:50%;
  border:1px solid rgba(255,255,255,.4);background:transparent;color:var(--white);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:1.1rem;line-height:1;
  transition:background .15s,opacity .15s;
}
.carousel-arrow:hover{background:rgba(255,255,255,.15);}
.carousel-arrow[disabled]{opacity:.3;cursor:default;}
.carousel-arrow[disabled]:hover{background:transparent;}
.carousel-viewport{
  max-width:var(--max-width);margin:0 auto;overflow:hidden;
}
.carousel-track{
  display:flex;
  transition:transform .35s ease;
}
.carousel-slide{
  position:relative;flex:0 0 calc(100% / 3 - 1px);
  margin-right:1px;
  aspect-ratio:4/3;overflow:hidden;
  display:block;
  box-sizing:border-box;
}
@media (max-width:900px){.carousel-slide{flex:0 0 calc(100% / 2 - 1px);}}
@media (max-width:600px){.carousel-slide{flex:0 0 100%;margin-right:0;}}
.carousel-slide img{width:100%;height:100%;object-fit:cover;transition:transform .3s;}
.carousel-slide:hover img{transform:scale(1.05);}
.carousel-caption{
  position:absolute;left:0;right:0;bottom:0;
  background:linear-gradient(transparent,rgba(0,0,0,.85));
  color:var(--white);padding:2.2rem 1rem 1rem;
  font-family:'Archivo Black',Arial,sans-serif;
  text-transform:uppercase;font-size:.9rem;
}
.carousel-hover-btn{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%) scale(.9);
  background:var(--white);color:var(--black);
  font-family:'Archivo Black',Arial,sans-serif;
  text-transform:uppercase;font-size:.75rem;letter-spacing:.03em;
  padding:.7rem 1.2rem;
  opacity:0;transition:opacity .2s,transform .2s;
  pointer-events:none;
}
.carousel-slide:hover .carousel-hover-btn{opacity:1;transform:translate(-50%,-50%) scale(1);}
.hero-cta-row{
  position:sticky;top:5.2rem;z-index:5;
  display:flex;gap:1rem;flex-wrap:wrap;
  max-width:var(--max-width);margin:2rem auto 0;padding:0 .2rem;
}
.hero-cta-row .btn{flex:1;text-align:center;min-width:200px;}
.hero-cta-spacer{height:38vh;}

/* Enlarge-on-hover for all standard buttons */
.btn{transition:background .15s,color .15s,transform .15s;}
.btn:hover{transform:scale(1.045);}

.page-hero{
  background:var(--black);color:var(--white);
  padding:3.5rem 0;text-align:center;
}
.page-hero h1{font-size:clamp(1.8rem,5vw,3rem);margin-bottom:.3em;}
.page-hero p{color:var(--gray-300);max-width:600px;margin:0 auto;}

/* ---------- Sections ---------- */
section{padding:4.5rem 0;}
.section-heading{text-align:center;max-width:900px;margin:0 auto 3rem;}
.section-heading.wide{max-width:1000px;}
.section-heading h2{font-size:clamp(1.6rem,4vw,2.4rem);}
.section-heading p{color:var(--gray-600);}
.bg-black{background:var(--black);color:var(--white);}
.bg-gray{background:var(--gray-100);}

/* ---------- Service cards ---------- */
.card-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);
}
@media (max-width:900px){.card-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.card-grid{grid-template-columns:1fr;}}

.service-card{
  border:1px solid var(--gray-300);
  display:flex;flex-direction:column;
  background:var(--white);
}
.service-card .thumb{aspect-ratio:4/3;overflow:hidden;}
.service-card .thumb img{width:100%;height:100%;object-fit:cover;}
.service-card .body{padding:1.5rem;flex:1;display:flex;flex-direction:column;}
.service-card h3{font-size:1.1rem;margin-bottom:.5rem;}
.service-card .tagline{font-weight:700;margin-bottom:.5rem;}
.service-card p{color:var(--gray-600);font-size:.95rem;flex:1;}
.service-card .read-more{
  margin-top:1rem;font-family:'Archivo Black',Arial,sans-serif;
  text-transform:uppercase;font-size:.8rem;letter-spacing:.03em;
}

/* ---------- Testimonials ---------- */
.testimonial-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap);
}
@media (max-width:700px){.testimonial-grid{grid-template-columns:1fr;}}
.testimonial{
  background:var(--gray-100);padding:1.8rem;border-left:4px solid var(--black);
  font-size:1.05rem;font-style:italic;
}

/* ---------- Contact form ---------- */
.form-wrap{max-width:760px;margin:0 auto;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
@media (max-width:600px){.form-grid{grid-template-columns:1fr;}}
.field{display:flex;flex-direction:column;margin-bottom:1.2rem;}
.field.full{grid-column:1/-1;}
.field label{font-size:.85rem;text-transform:uppercase;letter-spacing:.03em;margin-bottom:.4rem;font-weight:700;}
.field input,.field select,.field textarea{
  font-family:'Space Grotesk',Arial,sans-serif;
  font-size:1rem;padding:.75rem .9rem;border:1px solid var(--gray-300);border-radius:2px;
  background:var(--white);color:var(--black);
}
.field textarea{min-height:120px;resize:vertical;}
.checkbox-group{display:flex;flex-wrap:wrap;gap:.9rem;}
.checkbox-group label{
  display:flex;align-items:center;gap:.5rem;
  font-size:.9rem;text-transform:none;font-weight:400;
  border:1px solid var(--gray-300);padding:.5rem .9rem;border-radius:2px;
}
.checkbox-group input{width:auto;}
.form-submit{margin-top:.5rem;width:100%;}
.form-note{font-size:.85rem;color:var(--gray-600);margin-top:.75rem;}

/* ---------- Project gallery ---------- */
.gallery-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;
}
@media (max-width:900px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.gallery-grid{grid-template-columns:1fr;}}
.gallery-grid a{aspect-ratio:4/3;overflow:hidden;display:block;}
.gallery-grid img{width:100%;height:100%;object-fit:cover;transition:transform .2s;}
.gallery-grid a:hover img{transform:scale(1.04);}

.project-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap);}
@media (max-width:700px){.project-cards{grid-template-columns:1fr;}}
.project-card{position:relative;aspect-ratio:4/3;overflow:hidden;display:block;}
.project-card img{width:100%;height:100%;object-fit:cover;transition:transform .2s;}
.project-card:hover img{transform:scale(1.05);}
.project-card .caption{
  position:absolute;left:0;right:0;bottom:0;
  background:linear-gradient(transparent,rgba(0,0,0,.85));
  color:var(--white);padding:2.2rem 1.2rem 1rem;
  font-family:'Archivo Black',Arial,sans-serif;
  text-transform:uppercase;font-size:.95rem;
}

/* ---------- Footer ---------- */
.site-footer{
  background-color:var(--black); /* fallback while the image loads */
  background-size:cover;background-position:center;
  color:var(--gray-300);padding:3.5rem 0 2rem;font-size:.9rem;
}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;margin-bottom:2.5rem;}
@media (max-width:700px){.footer-grid{grid-template-columns:1fr;}}
.footer-grid h4{color:var(--white);font-size:.9rem;margin-bottom:1rem;}
.footer-grid ul{list-style:none;margin:0;padding:0;}
.footer-grid li{margin-bottom:.6rem;}
.footer-grid a:hover{color:var(--white);}
.footer-social{display:flex;gap:.9rem;}
.footer-social a{
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;
  border:1px solid rgba(255,255,255,.3);color:var(--gray-300);
  transition:color .15s,border-color .15s,background .15s;
}
.footer-social a:hover{color:var(--white);border-color:var(--white);background:rgba(255,255,255,.08);}

/* Jagged divider into the footer, matching the hero's chevron cut. Works on
   every page: whichever section sits directly above the footer gets its
   bottom-right corner clipped into a notch, and slides down slightly
   (negative margin) so the footer's pavement photo shows through the gap
   instead of a blank strip. The 48px depth stays well inside every section's
   normal 4.5rem bottom padding, so real content never gets clipped. */
main > section:last-of-type{
  position:relative;
  clip-path:polygon(0 0, 100% 0, 100% 100%, 58% calc(100% - 48px), 0 100%);
  margin-bottom:-48px;
}
.footer-bottom{
  border-top:1px solid #222;padding-top:1.5rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;
  font-size:.8rem;color:var(--gray-600);
}

/* ---------- Misc ---------- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center;}
@media (max-width:800px){.two-col{grid-template-columns:1fr;}}
.lead{font-size:1.15rem;color:var(--gray-600);}
.bg-black .lead{color:var(--gray-300);} /* gray-600 is too dark to read on the black CTA sections (homepage + projects contact form) */
.stats-strip{display:flex;justify-content:center;gap:3rem;flex-wrap:wrap;text-align:center;margin-top:2.5rem;}
.stats-strip .num{font-family:'Archivo Black',Arial,sans-serif;font-size:2rem;}
.stats-strip .label{font-size:.8rem;text-transform:uppercase;color:var(--gray-600);}
