/* styles.css
   ==========================================================
   Fidelity Home — Shared Stylesheet (used by multiple pages)
   - Keep selectors stable (shared across home/projects/about)
   - Add new styles at the bottom to avoid unintended overrides
   ========================================================== */

/* =========================
   DESIGN TOKENS / VARIABLES
   ========================= */
:root{
  --bg:#0b0d12;
  --panel: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.52);
  --max: 1120px;
  --r: 18px;
  --r2: 26px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

/* =========================
   BASE / RESETS
   ========================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(139,92,246,.30), transparent 55%),
    radial-gradient(820px 520px at 86% 0%, rgba(34,197,94,.16), transparent 60%),
    linear-gradient(#070810, var(--bg));
}
body.lock{ overflow:hidden; }

/* Skip link (accessibility) */
.skipLink{
  position:absolute;
  left:-999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 800;
  z-index: 2000;
}
.skipLink:focus{ left: 12px; }

/* =========================
   HEADER (shared)
   ========================= */
.siteHeader{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,12,18,.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .2s ease, box-shadow .2s ease;
}
.siteHeader.scrolled{
  background: rgba(10,12,18,.80);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

/* =========================
   ANNOUNCEMENT BAR (shared)
   ========================= */
@keyframes adIn { from{opacity:0; transform:translateY(-10px)} to{opacity:1; transform:translateY(0)} }
@keyframes adOut { to{opacity:0; transform:translateY(-10px)} }

.ad{ border-bottom: 1px solid rgba(255,255,255,.08); }
.adInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  gap: 10px;
  animation: adIn .35s ease both;
}
.ad.isLeaving .adInner{ animation: adOut .25s ease forwards; }
.ad.isHidden{ display:none; }

.adPill{
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.14);
  color: rgba(34,197,94,.95);
  flex: 0 0 auto;
}
.adText{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adLink{
  text-decoration:none;
  font-weight: 800;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 8px 12px;
  border-radius: 12px;
  transition: transform .18s ease, background .18s ease;
}
.adLink:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }

.iconBtn{
  border:0;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  width: 42px; height: 42px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.iconBtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }

/* =========================
   NAVIGATION (shared)
   ========================= */
.nav{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: var(--text);
}
.logo{
  width: 46px; height: 46px;
  border-radius: 14px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.name{
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 16px;
}

/* stable layout right side */
.navRight{
  display:grid;
  grid-auto-flow: column;
  align-items:center;
  gap: 10px;
}

.links{
  display:flex;
  align-items:center;
  gap: 6px;
}
.links a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.links a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.links .cta{
  margin-left: 6px;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,197,94,.70));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 26px rgba(139,92,246,.18);
}

/* Licence badge */
.licenseBadge{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.80);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.licenseBadge strong{ color: rgba(255,255,255,.96); }

/* Burger */
.burger{
  display:none;
  width: 48px; height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  gap: 6px;
}
.burger span{
  display:block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.85);
}

/* =========================
   OVERLAY + DRAWER (shared)
   ========================= */
.overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 1000;
}
.overlay.show{ opacity:1; }

