/* ============================================================
   Next Level Lofts — stylesheet
   Palette grounded in the trade: roof-slate charcoal, timber
   tan and the roof-orange from the company mark.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  --ink:        #21262b;   /* near-black slate, hero/footer bg */
  --ink-2:      #2c343c;   /* lighter slate panel */
  --stone:      #f4f1ea;   /* warm plaster background */
  --stone-2:    #eae5da;   /* deeper stone for cards */
  --paper:      #fffdf9;   /* card surface */
  --line:       #dcd5c4;   /* hairline borders on stone */
  --line-dark:  #3c454e;   /* hairlines on ink */
  --orange:     #e07b1f;   /* roof orange, brand accent */
  --orange-dp:  #b45f14;   /* pressed / hover */
  --text:       #262220;   /* body copy on light */
  --text-soft:  #5a5650;   /* secondary copy on light */
  --text-on-ink: #ece7dc;
  --text-on-ink-soft: #a9aeb3;

  --display: "Barlow Condensed", sans-serif;
  --body: "Work Sans", sans-serif;

  --max: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--text);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.5em;
  font-family: var(--body);
  font-weight:600;
  font-size:1rem;
  padding: 0.85em 1.5em;
  border-radius: 3px;
  text-decoration:none;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover{ background: var(--orange-dp); }
.btn-ghost{
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.08); }
.btn-ghost.on-light:hover{ background: rgba(33,38,43,0.06); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- top bar ---------- */
.topbar{
  background: var(--ink);
  color: var(--text-on-ink);
  border-bottom: 1px solid var(--line-dark);
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--text-on-ink);
}
.brand img{ height: 46px; width:auto; }
.brand-name{
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight:700;
  line-height:1.1;
  color: #fff;
}
.brand-tag{
  font-size: 0.72rem;
  color: var(--text-on-ink-soft);
  font-weight:500;
  letter-spacing:0.2px;
}
nav.mainnav{
  display:flex;
  align-items:center;
  gap: 26px;
}
nav.mainnav a{
  text-decoration:none;
  color: var(--text-on-ink-soft);
  font-weight:600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.mainnav a:hover,
nav.mainnav a.active{
  color:#fff;
  border-bottom-color: var(--orange);
}
.topbar-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.phone-link{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-family: var(--display);
  font-size:1.2rem;
  letter-spacing:0.3px;
}
.phone-link svg{ flex:none; }
.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line-dark);
  color:#fff;
  border-radius:3px;
  padding:8px 10px;
  font-size:1.1rem;
}

/* ---------- hero (roofline cut) ---------- */
.hero{
  background: var(--ink);
  color: var(--text-on-ink);
  position:relative;
  padding: 72px 0 130px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  margin-bottom: -70px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items:center;
}
.hero h1{
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color:#fff;
  margin-bottom:0.35em;
}
.hero .lede{
  font-size:1.15rem;
  color: var(--text-on-ink-soft);
  max-width: 46ch;
  margin-bottom: 1.6em;
}
.hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom: 1.8em;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.hero-badge{
  display:flex;
  align-items:center;
  gap:8px;
  background: var(--ink-2);
  border:1px solid var(--line-dark);
  border-radius: 999px;
  padding: 7px 14px 7px 7px;
  font-size:0.85rem;
  color: var(--text-on-ink-soft);
}
.hero-badge .score{
  background: var(--orange);
  color:#fff;
  font-family: var(--display);
  font-weight:700;
  font-size:0.85rem;
  border-radius:999px;
  width:26px;height:26px;
  display:flex; align-items:center; justify-content:center;
}
.hero-photo{
  position:relative;
  border-radius:6px;
  overflow:hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}
.hero-photo img{ height:100%; width:100%; object-fit:cover; }

/* ---------- roofline divider (little row of gable roofs) ---------- */
.roofline{
  height: 22px;
  width:100%;
  background-image:
    linear-gradient(135deg, transparent 50%, var(--orange) 50%),
    linear-gradient(45deg, var(--orange) 50%, transparent 50%);
  background-size: 24px 22px;
  background-position: 0 0, 12px 0;
  background-repeat: repeat-x;
  background-color: transparent;
}
.roofline.on-ink-line{ opacity:0.9; }

