/*
  PROJECT: Car Locksmith Katy
  DOMAIN: carlocksmithkaty.com
  NICHE: Locksmith
  DESIGN SIGNATURE: Emergency Dispatch Split Layout
  COLOR SCHEME: Steel Blue #123047 + Safety Orange #f97316 + Cool White #f7fafc
  FONTS: Manrope + Source Sans 3
  LAYOUT PATTERN: Layout 1 - Emergency Service Landing
  HEADER VARIANT: B - Top contact bar
  HERO VARIANT: E - Emergency CTA hero
  SERVICES VARIANT: B - Photo cards grid
  TRUST SECTION VARIANT: D - Process timeline inspired trust cards
  CTA VARIANT: A - Full-width high-contrast banner
  FOOTER VARIANT: D - Map-first footer
  COUPON PLACEMENT: after services
  IMAGE STYLE: technician action and tool close-ups
*/

:root {
  --primary: #123047;
  --primary-2: #0f2435;
  --accent: #f97316;
  --accent-2: #ffb020;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --line: #dbe4ee;
  --soft: #eef5f8;
  --success: #0e7490;
}

* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: "Manrope", Arial, sans-serif;
  color: var(--primary);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.45rem, 5vw, 4.7rem); color: #fff; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 18px; }
.section-pad { padding: 76px 0; }
.btn { border-radius: 8px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #df5f08; border-color: #df5f08; color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.74); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

.topbar {
  background: var(--primary-2);
  color: #dbeafe;
  font-size: 16px;
}
.topbar-inner {
  min-height: 42px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.topbar-inner > span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}
.topbar a { color: #fff; font-weight: 700; }
.navbar {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(18,48,71,.08);
}
.navbar.scrolled { box-shadow: 0 16px 32px rgba(18,48,71,.13); }
.navbar-brand img { width: 210px; height: auto; }
.navbar-toggler {
  width: 48px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(249,115,22,.25); }
.navbar-toggler-icon {
  width: 1.35em;
  height: 1.35em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23123047' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-nav { gap: 2px; }
.nav-link {
  font-weight: 800;
  color: var(--primary);
  padding: 12px 10px;
  white-space: nowrap;
}
.nav-link.active, .dropdown-item.active { color: var(--accent); background: transparent; }
.dropdown-menu { border-radius: 8px; border-color: var(--line); box-shadow: 0 18px 40px rgba(18,48,71,.15); }
.dropdown-item { font-weight: 700; padding: 10px 16px; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-badge {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
}
.header-phone { white-space: nowrap; }

.hero-section {
  background:
    linear-gradient(120deg, rgba(18,48,71,.98), rgba(18,48,71,.87) 58%, rgba(14,116,144,.78)),
    radial-gradient(circle at 18% 20%, rgba(249,115,22,.22), transparent 34%);
  color: #fff;
  padding: 86px 0 80px;
}
.eyebrow {
  color: #fed7aa;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.hero-copy {
  max-width: 680px;
  width: 100%;
  color: #e2e8f0;
  font-size: 1.18rem;
  overflow-wrap: break-word;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-proof span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}
.hero-media {
  border-radius: 8px;
  overflow: hidden;
  border: 6px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  background: #fff;
}
.hero-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.trust-strip { background: #fff; }
.trust-card {
  height: 100%;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f4f8fb);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.trust-card span {
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.trust-card p { color: var(--muted); margin: 0; }

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-heading span, .coupon-kicker, .contact-panel span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.section-heading p { color: var(--muted); font-size: 1.12rem; }

.services-section { background: var(--soft); }
.service-card, .compare-card, .content-copy, .form-shell, .contact-panel, .location-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(18,48,71,.08);
}
.service-card {
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(18,48,71,.14);
}
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-card-body { padding: 22px; }
.service-card-body p { color: var(--muted); }
.service-card-body a { font-weight: 900; color: var(--accent); }

.content-sections { background: #fff; }
.content-block { margin-bottom: 56px; }
.content-block:last-child { margin-bottom: 0; }
.content-block img {
  border-radius: 8px;
  aspect-ratio: 18 / 13;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 18px 45px rgba(18,48,71,.12);
}
.content-copy { padding: 32px; }
.content-copy p { color: #334155; }
.service-list {
  margin: 0 0 18px;
  padding-left: 20px;
}
.service-list li { margin-bottom: 8px; }

.brands-band {
  padding: 38px 0;
  background: var(--primary);
  color: #e2e8f0;
}
.brands-band h2 { color: #fff; font-size: 1.7rem; }
.brands-band p { margin: 0; }

.compact-services { background: var(--soft); }
.compact-services h2 { text-align: center; margin-bottom: 24px; }
.compact-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.compact-service-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  padding: 10px;
}
.compact-service-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.service-proof { background: var(--soft); }
.compare-card { overflow: hidden; margin: 0; }
.compare-card img { width: 100%; aspect-ratio: 18 / 13; object-fit: cover; }
.compare-card figcaption {
  padding: 18px 22px;
  font-weight: 900;
  color: var(--primary);
}

.gallery-section { background: #fff; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.coupon-section { background: linear-gradient(135deg, #f8fafc, #e9f6f8); }
.coupon-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(18,48,71,.1);
}
.coupon-wrap h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); color: var(--primary); }
.coupon-link img { border-radius: 8px; border: 3px solid var(--accent); margin-left: auto; max-height: 420px; object-fit: contain; }

.faq-section { background: #fff; }
.accordion { max-width: 980px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-button {
  font-weight: 900;
  color: var(--primary);
  font-size: 1.05rem;
}
.accordion-button:not(.collapsed) {
  background: #fff2e8;
  color: var(--primary);
  box-shadow: none;
}

.contact-section { background: var(--soft); }
.contact-panel {
  height: 100%;
  padding: 34px;
  background: var(--primary);
  color: #dbeafe;
}
.contact-panel h2 { color: #fff; }
.contact-panel a { color: #fff; font-weight: 900; }
.phone-large {
  display: block;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 2rem;
  margin: 20px 0;
}
.form-shell { padding: 30px; height: 100%; }
.form-control {
  min-height: 48px;
  border-radius: 8px;
  border-color: #cbd5e1;
  font-size: 16px;
}
.service-textarea { height: 120px; }
.btn-submit { min-width: 150px; }

.plain-section { background: #fff; }
.plain-section .container {
  max-width: 980px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}
.sitemap-list {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}
.sitemap-list li { margin-bottom: 10px; }
.location-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  margin-top: 22px;
}

.cta-band {
  background: var(--primary);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 20px; }
.cta-band .btn { margin: 4px; }

.blog-main { background: #fff; }
.blogbox {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 24px;
  background: #fff;
}
.blogbox img, .blogpost img {
  width: 100%;
  border-radius: 8px;
  height: auto;
}
.read-more a {
  display: inline-flex;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 900;
}

.site-footer {
  background: #0f2435;
  color: #cbd5e1;
  padding: 58px 0 28px;
}
.footer-panel {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 30px;
}
.site-footer a { color: #fff; }
.site-footer p,
.site-footer a,
.site-footer span {
  overflow-wrap: anywhere;
}
.site-footer .row > * {
  min-width: 0;
}
.site-footer h2 {
  color: #fff;
  font-size: 1.18rem;
  margin: 4px 0 14px;
}
.site-footer p { margin-bottom: 12px; }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer li { margin: 0; }
.footer-brand-block {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  max-width: 290px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.footer-logo-link img {
  width: 250px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-phone {
  display: inline-flex;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1.7rem;
  margin: 4px 0 12px;
  color: #fff;
}
.footer-small {
  color: #e2e8f0;
  font-weight: 700;
}
.footer-map-link {
  display: inline-flex;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 900;
}
.footer-map-link:hover { color: #fff; background: #df5f08; }
.footer-map {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,.16);
}
.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.mobile-call {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1050;
  background: var(--accent);
  color: #fff;
  min-height: 52px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.mobile-call:hover { color: #fff; }

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

@media (max-width: 1199px) {
  .header-actions { margin-top: 14px; justify-content: flex-start; }
  .compact-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .section-pad { padding: 58px 0; }
  .hero-section { padding: 64px 0; }
  .coupon-wrap { grid-template-columns: 1fr; }
  .coupon-link img { margin: 0; max-height: none; }
  .blogbox { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .topbar-inner { justify-content: center; text-align: center; gap: 8px 16px; padding: 8px 0; }
  .topbar-inner > span { width: 100%; }
  .navbar .container { max-width: 100%; flex-wrap: wrap; }
  .navbar-brand { max-width: calc(100% - 64px); }
  .navbar-brand img { width: 180px; }
  .navbar-expand-lg .navbar-toggler { display: inline-flex; margin-left: auto; }
  .navbar .container { gap: 10px; }
  .hero-section { width: 100%; }
  .hero-section .container { max-width: 100%; }
  .hero-section .row > * { min-width: 0; }
  .hero-section h1,
  .hero-section .eyebrow,
  .hero-copy { max-width: calc(100vw - 24px); }
  .header-badge { width: calc(50% - 4px); text-align: center; }
  .header-phone { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-proof span { width: 100%; text-align: center; }
  .content-copy, .form-shell, .contact-panel, .coupon-wrap { padding: 24px; }
  .compact-service-grid { grid-template-columns: 1fr; }
  .sitemap-list { columns: 1; }
  .footer-panel { padding: 22px; }
  .footer-logo-link { max-width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .mobile-call { display: flex; }
}
@media (max-width: 390px) {
  .header-badge { width: 100%; }
  .phone-large { font-size: 1.55rem; }
  .coupon-wrap h2 { font-size: 2.1rem; }
}
