/* ==========================================================================
   Majlis Tech — Homepage (dark theme, per approved build spec)
   ========================================================================== */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/BricolageGrotesque-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/BricolageGrotesque-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'InstrumentSans';
  src: url('/assets/fonts/InstrumentSans-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/InstrumentSans-Variable.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBMPlexMono';
  src: url('/assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0C0C;
  --panel: #121515;
  --tabs-bg: #141818;
  --hairline: #1A1E1E;
  --border: #24292A;
  --divider: #1e2323;
  --teal: #5CC8BE;
  --white: #FFFFFF;
  --body-grey: #8A9190;
  --story-grey: #9BA3A2;
  --list-text: #C6CBCA;
  --footer-grey: #5A6160;
  --nav-grey: #9BA3A2;
}

* { box-sizing: border-box; }

html.home, body.home {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'InstrumentSans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.home h1, body.home h2 {
  font-family: 'Bricolage', sans-serif;
  font-weight: 700;
  margin: 0;
}

body.home a { text-decoration: none; color: inherit; }

body.home .wrap-1200 { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
body.home .wrap-960  { max-width: 960px;  margin: 0 auto; padding: 0 40px; }

/* ---------- Fixed logo watermark (behind entire page) ---------- */
.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.bg-watermark img {
  width: 900px;
  opacity: 0.045;
}

.home-header,
.hero-section,
.home-section,
.home-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  height: 84px;
  display: flex;
  align-items: center;
}

.home-header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.home-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-header .brand img {
  height: 26px;
  width: auto;
  display: block;
}

.home-header .wordmark {
  font-family: 'IBMPlexMono', monospace;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  font-size: 14px;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.home-nav a {
  font-family: 'InstrumentSans', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--nav-grey);
}

.home-nav a:hover { color: var(--white); }

.home-nav a.nav-cta {
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 130px 0 110px;
  text-align: center;
}

.hero-section .wrap-960 {
  max-width: 860px;
}

.hero-eyebrow {
  display: block;
  font-family: 'IBMPlexMono', monospace;
  font-weight: 400;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  margin-bottom: 22px;
}

.hero-section h1 {
  font-size: 44px;
  line-height: 1.32;
  color: var(--white);
}

.hero-section h1 .accent { color: var(--teal); }

.hero-section .hero-subline {
  font-family: 'InstrumentSans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--body-grey);
  max-width: 540px;
  margin: 24px auto 0;
  line-height: 1.6;
}

/* ---------- Shared section chrome ---------- */
.home-section {
  border-top: 1px solid var(--hairline);
  padding: 90px 0;
  text-align: center;
}

.home-section .inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-section.wide .inner { max-width: 820px; }

/* ---------- Our Story ---------- */
#our-story h2 { font-size: 27px; color: var(--white); }

#our-story p {
  font-family: 'InstrumentSans', sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--story-grey);
  line-height: 1.8;
  margin-top: 22px;
}

/* ---------- What We Do ---------- */
#what-we-do h2 { font-size: 29px; color: var(--white); margin-bottom: 40px; }

.tab-pill {
  display: inline-flex;
  background: var(--tabs-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px;
  gap: 4px;
}

.tab-pill button {
  font-family: 'InstrumentSans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--body-grey);
  padding: 11px 26px;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-pill button.active {
  background: var(--teal);
  color: var(--bg);
}

.service-panel {
  margin-top: 28px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 38px;
}

.service-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-panel li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  font-family: 'InstrumentSans', sans-serif;
  font-size: 15px;
  color: var(--list-text);
}

.service-panel li:last-child { border-bottom: none; }

.service-panel li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.service-list { display: none; }
.service-list.active { display: block; }

/* ---------- Contact ---------- */
#contact h2 { font-size: 29px; color: var(--white); }

#contact p {
  font-family: 'InstrumentSans', sans-serif;
  font-size: 15px;
  color: var(--body-grey);
  margin-top: 16px;
}

#contact .email-link {
  display: inline-block;
  margin-top: 18px;
  font-family: 'InstrumentSans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

#contact .email-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.home-footer {
  border-top: 1px solid var(--hairline);
  padding: 30px 0;
  text-align: center;
}

.home-footer p {
  font-family: 'IBMPlexMono', monospace;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--footer-grey);
  margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  body.home .wrap-1200,
  body.home .wrap-960 { padding: 0 22px; }

  .home-header { height: 68px; }

  .home-nav { gap: 18px; }
  .home-nav a { font-size: 13px; }

  .hero-section { padding: 80px 0 64px; }
  .bg-watermark img { width: 480px; }
  .hero-section h1 { font-size: 30px; }
  .hero-section .hero-subline { font-size: 15px; }

  .home-section { padding: 64px 0; }

  .service-panel { padding: 24px 22px; }

  .tab-pill { width: 100%; justify-content: center; }
}
