/* Langlands Locksmiths Coorparoo. Plain CSS, mobile first, system fonts only. */

:root {
  --ink: #132322;
  --muted: #3e5452;
  --bg: #f2f5f4;
  --surface: #ffffff;
  --line: #c9d7d5;
  --deep: #0b3437;
  --on-deep: #ffffff;
  --on-deep-muted: #c7dcd9;
  --accent: #c2410c;
  --accent-hover: #9a330a;
  --accent-on-deep: #fdba74;
  --on-accent: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --callbar-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
}

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

svg { display: block; }

main { flex: 1 0 auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus { left: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.2em;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-dark { background: var(--deep); color: var(--on-deep); }
.btn-dark:hover { background: var(--ink); color: var(--on-deep); }
.btn-outline { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-outline:hover { background: var(--deep); color: var(--on-deep); }
.btn-sm { font-size: 0.875rem; padding: 0.6em 0.75em; }
.btn-lg { font-size: 1.125rem; padding: 0.95em 1.4em; }

@media (min-width: 768px) {
  .btn-sm { font-size: 1rem; padding: 0.7em 1.1em; }
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { display: block; color: var(--deep); text-decoration: none; }
.logo:hover { color: var(--deep); }
.logo svg { width: clamp(150px, 50vw, 240px); height: auto; overflow: visible; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 84px;
  background-color: var(--deep);
  background-image: repeating-radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 30px);
  color: var(--on-deep);
}
.hero h1 {
  max-width: 13ch;
  margin: 0 0 18px;
  font-size: clamp(2.125rem, 8.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero h1 span { color: var(--accent-on-deep); }
.hero .lead {
  max-width: 44ch;
  margin: 0 0 28px;
  font-size: 1.125rem;
  color: var(--on-deep-muted);
}
.bitting {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 26px;
  fill: var(--bg);
}

@media (min-width: 768px) {
  .hero { padding: 88px 0 124px; }
  .hero .lead { font-size: 1.25rem; }
  .bitting { height: 40px; }
}

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 768px) {
  .section { padding: 88px 0; }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  font-weight: 800;
}
.section-title::before {
  content: "";
  flex: none;
  width: 28px;
  height: 6px;
  background: var(--accent);
}

/* Services */
.cards {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0 6px 6px 0;
  list-style: none;
}
.card {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 2px solid var(--deep);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--accent);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--on-deep);
}
.card-icon svg { width: 30px; height: 30px; }
.card-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }

@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card { padding: 32px 32px 36px; }
}

/* About */
.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about p { max-width: 62ch; margin: 0; font-size: 1.125rem; }

@media (min-width: 900px) {
  .about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .about .section-title { margin: 0; }
}

/* Call band */
.call-band {
  padding: 44px 0;
  background: var(--accent);
  color: var(--on-accent);
}
.call-band-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.call-band p { max-width: 36ch; margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.35; }

@media (min-width: 768px) {
  .call-band-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .call-band p { font-size: 1.5rem; }
}

/* Inner pages */
.page { padding: 48px 0 64px; }
.page h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
}
.prose > * { max-width: 68ch; }
.prose h2 { margin: 2em 0 0.5em; font-size: 1.3rem; font-weight: 800; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.meta-line { color: var(--muted); font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 768px) {
  .page { padding: 72px 0 96px; }
}

/* Footer */
.site-footer {
  padding: 48px 0 0;
  background: var(--deep);
  color: var(--on-deep-muted);
  font-size: 1rem;
}
.site-footer a { color: var(--on-deep); }
.site-footer a:hover { color: var(--accent-on-deep); }
.site-footer :focus-visible { outline-color: var(--accent-on-deep); }
.footer-grid { display: grid; gap: 32px; }
.footer-name { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--on-deep); }
.footer-title {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-on-deep);
}
.site-footer address { font-style: normal; }
.site-footer address p,
.footer-grid p { margin: 0 0 6px; overflow-wrap: anywhere; }
.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.9375rem;
}
.footer-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-base p { margin: 0; }

@media (min-width: 768px) {
  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; gap: 40px; }
}

/* Mobile call bar */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--callbar-h);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--deep);
  border-top: 4px solid var(--accent);
  color: var(--on-deep);
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}
.callbar:hover { color: var(--on-deep); }
.callbar:focus-visible { outline-color: var(--accent-on-deep); outline-offset: -6px; }
.callbar-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.callbar-icon svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .callbar { display: none; }
}
