/* bajclean-classic: a close-to-original port of the Next.js site, but in
   light mode with the original brand blue. Same shape as the original:
   pill above headline, gradient headline, centred CTA, alternating
   image/text feature sections, gallery, contact card. No JS. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0f1a2b;
  --muted: #4b5b73;
  --dim: #7c8aa1;
  --line: rgb(15 25 40 / 0.09);
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-deep: #1d4ed8;
  --grad-a: #3b82f6;
  --grad-b: #2563eb;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.5rem;
  --page: 72rem;
  --r: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* one measure for every band */
.top,
.hero,
.reviews,
.feature,
.gallery,
.contact,
.page,
.foot {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ top bar -- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------- hero -- */

.hero {
  text-align: center;
  padding-block: 4rem 3rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: 3rem;
  color: var(--ink);
}

.grad {
  display: block;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.lede {
  max-width: 40rem;
  margin: 0.5rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero .actions {
  margin-top: 2rem;
}

.fine {
  margin-top: 0.75rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.hero-img {
  margin: 3rem auto 0;
  max-width: 56rem;
}

.hero-img img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: var(--bg-soft);
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* ---------------------------------------------------------- reviews -- */

.reviews {
  padding-block: 3rem;
  text-align: center;
}

.sub {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.reviews .sub + .sub {
  margin-top: 0.25rem;
}

.reviews .actions {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------- rule -- */

.rule {
  max-width: var(--page);
  margin: 0 auto;
  border: 0;
  height: 1px;
  background: var(--line);
}

/* ------------------------------------------------------------ feature -- */

.feature {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
  grid-template-columns: 1fr 1fr;
}

.feature.flip .feature-copy {
  order: 2;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-copy h2 {
  font-size: 2rem;
}

.feature-copy p {
  color: var(--muted);
}

.feature-copy .sub {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.feature-copy .btn {
  align-self: flex-start;
}

.feature-img img {
  border-radius: var(--r);
  border: 1px solid var(--line);
}

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

  .feature.flip .feature-copy {
    order: 0;
  }

  .feature-img {
    max-width: 30rem;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
}

/* ------------------------------------------------------------ gallery -- */

.gallery {
  padding-block: 4rem;
}

.gallery h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.tile {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-soft);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------ contact -- */

.contact {
  padding-block: 4rem;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
}

.contact .sub {
  margin-top: 0.5rem;
}

.card {
  max-width: 28rem;
  margin: 2rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: left;
}

.card div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.card div:last-child {
  border-bottom: 0;
}

.card dt {
  margin: 0;
  color: var(--dim);
  font-weight: 600;
  font-size: 0.9rem;
}

.card dd {
  margin: 0;
  color: var(--ink);
}

/* --------------------------------------------------------------- foot -- */

.foot {
  padding-block: 2rem 2.5rem;
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.foot p + p {
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------- page -- */

.page {
  padding-block: 3rem 4rem;
}

.crumb {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.page h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.page .lede {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--muted);
  text-align: left;
}

/* ---------------------------------------------------------------- 404 -- */

.lost {
  display: grid;
  align-content: center;
  min-height: 70vh;
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--gutter);
  text-align: center;
}

.lost h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.lost .actions {
  margin-top: 1.5rem;
}
