/* ==========================================================================
   Bakewell Systems — simple static site (no frameworks, no JavaScript)
   Layout helpers are self-contained; no external CSS libraries are used.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #2d87f5;
  --dark-blue: #0e3b8e;
  --dark: #2f2f2f;
  --gray: #7a7a7a;
  --light-gray: #f5f5f5;
  --line: #e7e7e7;
  --white: #ffffff;
}

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

body {
  /* Standard system font stack — no web fonts loaded */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

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

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

a:hover {
  text-decoration: underline;
}

/* Visually hidden, but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section--tinted {
  background: var(--light-gray);
}

.section--dark {
  background: #10233f;
  color: #d7e3f4;
}

.section--dark a {
  color: #9cc2ff;
}

.section--dark .accent {
  color: #9cc2ff;
}

.accent {
  color: var(--blue);
}

.accent--dark {
  color: var(--dark-blue);
}

/* ---------- Typography ---------- */
.page-header {
  background: var(--blue);
  color: var(--white);
  padding: 4.5rem 0;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--blue);
  margin-top: 0.6rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

p + p {
  margin-top: 1rem;
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--blue);
  padding: 0.9rem 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.logo {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
}

/* ---------- Navigation (pure CSS, no JavaScript) ---------- */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  user-select: none;
}

.site-nav {
  flex: 1 1 auto;
  text-align: right;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  color: var(--white);
  font-weight: 500;
  padding: 0.45rem 0.85rem;
}

.site-nav a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.22);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #226fd6;
}

.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--top {
  align-items: start;
}

/* ---------- Cards & boxes ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
}

.box-tinted {
  background: var(--light-gray);
  border-radius: 6px;
  padding: 1.5rem;
}

.product-box {
  background: var(--light-gray);
  border-radius: 6px;
  padding: 1.5rem;
}

.product-box img {
  max-width: 64px;
  margin-bottom: 1rem;
}

/* ---------- Callout ("Get in touch") ---------- */
.callout {
  background: var(--blue);
  color: var(--white);
}

.callout h2 {
  color: var(--white);
}

.callout h2::after {
  background: var(--white);
}

.callout-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.callout p {
  margin-bottom: 1.5rem;
}

/* ---------- Contact details ---------- */
.contact-details {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

.contact-details a {
  color: var(--blue);
}

.map {
  width: 100%;
  border: 0;
  border-radius: 6px;
  margin: 1.5rem auto;
  display: block;
}

.map-note {
  margin-top: 1rem;
  color: var(--gray);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #c9c9c9;
  padding: 1.5rem 0;
}

.site-footer a {
  color: #9cc2ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Collapse the navigation into a CSS-only dropdown */
  .nav-toggle-label {
    display: inline-block;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.7rem 0.5rem;
  }

  .nav-toggle-input:checked ~ .site-nav {
    max-height: 320px;
    margin-top: 0.5rem;
  }

  .nav-toggle-input:focus ~ .nav-toggle-label {
    outline: 2px solid var(--white);
    outline-offset: 2px;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.75rem 0;
  }

  .page-header {
    padding: 3rem 0;
  }
}
