/* =========================================================
   Bejoy General Enterprises Ltd: site theme
   ========================================================= */

:root {
  --ink: #1d1c20;
  --ink-2: #27262b;
  --steel: #343338;
  --muted: #6d6e71;
  --line: #e8e4e7;
  --paper: #ffffff;
  --sand: #f8f5f7;
  --accent: #d6168e;
  --accent-dark: #a8106f;
  --accent-light: #ff4fa8;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(29, 28, 32, 0.08);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
#main { overflow-x: clip; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: 0.01em;
}

a { color: var(--accent-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }

img { max-width: 100%; display: block; }

section { padding: 96px 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
}

.section-heading {
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin: 0; }

.btn-accent,
.btn-ghost,
.btn-outline,
.btn-dark,
.btn-dark-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel); color: #fff; }
.btn-dark-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-dark-outline:hover { background: #fff; color: var(--accent-dark); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-size: 14px;
  padding: 8px 0;
}
.topbar a, .topbar span { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent-light); }
.topbar-info { display: flex; gap: 28px; }
.topbar i { color: var(--accent-light); font-size: 16px; }

/* ---------- Header ---------- */
#header {
  position: sticky;
  top: 0;
  z-index: 997;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
#header.scrolled { box-shadow: 0 6px 24px rgba(20,24,31,.08); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.navbar { padding: 0; }
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.navbar .nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 8px 12px;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--ink); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  padding: 4px;
}

@media (max-width: 991.98px) {
  .mobile-nav-toggle { display: block; }
  .navbar {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(20,24,31,.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 12px 16px 20px;
    box-shadow: var(--shadow);
  }
  .navbar .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 19px; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-cta { margin-top: 12px; background: var(--accent); text-align: center; border: 0; border-radius: 4px; color: #fff; }
  .navbar.open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  padding: 0;
  min-height: min(calc(100vh - var(--header-h)), 860px);
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(22,20,24,.93) 0%, rgba(30,24,30,.78) 45%, rgba(120,10,80,.3) 100%),
    url("../oct2025/church6.jpg") center 62% / cover no-repeat;
}
#hero .container { position: relative; }
.hero-content { max-width: 720px; padding: 110px 0 170px; }
#hero .eyebrow { color: var(--accent-light); }
#hero h1 {
  color: #fff;
  font-size: clamp(46px, 7.2vw, 88px);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: 22px;
}
#hero h1 span { color: var(--accent-light); }
#hero p { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.85); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { position: absolute; left: 0; right: 0; bottom: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--accent);
  color: #fff;
  transform: translateY(50%);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.stat { padding: 26px 28px; border-right: 1px solid rgba(255,255,255,.22); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 42px; line-height: 1; }
.stat span { font-weight: 600; font-size: 15px; }

@media (max-width: 767.98px) {
  .hero-content { padding: 70px 0 60px; }
  .hero-stats { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); transform: none; margin: 0 -16px; box-shadow: none; }
  .stat { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.22); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat strong { font-size: 34px; }
}

/* ---------- Clients ---------- */
.clients { padding: 130px 0 70px; background: var(--paper); border-bottom: 1px solid var(--line); }
.clients-label {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 36px;
  align-items: center;
}
.clients-grid img {
  max-height: 70px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .3s, opacity .3s;
}
.clients-grid img:hover { filter: none; opacity: 1; }
@media (max-width: 991.98px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575.98px) {
  .clients { padding: 56px 0; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .clients-grid img { max-height: 50px; }
}

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 0 28px 28px; }
.about-media::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 60%;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
  border-radius: var(--radius);
}
.about-media img {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  right: -10px;
  bottom: 50px;
  background: var(--ink);
  color: #fff;
  padding: 18px 24px;
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-family: var(--font-head); font-size: 44px; font-weight: 800; line-height: 1; color: var(--accent-light); }
.about-badge span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 14px; }
@media (max-width: 575.98px) { .about-badge { right: 8px; bottom: 40px; } }

