/* ABOUT: consistent spacing between sections */
.about-feature{ margin-bottom:var(--space); }

/* when a service-block is followed by an about-feature, add a clean gap */
.service-block + .about-feature{
  margin-top:var(--space);
}

/* when an about-feature is followed by a service-block, add a clean gap */
.about-feature + .service-block{
  margin-top:var(--space);
}

/* if you have two service-blocks stacked on About, keep spacing consistent */
.service-block + .service-block{
  margin-top:var(--space);
}

:root{
  --bg:#0b0f14;
  --panel:#0f1621;
  --panel2:#121b28;
  --text:#e9eef6;
  --muted:#a9b6c7;
  --gold:#caa65b;
  --gold2:#e0c07a;
  --stroke:rgba(255,255,255,.10);
  --radius:18px;
  --max:1120px;
  --space:32px;
  --font:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(202,166,91,.18), transparent 60%),
    radial-gradient(900px 400px at 80% 10%, rgba(50,140,255,.12), transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* ================= GLOBAL LINKS (NO PURPLE, EVER) ================= */
a,
a:visited{
  color:var(--text);
  text-decoration:none;
}
a:hover{
  color:var(--gold2);
  text-decoration:underline;
}

/* component links that should be gold */
.service-block a,
.service-block a:visited,
.soft-cta a,
.soft-cta a:visited,
.faq a,
.faq a:visited{
  color:var(--gold2);
  text-decoration:none;
}
.service-block a:hover,
.soft-cta a:hover,
.faq a:hover{
  text-decoration:underline;
}

/* ================= SECTION SPACING ================= */
.section{ padding:60px 0; }
.page-head{ margin-bottom:var(--space); }

.service-stack{ display:flex; flex-direction:column; gap:var(--space); }

/* ================= HEADER ================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
  background:rgba(11,15,20,.75);
  border-bottom:1px solid var(--stroke);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.brand-mark{
  width:34px;height:34px;
  border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(180deg, rgba(202,166,91,.25), rgba(202,166,91,.08));
  border:1px solid rgba(202,166,91,.35);
  color:var(--gold2);
  font-weight:800;
}

.brand-text{
  letter-spacing:.18em;
  font-weight:800;
  font-size:.9rem;
  color:var(--text);
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-links a{
  color:var(--muted);
  font-weight:700;
  font-size:.92rem;
  text-decoration:none;
}
.nav-links a:visited{ color:var(--muted); }
.nav-links a:hover{ color:var(--text); text-decoration:none; }

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  text-decoration:none;
  transition:.15s ease;
}
.btn:hover{ transform:translateY(-1px); text-decoration:none; }

.btn-gold{
  border-color:rgba(202,166,91,.45);
  background:linear-gradient(180deg, rgba(202,166,91,.28), rgba(202,166,91,.10));
  color:#fff;
}
.btn-gold:visited{ color:#fff; }

/* ================= TYPOGRAPHY ================= */
h1{
  font-size:clamp(2rem, 4vw, 3.2rem);
  margin:0 0 14px;
  text-shadow:0 12px 32px rgba(0,0,0,.5);
}
h2{
  font-size:clamp(1.6rem, 2.8vw, 2.2rem);
  margin:0 0 10px;
}
.lead{
  font-size:1.05rem;
  max-width:70ch;
  color:rgba(233,238,246,.85);
}
.muted{ color:var(--muted); }

.kicker{
  color:var(--gold2);
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.75rem;
  margin-bottom:8px;
}

.service-sub{
  color:var(--muted);
  max-width:80ch;
}

/* ================= HOME HERO ================= */
.hero-bleed{
  padding:48px 0 36px;
  background-image:
    linear-gradient(90deg, rgba(8,10,14,.75) 0%, rgba(8,10,14,.45) 45%, rgba(8,10,14,.20) 75%, rgba(8,10,14,.10) 100%),
    url("/assets/img/hero.jpg");
  background-size:cover;
  background-position:center;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.hero{
  min-height:520px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:end;
}

.hero-copy{ padding-bottom:20px; }

.eyebrow{
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:.8rem;
  font-weight:900;
  margin-bottom:10px;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

/* ================= HERO QUICK ESTIMATE CARD ================= */
.card-glass{
  padding:22px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(18,27,40,.78), rgba(12,18,26,.65));
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(16px);
  box-shadow:0 30px 70px rgba(0,0,0,.6);
}
.card-title{ font-weight:900; margin-bottom:6px; }

.check{
  margin:14px 0 18px;
  padding-left:18px;
  color:var(--muted);
}
.check li{ margin:6px 0; }

/* ================= PROOF STRIP ================= */
.proof-strip{
  padding:22px 0;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.18);
}
.proof-items{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}
.proof-item{ flex:1; min-width:220px; }
.proof-title{ font-weight:800; margin-bottom:4px; }
.proof-sub{ color:var(--muted); font-size:.95rem; }

@media (min-width:880px){
  .proof-item:not(:last-child){
    border-right:1px solid rgba(255,255,255,.08);
    padding-right:40px;
  }
}

/* ================= GENERAL CARDS ================= */
.section-tight{ padding:40px 0; }

.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:22px;
  transition:.2s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(202,166,91,.35);
}
.card p{ color:var(--muted); }

