
:root{
  --bg-dark:#0f1724;
  --bg-darker:#0b111b;
  --text:#0c1220;
  --surface:#ffffff;
  --surface-2:#f2f4f7;
  --stroke:#e6e9ef;
  --accent:#f4c430;
  --accent-2:#ffd45b;
  --shadow: 0 16px 40px rgba(10, 16, 28, 0.18);
  --shadow-soft: 0 10px 22px rgba(10, 16, 28, 0.12);
  --radius:18px;
  --radius-lg:24px;
  --container: 1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:#fff;
}
a{color:inherit;text-decoration:none}
.container{width:min(var(--container), calc(100% - 40px)); margin:0 auto;}

.topbar{position:absolute; inset:0 0 auto 0; z-index:10; padding:18px 0;}
.topbar .inner{display:flex; align-items:center; justify-content:space-between; gap:18px;}

.brand{display:flex; align-items:flex-start; gap:12px;}
.brand .name{line-height:1}
.brand .name .line1{font-weight:800; letter-spacing:.6px; color:#fff; font-size:18px;}
.brand .name .line2{margin-top:3px; font-weight:800; letter-spacing:.8px; color:var(--accent); font-size:14px;}
.brand .phone{display:flex; gap:10px; align-items:center; margin-top:8px; color:#fff; opacity:.95; font-weight:700;}


.brand .name .tagline{
  margin-top:6px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.4px;
  color:rgba(255,255,255,.86);
  text-transform:uppercase;
}
.nav{display:flex; gap:28px; align-items:center; color:#fff; font-weight:700;}
.nav a{opacity:.9; position:relative; padding:10px 0;}
.nav a:hover{opacity:1}
.nav a.active::after{content:""; position:absolute; left:0; right:0; bottom:2px; height:2px; background:var(--accent); border-radius:2px;}

.hero{
  position:relative;
  min-height:640px;
  display:flex;
  align-items:center;
  padding:110px 0 90px;
  color:#fff;
  background:
    linear-gradient(90deg, rgba(10,14,22,.78) 0%, rgba(10,14,22,.55) 45%, rgba(10,14,22,.32) 70%, rgba(10,14,22,.28) 100%),
    url("assets/hero.jpg");
  background-size:cover;
  background-position:center;
}
.hero .content{width:min(680px, 100%);}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(34px, 4.2vw, 56px);
  font-weight:900;
  letter-spacing:.3px;
  text-transform:uppercase;
  line-height:1.05;
}
.hero p{margin:0 0 24px; font-size:16px; opacity:.92; max-width:520px;}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; border:0; border-radius:10px; padding:14px 22px; font-weight:900; cursor:pointer;}
.btn-primary{background:var(--accent); color:#131722; box-shadow:0 12px 24px rgba(244,196,48,.25);}
.btn-primary:hover{background:var(--accent-2);}

.btn-outline{background:transparent; color:#fff; border:1px solid rgba(255,255,255,.35);}
.btn-outline:hover{border-color:rgba(255,255,255,.65);}
.hero .cta-row{display:flex; align-items:center; gap:16px;}
.hero .cta-row .subnote{font-size:13px; opacity:.82;}

.section{padding:56px 0;}
.section-title{text-align:center; font-weight:900; letter-spacing:.8px; text-transform:uppercase; margin:0;}
.section-subtitle{text-align:center; margin:10px auto 0; font-size:24px; font-weight:900; color:#111827;}
.divider{width:100%; max-width:760px; margin:18px auto 0; height:1px; background:linear-gradient(90deg, transparent, rgba(17,24,39,.25), transparent);}
.section-top-divider{width:100%; max-width:980px; margin:0 auto 14px; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);} 

.about{
  background: radial-gradient(1200px 260px at 50% 0%, rgba(15,23,36,.06), transparent 70%),
              linear-gradient(#f6f7f9, #f3f5f7);
}
.about .lead{text-align:center; max-width:760px; margin:16px auto 0; color:#4b5563; line-height:1.55; font-size:13.5px;}

.feature-grid{margin-top:26px; display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;}
.feature{
  background:rgba(255,255,255,.65);
  border:1px solid rgba(231,234,240,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:18px 18px 16px;
  text-align:center;
  backdrop-filter:blur(6px);
}
.badge-icon{
  width:48px;height:48px;border-radius:999px;margin:0 auto 10px;
  background:#1b2434; display:grid; place-items:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.feature h3{margin:0; font-size:16px; font-weight:900; color:#111827;}
.feature p{margin:8px 0 0; font-size:12.5px; color:#667085;}

.services{
  background: radial-gradient(900px 260px at 50% 0%, rgba(15,23,36,.06), transparent 70%),
              linear-gradient(#f6f7f9, #f3f5f7);
}
.cards{margin-top:26px; display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;}
.card{
  background:#fff; border:1px solid var(--stroke); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-soft);
}
.card img{width:100%; height:176px; object-fit:cover; display:block;}
.card .body{padding:16px 16px 18px;}
.card h4{margin:0; font-weight:900; font-size:16px;}
.card p{margin:8px 0 0; color:#667085; font-size:12.5px;}
.card{display:block; text-decoration:none; color:inherit;}
.card:hover{transform: translateY(-2px);}

/* Services cards are informational (not links) */
.services .card{cursor: default;}
.services .card:hover{transform: none;}

.work{
  background: linear-gradient(180deg, rgba(15,23,36,.92), rgba(15,23,36,.86)),
              url("assets/work1.jpg");
  background-size:cover; background-position:center;
  color:#fff;
}
.work .section-subtitle{color:#fff}
.work .divider{background:linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);}

.work-grid{margin-top:22px; display:grid; grid-template-columns:1.3fr .9fr; gap:18px; align-items:stretch;}
.gallery{display:grid; grid-template-columns:repeat(2, 1fr); gap:12px;}
.gallery img{
  width:100%; height:168px; object-fit:cover; border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}


/* Step-style "How It Works" tiles (home page) */
.steps-grid{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px;}
.step-card{
  background: rgba(15,23,36,.60);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  backdrop-filter:blur(8px);
}
.step-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.step-num{
  width:34px; height:34px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  color:var(--accent);
  background: rgba(244,196,48,.16);
  border:1px solid rgba(244,196,48,.42);
}
.step-icon{
  width:34px; height:34px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.step-card h4{margin:0; font-weight:900; font-size:15px; color:#fff;}
.step-card p{margin:8px 0 0; color:rgba(255,255,255,.86); font-size:12.5px; line-height:1.55;}

@media (max-width: 520px){
  .steps-grid{grid-template-columns:1fr;}
}
.contact-panel{
  background: rgba(15,23,36,.65);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-lg);
  padding:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  backdrop-filter:blur(8px);
}
.big-phone{font-weight:900; font-size:26px; letter-spacing:.4px;}
.contact-panel .hint{margin-top:6px; font-size:12.5px; opacity:.9;}
.panel-badge{display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; color:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:8px 10px; width:fit-content;}
.panel-title{margin:14px 0 0; font-size:18px; color:#fff; font-weight:900; line-height:1.15;}
.checklist{list-style:none; padding:0; margin:14px 0 0; display:flex; flex-direction:column; gap:10px;}
.checklist li{position:relative; padding-left:22px; color:rgba(255,255,255,.92); font-weight:700; font-size:13px;}
.checklist li:before{content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:900;}
.panel-actions{margin-top:16px; display:flex; flex-direction:column; gap:10px;}

.form{margin-top:14px; display:flex; flex-direction:column; gap:10px;}
.input,.textarea{
  width:100%; border-radius:10px; border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.95);
  padding:11px 12px; font-weight:600; font-size:13px; outline:none;
}
.textarea{min-height:98px; resize:vertical;}
.form .btn{margin-top:4px;}

.footer{background:#0b111b; color:rgba(255,255,255,.78); padding:18px 0; font-size:12.5px;}
.footer .row{display:flex; align-items:center; justify-content:center; text-align:center; gap:10px; flex-wrap:wrap;}

@media (max-width: 980px){
  .nav{display:none}
  .hero{padding-top:96px; min-height:600px;}
  .feature-grid, .cards{grid-template-columns:1fr;}
  .work-grid{grid-template-columns:1fr;}
  .gallery img{height:156px;}
}

/* Completed Projects thumbnails (gallery page) */
.projects-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 18px;
}

.projects-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.projects-grid img{
  width: 100%;
  height: 220px;      /* <-- controls thumbnail size */
  object-fit: cover;  /* keeps it cropped nicely */
  border-radius: 14px;
  display: block;
}

@media (max-width: 980px){
  .projects-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid img{ height: 200px; }
}

@media (max-width: 520px){
  .projects-grid{ grid-template-columns: 1fr; }
  .projects-grid img{ height: 190px; }
}

/* HOME HERO: make the background/image stop sooner */
.hero.hero-home{
  min-height: auto;          /* if your .hero has a big min-height, this removes it */
  padding-bottom: 18px;      /* reduce this if it still feels too tall (try 10px) */
}

/* If the image looks like it sits too low, this nudges it up */
.hero.hero-home{
  background-position: center top;
  background-size: cover;
}

/* --- WORK SECTION: keep thumbnails normal + match contact panel height --- */

/* Use variables so it's easy to tweak */
.work{
  --thumb-h: 168px;     /* matches your current .gallery img height */
  --thumb-gap: 12px;    /* matches your .gallery gap */
}

/* Undo the "stretch everything" behavior that made photos tall */
.work .work-grid{
  align-items: start;   /* do NOT stretch the columns to tallest */
}

/* Keep your gallery as a normal 2x2 grid */
.work .gallery{
  height: auto;         /* overrides height:100% */
  grid-auto-rows: auto; /* overrides 1fr stretching */
}

/* Make the clickable wrappers behave like the service cards */
.work .gallery-link{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Keep thumbs a consistent size */
.work .gallery-link img{
  width: 100%;
  height: var(--thumb-h);
  object-fit: cover;
  display: block;
  border-radius: 0; /* wrapper already has rounding */
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .22s ease;
}

/* Hover like services */
.work .gallery-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.work .gallery-link:hover img{
  transform: scale(1.04);
}

/* Make the contact panel the same height as the 2-row gallery */
.work .contact-panel{
  height: auto;
  display: flex;
  flex-direction: column;
}

/* If the form is taller than the panel, scroll it instead of stretching the whole panel */
.work .contact-panel .form{
  overflow: visible;
  padding-right: 0;
}

/* Mobile: your CSS already stacks columns; remove the forced height */
@media (max-width: 980px){
  .work{ --thumb-h: 156px; } /* matches your existing mobile thumb height */
  .work .contact-panel{ height: auto; }
  .work .contact-panel .form{ overflow: visible; }
}

/* ===== Mobile menu ===== */
.menu-btn{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:12px;
  background:rgba(15,23,36,.35);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px;
}

.menu-btn span{
  display:block;
  width:20px;
  height:2px;
  background:#fff;
  border-radius:2px;
  opacity:.95;
}

.mobile-nav{ display:none; }

@media (max-width: 980px){
  .menu-btn{ display:inline-flex; margin-left:auto; }
  .nav{ display:none; }

  /* Keep header from reflowing weirdly */
  .topbar .inner{
    align-items: center;
  }

  /* Compact dropdown (small, not full-width) */
  .mobile-nav{
    display:none;              /* toggled by JS */
    position: absolute;        /* dropdown */
    top: 64px;                 /* adjust if needed */
    right: 20px;               /* lines up near hamburger */
    width: 210px;              /* makes it NOT huge */
    background: rgba(15,23,36,.96);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    padding: 6px;
    backdrop-filter: blur(10px);
    z-index: 2147483647;
  }

  .mobile-nav a{
    display:block;
    padding: 10px 10px;        /* smaller taps but still easy */
    border-radius: 10px;
    color:#fff;
    font-weight: 800;
    opacity: .95;
    font-size: 14px;
    line-height: 1.1;
  }

  .mobile-nav a:hover{
    background: rgba(255,255,255,.08);
    opacity: 1;
  }

  .mobile-nav.open{ display:block; }
}

picture{display:block;}

/* Back to top button */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  height:48px;
  padding:0 14px;
  min-width:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(15,23,36,0.92);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:14px;
  line-height:1;
  box-shadow: var(--shadow-soft);
  cursor:pointer;

  /* hidden by default */
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, visibility .18s ease;
  z-index:2147483647;
}
.back-to-top:hover{ background: rgba(15,23,36,1); }
.back-to-top:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.back-to-top.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform: translateY(0);
}
.back-to-top .btt-arrow{ font-size:18px; line-height:1; }
.back-to-top .btt-text{ font-size:14px; font-weight:800; letter-spacing:.2px; }

@media (max-width: 520px){
  .back-to-top{ right:14px; bottom:calc(84px + env(safe-area-inset-bottom)); height:50px; }
}

@media (max-width: 520px){
  /* Mobile: keep above footer and easy to tap */
  .back-to-top{ right:14px; bottom:calc(84px + env(safe-area-inset-bottom)); height:50px; padding:0 14px; }
}


/* How It Works */
.steps{display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:14px; margin-top:18px;}
.step{background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:18px; padding:16px;}
.step h3{margin:10px 0 6px; font-size:16px;}
.step p{margin:0; font-size:13px; opacity:.9; line-height:1.4;}
.step-num{width:34px; height:34px; border-radius:999px; display:flex; align-items:center; justify-content:center; font-weight:900; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12);}
.split{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:start; margin-top:18px;}
.faq{margin-top:16px; display:flex; flex-direction:column; gap:10px;}
.faq details{background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:14px 14px;}
.faq summary{cursor:pointer; font-weight:800;}
.faq p{margin:10px 0 0; opacity:.9; font-size:13px; line-height:1.45;}
@media (max-width: 920px){
  .steps{grid-template-columns: repeat(2, minmax(0,1fr));}
  .split{grid-template-columns: 1fr;}
}
@media (max-width: 520px){
  .steps{grid-template-columns: 1fr;}
  /* Slightly tighter FAQ cards on small screens */
  .faq{gap:8px;}
  .faq details{padding:12px;}
  .faq p{font-size:12.5px; line-height:1.5;}
}


/* How It Works photos */
.how-photos{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.how-photo{
  margin:0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow:hidden;
}
.how-photo img{
  width:100%;
  height:170px;
  object-fit: cover;
  display:block;
}
.how-photo figcaption{
  padding:10px 12px;
  font-weight:800;
  font-size:13px;
  opacity:.92;
}
@media (max-width: 920px){
  .how-photos{grid-template-columns: 1fr; }
  .how-photo img{height:190px;}
}

/* Mobile/tablet: Services cards show more of each photo */
@media (max-width: 980px){
  .services .card img{
    height: 360px !important;
    object-fit: cover;
    object-position: center;
  }
}
@media (max-width: 520px){
  .services .card img{
    height: 420px !important;
  }
}



/* Mobile: give cards more room and readability */
@media (max-width: 520px){
  .container{
    width: calc(100% - 24px); /* was 40px; makes cards wider on phones */
  }
  .card .body{
    padding: 18px 18px 20px;
  }
  .card h4{
    font-size: 17px;
  }
  .card p{
    font-size: 13.5px;
  }
}
