/* =========================
   HEICO MODERN BRIGHT THEME
   ========================= */
:root{
  --bg0:#0f172a;
  --bg1:#1e293b;

  --panel: rgba(255,255,255,.14);
  --panel2: rgba(255,255,255,.20);
  --border: rgba(255,255,255,.18);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.74);

  --accent:#2b67ff;
  --accent2:#3aa0ff;

  --shadowSoft: 0 10px 28px rgba(0,0,0,.22);
  --shadow: 0 18px 60px rgba(0,0,0,.32);

  --radius: 18px;
}

html,body{height:100%;}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  text-align:left;
  background:
    radial-gradient(1000px 700px at 20% 10%, rgba(58,160,255,.22), transparent 60%),
    radial-gradient(900px 650px at 80% 10%, rgba(43,103,255,.18), transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 60%, #0b1220 100%);
  background-attachment: fixed;
}

a{ color: var(--accent2); }
a:hover{ filter: brightness(1.08); }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 18px 70px;
}

/* =========================
   HEADER (sticky)
   ========================= */
.siteHeader{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  overflow: visible; /* helps dropdown */
}

.headerInner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  min-width: 0;
}

.brandMark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(59,130,246,.18));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.brandMark img{
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brandText{
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.siteNav{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.siteNav a{
  color: rgba(255,255,255,.74);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
}

.siteNav a:hover{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
}

/* =========================
   NAV DROPDOWN (smooth)
   ========================= */
.navDropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navDropBtn{
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.74);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.navDropBtn:hover{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.08);
}

.navDropMenu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: rgba(10,16,32,.96);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.40);
  padding: 8px;
  z-index: 2000;
  backdrop-filter: blur(12px);

  /* smooth open/close */
  display: block;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.navDropMenu a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}

.navDropMenu a:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
}

.navDropdown:hover .navDropMenu,
.navDropdown:focus-within .navDropMenu{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header responsive */
@media (max-width: 720px){
  .headerInner{
    flex-direction: column;
    align-items: flex-start;
  }
  .brandMark img{ height: 34px; }
  .siteNav{
    width: 100%;
    justify-content: flex-start;
  }
  .siteNav a{ padding: 8px 10px; }
}

/* =========================
   CARDS / TEXT
   ========================= */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(14px);
  padding: 22px;
}

h1{ font-size: 42px; margin: 0 0 10px; line-height: 1.05; }
h2{ margin: 0 0 12px; font-size: 22px; }
p{ color: var(--muted); line-height: 1.6; margin: 0 0 12px; }

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

.note{
  font-size:13px;
  opacity:.82;
  margin-top:8px;
  color: rgba(255,255,255,.70);
}

/* =========================
   BUTTONS
   ========================= */
.ctaRow{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  text-decoration:none;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  transition: .15s ease;
}

.btnPrimary{
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(43,103,255,.28);
}

.btn:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* =========================
   HOME PAGE (HERO)
   ========================= */
.hero{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 18px;
}

.heroCard{
  padding: 26px;
  background: linear-gradient(135deg, rgba(58,160,255,.40), rgba(30,41,59,.92));
  border: 1px solid rgba(58,160,255,.35);
  box-shadow: 0 18px 50px rgba(43,103,255,.22);
  border-radius: var(--radius);
}

.heroRight{
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(14px);
}

.hero-services{
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
}

.hero-tagline{
  margin-top: 4px;
  color: rgba(255,255,255,.82);
}

/* Pills */
.pillRow{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pill{
  display:inline-flex;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   PROJECTS (GALLERY GRID)
   ========================= */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:14px;
  margin-top:14px;
}

.projectCard{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow:hidden;
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
}
.projectCard:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.thumb{
  width:100%;
  aspect-ratio: 16 / 10;
  background:#0a1020;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.projMeta{ padding:14px; }
.projTitle{ font-weight:900; margin:0 0 4px; }
.projSub{ margin:0; opacity:.82; font-size:13px; color: rgba(255,255,255,.72); }

/* =========================
   ESTIMATE FORM
   ========================= */
.estimateWrap{ max-width: 900px; margin: 0 auto; }

.estimateForm .formGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items:start;
}

.estimateForm label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width:0;
  text-align:left;
  font-weight: 800;
  color: rgba(255,255,255,.80);
  font-size: 13px;
}

.estimateForm input,
.estimateForm select,
.estimateForm textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: var(--text);
  outline:none;
}

.estimateForm textarea{
  min-height: 140px;
  resize: vertical;
}

.estimateForm .full{ grid-column: 1 / -1; }

/* =========================
   LIGHTBOX
   ========================= */
#lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}

#lightbox .lbPanel{
  width:min(980px, 100%);
  padding:18px;
  background: rgba(10,16,32,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(14px);
}

.lbTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
  color:#fff;
}

.lbTop .meta{min-width:0;}
#lbTitle{font-size:18px;font-weight:900;}
#lbSubtitle{opacity:.80;margin-top:2px;font-size:14px;}

#lbClose{
  background:#fff;
  border:none;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
}

.lbMain{
  display:flex;
  gap:10px;
  align-items:center;
}

.lbNav{
  background:rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.22);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  min-width:44px;
}

.lbFrame{
  flex:1;
  background:#0a1020;
  border-radius:16px;
  overflow:hidden;
  aspect-ratio:16/10;
  display:flex;
  align-items:center;
  justify-content:center;
}

#lbImg{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

#lbDots{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin-top:12px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.25);
  cursor:pointer;
}

.dot.active{
  background:rgba(43,103,255,.95);
  border-color:rgba(43,103,255,.95);
}

/* =========================
   SERVICE AREAS GRID
   ========================= */
.areaGrid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.areaGrid h3{
  margin-bottom:6px;
  font-size:16px;
  font-weight:800;
  color: rgba(255,255,255,.92);
}

/* =========================
   BIO PAGE
   ========================= */
.bioGrid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.bioPhoto{
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  display: block;
  background: rgba(255,255,255,.06);
}

/* =========================
   TEAM PAGE
   ========================= */
.teamGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.teamCard{
  display:block;
  text-decoration:none;
  color: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow:hidden;
  transition: transform .15s ease, filter .15s ease;
}

.teamCard:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.teamPhoto{
  width:100%;
  aspect-ratio: 16/10;
  background:#0a1020;
  overflow:hidden;
}

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

.teamMeta{ padding:14px; }

.teamName{
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 4px;
  color: rgba(255,255,255,.92);
}

.teamRole{
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}

.teamCta{
  font-weight: 900;
  color: rgba(58,160,255,.92);
}

/* =========================
   FOOTER
   ========================= */
.footer{
  background: rgba(255,255,255,.10);
  border-top: 1px solid rgba(255,255,255,.10);
  padding:18px 20px;
  text-align:center;
  opacity:.9;
  margin-top:28px;
  font-size:14px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .bioGrid{ grid-template-columns: 1fr; }
  .teamGrid{ grid-template-columns: 1fr; }
  .bioPhoto{ height: 420px; }
  .btn{ width: 100%; }
  h1{ font-size: 32px; }
}

@media (max-width: 760px){
  .estimateForm .formGrid{ grid-template-columns: 1fr; }
}
