:root {
  --bg: #edf1f5;
  --surface: #f7fafc;
  --surface-soft: #e6edf4;
  --surface-line: #ccd8e5;
  --text: #17212f;
  --muted: #4f5f73;
  --navy: #2c4e78;
  --navy-deep: #0f2238;
  --navy-soft: #4f78ad;
  --accent: #ff8a1e;
  --accent-soft: #ffc68f;
  --danger: #ff7a00;
  --success: #2f6f63;
  --shadow-lg: 0 28px 80px rgba(15, 34, 56, 0.18);
  --shadow-md: 0 18px 44px rgba(15, 34, 56, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1160px;
  --hero-image: url("./hero-locksmith-workbench.png");
  --hero-position: 82% center;
}

body[data-hero-image="workbench-generated"] {
  --hero-image: url("./hero-locksmith-workbench.png");
  --hero-position: 82% center;
}

body[data-hero-image="keys-dark"] {
  --hero-image: url("https://images.pexels.com/photos/2079249/pexels-photo-2079249.jpeg?auto=compress&cs=tinysrgb&w=1600");
  --hero-position: center center;
}

body[data-hero-image="blue-door"] {
  --hero-image: url("https://images.pexels.com/photos/25255063/pexels-photo-25255063.jpeg?auto=compress&cs=tinysrgb&w=1600");
  --hero-position: center center;
}

body[data-hero-image="locksmith-tools"] {
  --hero-image: url("https://images.pexels.com/photos/35287856/pexels-photo-35287856.jpeg?cs=srgb&dl=pexels-saad-bin-hasan-2157243757-35287856.jpg&fm=jpg");
  --hero-position: 68% center;
}

body[data-hero-image="keys-in-lock"] {
  --hero-image: url("https://images.pexels.com/photos/20270229/pexels-photo-20270229.jpeg?cs=srgb&dl=pexels-henry-acevedo-382866382-20270229.jpg&fm=jpg");
  --hero-position: 72% center;
}

body[data-hero-image="warm-handle"] {
  --hero-image: url("https://images.pexels.com/photos/10719647/pexels-photo-10719647.jpeg?cs=srgb&dl=pexels-nikita-nikitin-2144367469-10719647.jpg&fm=jpg");
  --hero-position: center center;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 120, 173, 0.16), transparent 25rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 34%, #e1e9f1 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(15, 34, 56, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, border-color 220ms ease;
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.nav-wrap {
  padding: 0.62rem 0;
  transition: padding 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: #fff;
}

.brand-logo {
  display: block;
  width: 5.5rem;
  height: auto;
  flex: none;
  transition: width 220ms ease;
}

.brand-text {
  display: grid;
  line-height: 1.08;
  transition: transform 220ms ease;
}

.brand-text strong {
  font-size: 1.34rem;
}

.brand-text strong,
.hero h1,
.section-heading h2,
.hero-card h2,
.why-grid h2,
.area-grid h2,
.contact-grid h2 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text span:last-child {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.32rem;
}

.nav-toggle-icon span {
  display: block;
  width: 1.32rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.site-header.nav-open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  transition: gap 220ms ease, font-size 220ms ease;
  font-size: 1.12rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.main-nav a {
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.72rem;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, min-height 220ms ease, padding 220ms ease, font-size 220ms ease;
}

body.header-scrolled .site-header {
  background: rgba(15, 34, 56, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.header-scrolled .nav-wrap {
  padding: 0.72rem 0;
}

body.header-scrolled .brand-logo {
  width: 3.25rem;
}

body.header-scrolled .brand-text {
  transform: scale(0.94);
  transform-origin: left center;
}

body.header-scrolled .main-nav {
  gap: 1.2rem;
  font-size: 0.92rem;
}

body.header-scrolled .nav-call {
  min-height: 2.62rem;
  padding: 0.66rem 1.08rem;
  font-size: 0.88rem;
}

.nav-call,
.button-primary {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.3);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(245, 242, 242, 0.12);
  color: #fff;
}

.nav-call:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding: 2.8rem 0 1.8rem;
  color: #fff;
  overflow: hidden;
  min-height: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 34, 56, 0.985) 0%, rgba(15, 34, 56, 0.955) 45%, rgba(15, 34, 56, 0.9) 100%),
    radial-gradient(circle at top right, rgba(255, 138, 30, 0.16), transparent 16rem),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position);
  filter: blur(3px);
  transform: scale(1.03);
  transform-origin: center;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.why-grid,
.area-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.hero-grid {
  min-height: clamp(28rem, 64vh, 38rem);
  align-items: center;
}

.hero-copy {
  padding-right: 1rem;
  max-width: 42rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-soft);
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  line-height: 0.96;
}

.hero-text,
.section-copy {
  max-width: 60ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.section-copy {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.1rem 0;
}

.trust-points,
.suburb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-points {
  display: grid;
  gap: 0.65rem;
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.trust-points li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.trust-inline span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
}

.hero-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background: rgba(252, 249, 249, 0.97);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

.card-kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-soft);
}

.hero-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.hero-card p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-line);
}

.contact-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 800;
}

.contact-list dd {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-list dd a {
  overflow-wrap: anywhere;
}

.hero-note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--navy-deep);
  font-weight: 600;
}

.cred-strip {
  margin-top: 0;
  padding: 1.5rem 0 1rem;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cred-grid div,
.service-card,
.steps article,
.faq-list details,
.contact-card {
  background: rgba(252, 249, 249, 0.94);
  border: 1px solid rgba(44, 78, 120, 0.16);
  box-shadow: var(--shadow-md);
}

.cred-grid div {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
}

.cred-grid strong,
.check-list strong,
.service-card h3,
.steps h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.cred-grid span,
.service-card p,
.check-list p,
.steps p,
.faq-list p,
.contact-card p {
  color: var(--muted);
}

.section {
  padding: 4.8rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(44, 78, 120, 0.12), rgba(44, 78, 120, 0.03));
}

