/* Bulimba Creek Locksmiths. Mobile first, light layout, one accent colour,
   system fonts only (no web fonts, no external requests). */

:root {
  --bg: #ffffff;
  --tint: #f1f4f6;
  --ink: #16181d;
  --muted: #454b55;
  --line: #dde2e7;
  --accent: #b0144f;
  --accent-deep: #8a0f3d;
  --accent-soft: #fbebf1;
  --on-accent: #ffffff;
  --font-body: Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif;
  --font-head: Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums; /* Corbel and Calibri default to old-style figures */
  padding-bottom: 84px; /* room for the mobile call bar */
}

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

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 8px;
}

.skip:focus {
  left: var(--gutter);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(22, 24, 29, 0.08), 0 6px 16px -8px rgba(176, 20, 79, 0.55);
  transition: background-color 0.15s ease;
}

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

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.btn--small {
  min-height: 44px;
  padding: 10px 14px;
  gap: 8px;
  font-size: 1rem;
}

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.logo__svg {
  width: 176px;
  height: auto;
  overflow: visible;
}

.logo__svg text {
  font-family: var(--font-head);
}

@media (max-width: 359px) {
  .site-header .btn svg {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 44px 0 36px;
}

.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  letter-spacing: -0.015em;
  max-width: 13ch;
  margin-bottom: 18px;
}

.hero__lead {
  max-width: 36rem;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero__mark {
  display: none;
}

.ripples circle {
  fill: none;
  stroke: var(--accent);
}

/* Creek wave divider: the band takes the colour of the section above and the
   wave fill takes the colour of the section below. */

.wave {
  background: var(--from);
  color: var(--to);
  line-height: 0;
}

.wave svg {
  width: 100%;
  height: 40px;
}

.wave__fill {
  fill: currentColor;
}

.wave__line {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.22;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.wave--white-tint {
  --from: var(--bg);
  --to: var(--tint);
}

.wave--tint-white {
  --from: var(--tint);
  --to: var(--bg);
}

.wave--white-soft {
  --from: var(--bg);
  --to: var(--accent-soft);
}

/* Sections */

.section {
  padding: 40px 0 52px;
}

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

.section h2 {
  font-size: clamp(1.75rem, 6vw, 2.375rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section__intro {
  max-width: 38rem;
  margin-bottom: 28px;
  color: var(--muted);
}

/* Services */

.services {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.service__icon svg {
  width: 28px;
  height: 28px;
}

.service__num {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

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

/* About */

.about p {
  max-width: 44rem;
  font-size: 1.125rem;
}

/* Call band */

.callband {
  padding: 36px 0 52px;
  background: var(--accent-soft);
}

.callband .wrap {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.callband p {
  max-width: 34rem;
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

/* Inner pages */

.page {
  padding: 44px 0 56px;
}

.page h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.page h2 {
  font-size: 1.375rem;
  margin: 32px 0 8px;
}

.page p {
  max-width: 44rem;
  margin-bottom: 12px;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 40px 0 28px;
  font-size: 1rem;
}

.footer__grid {
  display: grid;
  gap: 28px;
}

.footer__name {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer address {
  font-style: normal;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 4px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Mobile call bar: fixed to the bottom of the screen on small screens. */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px -12px rgba(22, 24, 29, 0.35);
}

.callbar .btn {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

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

  .callbar {
    display: none;
  }

  .logo__svg {
    width: 220px;
  }

  .btn--small {
    padding: 11px 18px;
    font-size: 1.0625rem;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .hero__mark {
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 340px;
  }

  .wave svg {
    height: 64px;
  }

  .section {
    padding: 56px 0 72px;
  }

  .callband .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }
}
