/* Master Kraft homepage draft v2 */

:root{
  --bg: #f6f4ef;
  --panel: rgba(10, 15, 20, .06);
  --text: rgba(10, 15, 20, .92);
  --muted: rgba(10, 15, 20, .72);
  --muted2: rgba(10, 15, 20, .56);
  --border: rgba(10, 15, 20, .14);
  --accent: rgba(16, 110, 84, .92);
  --shadow: 0 18px 44px rgba(10, 15, 20, .12);
  --radius: 10px;
  --radius2: 7px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}
body.lightbox-open{ overflow: hidden; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  top:-100px;
  left:10px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index:999;
}
.skip-link:focus{ top:10px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand-lockup{
  display:inline-block;
  text-decoration:none !important;
  min-width: 160px;
}
.brand-name{
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.brand-subtitle{
  margin-top: 2px;
  font-size: 11px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--muted2);
  line-height: 1.05;
}
.nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:center;
}
.nav-link{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-link:hover{
  text-decoration:none;
  border-color: var(--border);
  background: rgba(10,15,20,.03);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration:none !important;
  user-select:none;
}
.btn:hover{ filter: brightness(1.04); }
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(180deg, rgba(233,215,172,.98), rgba(233,215,172,.80));
  color: rgba(0,0,0,.88);
  border-color: rgba(203,174,105,.45);
}
.btn-secondary{ background: rgba(10,15,20,.06); }
.btn-ghost{ background: transparent; }


.hero{
  padding: 64px 0 44px;
  background:
    radial-gradient(760px 420px at 12% 10%, rgba(16,110,84,.11), transparent 60%),
    radial-gradient(680px 380px at 86% 0%, rgba(203,174,105,.13), transparent 62%);
  border-bottom: 1px solid var(--border);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 28px;
  align-items:center;
}
h1{
  font-size: clamp(42px, 7vw, 78px);
  margin: 0 0 16px;
  line-height: .98;
  letter-spacing: -0.055em;
}
.lede{
  max-width: 730px;
  font-size: clamp(18px, 2vw, 23px);
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 20px;
}
.cta-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.cta-row{
  font-size: 16px;
  padding: 14px 20px;
}
.btn-cta{
  background: linear-gradient(180deg, rgba(118,158,130,.85), rgba(118,158,130,.70));
  color: rgba(0,0,0,.88);
  border-color: rgba(102,128,79,.45);
  font-size: 16px;
  letter-spacing: 0.1em;
  padding: 12px 30px;
}
.cta-or{
  color: var(--muted2);
  font-size: 13px;
  font-weight: 600;
  align-self: center;
}