.section-accent {
  background: linear-gradient(180deg, rgba(255, 138, 30, 0.16), rgba(237, 241, 245, 0));
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.why-grid h2,
.area-grid h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section .eyebrow,
.section-alt .eyebrow,
.section-accent .eyebrow,
.contact-section .eyebrow {
  color: var(--navy-soft);
}

.service-grid,
.steps,
.faq-list {
  display: grid;
  gap: 1.2rem;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.steps article,
.contact-card {
  padding: 1.55rem;
  border-radius: var(--radius-lg);
}

.service-card h3,
.steps h3 {
  font-size: 1.1rem;
}

.service-card-link {
  display: inline-flex;
  margin-top: 0.8rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.service-card-link:hover,
.service-card-link:focus-visible {
  color: var(--navy-soft);
}

.check-list {
  display: grid;
  gap: 1rem;
}

.check-list div {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 3px solid rgba(44, 78, 120, 0.42);
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 800;
}

.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-content: start;
}

.suburb-list a,
.suburb-list span {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(252, 249, 249, 0.94);
  border: 1px solid rgba(44, 78, 120, 0.2);
  box-shadow: var(--shadow-md);
}

.suburb-list a {
  display: inline-flex;
  align-items: center;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.suburb-list a:hover,
.suburb-list a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(44, 78, 120, 0.42);
  color: var(--navy-deep);
}

.page-hero {
  padding: 2.6rem 0 2rem;
}

.page-hero .hero-grid {
  min-height: 0;
  align-items: start;
}

.page-hero .hero-copy {
  padding-top: 0.4rem;
}

.breadcrumbs {
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs a {
  color: #fff;
}

.page-columns {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  align-items: start;
}

.page-stack,
.link-grid {
  display: grid;
  gap: 1.2rem;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.sidebar-card,
.link-card {
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: rgba(252, 249, 249, 0.94);
  border: 1px solid rgba(44, 78, 120, 0.16);
  box-shadow: var(--shadow-md);
}

.info-card h3,
.sidebar-card h3,
.link-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
}

.info-card p,
.sidebar-card p,
.link-card p {
  margin: 0;
  color: var(--muted);
}

.link-card a {
  color: var(--navy-deep);
  font-weight: 800;
}

.link-card a:hover,
.link-card a:focus-visible {
  color: var(--navy-soft);
}

.plain-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 0.5rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.cta-band p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.faq-list details {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-card label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-line);
  background: var(--surface-soft);
  font: inherit;
}

.contact-status {
  margin: 0;
  grid-column: 1 / -1;
  padding: 1.15rem 1.25rem;
  border-radius: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-status::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.45rem;
  background: currentColor;
  opacity: 0.9;
}

.contact-status-success {
  color: #0e4d23;
  background: linear-gradient(135deg, rgba(168, 225, 181, 0.42), rgba(232, 248, 236, 0.96));
  border-color: rgba(14, 77, 35, 0.18);
}

.contact-status-error {
  color: #8a271c;
  background: linear-gradient(135deg, rgba(247, 196, 188, 0.48), rgba(255, 240, 237, 0.98));
  border-color: rgba(138, 39, 28, 0.18);
}

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 960px) {
  .footer-wrap,
  .hero-grid,
  .why-grid,
  .area-grid,
  .contact-grid,
  .page-columns,
  .cred-grid,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .link-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.7rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.5rem 0 0.2rem;
    font-size: 1.08rem;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .nav-call {
    width: 100%;
    justify-content: center;
    order: 3;
    margin-top: 0.25rem;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2.3rem 0 1.5rem;
  }

  .hero-grid {
    min-height: 0;
    align-items: start;
  }

  .hero-copy {
    padding-right: 0;
    max-width: none;
  }

  .hero-card {
    min-height: auto;
  }

  .cred-strip {
    margin-top: 0;
    padding-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero h1 {
    max-width: unset;
  }

  .main-nav {
    gap: 0.85rem 1rem;
    font-size: 1rem;
  }

  .brand {
    gap: 0.48rem;
  }

  .brand-logo {
    width: 3.45rem;
  }

  .brand-text strong {
    font-size: 1.2rem;
  }

  .brand-text span:last-child {
    font-size: 0.95rem;
  }

  .nav-wrap {
    padding: 0.88rem 0;
    row-gap: 0.5rem;
  }

  .nav-toggle {
    width: 2.8rem;
    height: 2.8rem;
  }

  body.header-scrolled .nav-wrap {
    padding: 0.64rem 0;
  }

  body.header-scrolled .brand-logo {
    width: 2.6rem;
  }

  body.header-scrolled .main-nav {
    font-size: 0.9rem;
  }

  .nav-call {
    min-height: 2.55rem;
    padding: 0.62rem 1rem;
    font-size: 0.98rem;
    margin-top: 0.15rem;
    box-shadow: 0 10px 18px rgba(255, 122, 0, 0.24);
  }

  body.header-scrolled .nav-call {
    min-height: 2.42rem;
    padding: 0.56rem 0.92rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 2rem 0 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
  }

  .trust-inline {
    gap: 0.6rem;
  }

  .trust-inline span {
    width: 100%;
    text-align: center;
  }

  .cta-band {
    padding: 1.35rem;
  }

  .hero-card,
  .service-card,
  .steps article,
  .contact-card,
  .info-card,
  .sidebar-card,
  .link-card,
  .faq-list details,
  .cred-grid div {
    border-radius: 1rem;
  }
}