/* ================= SERVICES BLOCKS ================= */
.service-block{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:0 18px 50px rgba(0,0,0,.35);
  transition:.2s ease;
  overflow:hidden;
}
.service-block:hover{
  transform:translateY(-2px);
  border-color:rgba(202,166,91,.38);
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:20px;
  margin-top:18px;
}

.service-points{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.service-points li{ margin:6px 0; }

.soft-cta{
  margin-top:14px;
  font-weight:900;
}

/* ================= CTA ================= */
.cta-banner{
  margin-top:var(--space);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:linear-gradient(180deg, rgba(202,166,91,.16), rgba(255,255,255,.02));
  border:1px solid rgba(202,166,91,.25);
  border-radius:24px;
  padding:28px;
}

/* ================= ABOUT FEATURE ================= */
.about-feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space);
  align-items:stretch;
  margin-bottom:var(--space);
}

.about-feature.reverse{ direction:rtl; }
.about-feature.reverse > *{ direction:ltr; }

.about-media{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--stroke);
  box-shadow:0 18px 50px rgba(0,0,0,.35);
  aspect-ratio:16/11;
  min-height:280px;
  background:rgba(255,255,255,.02);
}

.about-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 260px at 20% 10%, rgba(202,166,91,.16), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35));
  pointer-events:none;
}

.about-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.about-text{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* ================= FAQ ================= */
.faq{
  margin-top:16px;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
}

.faq details > summary{ list-style:none; }
.faq details > summary::-webkit-details-marker{ display:none; }

.faq-item{
  border-top:1px solid rgba(255,255,255,.08);
}
.faq-item:first-child{ border-top:none; }

.faq-item summary{
  cursor:pointer;
  padding:16px 46px 16px 18px;
  font-weight:900;
  color:var(--text);
  position:relative;
  user-select:none;
}

.faq-item summary::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background:transparent;
  transition:.15s ease;
}

.faq-item summary::after{
  content:"›";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%) rotate(90deg);
  font-size:22px;
  line-height:1;
  color:rgba(224,192,122,.85);
  transition:transform .18s ease, opacity .18s ease;
  opacity:.85;
}

.faq-item[open] summary::after{
  transform:translateY(-50%) rotate(-90deg);
  opacity:1;
}

.faq-item summary:hover{
  color:var(--gold2);
}
.faq-item summary:hover::before{
  background:rgba(202,166,91,.65);
}

.faq-answer{
  padding:0 18px 16px 18px;
  color:var(--muted);
}
.faq-answer p{ margin:10px 0 0; }

/* ================= RESPONSIVE ================= */
@media (max-width:1024px){
  .hero{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
}

@media (max-width:900px){
  .about-feature{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
}

/* ================= PROJECTS PAGE HELPERS ================= */
a, a:visited { color: inherit; }
.service-block a, .service-block a:visited,
.faq a, .faq a:visited { color: var(--gold2); }

.muted { color: var(--muted); }

.note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

.note code{
  color:rgba(233,238,246,.92);
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  padding:2px 6px;
  border-radius:8px;
}

/* ================= PROJECTS ================= */

.projects-filters{ margin-bottom: 22px; }
.filters-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.filters-input, .filters-select{
  background:rgba(255,255,255,.03);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
  color:var(--text);
  outline:none;
}
.filters-input{ min-width:240px; flex:1; }
.filters-select{ min-width:160px; }
.filters-input::placeholder{ color:rgba(233,238,246,.45); }

.projects-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
}
@media (max-width:980px){
  .projects-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .projects-grid{ grid-template-columns:1fr; }
}

.project-card{
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:0 18px 50px rgba(0,0,0,.35);
  transition:.18s ease;
  display:flex;
  flex-direction:column;
}
.project-card:hover{
  transform:translateY(-2px);
  border-color:rgba(202,166,91,.38);
}

/* older card thumb helper */
.project-thumb{
  aspect-ratio:16/10;
  background:rgba(255,255,255,.02);
}
.project-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.project-body{ padding:18px; }
.project-body h3{ margin:6px 0 8px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.chip{
  font-size:.82rem;
  color:rgba(233,238,246,.85);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  padding:6px 10px;
  border-radius:999px;
}

/* Project detail */
.project-hero{
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.35);
  background:rgba(255,255,255,.02);
}
.project-hero img{
  width:100%;
  height:auto;
  display:block;
}

/* Gallery */
.project-gallery{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
@media (max-width:900px){
  .project-gallery{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .project-gallery{ grid-template-columns:1fr; }
}
.project-shot{
  margin:0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
}
.project-shot img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.project-shot figcaption{ padding:10px 12px; }

/* Before/After */
.ba-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
@media (max-width:900px){
  .ba-wrap{ grid-template-columns:1fr; }
}
.ba-img{
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  overflow:hidden;
  background:rgba(255,255,255,.02);
  box-shadow:0 18px 50px rgba(0,0,0,.35);
}
.ba-img img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}
@media (max-width:640px){
  .ba-img img{ height:280px; }
}

/* ================= NEW PROJECT CARD IMAGE RENDERING FIX ================= */

.project-card__image-wrap{
  width:100%;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:rgba(255,255,255,.03);
}

.project-card__image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  image-rendering:auto;
  transition:transform .22s ease;
}

.project-card:hover .project-card__image-wrap img{
  transform:scale(1.015);
}