/* BAKtech website styles
   Layout idea: two-weight headlines echo the BAK|tech wordmark (Black + Light);
   one aperture moment in the hero; quiet, ruled sections below. Single light theme by choice. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0071c4;      /* brand blue: links, buttons, accents */
  --sky: #00a2ea;       /* brand light blue: decoration only (low contrast on white) */
  --char: #3e393f;      /* brand charcoal: text */
  --night: #2a272b;     /* deeper charcoal: dark bands */
  --mist: #eef4fa;      /* blue-tinted neutral background */
  --line: #d6e0ea;      /* rules and borders */
  --paper: #ffffff;
  --muted: #5d5960;     /* secondary text, 7:1 on white */

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--char);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--char);
}
h1, h2 { font-weight: 300; }
h1 strong, h2 strong { font-weight: 900; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.005em; }

p { margin: 0; max-width: 65ch; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--night); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--char);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand { display: block; flex-shrink: 0; }
.brand img { height: 2.4rem; width: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--char);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--sky);
  border-radius: 0;
}
.nav .call {
  margin-left: 0.5rem;
  background: var(--blue);
  color: var(--paper);
  font-weight: 700;
}
.nav .call:hover { background: var(--night); color: var(--paper); }

.menu { display: none; }

@media (max-width: 52rem) {
  .nav-wide { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.25rem;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--mist); }
  .menu .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    min-width: 14rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.375rem;
    padding: 0.5rem;
    box-shadow: 0 12px 30px rgba(42, 39, 43, 0.12);
  }
  .menu .nav .call { margin: 0.25rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 0.3rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--blue);
  line-height: 1.2;
}
.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--night); border-color: var(--night); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--blue); }
.btn-quiet:hover { background: var(--mist); color: var(--blue); }

/* ---------- Hero (home) ---------- */

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.hero .lead { margin-block: 1.5rem 2rem; }
.lead { font-size: var(--step-1); font-weight: 300; line-height: 1.6; color: var(--char); }

.aperture {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
}
.aperture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mist);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.aperture img {
  position: relative;
  width: 62%;
  animation: open 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes open {
  from { transform: rotate(-60deg) scale(0.9); }
  to { transform: rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .aperture img { animation: none; }
}

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .aperture { width: min(42%, 10rem); order: -1; justify-self: start; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }

/* Pillars: Experienced. Personable. Reliable. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.pillar h3 {
  font-size: var(--step-2);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.pillar h3 span { color: var(--blue); }
.pillar p { color: var(--muted); }

@media (max-width: 52rem) {
  .pillars { grid-template-columns: 1fr; }
}

/* Service overview list (home) */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 5vw, 4rem);
}
.service-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.service-list li::before {
  content: "";
  grid-row: span 2;
  width: 1.1rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.service-list li:nth-child(even)::before { background: var(--sky); }
.service-list p { color: var(--muted); }

.tag {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.core-feature {
  display: grid;
  gap: 0.5rem;
  background: var(--paper);
  border-left: 5px solid var(--blue);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.core-feature h3 { font-size: var(--step-2); font-weight: 900; }
.core-feature p:last-child { color: var(--muted); }
.sub-label {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Services page: divider before the services sold separately */
.separate-head {
  background: var(--night);
  color: var(--paper);
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.separate-head h2 { color: var(--paper); font-size: var(--step-3); }
.separate-head .lead { color: #e4e1e5; margin-top: 0.75rem; }
.separate-head + .svc { border-top: 0; }
.jump-label {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.jump-label + .jump { margin-top: 0.5rem; }
.more { margin-top: 2rem; font-weight: 700; }

@media (max-width: 52rem) {
  .service-list { grid-template-columns: 1fr; }
}

/* Split text block */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.split .body { display: grid; gap: 1rem; }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
}

/* Call to action band */
.cta { background: var(--night); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.cta h2 { color: var(--paper); }
.cta-contacts { display: grid; gap: 0.35rem; font-size: var(--step-1); }
.cta-contacts a { color: var(--paper); font-weight: 700; text-decoration-color: var(--sky); }
.cta-contacts a:hover { color: var(--sky); }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .lead { margin-top: 1.25rem; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.jump a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  color: var(--char);
}
.jump a:hover { border-color: var(--blue); color: var(--blue); }

.svc {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.svc-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.svc-grid > div { display: grid; gap: 1.25rem; align-content: start; }
.svc h2 { font-size: var(--step-2); }
.svc .tag {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (max-width: 52rem) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* Core plan: what's included */
.core { background: var(--mist); border-top: 0; }
.included {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
}
.included h3 {
  font-size: var(--step-0);
  font-weight: 800;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--sky);
}
.included p { color: var(--muted); font-size: 0.98rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ticks li { position: relative; padding-left: 1.4rem; font-size: 0.98rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.62rem;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.addons {
  margin-top: 2rem;
  background: var(--paper);
  border-left: 4px solid var(--blue);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.addons ul { margin: 0; padding-left: 1.2rem; columns: 2 14rem; column-gap: 2rem; }
.addons li { break-inside: avoid; margin-bottom: 0.3rem; }
@media (max-width: 40rem) {
  .included { grid-template-columns: 1fr; }
}

.items { display: grid; gap: 1.5rem; }
.item h3 { margin-bottom: 0.4rem; }
.item p { color: var(--muted); }

/* About */
.person {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--mist);
  border-radius: 0.375rem;
}
.person .role { font-weight: 700; color: var(--blue); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
.principles h3 { margin-bottom: 0.5rem; }
.principles p { color: var(--muted); }
@media (max-width: 52rem) {
  .principles { grid-template-columns: 1fr; }
}

/* Support and contact */
.ways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.way {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0.375rem;
}
.way .label { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.way .big { font-size: var(--step-2); font-weight: 800; line-height: 1.2; word-break: break-word; }
.way .big a { text-decoration: none; }
.way .big a:hover { text-decoration: underline; }
.way p { color: var(--muted); }
@media (max-width: 40rem) {
  .ways { grid-template-columns: 1fr; }
}

.notice {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  background: var(--mist);
  border-left: 4px solid var(--char);
  display: grid;
  gap: 0.4rem;
}
.notice strong { font-weight: 800; }

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

.site-footer { background: var(--char); color: #dcd9dd; font-size: var(--step--1); }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}
.site-footer img { height: 2rem; width: auto; margin-bottom: 1rem; }
.site-footer h2 {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer .fine {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  color: #bcb8bd;
}
@media (max-width: 52rem) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* 404 */
.lost { padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.5rem; }
