/* ============================================================
   ARISE CONSTRUCTION — Page-specific sections
   ============================================================ */

/* ===== HOME — Section 1: Hero ===== */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  align-items:center;
  color:var(--white);
  overflow:hidden;
}
@media(min-width:768px){ .hero{min-height:85vh;} }
.hero .hero-bg{
  position:absolute;inset:0;
  background-size:cover;
  background-position:center;
}
.hero .hero-overlay{
  position:absolute;inset:0;
  background:var(--black);
  opacity:.45;
}
.hero .hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  text-align:center;
}
@media(min-width:768px){
  .hero .hero-inner{text-align:left;}
}
.hero-text{max-width:560px;margin:0 auto;}
@media(min-width:768px){ .hero-text{margin:0;} }
.hero-text h1{margin:6px 0;}
.hero-text .sub{font-family:var(--font-display);font-weight:700;font-size:20px;text-transform:uppercase;margin-top:10px;}
@media(min-width:768px){ .hero-text .sub{font-size:28px;} }
.hero-text .sub .accent{color:var(--red);}
.hero-text p{max-width:480px;margin:20px auto 0;color:rgba(255,255,255,.9);}
@media(min-width:768px){ .hero-text p{margin:20px 0 0;} }
.hero-text .btn-row{margin-top:28px;justify-content:center;}
@media(min-width:768px){ .hero-text .btn-row{justify-content:flex-start;} }

/* ===== HOME — Section 3: You Dream It We Build It ===== */
.dream-section{display:grid;grid-template-columns:1fr;gap:50px;align-items:center;}
@media(min-width:900px){
  .dream-section{grid-template-columns:60% 40%;gap:40px;}
}
.dream-left h2{margin-bottom:16px;}
.dream-left p{max-width:520px;color:var(--black);}
.dream-right{display:flex;justify-content:center;}
.dream-circle{
  width:240px;height:240px;
  border-radius:50%;
  background:var(--black);
  border:6px solid var(--red);
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;
  gap:2px;
}
@media(min-width:768px){ .dream-circle{width:320px;height:320px;} }
.dream-circle .l1{font-family:var(--font-script);color:var(--white);font-size:26px;}
@media(min-width:768px){ .dream-circle .l1{font-size:40px;} }
.dream-circle .l2{font-family:var(--font-display);font-weight:800;color:var(--red);font-size:26px;}
@media(min-width:768px){ .dream-circle .l2{font-size:42px;} }
.dream-circle .l3{font-family:var(--font-display);font-weight:800;color:var(--white);font-size:26px;}
@media(min-width:768px){ .dream-circle .l3{font-size:42px;} }
.dream-circle .l4{font-family:var(--font-display);font-weight:800;color:var(--red);font-size:26px;}
@media(min-width:768px){ .dream-circle .l4{font-size:42px;} }
@media(max-width:899px){
  .dream-section{display:flex;flex-direction:column;}
  .dream-right{order:2;}
  .dream-left{order:1;text-align:center;}
  .dream-left p{margin:0 auto;}
}

/* ===== HOME — Section 4 / Services page: card ===== */
.services-heading{display:flex;flex-direction:column;gap:10px;}
.services-heading .rule{width:80px;height:4px;background:var(--red);}

.cards-row{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--card-gap-mobile);
}
/* Part I: at 1024px a three-card row must become two (or stack), not
   squeeze three across — so the jump to three columns waits until
   there's real room past the 1024 tablet breakpoint. */
@media(min-width:640px){ .cards-row{grid-template-columns:1fr 1fr;} }
@media(min-width:1180px){ .cards-row{grid-template-columns:1fr 1fr 1fr;gap:var(--card-gap-desktop);} }

.service-card{
  background:var(--white);
  border:1px solid #e5e2de;
  padding:30px;
  border-radius:0 0 0 0;
  position:relative;
  transition:transform 300ms ease, box-shadow 300ms ease;
}
.service-card::before{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:0;
  background:var(--red);
  transition:width 300ms ease;
}
.service-card:hover{transform:translateY(-6px);box-shadow:0 18px 30px rgba(0,0,0,.12);}
.service-card:hover::before{width:4px;}
.card-photo-wrap{
  position:relative;
  margin:-30px -30px 0;
  border-radius:6px 6px 0 0;
  overflow:hidden;
  aspect-ratio:4/3;
}
.card-photo-wrap img{width:100%;height:100%;object-fit:cover;}
.card-icon-circle{
  position:absolute;
  left:20px;bottom:-30px;
  width:60px;height:60px;
  border-radius:50%;
  background:var(--red);
  display:flex;align-items:center;justify-content:center;
  border:3px solid var(--white);
}
.card-icon-circle svg{width:26px;height:26px;color:var(--white);}
.service-card h3{margin-top:42px;}
.service-card p{margin:14px 0 0;font-size:16px;}
.service-card .card-link{
  display:inline-block;
  margin-top:16px;
  color:var(--red);
  font-weight:600;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.5px;
  position:relative;
}
.service-card .card-link::after{
  content:'';
  position:absolute;left:0;bottom:-3px;
  height:1px;width:100%;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 250ms ease;
}
.service-card .card-link:hover::after{transform:scaleX(1);}