.lead-text { font-size: 19px; color: var(--ink); font-weight: 500; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.check-list li { display: flex; gap: 10px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.check-list i { color: var(--accent-dark); font-size: 22px; flex-shrink: 0; }
@media (max-width: 575.98px) { .check-list { grid-template-columns: 1fr; } }

.values {
  margin-top: 80px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 36px;
}
.value-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; border-bottom: 2px solid var(--line); }
.value-tab {
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 10px 16px;
  margin-bottom: -2px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.value-tab:hover { color: var(--ink); }
.value-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.value-panel { display: none; }
.value-panel.active { display: block; animation: fadeIn .35s ease; }
.value-panel p:last-child { margin-bottom: 0; }
.value-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.value-grid li { display: flex; gap: 10px; color: var(--ink); font-weight: 500; }
.value-grid i { color: var(--accent-dark); font-size: 22px; }
.core-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.core-grid div { background: #fff; padding: 20px; border-top: 4px solid var(--accent); border-radius: 6px; }
.core-grid strong { display: block; font-family: var(--font-head); font-size: 22px; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.core-grid span { font-size: 15px; color: var(--muted); line-height: 1.5; }
@media (max-width: 991.98px) { .core-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
  .values { padding: 24px 18px; margin-top: 56px; }
  .value-grid, .core-grid { grid-template-columns: 1fr; }
  .value-tab { font-size: 16px; padding: 8px 10px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.services { background: var(--ink); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.services .container { position: relative; }
.services .section-heading, .services h4 { color: #fff; }
.services .section-head p { color: rgba(255,255,255,.7); }
.services .eyebrow { color: var(--accent-light); }

.service-group {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-light);
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-group::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.service-group:first-of-type { margin-top: 0; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s, border-color .25s, background .25s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); background: #302e34; }
.service-card i {
  font-size: 30px;
  color: #fff;
  background: var(--accent);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 18px;
}
.service-card h4 { font-size: 23px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; line-height: 1.1; }
.service-card p { font-size: 15.5px; margin: 0; line-height: 1.6; }
@media (max-width: 1199.98px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.projects { background: var(--sand); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd8cf;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,28,32,.78), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}
.work-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 15px;
  color: #fff;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.work-item:hover img { transform: scale(1.06); }
.work-item:hover::after,
.work-item:hover .work-tag,
.work-item:focus-visible::after,
.work-item:focus-visible .work-tag { opacity: 1; transform: none; }
.work-item.is-hidden { display: none; }
@media (max-width: 991.98px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .work-tag { display: none; } }

/* ---------- Credentials ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.cert {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.cert:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--accent); }
.cert img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: top; border-radius: 4px; background: var(--sand); }
.cert span {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  margin-top: 10px;
  line-height: 1.2;
}
@media (max-width: 1199.98px) { .cert-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 767.98px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 56px 0;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 16px, transparent 16px 32px),
    var(--accent);
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; text-transform: uppercase; margin: 0 0 6px; }
.cta-band p { margin: 0; font-weight: 500; color: rgba(255,255,255,.88); }
@media (max-width: 991.98px) { .cta-band { text-align: center; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 28px; }
.member { text-align: left; }
.member-pic { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; background: var(--sand); }
.member-pic::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--accent); }
.member-pic img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; transition: transform .5s; }
.member:hover .member-pic img { transform: scale(1.04); }
.member h4 { font-size: 26px; font-weight: 700; text-transform: uppercase; margin: 0; }
.member span { color: var(--accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); }
.contact-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(20,24,31,.04);
}
.contact-card:last-child { margin-bottom: 0; }
.contact-card > i {
  font-size: 24px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 8px;
}
.contact-card h4 { font-size: 21px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.contact-card p { margin: 0 0 2px; }
.contact-card a { color: var(--steel); font-weight: 500; }
.contact-card a:hover { color: var(--accent-dark); }
.map-wrap { height: 100%; min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
#footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 70px 0 0; font-size: 15.5px; }
#footer .brand, #footer .brand-text { color: #fff; }
#footer .brand-text small { color: rgba(255,255,255,.55); }
#footer h5 { color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer li { margin-bottom: 8px; }
#footer a { color: rgba(255,255,255,.75); }
#footer a:hover { color: var(--accent-light); }
#footer .social {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 20px;
  color: #fff;
}
#footer .social:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 22px 0; font-size: 14px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 996;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 28px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--ink); color: var(--accent-light); }

@media (max-width: 767.98px) {
  section { padding: 70px 0; }
  .container { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Vision / Mission / Ethos ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.vm-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--accent);
}
.vm-card i { font-size: 34px; color: var(--accent); margin-bottom: 12px; display: block; }
.vm-card h3 { font-size: 26px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.vm-card p { margin: 0; }
@media (max-width: 991.98px) { .vm-grid { grid-template-columns: 1fr; margin-top: 56px; } }

/* ---------- Service divisions ---------- */
.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.division {
  position: relative;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.division:hover { transform: translateY(-4px); border-color: var(--accent); }
.division-wide { grid-column: span 2; }
.division-no {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: rgba(255,255,255,.06);
}
.division > i {
  font-size: 30px;
  color: #fff;
  background: var(--accent);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 18px;
}
.division h4 { color: #fff; font-size: 25px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.division ul { list-style: none; padding: 0; margin: 0; }
.division li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 16px; }
.division li:last-child { border-bottom: 0; }
.division li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 2px; background: var(--accent-light); }
.division .two-col { columns: 2; column-gap: 28px; }
.division .two-col li { break-inside: avoid; }
@media (max-width: 991.98px) { .division-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
  .division-grid { grid-template-columns: 1fr; }
  .division-wide { grid-column: auto; }
  .division .two-col { columns: 1; }
}

/* ---------- Licences ---------- */
.licence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.licence {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  border-left: 4px solid var(--accent);
}
.lic-class {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .08em;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.licence h4 { font-size: 23px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.licence p { margin: 0; color: var(--steel); font-weight: 500; }
.licence small { color: var(--muted); font-size: 14px; }
.cert-sub { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 991.98px) { .licence-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .licence-grid { grid-template-columns: 1fr; } }

/* ---------- Client groups ---------- */
.client-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.cg { background: var(--sand); border-radius: var(--radius); padding: 22px 24px; }
.cg h4 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.cg h4 i { color: var(--accent); font-size: 24px; }
.cg ul { list-style: none; padding: 0; margin: 0; }
.cg li { font-size: 15.5px; padding: 4px 0; color: var(--steel); }
@media (max-width: 991.98px) { .client-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .client-groups { grid-template-columns: 1fr; } }

/* ---------- Featured projects ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.featured { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.featured > a { display: block; overflow: hidden; }
.featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.featured:hover img { transform: scale(1.04); }
.featured > div { padding: 20px 24px 24px; }
.featured h4 { font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 10px 0 4px; }
.featured p { margin: 0; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.featured .f-desc { display: block; margin-top: 8px; color: var(--steel); font-size: 15.5px; }
.status { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
.status-live { background: var(--accent); color: #fff; }
.status-done { background: var(--ink); color: #fff; }
@media (max-width: 767.98px) { .featured-grid { grid-template-columns: 1fr; } }

/* ---------- Home designs ---------- */
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.design { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.design:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.design.is-hidden { display: none; }
.design-img { position: relative; display: block; overflow: hidden; background: var(--sand); }
.design-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.design:hover .design-img img { transform: scale(1.05); }
.d-code { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; padding: 2px 10px; border-radius: 3px; }
.design-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.design h4 { font-size: 23px; font-weight: 700; text-transform: uppercase; margin: 0 0 2px; }
.d-loc { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 4px; }
.d-specs { list-style: none; padding: 0; margin: 12px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--steel); }
.d-specs li { display: flex; align-items: center; gap: 5px; }
.d-specs i { color: var(--accent); font-size: 18px; }
.d-price { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--accent-dark); line-height: 1; }
.d-price small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 991.98px) { .design-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .design-grid { grid-template-columns: 1fr; } }

/* ---------- Team (expanded) ---------- */
.team { background: var(--sand); }
.team .member-pic { background: #fff; }
.team-sub { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); margin: 0 0 20px; }
.team-grid + .team-sub { margin-top: 48px; }
.team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-grid-sm { grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team-grid-sm .member h4 { font-size: 21px; }
.member span { display: block; line-height: 1.35; margin-top: 2px; }
@media (max-width: 991.98px) { .team-grid, .team-grid-sm { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .team-grid, .team-grid-sm { grid-template-columns: 1fr 1fr; gap: 16px; } .member h4 { font-size: 19px; } .member span { font-size: 12.5px; } }

/* Contact sits after the sand team section */
.contact { background: var(--paper); }
.contact-card { background: var(--sand); }

@media (min-width: 992px) and (max-width: 1299.98px) {
  .navbar .nav-link { padding: 8px 8px; font-size: 16px; }
  .navbar .nav-link::after { left: 8px; right: 8px; }
  #header .btn-accent { padding: 10px 16px; font-size: 15px; }
}

/* ---------- Logo ---------- */
.brand-logo { height: 52px; width: auto; display: block; }
.brand-footer .brand-logo { height: 64px; }
@media (max-width: 575.98px) { .brand-logo { height: 44px; } }