/* ---------- sections ---------- */
section{ padding: 40px 0; }
.section-head{
  max-width: 62ch;
  margin-bottom: 2.2em;
}
.section-head .kicker{
  color: var(--orange-dp);
  font-weight:700;
  font-size:0.85rem;
  text-transform:none;
  margin-bottom:0.6em;
  display:block;
}
.section-head h2{
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--ink);
}
.section-head p{
  color: var(--text-soft);
  font-size:1.05rem;
}
.on-ink{
  background: var(--ink);
  color: var(--text-on-ink);
}
.on-ink .section-head p{ color: var(--text-on-ink-soft); }
.on-ink .section-head h2{ color:#fff; }
.on-ink .section-head .kicker{ color: var(--orange); }

/* ---------- stats strip ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 90px;
}
.stat{
  background: var(--paper);
  border:1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 4px;
  padding: 26px 24px;
}
.stat .num{
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight:700;
  color: var(--ink);
  line-height:1;
  display:block;
  margin-bottom:0.25em;
}
.stat .label{
  color: var(--text-soft);
  font-size:0.98rem;
}

/* ---------- services grid ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card{
  background: var(--paper);
  border:1px solid var(--line);
  border-radius:4px;
  padding: 22px 22px 20px;
}
.service-card h3{
  font-size:1.3rem;
  color: var(--ink);
  margin-bottom:0.3em;
}
.service-card p{
  color: var(--text-soft);
  font-size:0.95rem;
  margin-bottom:0;
}
.service-icon{
  width:38px; height:38px;
  color: var(--orange);
  margin-bottom:12px;
}

/* ---------- work / gallery ---------- */
.work-project{
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.work-project:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.work-project-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  flex-wrap:wrap;
  margin-bottom: 20px;
}
.work-project-head h3{
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom:0.2em;
}
.work-meta{
  display:flex;
  gap:10px;
  align-items:center;
  color: var(--text-soft);
  font-size:0.92rem;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background: var(--stone-2);
  border-radius:999px;
  padding: 4px 12px;
  font-size:0.85rem;
  font-weight:600;
  color: var(--text);
}
.chip .score-dot{
  background: var(--orange);
  color:#fff;
  border-radius:999px;
  min-width:22px; height:20px;
  padding: 0 6px;
  display:flex;align-items:center;justify-content:center;
  font-family: var(--display);
  font-size:0.75rem;
  white-space:nowrap;
}
.work-quote{
  font-size:1.05rem;
  color: var(--text);
  max-width: 78ch;
  margin-bottom: 22px;
  font-style: normal;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}
.photo-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.photo-grid a{
  display:block;
  border-radius:4px;
  overflow:hidden;
  aspect-ratio: 4/3;
}
.photo-grid img{
  height:100%; width:100%; object-fit:cover;
  transition: transform .35s ease;
}
.photo-grid a:hover img{ transform: scale(1.04); }
.photo-grid a.tall{ grid-row: span 2; aspect-ratio: 4/6.2; }

.gallery-intro{ margin-bottom: 20px; }

/* ---------- quotes ---------- */
.quotes-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.quote-score{
  display:flex;
  align-items:center;
  gap:10px;
}
.quote-score .num{
  background: var(--ink);
  color:#fff;
  font-family: var(--display);
  font-weight:700;
  font-size:1.05rem;
  border-radius: 4px;
  padding: 4px 10px;
}
.quote-score .subject{
  font-weight:700;
  color: var(--ink);
  font-size:1.02rem;
}
.quote-card p.body{
  color: var(--text);
  font-size:0.98rem;
  flex:1;
}
.quote-foot{
  display:flex;
  justify-content:space-between;
  color: var(--text-soft);
  font-size:0.85rem;
  border-top:1px solid var(--line);
  padding-top:12px;
}
.verified{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#3a7a52;
  font-weight:600;
}

/* full reviews list page */
.reviews-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom: 28px;
}
.filter-btn{
  border:1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  border-radius:999px;
  padding: 8px 16px;
  font-size:0.9rem;
  font-weight:600;
  cursor:pointer;
  font-family: var(--body);
}
.filter-btn.is-active{
  background: var(--ink);
  color:#fff;
  border-color: var(--ink);
}