/* ===== HOME — Section 5: Why Choose ===== */
.why-choose h2 .white{color:var(--white);}
.why-list{margin-top:30px;display:flex;flex-direction:column;gap:20px;max-width:560px;}
.why-list li{display:flex;align-items:center;gap:16px;font-family:var(--font-display);font-weight:700;font-size:19px;text-transform:uppercase;}
.tick-circle{
  width:24px;height:24px;border-radius:50%;
  background:var(--red);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.tick-circle svg{width:12px;height:12px;color:var(--white);}

.icon-blocks{
  margin-top:60px;
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
}
@media(min-width:768px){
  .icon-blocks{grid-template-columns:1fr 1fr 1fr;gap:0;}
  .icon-blocks .icon-block{border-left:1px solid rgba(255,255,255,.15);}
  .icon-blocks .icon-block:first-child{border-left:none;}
}
.icon-block{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:10px 20px;}
.icon-block-circle{
  width:70px;height:70px;border-radius:50%;
  background:var(--red);
  display:flex;align-items:center;justify-content:center;
}
.icon-block-circle svg{width:30px;height:30px;color:var(--white);}
.icon-block-label{font-family:var(--font-display);font-weight:700;font-size:18px;color:var(--white);text-transform:uppercase;}
@media(min-width:768px){ .icon-block-label{font-size:20px;} }
.icon-block-text{color:rgba(255,255,255,.75);font-size:15px;max-width:220px;}

/* ===== HOME — Section 6: How We Work ===== */
.steps-row{
  margin-top:40px;
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  position:relative;
}
@media(min-width:900px){
  .steps-row{grid-template-columns:repeat(4,1fr);gap:20px;}
  .steps-row::before{
    content:'';
    position:absolute;
    top:28px;left:0;right:0;
    height:1px;
    background:rgba(214,32,39,.35);
    z-index:0;
  }
}
@media(max-width:899px){
  .steps-row{padding-left:24px;border-left:2px solid rgba(214,32,39,.35);}
}
.step{position:relative;z-index:1;}
.step .num{
  font-family:var(--font-display);
  font-weight:800;
  color:var(--red);
  font-size:40px;
  background:var(--offwhite);
  display:inline-block;
  padding-right:6px;
}
@media(min-width:768px){ .step .num{font-size:56px;} }
.step h3{margin-top:6px;color:var(--black);}
.step p{margin-top:10px;color:var(--grey);font-size:16px;}

/* ===== Closing block (shared: home s7 / services / service pages / about) ===== */
.closing-block{
  position:relative;
  clip-path:polygon(0 6%, 100% 0, 100% 100%, 0% 100%);
}
@media(max-width:767px){ .closing-block{clip-path:polygon(0 3%, 100% 0, 100% 100%, 0% 100%);} }
.closing-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
@media(min-width:900px){ .closing-grid{grid-template-columns:1fr 1fr;gap:60px;} }
.closing-left h2{margin-bottom:16px;}
.closing-left p{max-width:460px;color:rgba(255,255,255,.92);}
.closing-left .licence-line{margin-top:20px;color:rgba(255,255,255,.85);font-size:14px;}

/* ===== Licence explainer band (about page section 2, homepage s2 style reused) ===== */
.licence-band{
  background:var(--black);
  color:var(--white);
  padding:40px 20px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.licence-band .shield-wrap{margin-bottom:6px;}
.licence-band .l1{font-family:var(--font-display);font-weight:700;font-size:22px;text-transform:uppercase;}
@media(min-width:768px){ .licence-band .l1{font-size:26px;} }
.licence-band .l2{font-size:16px;}
@media(min-width:768px){ .licence-band .l2{font-size:17px;} }
.licence-band .l3{color:var(--red);font-weight:600;font-size:16px;}
@media(min-width:768px){ .licence-band .l3{font-size:17px;} }
@media(min-width:768px){
  .licence-band{flex-direction:row;justify-content:center;gap:24px;text-align:left;}
}

/* ===== Small page-top hero (services / new-construction / commercial / remodeling / contact) ===== */
.page-top{
  position:relative;
  display:flex;
  align-items:center;
  color:var(--white);
  text-align:center;
  overflow:hidden;
}
.page-top .hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;}
.page-top .hero-overlay{position:absolute;inset:0;background:var(--black);}
.page-top .container{position:relative;z-index:2;}
.page-top p{margin-top:10px;color:rgba(255,255,255,.9);}
.page-top.tall{min-height:260px;}
@media(min-width:768px){ .page-top.tall{min-height:360px;} }
.page-top.short{min-height:240px;}
@media(min-width:768px){ .page-top.short{min-height:320px;} }

/* ===== Services page: alternating rows ===== */
.service-row{display:grid;grid-template-columns:1fr;gap:40px;align-items:center;}
@media(min-width:900px){ .service-row{grid-template-columns:1fr 1fr;gap:60px;} }
.service-row + .service-row{margin-top:80px;}
.service-row .photo{aspect-ratio:4/3;border-radius:6px;overflow:hidden;}
.service-row .photo img{width:100%;height:100%;object-fit:cover;}
.service-row.photo-right .photo{order:2;}
@media(max-width:899px){ .service-row .photo{order:1 !important;} }
.service-row h3{font-size:28px;}
@media(min-width:768px){ .service-row h3{font-size:34px;} }
.service-row ul{margin-top:16px;display:flex;flex-direction:column;gap:10px;}
.service-row ul li{display:flex;align-items:center;gap:10px;font-size:16px;}
.service-row ul li .tick-circle{width:20px;height:20px;}
.service-row ul li .tick-circle svg{width:10px;height:10px;}
.service-row .btn{margin-top:24px;}

/* ===== Individual service page: What We Build / Remodel ===== */
.what-we-build{display:grid;grid-template-columns:1fr;gap:40px;}
@media(min-width:900px){ .what-we-build{grid-template-columns:1fr 1fr;gap:60px;} }
.what-we-build ul{margin-top:20px;display:flex;flex-direction:column;gap:14px;}
.what-we-build ul li{display:flex;align-items:flex-start;gap:12px;font-size:17px;}
.what-we-build ul li .tick-circle{margin-top:2px;}

.who-for-row{
  margin-top:40px;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
@media(min-width:768px){ .who-for-row{grid-template-columns:repeat(3,1fr);} }
.who-for-block{
  background:var(--white);
  border:1px solid #e5e2de;
  border-top:3px solid var(--red);
  padding:28px 24px;
}
.who-for-block h3{font-size:19px;}
.who-for-block p{margin-top:10px;color:var(--grey);font-size:15px;}

/* ===== About page ===== */
.about-header-placeholder{aspect-ratio:16/6;min-height:220px;}
.pillars-row{margin-top:30px;display:grid;grid-template-columns:1fr;gap:30px;}
@media(min-width:768px){ .pillars-row{grid-template-columns:repeat(3,1fr);} }
.pillar{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;}
.pillar .icon-block-label{color:var(--black);}
.pillar p{color:var(--grey);font-size:15px;max-width:220px;}

.founder-row{display:grid;grid-template-columns:1fr;gap:40px;align-items:center;}
@media(min-width:768px){ .founder-row{grid-template-columns:1fr 1fr;gap:60px;} }
.founder-photo-placeholder{aspect-ratio:4/5;}

.licence-small-blocks{margin-top:30px;display:grid;grid-template-columns:1fr;gap:16px;}
@media(min-width:640px){ .licence-small-blocks{grid-template-columns:repeat(3,1fr);} }
.licence-small-block{
  background:var(--white);
  border:1px solid rgba(255,255,255,.08);
  padding:20px;
  border-radius:4px;
}
.licence-band-box .licence-small-block{background:rgba(255,255,255,.06);}
.licence-small-block strong{display:block;color:var(--red);font-family:var(--font-display);font-size:16px;text-transform:uppercase;margin-bottom:6px;}
.licence-small-block span{font-size:14px;color:rgba(255,255,255,.85);}

.licence-explained-box{
  background:var(--black);
  color:var(--white);
  border-left:4px solid var(--red);
  padding:36px;
  border-radius:2px;
}
.licence-explained-box p{color:rgba(255,255,255,.88);margin-top:14px;}

/* ===== Contact page ===== */
.contact-grid{display:grid;grid-template-columns:1fr;gap:40px;}
@media(min-width:900px){ .contact-grid{grid-template-columns:60% 40%;gap:50px;} }
.contact-details h3{letter-spacing:.5px;}
.contact-detail-row{display:flex;gap:16px;align-items:flex-start;margin-top:26px;}
.contact-detail-row .label{font-family:var(--font-body);font-weight:600;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--grey);}
.contact-detail-row .value{font-size:17px;margin-top:4px;}
.contact-badge{
  margin-top:30px;
  background:var(--black);
  color:var(--white);
  padding:20px 22px;
  border-radius:4px;
  font-size:14px;
  line-height:1.9;
}
.contact-badge strong{color:var(--red);}

.map-placeholder{width:100%;height:260px;border-radius:6px;}
@media(min-width:768px){ .map-placeholder{height:380px;} }
