/* ============================================================
   Marco's Locksmith Service - main.css
   Bump asset_version in site.yaml on every change.
   ============================================================ */

:root {
  --color-primary: #0d3b47;
  --color-primary-light: #1a5568;
  --color-accent: #f5a800;
  --color-accent-dark: #d4900a;
  --color-orange: #e8621a;
  --color-cream: #f5edd6;
  --color-cream-dark: #ede0c0;
  --color-text: #1a1a1a;
  --color-text-muted: #4a5568;
  --color-text-on-dark: #f5edd6;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f7f4;
  --color-bg-dark: #0d3b47;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Oswald", var(--font-sans);

  --nav-height: 64px;
  --call-bar-height: 56px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);

  --container-max: 1140px;
  --container-padding: 1.5rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  opacity: 1 !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-accent-dark); }

/* Nav hamburger - mobile */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 99;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-drawer.open { display: block; }
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-drawer ul li a {
  display: block;
  color: var(--color-cream);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}
.nav-drawer .drawer-cta {
  margin-top: 1rem;
  display: block;
  background: var(--color-accent);
  color: var(--color-primary);
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
}

/* ---- Hero ---- */
.hero {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 60%;
  background: linear-gradient(135deg, transparent 40%, rgba(232, 98, 26, 0.15) 100%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--color-cream);
}
.hero-sub {
  font-size: 1.125rem;
  color: rgba(245, 237, 214, 0.8);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.btn-outline:hover { background: rgba(245, 237, 214, 0.1); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-cream-dark);
  padding: 1rem 0;
}
.trust-items {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ---- Market selector ---- */
.market-selector {
  padding: 4rem 0;
  background: var(--color-bg);
}
.section-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.market-card {
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  background: var(--color-bg);
}
.market-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.market-card.primary { border-color: var(--color-primary); }
.market-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.market-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.market-card-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.market-card-phone a { color: inherit; }
.market-card-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.market-card .btn { width: 100%; justify-content: center; }

/* ---- Services grid ---- */
.services-section {
  padding: 4rem 0;
  background: var(--color-bg-subtle);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.service-tile {
  background: var(--color-bg);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: border-color 0.15s, background 0.15s;
}
.service-tile:hover {
  border-color: var(--color-accent);
  background: var(--color-cream);
}

/* ---- Hub intro ---- */
.hub-intro {
  padding: 3rem 0;
  max-width: 720px;
}
.hub-intro p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- Cities preview ---- */
.cities-section {
  padding: 4rem 0;
  background: var(--color-bg);
}
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.city-pill {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-cream-dark);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: background 0.15s, border-color 0.15s;
}
.city-pill:hover {
  background: var(--color-cream);
  border-color: var(--color-accent);
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--color-primary);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: rgba(245, 237, 214, 0.8);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-band .btn { margin: 0 0.5rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--color-accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(245, 237, 214, 0.7);
  margin-bottom: 1rem;
}
.footer-heading {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-links a {
  color: rgba(245, 237, 214, 0.75);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-cream); }
.footer-bottom {
  border-top: 1px solid rgba(245, 237, 214, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 237, 214, 0.5);
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(245, 237, 214, 0.5);
  transition: color 0.15s;
}
.footer-legal-links a:hover { color: var(--color-cream); }

/* ---- Sticky call bar (mobile) ---- */
.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--call-bar-height);
  background: var(--color-accent);
  align-items: center;
  justify-content: center;
}
.call-bar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  width: 100%;
  height: 100%;
  justify-content: center;
}
.call-bar svg { width: 20px; height: 20px; }
/* Prevent footer from being hidden behind call bar on mobile */
body.has-call-bar .site-footer { padding-bottom: calc(2rem + var(--call-bar-height)); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .call-bar { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .market-selector, .services-section, .cities-section, .cta-band { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  :root { --container-padding: 1rem; }
  .trust-items { gap: 1rem; }
  .trust-item span { font-size: 0.8rem; }
}