/* ---------- cta band ---------- */
.cta-band{
  background: var(--orange);
  color:#fff;
}
.cta-band .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  flex-wrap:wrap;
  padding: 38px 24px;
}
.cta-band h2{
  font-size: 1.9rem;
  color:#fff;
  margin-bottom:0.15em;
}
.cta-band p{ margin:0; color: rgba(255,255,255,0.9); }
.cta-band .btn-ghost{ border-color:#fff; color:#fff; }
.cta-band .btn-ghost:hover{ background: rgba(255,255,255,0.15); }
.cta-band .btn-primary{ background: var(--ink); }
.cta-band .btn-primary:hover{ background:#000; }

/* ---------- footer ---------- */
footer{
  background: var(--ink);
  color: var(--text-on-ink-soft);
  padding: 52px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 22px;
}
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:14px;}
.footer-brand img{ height:40px; }
.footer-brand span{ color:#fff; font-family:var(--display); font-weight:700; font-size:1.2rem; }
footer h4{
  color:#fff;
  font-family: var(--body);
  font-size:0.85rem;
  font-weight:700;
  margin-bottom: 0.9em;
}
footer p, footer a{ font-size:0.92rem; line-height:1.7; }
footer ul{ list-style:none; margin:0; padding:0; }
footer li{ margin-bottom:8px; }
footer a{ text-decoration:none; color: var(--text-on-ink-soft); }
footer a:hover{ color:#fff; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:0.82rem;
  color:#7d838a;
}

/* ---------- enquiry form ---------- */
.enquiry-wrap{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items:flex-start;
}
.enquiry-side{
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: 6px;
  padding: 34px 30px;
}
.enquiry-side h3{ color:#fff; font-size:1.5rem; }
.enquiry-side .phone-link{ font-size:1.5rem; margin: 10px 0 22px; }
.contact-line{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom: 18px;
  color: var(--text-on-ink-soft);
  font-size:0.95rem;
}
.contact-line svg{ flex:none; margin-top:2px; color: var(--orange); }
.form-card{
  background: var(--paper);
  border:1px solid var(--line);
  border-radius:6px;
  padding: 30px;
}
.form-row{ margin-bottom: 18px; }
.form-row.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label{
  display:block;
  font-weight:600;
  font-size:0.92rem;
  margin-bottom:6px;
  color: var(--ink);
}
label .req{ color: var(--orange-dp); }
input, select, textarea{
  width:100%;
  font-family: var(--body);
  font-size:1rem;
  padding: 11px 13px;
  border:1px solid var(--line);
  border-radius:4px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus{
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
textarea{ resize:vertical; min-height:110px; }
.field-hint{
  font-size:0.85rem;
  color: var(--text-soft);
  margin-top:6px;
}
.form-note{
  background: var(--stone-2);
  border-left:3px solid var(--orange);
  padding: 14px 16px;
  font-size:0.9rem;
  color: var(--text);
  border-radius:2px;
  margin-bottom: 22px;
}
#form-status{
  margin-top:16px;
  font-weight:600;
}
#form-status.ok{ color:#3a7a52; }

/* ---------- page hero (inner pages) ---------- */
.page-hero{
  background: var(--ink);
  color:#fff;
  padding: 56px 0 100px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom:-64px;
}
.page-hero h1{ font-size: clamp(2.1rem, 4vw, 2.9rem); margin-bottom:0.3em; }
.page-hero p{ color: var(--text-on-ink-soft); max-width:60ch; font-size:1.05rem; }
.page-hero-pad{ padding-top:60px; }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photo{ order:-1; max-height:280px; }
  .stats{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .quotes-grid{ grid-template-columns: repeat(2,1fr); }
  .reviews-list{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .enquiry-wrap{ grid-template-columns: 1fr; }
  .photo-grid{ grid-template-columns: repeat(2,1fr); }
  .photo-grid a.tall{ grid-row:auto; aspect-ratio:4/3; }
}
@media (max-width: 680px){
  nav.mainnav{ display:none; }
  .nav-toggle{ display:inline-block; }
  .topbar.nav-open nav.mainnav{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:76px; left:0; right:0;
    background: var(--ink);
    padding: 16px 24px 22px;
    border-bottom:1px solid var(--line-dark);
    gap:14px;
    z-index:20;
  }
  .topbar{ position:relative; }
  .services-grid{ grid-template-columns: 1fr; }
  .quotes-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .work-project-head{ flex-direction:column; align-items:flex-start; }
  .cta-band .container{ flex-direction:column; text-align:center; }
  .form-row.two{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .photo-grid a:hover img{ transform:none; }
}