.drawer{
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(380px, 86vw);
  background: rgba(15,17,24,.92);
  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 1001;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.drawer.open{ transform: translateX(0); }

.drawerTop{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.drawerBrand{ display:flex; align-items:center; gap: 10px; }
.drawerLogo{
  width: 40px; height: 40px;
  border-radius: 14px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.drawerName{ font-weight: 900; letter-spacing:-.02em; }

.drawerBadges{
  display:flex; flex-wrap:wrap; gap: 8px;
}
.drawerBadges span{
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.78);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.drawerLink, .drawerCta{
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 12px;
  border-radius: 14px;
}
.drawerCta{
  background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,197,94,.70));
}
.drawerNote{
  margin-top: auto;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* =========================
   MAIN LAYOUT (shared)
   ========================= */
.main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 40px;
  overflow: visible;
}
.muted{ color: var(--muted); margin: 8px 0 0; }
.label{ margin:0; font-size:12px; color: var(--muted2); }
.big{ margin:6px 0 12px; font-size: 26px; font-weight: 900; }
.small{ margin:6px 0 0; color: var(--muted); font-size: 13px; }

.inlineLink{
  color: rgba(255,255,255,.90);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.inlineLink:hover{ border-bottom-color: rgba(255,255,255,.40); }

/* Buttons */
.btnPrimary,.btnGhost{
  display:inline-flex; justify-content:center; align-items:center;
  text-decoration:none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .18s ease, background .18s ease;
  cursor: pointer;
}
.btnPrimary{
  color: rgba(255,255,255,.96);
  background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,197,94,.70));
}
.btnGhost{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.05);
}
.btnPrimary:hover,.btnGhost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }

/* =========================
   SECTIONS (home anchors)
   ========================= */
