/* =========================================================
   BULTECH — Bustos Baliuag Technology
   Stylesheet
   Palette and type are drawn directly from the company's
   existing mark (dark navy field, cyan hex/grid accent).
   ========================================================= */

:root {
  --ink:        #0B1220;
  --paper:      #F7F8FA;
  --paper-dim:  #EEF1F4;
  --panel:      #0E1826;
  --panel-2:    #0B141F;
  --cyan:       #22D3EE;
  --cyan-soft:  #9FEAF6;
  --steel:      #4B5A6B;
  --steel-soft: #8493A3;
  --line:       #DEE4E9;
  --line-dark:  rgba(255, 255, 255, 0.14);

  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --container: 1120px;
  --measure: 640px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .container { padding: 0 48px; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--cyan);
  color: var(--panel);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* =========================================================
   Structural device: hex marker
   The one recurring motif — echoes the hexagon node in the
   mark. Used once per major section heading only.
   ========================================================= */
.hex-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--cyan);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  flex-shrink: 0;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-plate {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.brand-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-name .full {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-name .short {
  font-size: 0.75rem;
  color: var(--cyan-soft);
  letter-spacing: 0.02em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #D7DEE6;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav li { border-top: 1px solid var(--line-dark); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 14px 4px; border-bottom: none; }

  .brand-name .short { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  right: -8%;
  top: -12%;
  width: 62%;
  max-width: 620px;
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-top: 96px;
  padding-bottom: 88px;
}

.hero-inner { max-width: 760px; }

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--steel);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}

.hero h1 .line { display: block; }

.hero h1 .underline-wrap {
  position: relative;
  display: inline-block;
}

.hero h1 .underline-wrap svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.3em;
}

.hero-lede {
  margin-top: 28px;
  max-width: var(--measure);
  font-size: 1.1rem;
  color: #293544;
}

.hero-lede strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 76px 0;
}

.section--tint {
  background: var(--paper-dim);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.section-body {
  max-width: var(--measure);
  color: #1c2632;
  font-size: 1.03rem;
}

.section-body p + p { margin-top: 1.1em; }

/* Two-up layout for sections that pair a label column with text on wide screens */
.section-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .section-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
  .section-layout .section-head {
    border-top: none;
    padding-top: 4px;
    margin-bottom: 0;
    align-items: flex-start;
  }
}

.section-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--panel-2);
  color: #B9C3CD;
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-badge {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 869 / 223;
  border-radius: 4px;
}

.footer-badge img {
  position: absolute;
  width: 204.14%;
  height: 397.76%;
  left: -103.11%;
  top: -273.09%;
  max-width: none;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #ffffff;
  max-width: 300px;
}

.footer-tagline span { color: var(--cyan); }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #B9C3CD;
  font-size: 0.95rem;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--steel-soft);
}
