/* =========================================
   BambooMTN — Styles
   ========================================= */

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

:root {
  --bg-primary: #0E1116;
  --bg-secondary: #141922;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A8B4;
  --accent: #1F3A5F;
  --border: #2A2F38;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* --- Container --- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav-logo img {
  height: 32px;
  width: auto;
  /* Logo is dark on transparent — invert + brighten so it reads white/light on the dark nav */
  filter: invert(1) brightness(1.8);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hamburger */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Lighter overlay on left since the hero image is already very dark */
  background: linear-gradient(
    to right,
    rgba(14, 17, 22, 0.82) 0%,
    rgba(14, 17, 22, 0.5) 50%,
    rgba(14, 17, 22, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 24px;
  margin-left: calc((100vw - 1200px) / 2 + 24px);
}

.hero-headline {
  font-family: 'Space Grotesk', var(--font);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #264a75;
  border-color: #264a75;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* --- Sections --- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* --- Services --- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-block {
  background: var(--bg-primary);
  padding: 32px 28px;
}

.service-block h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.service-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-block li {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Work --- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.work-card {
  background: var(--bg-secondary);
  padding: 36px 28px;
}

.work-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.work-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- About --- */

.about-content {
  max-width: 680px;
}

.about-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* --- Contact --- */

.contact-content {
  max-width: 520px;
}

.contact-email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-color: var(--text-secondary);
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.footer a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text-primary);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 24px;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(14, 17, 22, 0.9) 0%,
      rgba(14, 17, 22, 0.7) 100%
    );
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