.card{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
}
.card--shadow{
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
  box-shadow: var(--shadow);
}
.card.subtle{ background: rgba(255,255,255,.62); }
.card-title{
  padding: 16px 16px 0;
  font-weight: 800;
}
.card-body{
  padding: 12px 16px 16px;
  color: var(--muted);
  line-height: 1.55;
}
.card-body p{ margin: 0; }
.contact-lines{ display:grid; gap: 6px; }
.contact-lines .label,
.label{
  display:inline-block;
  min-width: 82px;
  color: var(--muted2);
  font-size: 12px;
  font-variant-caps: all-small-caps;
  letter-spacing: .10em;
}
.divider{
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.media-strip{ padding: 28px 0; }
.photo-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-thumb{
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.65);
  cursor: pointer;
}
.project-thumb img{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project-thumb:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.project-thumb:focus-visible{
  outline: 3px solid rgba(16,110,84,.45);
  outline-offset: 3px;
}
.thumb-label{
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(246,244,239,.88);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(10,15,20,.12);
}

.section{ padding: 52px 0; }
.section.alt{ background: rgba(10,15,20,.025); }
.section + .section { border-top: 1px solid var(--border); }
.section-head{ margin-bottom: 20px; }
h2{
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}
h3{
  margin: 0 0 8px;
  font-size: 17px;
}
.subhead{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature, .panel{ padding: 18px; }
.feature p, .panel p{
  margin: 0;
  color: var(--muted);
  line-height:1.6;
}
.note{
  margin-top: 18px;
  padding: 18px;
  background: rgba(16,110,84,.08);
  border-color: rgba(16,110,84,.22);
}
.note h3{ margin-bottom: 6px; }
.note p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.trust-grid .panel h3{
  font-size: 18px;
  margin-bottom: 2px;
}
.pillar-belief{
  color: var(--text) !important;
  font-size: 19px;
  font-weight: 200;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  margin-bottom: 10px !important;
}

.split-section{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items:center;
}
.cta-section{ padding-bottom: 34px; }
.contact-card{
  padding: 24px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items:center;
}
.contact-copy h2{ margin-bottom: 8px; }
.contact-copy p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.contact-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.fineprint{
  margin-top: 18px;
  color: var(--muted2);
  font-size: 12px;
  text-align:center;
}

.lightbox[hidden]{ display:none; }
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,15,20,.76);
  backdrop-filter: blur(4px);
}
.lightbox-dialog{
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  padding: 14px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.lightbox-close{
  position:absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(246,244,239,.94);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor:pointer;
  z-index: 3;
}
.lightbox-stage{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: min(68vh, 680px);
  overflow:hidden;
  border-radius: var(--radius2);
  background: rgba(10,15,20,.08);
}
.lightbox-image{
  display:block;
  max-width: 100%;
  max-height: min(68vh, 680px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-image-before{
  position:absolute;
  inset:auto;
  opacity: 0;
  transition: opacity 900ms ease;
}
.lightbox-image-active{
  opacity: 1;
  transition: opacity 900ms ease;
}
.lightbox-stage.show-before .lightbox-image-before{ opacity: 1; }
.lightbox-stage.show-before .lightbox-image-active{ opacity: 0; }
.lightbox-badge{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(246,244,239,.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(10,15,20,.12);
}
.lightbox-controls{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items:center;
  padding-top: 12px;
}
.lightbox-nav{
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: 10px 13px;
  font-weight: 800;
  cursor:pointer;
}
.lightbox-meta{
  text-align:center;
  min-width: 0;
}
.lightbox-title{ font-weight: 800; }
.lightbox-count{
  color: var(--muted2);
  font-size: 12px;
  margin-top: 3px;
}

@media (max-width: 980px){
  .header-inner{ flex-wrap: wrap; }
  .nav{ order: 3; justify-content:flex-start; width: 100%; }
  .hero-grid,
  .grid-3,
  .grid-2,
  .split-section,
  .contact-card{ grid-template-columns: 1fr; }
  .hero{ padding-top: 44px; }
  .contact-actions{
    flex-direction: row;
    min-width: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 720px){
  .photo-grid{ gap: 10px; }
  .thumb-label{
    font-size: 10px;
    left: 7px;
    bottom: 7px;
  }
  .lightbox-controls{ grid-template-columns: 1fr 1fr; }
  .lightbox-meta{
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
@media (max-width: 560px){
  .container{ width: min(var(--max), calc(100% - 28px)); }
  .header-cta{ display:none; }
  .nav-link{ padding-left: 0; }
  .section{ padding: 40px 0; }
  .contact-actions{ flex-direction: column; }
  .lightbox-dialog{
    width: calc(100vw - 16px);
    margin-top: 8px;
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .project-thumb:hover{ transform:none; }
  .lightbox-image-before,
  .lightbox-image-active{ transition: none; }
}


/* V6 Footer */

.site-footer{
  margin: 0;
  background: #171b1f;
  color: rgba(255,255,255,.88);
  border-radius: 0;
  overflow: hidden;
}

.footer-inner{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 24px 12px 24px;
  text-align: center;
}

.footer-tagline{
  margin: 0 0 36px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-brand{
  margin-bottom: 28px;
}

.footer-company{
  font-size: 24px;
  font-weight: 700;
}

.footer-subtitle{
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
}

.footer-services{
  margin: 0;
  color: rgba(255,255,255,.72);
}

.footer-divider{
  width: 120px;
  height: 1px;
  margin: 28px auto;
  background: rgba(255,255,255,.15);
}

.footer-contact p,
.footer-copyright{
  margin: 6px 0;
  color: rgba(255,255,255,.72);
}

.footer-contact a{
  color: inherit;
}

.subtext{font-size: 10px;}

@media (max-width: 560px){
  .footer-inner{
    width: min(var(--max), calc(100% - 28px));
    padding: 48px 18px 12px 18px;
  }
}
