:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #607080;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --accent: #146c94;
  --accent-2: #2a9d8f;
  --dark: #102a43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.58;
}

a {
  color: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--dark);
}

.mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
}

.links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.links a {
  text-decoration: none;
  color: #334e68;
}

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

/* `.links a` outranks `.button` on specificity, so the nav CTA needs its own
   rule or it renders dark-on-teal. */
.links a.button,
.links a.button:hover {
  color: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  background:
    linear-gradient(135deg, rgba(16, 42, 67, 0.94), rgba(20, 108, 148, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 30%);
  color: #ffffff;
  padding: 76px 0 68px;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p,
.page-head p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
}

.page-head {
  background: linear-gradient(135deg, var(--dark), var(--accent));
  color: #ffffff;
  padding: 54px 0;
}

/* Photo banners. The dark gradient stays on top of the photo so the white
   heading keeps its contrast whatever the image brightness is. */
.hero,
.page-head {
  background-size: cover;
  background-position: center;
}

.hero-home {
  background-image:
    linear-gradient(135deg, rgba(16, 42, 67, 0.86), rgba(20, 108, 148, 0.72)),
    url('img/bx-home-office.jpg');
}

.head-services {
  background-image:
    linear-gradient(135deg, rgba(16, 42, 67, 0.84), rgba(20, 108, 148, 0.7)),
    url('img/bx-harddisk.jpg');
}

.head-process {
  background-image:
    linear-gradient(135deg, rgba(16, 42, 67, 0.84), rgba(20, 108, 148, 0.7)),
    url('img/bx-network.jpg');
}

.head-contact {
  background-image:
    linear-gradient(135deg, rgba(16, 42, 67, 0.84), rgba(20, 108, 148, 0.7)),
    url('img/bx-contact-desk.jpg');
}

.head-enquiry {
  background-image:
    linear-gradient(135deg, rgba(16, 42, 67, 0.84), rgba(20, 108, 148, 0.7)),
    url('img/bx-it-support.jpg');
}

main {
  padding: 38px 0 58px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.panel + .panel {
  margin-top: 20px;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: 0;
  color: var(--dark);
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--dark);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e0f2f1;
  color: var(--accent);
  font-weight: 700;
}

.contact-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.form {
  display: grid;
  gap: 14px;
}

/* The enquiry form is a Google Form iframe, so replies land in the same
   enquiry@bxcodetech.com inbox with no third-party relay in between. */
.form-embed iframe {
  width: 100%;
  height: 1850px;
  border: 0;
}

/* Google Forms will not embed below ~640px without its own scrollbars, so the
   enquiry page stacks instead of splitting into two columns. */
.enquiry-grid {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
  color: var(--dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.email {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
  font-size: 14px;
  background: #ffffff;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0;
  }
}
