/* =========================================================
   GLOBAL.CSS — Benjro Design System
   Used on ALL pages
   ========================================================= */

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= ROOT VARIABLES ================= */

:root {
  --benjro-blue: #3A76F0;
  --benjro-green: #2ECC71;
  --bg-light: #fafafa;
  --text-main: #111;
  --text-subtle: #666;
  --border-light: #e5e7eb;
}

/* ================= BASE ================= */

body {
  background: var(--bg-light);
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

/* ================= TECH HERO HEADER ================= */

.tech-header {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;

  position: relative;

  opacity: 0;
  animation: fadePage 0.9s ease forwards;
}

@keyframes fadePage {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Vertical divider between columns */
.header-inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% * 1.4 / (1.4 + 1));
  width: 1px;
  background: var(--border-light);
}

/* ================= HERO LEFT ================= */

.eyebrow {
  display: block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--benjro-blue);
}

.header-left h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
}

.header-sub {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  color: #555;
}

/* ================= HERO RIGHT ================= */

.header-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  padding: 22px 0;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  border-radius: 40px;
  transition: 0.25s ease;
}

.short-btn:hover {
  background: var(--benjro-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(58,118,240,0.35);
}

.link-btn:hover {
  background: var(--benjro-green);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(46,204,113,0.35);
}

/* ================= ACTION GROUP ================= */

.action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.action-group .btn { order: 1; }
.action-group .btn-sub { order: 2; }

.action-group:has(.link-btn) .btn-sub { order: 1; }
.action-group:has(.link-btn) .btn { order: 2; }

/* Divider between CTA blocks */
.header-right .action-group + .action-group {
  position: relative;
  padding-top: 28px;
}

.header-right .action-group + .action-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 1px;
  background: var(--border-light);
}

/* ================= CTA SUBTEXT ================= */

.btn-sub {
  max-width: 220px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: normal;
}

.accent-blue {
  color: var(--benjro-blue);
  text-shadow: 0 0 6px rgba(58,118,240,0.25);
}

.accent-green {
  color: var(--benjro-green);
  text-shadow: 0 0 6px rgba(46,204,113,0.25);
}

/* ================= PHILOSOPHY SECTIONS ================= */

.tech-philosophy {
  width: 100%;
}

/* Blue strip */
.ph-strip {
  background: var(--benjro-blue);
  padding: 110px 0;
}

.ph-strip .philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.ph-strip h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 26px;
}

.ph-strip .principle-list li {
  color: #eef3ff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* Neutral strip */
.ph-neutral {
  background: var(--bg-light);
  padding: 110px 0;
}

.ph-neutral .philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

/* ================= LISTS & CONTRAST ================= */

.principle-list {
  list-style: none;
}

.principle-list li {
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 0;
}

.ph-contrast h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contrast-grid {
  display: grid;
  gap: 14px;
}

.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 15px;
}

.contrast-row.head {
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.contrast-row span:first-child { color: var(--text-subtle); }
.contrast-row span:last-child { color: var(--text-main); font-weight: 500; }

/* ================= IMAGE FRAMES ================= */

.ph-image {
  display: flex;
  justify-content: center;
}

.ph-image-inner {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.ph-strip .ph-image-inner {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

.ph-image-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9aa3b2;
}

/* ================= FOOTER ================= */

.site-footer {
  margin-top: auto;
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: #888;
  border-top: 1px solid var(--border-light);
  opacity: 0;
  animation: fadeFooter 1s ease forwards;
  animation-delay: 0.25s;
}

@keyframes fadeFooter {
  from { opacity: 0; }
  to   { opacity: 0.9; }
}

/* ================= GLASS HEADER ================= */

.header {
  width: 100%;
  padding: 10px 40px;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.header-logo img {
  width: 34px;
  transition: 0.25s ease;
}

.header-logo img:hover {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #222;
}

.nav-links a:hover {
  color: var(--benjro-blue);
}

.header-btn {
  padding: 9px 20px;
  background: var(--benjro-blue);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.header-btn:hover {
  background: #2F63CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58,118,240,0.25);
}

/* ================= MOBILE ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #222;
  border-radius: 3px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.mobile-menu a {
  text-decoration: none;
  color: #222;
  font-size: 17px;
  padding: 12px 0;
}

.mobile-menu a:hover {
  color: var(--benjro-blue);
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .header-inner::after {
    display: none;
  }

  .ph-strip .philosophy-inner,
  .ph-neutral .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .contrast-row {
    grid-template-columns: 1fr;
  }

  .header-left h1 {
    font-size: 42px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ================= CARD (GLOBAL) ================= */

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Optional variants */
.card--tight {
  padding: 16px;
}

.card--soft {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.card--accent {
  border-left: 4px solid #3A76F0;
}
