:root{
  --blue:#2f6faa;
  --blue-dark:#1f5f98;
  --red:#c83b2f;
  --ink:#0f1a2b;
  --muted:#5c6a7d;
  --line:#dbe6f3;
  --bg-soft:#f7fbff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:#fff;
}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 18px}

/* Header */
.site-header{padding:18px 0 10px}
.header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:14px}
.brand img{display:block;height:120px;width:auto}
.nav{
  display:flex;gap:22px;align-items:center;
  margin-top:22px;
  font-weight:750;
  color:var(--blue);
}
.nav a{padding:10px 8px;border-bottom:4px solid transparent}
.nav a.active{border-bottom-color:var(--blue)}

/* Separators */
.rule{
  border-top:4px dashed #b9c9e6;
  opacity:.9;
  margin:18px 0 30px;
}

/* Hero */
.hero{padding:10px 0 12px}
.hero-top{
  text-align:center;
  letter-spacing:.18em;
  color:var(--blue);
  font-weight:800;
  font-size:18px;
}
.hero-logo{
  display:block;
  margin:6px auto 14px;
  width:min(520px, 92vw);
  height:auto;
}
.hero-name{
  text-align:center;
  font-weight:950;
  letter-spacing:.08em;
  margin:8px 0 6px;
  font-size:clamp(2.4rem, 6vw, 4.4rem);
  color:var(--blue);
}
.hero-services{
  text-align:center;
  font-weight:900;
  letter-spacing:.14em;
  color:var(--blue-dark);
  margin:0 0 14px;
  font-size:clamp(1.05rem, 2.4vw, 1.35rem);
}
.hero-services span{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--bg-soft);
  margin:6px 6px 0;
}

/* Buttons */
.cta-row{
  display:flex;gap:12px;justify-content:center;flex-wrap:wrap;
  margin:18px 0 6px;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:12px;
  border:2px solid var(--blue);
  color:var(--blue);
  font-weight:850;
  background:#fff;
}
.btn:hover{filter:brightness(.98)}
.btn.primary{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}
.btn.estimate{
  background:var(--red);
  color:#fff;
  border-color:var(--red);
  padding:16px 22px;
  font-size:1.15rem;
  border-radius:14px;
  box-shadow: 0 10px 18px rgba(200,59,47,.25);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn.estimate:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(200,59,47,.28);
  filter:brightness(.99);
}

/* Sections */
.section{padding:22px 0}
.h2{
  text-align:center;
  color:var(--blue);
  font-weight:950;
  letter-spacing:.12em;
  font-size:18px;
  margin:0 0 12px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:14px;
}
.card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  background:#fff;
}
.card h3{margin:0;font-size:16px;color:var(--ink)}
.card h3::before{
  content:"";
  display:inline-block;
  width:10px;height:10px;border-radius:50%;
  background:var(--red);
  margin-right:10px;
  transform: translateY(-1px);
}

/* Footer */
.footer{
  margin-top:26px;
  padding:18px 0 30px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
.footer .row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.small{font-size:12px;color:var(--muted)}

/* Mobile */
@media (max-width: 900px){
  .header-row{flex-direction:column;align-items:center}
  .nav{margin-top:6px}
  .brand img{height:104px}
  .grid{grid-template-columns:1fr}
}


/* Updates v4 */
.hero-logo--big{max-width:260px}
.hero-services--compact{
  margin-top:18px;
  font-size:clamp(18px, 2.4vw, 28px);
  letter-spacing:.08em;
}
.hero-services--compact span{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(47,111,170,.06);
}
.contact-block{
  margin:18px auto 0;
  max-width:900px;
  padding:16px 16px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--bg-soft);
  text-align:center;
}
.contact-title{
  font-weight:950;
  letter-spacing:.18em;
  color:var(--blue);
  font-size:14px;
}
.contact-title::after{
  content:"";
  display:block;
  width:64px;height:3px;
  background:var(--red);
  border-radius:999px;
  margin:10px auto 0;
}
.phone-display{
  font-size:22px;
  font-weight:900;
  letter-spacing:.04em;
  color:var(--ink);
}
.or-line{
  color:var(--muted);
  font-weight:700;
  margin-top:10px;
}

/* Bio */
.bio{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:18px;
  align-items:center;
  margin-top:14px;
}
.bio-photo{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}
.bio-photo img{display:block;width:100%;height:auto}
.bio-title{
  font-size:clamp(22px, 3vw, 32px);
  font-weight:950;
  letter-spacing:.02em;
}
.bio-body{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.8;
  font-size:16px;
  max-width:70ch;
}
.bio-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.bio-badges span{
  border:1px solid var(--line);
  background:#fff;
  color:var(--blue-dark);
  padding:8px 12px;
  border-radius:999px;
  font-weight:850;
  font-size:13px;
}

/* Portfolio gallery */
.gallery{
  display:grid;
  grid-template-columns: 46px 1fr 46px;
  gap:12px;
  align-items:center;
  margin-top:18px;
}
.gallery-nav{
  width:46px;height:46px;
  border-radius:14px;
  border:2px solid var(--blue);
  background:#fff;
  color:var(--blue);
  font-size:28px;
  font-weight:900;
  cursor:pointer;
}
.gallery-stage{
  position:relative;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  min-height:360px;
  display:grid;
  place-items:center;
}
.gallery-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}
.gallery-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  gap:10px;
  padding:28px;
  text-align:center;
  background:linear-gradient(135deg, rgba(47,111,170,.12), rgba(200,59,47,.08));
}
.gallery-title{
  font-size:clamp(22px, 3vw, 34px);
  font-weight:950;
}
.gallery-sub{color:var(--muted);font-weight:700}

.thumbs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:14px;
}
.thumb{
  text-align:left;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:12px 12px;
  cursor:pointer;
  display:flex;
  gap:10px;
  align-items:center;
}
.thumb.active{border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,111,170,.15)}
.thumb-dot{
  width:12px;height:12px;border-radius:50%;
  background:var(--red);
  flex:0 0 auto;
}
.thumb-text{font-weight:850;color:var(--ink);font-size:13px;line-height:1.3}

/* Lightbox */
.lightbox{display:none}
.lightbox.open{display:block;position:fixed;inset:0;z-index:99}
.lightbox-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.lightbox-content{
  position:relative;
  margin:5vh auto 0;
  max-width:min(1100px, 94vw);
  background:#111;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
}
.lightbox-img{width:100%;max-height:76vh;object-fit:contain;background:#111;display:block}
.lightbox-caption{color:#e9eef6;padding:12px 14px;font-weight:800}
.lightbox-close{
  position:absolute;top:10px;right:12px;
  width:40px;height:40px;border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:30px;
  font-weight:900;
  cursor:pointer;
}
.lightbox-nav.prev{left:10px}
.lightbox-nav.next{right:10px}

@media (max-width: 900px){
  .bio{grid-template-columns:1fr}
  .gallery{grid-template-columns:42px 1fr 42px}
  .gallery-stage{min-height:280px}
  .thumbs{grid-template-columns:1fr}
}
