
/* BBS Solutions - Operational Systems Consulting */

/* ---------- Base ---------- */
:root {
  --bg: #f7f6f3;
  --card: #ffffff;
  --text: #141414;
  --muted: #5b5b5b;
  --accent: #1b1b1b;
  --accent-hover: #000000;
  --border: rgba(20,20,20,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 14px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
.nav {
  position: relative;
  z-index: 50;
  background: #222222;
  padding: 18px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
}

.brand .name {
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 18px;
}

.brand .tag {
  font-size: 12px;
  opacity: .85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: #ffffff;
  font-size: 14px;
  opacity: .92;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-links .btn-primary {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.35);
}

/* Mobile menu button */
.mobile-menu-button {
  display: none;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255,255,255,.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255,255,255,.14);
  color: #ffffff;
  border-color: rgba(255,255,255,.22);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.20);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  background:
    linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.62)),
    url("/assets/images/hp_background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Watermark overlay */
.hero::after {
  content: "";
  position: absolute;
  right: -260px;
  bottom: -220px;
  width: 1050px;
  height: 1050px;
  background: url("/assets/images/logo-light.png") no-repeat;
  background-size: contain;
  background-position: center;
  opacity: .08;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-left: 190px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.hero p {
  margin: 0 0 26px;
  font-size: 18px;
  color: rgba(255,255,255,.92);
  max-width: 640px;
}

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

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.3px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- About Preview ---------- */
.about-preview {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-preview .text {
  max-width: 720px;
}

.about-preview p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ---------- Contact Footer Section ---------- */
.contact-band {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.contact-band h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.contact-band p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-band .email {
  display: inline-block;
  font-weight: 650;
  border-bottom: 1px solid rgba(20,20,20,.25);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */

/* ---------- Footer ---------- */
.footer {
  padding: 22px 0;
  background: #222222;
  color: #ffffff;
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .mobile-menu-button {
    display: block;
    color: #ffffff;
    border-color: rgba(255,255,255,.4);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 16px 0;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
    background: #222222;
  }

  .nav-links a,
  .nav-links.open a {
    display: block;
    color: #ffffff;
    padding: 10px 12px;
  }

  .hero-content {
    margin-left: 0;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero::after {
    right: -80px;
    bottom: -60px;
    width: 700px;
    height: 700px;
    opacity: .07;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .brand .name {
    font-size: 16px;
  }

  .brand .tag {
    font-size: 11px;
  }
}


/* Mobile hamburger menu */
@media (max-width: 768px) {
  .mobile-menu-button {
    color: #ffffff;
    border: 2px solid #ffffff;
    background: #444444;
  }
}