.section{
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.section h2{
  margin: 0;
  letter-spacing: -.02em;
}

/* =========================
   HOME PAGE ONLY STYLES
   ========================= */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding: 28px 0 10px;
  align-items:start;
}
.heroCopy h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.heroCopy p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 64ch;
}
.heroBtns{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.heroCard{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.heroImg{
  width: 100%;
  height: 220px;
  display:block;
  object-fit: cover;
}
.heroCardBody{ padding: 18px; }

.dots{
  display:flex;
  gap: 6px;
  margin-bottom: 14px;
}
.dots span{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

/* Responsive hero */
@media (max-width: 880px){
  .hero{
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
}

/* =========================
   PROJECTS / ABOUT SHARED
   ========================= */

/* Page hero */
.pageHero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.kicker{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.pageHeroStat{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 14px;
}

/* Projects sub-nav (sticky) */
.projectsNav{
  position: sticky;
  top: var(--headerH, 84px);
  z-index: 999;

  margin: 14px 0 10px;
  padding: 10px 12px;

  display:flex;
  gap: 8px;
  align-items:center;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15,17,24,.75);
  backdrop-filter: blur(10px);

  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.projectsNav::-webkit-scrollbar{ display:none; }
.projectsNav a{ scroll-snap-align: start; }

.projectsNav a{
  text-decoration:none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  transition: background .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.projectsNav a:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  transform: translateY(-1px);
}
.projectsNav a.active{
  background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(34,197,94,.7));
  color: rgba(255,255,255,.98);
}

.projectGroup{ margin-top: 12px; }
.projectGroup{ scroll-margin-top: calc(var(--headerH, 84px) + 16px); }

.groupTitle{ margin: 10px 0 12px; letter-spacing: -.02em; }

/* Project card */
.project{
  padding: 24px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.projectTop{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.projectTitle{ margin: 0 0 8px; }
.projectMeta{
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}
.dotSep{ opacity: .6; }
.projectAddr{
  margin: 0;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

.projectDesc{
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 85ch;
}
.projectDesc p{ margin: 0 0 10px; }
.projectBullets{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
}
.projectBullets li{ margin: 6px 0; }
.projectBullets strong{ color: rgba(255,255,255,.94); }

.tag{
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 12px;
}

.gallery--compact .gItem:nth-child(1),
.gallery--compact .gItem:nth-child(2),
.gallery--compact .gItem:nth-child(3),
.gallery--compact .gItem:nth-child(4),
.gallery--compact .gItem:nth-child(5),
.gallery--compact .gItem:nth-child(6){
  grid-column: span 4;
}

.gallery{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.gItem{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.gItem:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.gItem img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Masonry-ish layout */
.gItem:nth-child(1){ grid-column: span 7; }
.gItem:nth-child(2){ grid-column: span 5; }
.gItem:nth-child(3){ grid-column: span 4; }
.gItem:nth-child(4){ grid-column: span 4; }
.gItem:nth-child(5){ grid-column: span 4; }
.gItem:nth-child(6){ grid-column: span 6; }
.gItem:nth-child(7){ grid-column: span 6; }
.gItem:nth-child(8){ grid-column: span 4; }
.gItem:nth-child(9){ grid-column: span 4; }
.gItem:nth-child(10){ grid-column: span 4; }

/* Videos */
.videos{ margin-top: 18px; }
.videosTitle{ margin: 0 0 10px; letter-spacing: -.01em; }
.videoFrame{
  margin: 10px 0;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.videoFrame video{
  width: 100%;
  height: auto;
  display:block;
}

/* CTA band */
.ctaBand{
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(34,197,94,.10));
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  opacity: 0;
  transition: opacity .2s ease;
}
.lightbox.show{ opacity: 1; }
.lightboxInner{
  width: min(1100px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,17,24,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.lightboxInner img{ width: 100%; height: auto; display:block; }
.lightboxClose{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  cursor:pointer;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}

/* =========================
   FOOTER (shared)
   ========================= */
.footer{
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(8,10,14,.75);
}
.footerGrid{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}
.footerLogo{
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 7px;
}
.footerTag{
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 44ch;
}
.footerSocial{ display:flex; gap: 10px; flex-wrap:wrap; }
.footerSocial a,
.footerCol a,
.footerFine a{
  color: rgba(255,255,255,.80);
  text-decoration:none;
  font-weight: 700;
  font-size: 14px;
  transition: color .18s ease, transform .18s ease;
}
.footerSocial a:hover,
.footerCol a:hover,
.footerFine a:hover{
  color: rgba(255,255,255,.98);
  transform: translateY(-1px);
}
.footerCol{ display:flex; flex-direction:column; gap: 9px; }
.footerCol h3{ margin:0 0 10px; font-size:14px; color: rgba(255,255,255,.92); }
.footerQuote{
  display:inline-flex;
  margin-top: 8px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.footerBottom{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 24px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted2);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footerFine{ display:flex; align-items:center; gap: 10px; }

/* =========================
   RESPONSIVE (shared)
   ========================= */
@media (max-width: 980px){
  .licenseBadge{ display:none; }
}
@media (max-width: 880px){
  .links{ display:none; }
  .burger{ display:flex; }
  .pageHero{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gItem{ grid-column: auto !important; }
}
@media (max-width: 520px){
  .adPill, .adLink{ display:none; }
  .adText{ white-space: normal; }
  .projectsNav{ border-radius: 18px; }
  .footerGrid{ grid-template-columns: 1fr; }
  .footerBottom{ flex-direction:column; align-items:flex-start; }
}

/* ======================
   FORM STYLES (shared)
   ====================== */
.form{
  display:grid;
  gap: 14px;
  max-width: 520px;
}
.formGroup{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.form label{
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.form input,
.form textarea,
.form select{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family: inherit;
}

/* ======================
   ABOUT PAGE (shared)
   ====================== */
.aboutHeroBtns{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.aboutTrust{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trustPill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.84);
  font-weight: 800;
  font-size: 13px;
}
.aboutGrid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.aboutCard{
  padding: 22px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.aboutCard h2{
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.aboutList{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.84);
}
.aboutList li{ margin: 10px 0; }
.aboutList strong{ color: rgba(255,255,255,.96); }
.aboutValues{ margin-top: 18px; }
.aboutSectionTitle{ margin: 0 0 12px; letter-spacing: -.02em; }
.valuesGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.valueCard{
  padding: 18px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.valueTitle{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.aboutTimeline{ margin-top: 18px; }
.timeline{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}
.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 16px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.stepNum{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items: center;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.stepTitle{
  margin: 0 0 4px;
  font-weight: 900;
  letter-spacing: -.01em;
}
@media (max-width: 880px){
  .aboutGrid{ grid-template-columns: 1fr; }
  .valuesGrid{ grid-template-columns: 1fr; }
}

/* ==========================================================
   NEW: HOME PAGE “COMPLETE” SECTIONS (safe additions)
   ========================================================== */
.sectionHead{ margin-bottom: 14px; }
.sectionHead p{ max-width: 70ch; }

.homeTrust{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 3-column responsive card grid */
.homeGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.homeCard{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.homeCardImg{
  width: 100%;
  height: 190px;
  display:block;
  object-fit: cover;
}
.homeCardBody{ padding: 16px; }
.homeCardTitle{
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.homeCardLink{
  display:inline-flex;
  margin-top: 10px;
  text-decoration:none;
  font-weight: 900;
  color: rgba(255,255,255,.92);
}

.aboutPreview{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.aboutPreviewImg{
  width: 100%;
  height: 280px;
  display:block;
  object-fit: cover;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
}

.processSteps{
  display:grid;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 980px){
  .homeGrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .homeGrid{ grid-template-columns: 1fr; }
  .aboutPreview{ grid-template-columns: 1fr; }
  .aboutPreviewImg{ height: 220px; }
}

/* ===== About page polish (safe add) ===== */
.pageHero h1{ text-shadow: 0 12px 40px rgba(0,0,0,.45); }
.valueCard{
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.valueCard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.aboutCard{
  transition: transform .18s ease, border-color .18s ease;
}
.aboutCard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}

/* ==========================================================
   FORM PAGE (safe additions)
   ========================================================== */
.enquiryLayout{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
}
.enquiryCard,
.enquiryAside{
  box-shadow: var(--shadow);
}
.enquiryCard .form{
  margin: 0 auto;
  width: 100%;
  max-width: 560px;
}
.enquiryCard .btnPrimary{ width: 100%; }
.formNote{
  font-size: 13px;
  line-height: 1.55;
  margin-top: 6px;
}
.form input,
.form textarea,
.form select{ width: 100%; }

.form select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

@media (max-width: 980px){
  .enquiryLayout{ grid-template-columns: 1fr; }
  .enquiryAside{ order: 2; }
}
@media (max-width: 520px){
  .enquiryCard,
  .enquiryAside{ padding: 18px; }
}

/* ==========================================================
   QUEENS PARK GALLERY – Mosaic Grid (UPDATED: no crop)
   ========================================================== */
#queens-park .gallery{
  display: grid;
  gap: 12px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-flow: dense;
}

/* keep nice tiles, but show full image */
#queens-park .gItem{
  grid-column: auto !important;
  grid-row: auto !important;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease;

  /* give the tile a stable box so "contain" works nicely */
  min-height: 220px;
}

/* ✅ MAIN FIX: show whole photo (no crop) */
#queens-park .gItem img{
  width: 100%;
  height: 100%;
  display: block;

  object-fit: contain;          /* <- no cropping */
  object-position: center;

  /* remove forced aspect ratios so originals can fit */
  aspect-ratio: auto;

  /* nicer letterbox background (optional but looks premium) */
  background: rgba(0,0,0,.25);
}

/* keep some tiles larger, without cropping */
#queens-park .gItem:nth-child(6n + 1){ grid-column: span 2; min-height: 260px; }
#queens-park .gItem:nth-child(6n + 3){ grid-row: span 2; min-height: 460px; }
#queens-park .gItem:nth-child(6n + 5){ grid-column: span 2; min-height: 260px; }

/* overlay */
#queens-park .gItem::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.28), transparent 55%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
#queens-park .gItem:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
}
#queens-park .gItem:hover::after{ opacity: 1; }

@media (min-width: 980px){
  #queens-park .gallery{
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}
@media (max-width: 979px) and (min-width: 621px){
  #queens-park .gallery{ grid-template-columns: repeat(3, 1fr); }
  #queens-park .gItem:nth-child(6n + 1),
  #queens-park .gItem:nth-child(6n + 5){ grid-column: span 2; }
  #queens-park .gItem:nth-child(6n + 3){ grid-row: span 1; min-height: 260px; }
}
@media (max-width: 620px){
  #queens-park .gallery{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #queens-park .gItem{ grid-column: auto; grid-row: auto; min-height: 200px; }
  #queens-park .gItem img{ background: rgba(0,0,0,.20); }
}

/* ==========================================================
   ✅ NEW: VIDEO ONLY FIRST VIEW (HOME)
   ========================================================== */
.heroVideoOnly{
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  margin-top: 10px;
  height: clamp(520px, 78vh, 820px);
}
.heroVideoOnlyEl{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================
   ✅ NEW: CONTENT SECTION AFTER VIDEO
   ========================================================== */
.heroAfterVideo{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding: 26px 0 10px;
  align-items:start;
}
@media (max-width: 880px){
  .heroAfterVideo{ grid-template-columns: 1fr; padding-top: 18px; }
}

/* ==========================================================
   ✅ NEW: HERO CARD LOGO IN “RESPONSE TIME” BOX
   ========================================================== */
.heroCardBody{
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heroCardTop{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

/* ✅ Change requested: make logo bigger (home “response time” box) */
.heroCardLogo{
  width: 78px;
  height: 78px;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  flex: 0 0 auto;
}

/* ==========================================================
   ✅ NAVBAR: WAY BIGGER (+~30% from your last “big” version)
   ========================================================== */
.nav{ transition: padding .22s ease; }
.logo{ transition: width .22s ease, height .22s ease, padding .22s ease, border-radius .22s ease; }
.name{ transition: font-size .22s ease; }
.links a{ transition: background .18s ease, transform .18s ease, color .18s ease, font-size .22s ease, padding .22s ease; }
.licenseBadge{ transition: padding .22s ease, font-size .22s ease; }
.burger{ transition: width .22s ease, height .22s ease, border-radius .22s ease; }

.nav{ padding: 31px 18px; }

.logo{
  width: 88px;
  height: 88px;
  padding: 13px;
  border-radius: 26px;
}

.name{ font-size: 25px; }

.links a{
  font-size: 20.5px;
  padding: 18px 23px;
  border-radius: 18px;
}

.licenseBadge{
  padding: 16px 21px;
  font-size: 18px;
}

.burger{
  width: 76px;
  height: 76px;
  border-radius: 26px;
}

/* Shrink to “standard” when scrolling */
.siteHeader.scrolled .nav{ padding: 12px 16px; }

.siteHeader.scrolled .logo{
  width: 46px;
  height: 46px;
  padding: 7px;
  border-radius: 14px;
}
.siteHeader.scrolled .name{ font-size: 16px; }

.siteHeader.scrolled .links a{
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 14px;
}

.siteHeader.scrolled .licenseBadge{
  padding: 10px 12px;
  font-size: 13px;
}
.siteHeader.scrolled .burger{
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

/* Mobile tuning */
@media (max-width: 520px){
  .nav{ padding: 28px 14px; }
  .logo{ width: 78px; height: 78px; padding: 12px; border-radius: 24px; }
  .name{ font-size: 22px; }

  .siteHeader.scrolled .nav{ padding: 12px 14px; }
  .siteHeader.scrolled .logo{ width: 44px; height: 44px; padding: 7px; border-radius: 14px; }
  .siteHeader.scrolled .name{ font-size: 15.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nav, .logo, .name, .links a, .licenseBadge, .burger{ transition: none !important; }
}

/* ==========================================================
   ✅ NEW: CLICK-SAFETY FIXES (prevents invisible blockers)
   ========================================================== */
.overlay[hidden],
.lightbox[hidden]{
  display: none !important;
}

/* Drawer shouldn't block clicks when closed */
.drawer[aria-hidden="true"]{
  pointer-events: none;
}
.drawer.open{
  pointer-events: auto;
}