:root {
  --brand: #8b5cf6;
  --brand-2: #ec4899;
  --dark: #0f172a;
  --muted: #6b7280;
  --bg: #ffffff;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.8) blur(8px);
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand .dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
}
.brand img.logo {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  margin-right: 6px;
}
@media (min-width: 860px) {
  .brand img.logo {
    height: 32px;
  }
}
nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav li a {
  font-weight: 700;
  color: #111;
  padding: 6px 8px;
  border-radius: 8px;
}
nav li a.active,
nav li a:hover {
  background: #f3f4f6;
}
.phone-cta {
  display: none;
}
@media (min-width: 860px) {
  .phone-cta {
    display: inline-flex;
    background: var(--dark);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
  }
}
/* assets/css/style.css  */
.hero{
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;

  /* Two backgrounds: gradient (top) + image (bottom) */
  background-image:
    linear-gradient(0deg, rgba(15,23,42,.55), rgba(15,23,42,.55)),
    url("../img/background.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 10px 0;
  line-height: 1.06;
}
.hero p {
  max-width: 900px;
  margin: 8px auto 18px;
  color: #e5e7eb;
}
.section {
  padding: 48px 0;
}
.section h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 8px 0;
}
.lead {
  color: #374151;
}
.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-3 {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 760px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: #f2d3ce;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.card.has-ribbon { position: relative; overflow: hidden; }
.card.has-ribbon .ribbon {
position: absolute; top: 12px; right: -18px;
transform: rotate(35deg); /* smaller angle reduces clipping */
padding: 5px 44px; font-size: .8rem; white-space: nowrap;
background: #f2c6c6; color:#111; font-weight:700; letter-spacing:.02em;
box-shadow: 0 2px 6px rgba(0,0,0,.15); pointer-events:none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer h4 {
  margin: 0 0 8px 0;
  color: #fff;
}
.footer a {
  color: #cbd5e1;
}
.form {
  display: grid;
  gap: 12px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn.secondary {
  background: #fff;
  color: #111;
  border-color: #ddd;
}
.small {
  font-size: 13px;
  color: #6b7280;
}
/* Lightbox */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lb-backdrop.open {
  display: flex;
}
.lb-inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
}
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-weight: 900;
  cursor: pointer;
}
.lb-close {
  top: -50px;
  right: -10px;
  transform: none;
}
.lb-prev {
  left: -50px;
}
.lb-next {
  right: -50px;
}



@media (max-width: 600px) {
  .lb-prev {
    left: -10px;
  }
  .lb-next {
    right: -10px;
  }
  .lb-close {
    right: 0;
    top: -46px;
  }
}

/* === Hero slideshow SmartFit layers === */
.hero{position:relative;overflow:hidden}
.hero .hero-backdrop{
  position:absolute;inset:0;
  background-position:center;background-size:cover;background-repeat:no-repeat;
  filter:blur(18px);transform:scale(1.06);z-index:0
}
.hero .hero-bg{
  position:absolute;inset:0;
  background-position:center;background-repeat:no-repeat;
  transition:opacity .8s ease;z-index:1
}
.hero .hero-bg.hidden{opacity:0}
.hero .hero-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,23,42,.55),rgba(15,23,42,.55));z-index:2}
.hero > .container{position:relative;z-index:3}

/* Card Gallery */
/* Lightbox */
.lb-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: none; z-index: 9999;
}
.lb-backdrop.open { display: flex; }
.lb-inner { position: absolute; inset: 5% 4% 8% 4%; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; top: 8px; border: none; background: rgba(255,255,255,.2);
  color: #fff; font-size: 28px; padding: 6px 12px; cursor: pointer; border-radius: 6px;
}
.lb-close { right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 42px; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 42px; }
.lb-stage { position: absolute; inset: 0 0 90px 0; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 92px; text-align: center; color: #fff; font-size: 14px; padding: 6px 10px; }
.lb-thumbs { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 8px; overflow-x: auto; padding: 6px; }
.lb-thumb { height: 64px; flex: 0 0 auto; border-radius: 6px; opacity: .75; }
.lb-thumb.active, .lb-thumb:hover { opacity: 1; outline: 2px solid #fff; }

/* Lightbox clickability fix */
.lb-stage { z-index: 1; }
.lb-close, .lb-prev, .lb-next { z-index: 2; pointer-events: auto; }


/* === Lightbox Centering - Final Override === */
.lb-backdrop.open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lb-backdrop.open > .lb-inner {
  /* works for the simple lightbox used on projects page (main.js) */
  position: relative !important;
  width: min(92vw, 100%) !important;
  height: min(88vh, 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lb-backdrop.open .lb-stage {
  /* works for the advanced card-galleries lightbox */
  position: absolute !important;
  inset: 0 0 90px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lb-backdrop.open img.lb-img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}


/* === Lightbox Consolidated (v10) === */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lb-backdrop.open { display: flex !important; }

.lb-inner { position: relative; max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.lb-stage { position: absolute; inset: 0 0 90px 0; display: flex; align-items: center; justify-content: center; }

.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 8px; }

.lb-caption { position: absolute; left: 0; right: 0; bottom: 66px; text-align: center; color: #fff; font-size: 14px; padding: 6px 10px; }
.lb-thumbs  { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 8px; overflow-x: auto; padding: 6px; }
.lb-thumb { height: 64px; flex: 0 0 auto; border-radius: 6px; opacity: .75; }
.lb-thumb.active, .lb-thumb:hover { opacity: 1; outline: 2px solid #fff; }

/* Clickability safety: controls above stage */
.lb-stage { z-index: 1; }
.lb-close, .lb-prev, .lb-next { position: absolute; top: 8px; border: none; background: rgba(255,255,255,.2); color: #fff; font-size: 28px; padding: 6px 12px; cursor: pointer; border-radius: 6px; z-index: 2; pointer-events: auto; }
.lb-close { right: 8px; }
.lb-prev  { left: 8px; top: 50%; transform: translateY(-50%); font-size: 42px; }
.lb-next  { right: 8px; top: 50%; transform: translateY(-50%); font-size: 42px; }
