/*
  PROJECT: Locksmith Prices Houston TX
  DOMAIN: locksmithpriceshoustontx.com
  NICHE: Locksmith
  DESIGN SIGNATURE: Houston Keyline Emergency Split
  COLOR SCHEME: #0b2038 + #e7ad3b + #f6f8fb
  FONTS: Manrope + Source Sans 3
  LAYOUT PATTERN: Layout 1 — Emergency Service Landing
  HEADER VARIANT: B
  HERO VARIANT: H
  SERVICES VARIANT: C
  TRUST SECTION VARIANT: E
  CTA VARIANT: D
  FOOTER VARIANT: D
  COUPON PLACEMENT: after services
  IMAGE STYLE: wide editorial + precise hardware close-up
*/

:root {
  --navy: #0b2038;
  --navy-2: #12395d;
  --gold: #e7ad3b;
  --gold-soft: #fff3cf;
  --orange: #f36b21;
  --ink: #172033;
  --muted: #5d6879;
  --line: #dfe5ed;
  --paper: #ffffff;
  --mist: #f6f8fb;
  --success: #19704a;
  --shadow: 0 18px 50px rgba(11, 32, 56, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--mist);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

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

a { color: var(--navy-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3, h4, .navbar-brand, .eyebrow, .btn {
  font-family: Manrope, "Trebuchet MS", sans-serif;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.12; }
h1 { font-size: clamp(2.45rem, 5vw, 5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .94rem;
}
.topbar .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-list { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar strong { color: var(--gold); }

.navbar {
  min-height: 92px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(11, 32, 56, .08);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease, min-height .2s ease;
}
.navbar.scrolled { min-height: 78px; box-shadow: 0 10px 35px rgba(11, 32, 56, .1); }
.navbar-brand img { width: 238px; height: auto; }
.navbar-nav { gap: .1rem; align-items: center; }
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy) !important;
  font-weight: 750;
  white-space: nowrap;
  border-radius: 10px;
  padding-inline: .72rem !important;
}
.nav-link:hover, .nav-link.active { color: var(--orange) !important; background: #fff5ec; }
.dropdown-menu { border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: .7rem; }
.dropdown-item { min-height: 44px; display: flex; align-items: center; border-radius: 9px; font-weight: 650; }
.dropdown-item:hover { background: var(--gold-soft); color: var(--navy); }
.navbar-toggler { border: 2px solid var(--navy); min-width: 48px; min-height: 48px; }

.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: .6rem; }
.header-badges { display: flex; gap: .35rem; }
.header-badge {
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid #f0d47c;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.btn {
  min-height: 48px;
  border-radius: 12px;
  padding: .74rem 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 2px solid transparent;
  font-weight: 850;
  text-decoration: none;
}
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(243, 107, 33, .25); }
.btn-accent:hover { background: #d95610; color: #fff; transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.72); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.header-phone { white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 18% 18%, rgba(231, 173, 59, .18), transparent 34%), linear-gradient(120deg, #071a2d 0%, #0b2038 56%, #12395d 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(30deg, transparent 0 48%, rgba(255,255,255,.12) 49% 51%, transparent 52% 100%);
  background-size: 42px 42px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: 4rem; align-items: center; padding-block: 5.5rem; }
.eyebrow { color: var(--gold); font-size: .9rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { color: #fff; max-width: 820px; margin: .7rem 0 1.2rem; }
.hero-copy { max-width: 720px; color: #e8eef5; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.7rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.hero-badges span { padding: .42rem .72rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 750; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: -20px 22px 22px -20px; border: 2px solid var(--gold); border-radius: 34px; transform: rotate(-2deg); }
.hero-media img { position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.38); }
.hero-callout { position: absolute; left: -34px; bottom: 34px; max-width: 250px; padding: 1rem 1.2rem; border-radius: 17px; color: var(--navy); background: var(--gold); box-shadow: var(--shadow); font-weight: 900; }

.trust-strip { position: relative; z-index: 2; margin-top: -30px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.trust-item { min-height: 108px; padding: 1.15rem; display: flex; align-items: center; gap: .85rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-soft); color: var(--navy); font-size: 1.35rem; }
.trust-item strong { display: block; color: var(--navy); font-size: 1rem; }
.trust-item small { color: var(--muted); }

.section { padding-block: clamp(4rem, 7vw, 7rem); }
.section-white { background: #fff; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-heading { max-width: 780px; margin-bottom: 2.3rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-kicker { color: var(--orange); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }

.content-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.content-split.reverse .content-copy { order: 2; }
.content-split.reverse .content-visual { order: 1; }
.content-copy p { color: var(--muted); }
.content-visual img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-visual { position: relative; }
.content-visual::after { content: ""; position: absolute; width: 44%; height: 9px; left: 8%; bottom: -9px; border-radius: 99px; background: var(--gold); }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.topic-card { padding: clamp(1.35rem, 2.6vw, 2.25rem); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 34px rgba(11, 32, 56, .06); }
.topic-card h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin-bottom: .95rem; }
.topic-card p { color: var(--muted); margin-bottom: .6rem; }
.topic-card p:last-child { margin-bottom: 0; }

.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-link {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-link::after { content: "→"; color: var(--orange); font-size: 1.4rem; }
.service-link:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }

.coupon-shell { display: grid; grid-template-columns: minmax(0, .7fr) minmax(390px, 1.3fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 30px; background: linear-gradient(135deg, #fff9e8, #fff); border: 1px solid #efd990; box-shadow: var(--shadow); }
.coupon-shell img { width: 100%; border-radius: 20px; box-shadow: 0 18px 44px rgba(11, 32, 56, .15); }
.offer-pill { display: inline-flex; color: var(--navy); background: var(--gold); border-radius: 999px; padding: .45rem .8rem; font-weight: 900; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: steps; }
.process-card { position: relative; padding: 2rem; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.17); }
.process-card::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 1.2rem; color: var(--gold); font: 900 2.2rem/1 Manrope, sans-serif; }
.process-card p { color: #dce5ef; }

.faq-wrap { max-width: 980px; margin-inline: auto; }
.accordion-item { margin-bottom: .8rem; border: 1px solid var(--line) !important; border-radius: 16px !important; overflow: hidden; }
.accordion-button { min-height: 62px; color: var(--navy); font-weight: 800; font-size: 1.03rem; }
.accordion-button:not(.collapsed) { color: var(--navy); background: var(--gold-soft); box-shadow: none; }
.accordion-body { color: var(--muted); }

.cta-band { padding: 2.4rem; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin-bottom: .45rem; }
.cta-band p { color: #dce5ef; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.contact-panel { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 2rem; padding: clamp(1.4rem, 4vw, 3rem); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.contact-details { padding: 1.3rem; border-radius: 22px; color: #fff; background: var(--navy); }
.contact-details h2, .contact-details h3 { color: #fff; }
.contact-details a { color: var(--gold); }
.contact-details address { font-style: normal; }
.form-control { min-height: 50px; border: 1px solid #cbd4df; border-radius: 11px; padding: .75rem .9rem; font-size: 1rem; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .23rem rgba(231, 173, 59, .22); }
.service-textarea { height: 120px; }
.CUS p { margin-bottom: .8rem; }
.obfuscatedEmail, .obfuscatedEmail a { overflow-wrap: anywhere; word-break: break-word; }
.contact-panel > *, .CUS, .CUS fieldset { min-width: 0; }
.CUS.row { width: 100%; margin-inline: 0; }

.breadcrumb-wrap { background: #eef3f8; border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0; padding-block: .8rem; }
.breadcrumb a { text-decoration: none; font-weight: 750; }

.blog-section { overflow: hidden; }
.blog-content { min-width: 0; }
.blog-empty { grid-column: 1 / -1; padding: clamp(2rem, 5vw, 4rem); border: 1px dashed #d7b85f; border-radius: 24px; background: var(--gold-soft); text-align: center; }
.blog-empty h2 { margin-top: 0; }
.blog-empty p { margin-bottom: 0; color: var(--muted); }
.blog-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.blogbox {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11, 32, 56, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.blogbox:hover { transform: translateY(-5px); border-color: #e8c76e; box-shadow: var(--shadow); }
.blogbox .blogimg { overflow: hidden; background: var(--navy); }
.blogbox .blogimg a { display: block; }
.blogbox .blogimg img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}
.blogbox:hover .blogimg img { transform: scale(1.035); }
.blogbox .blogmeta { flex: 1; display: flex; flex-direction: column; padding: 1.45rem; }
.blogbox .blogmeta > a { color: inherit; text-decoration: none; }
.blogbox h2 { margin: 0 0 .8rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.blogbox .blogmeta > p:not(.read-more) { color: var(--muted); }
.blogbox .read-more { margin: auto 0 0; padding-top: .75rem; }
.blogbox .read-more a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}
.blogbox .read-more a:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

.blog-content-single { max-width: 980px; margin-inline: auto; }
.blogpost { padding: clamp(1.4rem, 4vw, 3.4rem); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.blogpost .blog_wrapper::after { content: ""; display: table; clear: both; }
.blogpost .blog_wrapper > h1 { margin-top: 0; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.blogpost .blog_wrapper > img {
  float: right;
  width: min(44%, 430px);
  margin: .35rem 0 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(11, 32, 56, .17);
}
.blogpost .blog_wrapper p { color: var(--muted); }
.blogpost .blog_wrapper h2 { margin-top: 2rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.blogpost .blog_wrapper h3 { margin-top: 1.6rem; }
.blogpost .blog_wrapper ul, .blogpost .blog_wrapper ol { padding-left: 1.35rem; }
.blogpost .blog_wrapper a { font-weight: 700; }

.socialbox { clear: both; width: 100%; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.social-share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.social-share-btns .share-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1rem; border-radius: 10px; color: #fff; font-size: .9rem; font-weight: 800; text-decoration: none; }
.social-share-btns .share-btn svg { width: 1rem; height: 1rem; }
.share-btn-twitter { background: #168bd2; }
.share-btn-facebook { background: #3b5998; }
.share-btn-linkedin { background: #0877a9; }
.social-share-btns .share-btn:hover { filter: brightness(.88); color: #fff; }

.footer { padding-top: 4.5rem; color: #dce5ef; background: #071727; }
.footer a { color: #f2d27a; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h2, .footer h3 { color: #fff; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .8fr 1fr; gap: 2rem; }
.footer-brand img { width: 250px; padding: .6rem; border-radius: 14px; background: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer address { font-style: normal; }
.map-frame { width: 100%; min-height: 230px; border: 0; border-radius: 18px; }
.locations-strip { margin-top: 2.5rem; padding: 1rem 0; border-block: 1px solid rgba(255,255,255,.13); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 5.6rem; color: #9cabbc; }

.mobile-call-bar { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: none; padding: .7rem; background: rgba(7, 23, 39, .96); box-shadow: 0 -8px 28px rgba(0,0,0,.2); }
.mobile-call-bar .btn { width: 100%; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.error-code { color: var(--gold); font-size: clamp(5rem, 16vw, 11rem); font-weight: 900; line-height: .85; }
.sitemap-list { columns: 2; gap: 2rem; }
.sitemap-list li { break-inside: avoid; margin-bottom: .6rem; }

@media (max-width: 1399.98px) {
  .header-badges { display: none; }
  .navbar-brand img { width: 200px; }
  .nav-link { padding-inline: .55rem !important; }
  .header-phone { padding-inline: .85rem; }
}

@media (max-width: 1199.98px) {
  .service-list, .blog-feed { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .navbar-nav { align-items: stretch; }
  .navbar-nav .dropdown-menu { position: static; float: none; width: 100%; margin-top: .35rem; padding: .5rem; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
  .navbar-nav .dropdown-item { padding: .7rem .9rem; min-height: 44px; white-space: normal; }
  .header-actions { display: grid; gap: .6rem; margin: 1rem 0 0; }
  .header-badges { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; padding-block: 4.4rem 6rem; }
  .hero-callout { left: 18px; bottom: 20px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .content-split, .coupon-shell, .contact-panel { grid-template-columns: 1fr; }
  .content-split.reverse .content-copy, .content-split.reverse .content-visual { order: initial; }
  .process-grid { grid-template-columns: 1fr; }
  .coupon-shell { text-align: center; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .topbar .container { justify-content: center; text-align: center; padding-block: .45rem; }
  .topbar-list span:nth-child(2), .topbar-list span:nth-child(3) { display: none; }
  .navbar-brand img { width: 205px; }
  .hero { min-height: auto; }
  .hero-grid { padding-block: 3.5rem 5rem; }
  .hero-media::before { inset: -10px 12px 12px -10px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .topic-grid, .service-list, .blog-feed, .footer-grid { grid-template-columns: 1fr; }
  .blogpost .blog_wrapper > img { float: none; width: 100%; margin: 0 0 1.4rem; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .contact-panel { padding: 1rem; }
  .contact-panel > *, .CUS, .CUS fieldset { width: 100%; }
  .CUS > fieldset > .row { margin-inline: -.35rem; }
  .CUS [class*="col-"] { padding-inline: .35rem; }
  .footer-bottom { flex-direction: column; }
  .mobile-call-bar { display: block; }
  .sitemap-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
