/* BBS Solutions - Operational Systems Consulting */

/* ---------- Base ---------- */
:root{
  --bg: #f7f6f3;             /* subtle off-white */
  --card: #ffffff;
  --text: #141414;           /* near-black */
  --muted: #5b5b5b;
  --accent: #1b1b1b;         /* dark charcoal */
  --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;
}

/* ---------- Nav (transparent over hero) ---------- */
.nav{
  position: absolute;
  top:0; left:0; right:0;
  z-index: 50;
  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: #fff;
}

.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:#fff;
  font-size: 14px;
  opacity: .92;
  text-decoration: none;
}

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

.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: #fff;
  border-color: rgba(255,255,255,.25);
}

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

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

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

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

.hero-content{
  max-width: 780px;
}

.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: #fff;
  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{
  padding: 22px 0;
  color: rgba(20,20,20,.55);
  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; }
}

@media (max-width: 560px){
  .container{ width: min(var(--max), calc(100% - 32px)); }
  .nav-links{ gap: 12px; }
  .nav-links a{ display:none; } /* keeps it clean on mobile for now */
}
