@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --maroon: #AC2929;
  --maroon-dark: #7A1D1D;
  --maroon-darker: #4A1212;
  --gold: #FFBC4A;
  --gold-dark: #E8A22E;
  --ink: #241B17;
  --paper: #FBF6EE;
  --paper-alt: #F3E9D8;
  --border-soft: #E6D8BF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
}

.font-display { font-family: 'Oswald', ui-sans-serif, sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* Keyway tooth divider - literal signature motif for a locksmith brand */
.keyway-divider {
  height: 18px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--gold) 0px, var(--gold) 3px,
    transparent 3px, transparent 14px
  );
  background-size: 100% 8px, 100% 8px;
  background-position: 0 0, 0 10px;
  background-repeat: repeat-x;
  opacity: 0.55;
}
.keyway-divider.dark { opacity: 0.35; }

/* Boxed-square icon frame, echoing the logo's gold square around the J */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--gold);
  background: #fff;
  flex-shrink: 0;
}
.icon-badge svg { width: 32px; height: 32px; }
.icon-badge.on-dark { background: var(--maroon-dark); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--maroon-darker);
  padding: 0.75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Visible focus states throughout */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Sticky mobile header call button - safety-yellow, never the brand maroon */
.tap-to-call {
  background: var(--gold);
  color: var(--maroon-darker);
}
.tap-to-call:hover { background: var(--gold-dark); }

/* Mobile nav panel */
#mobile-nav-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-nav-panel.open { max-height: 640px; }

/* FAQ accordion */
[data-faq-panel] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
[data-faq-item].open [data-faq-panel] {
  max-height: 480px;
}
[data-faq-trigger] svg { transition: transform 0.25s ease; }
[data-faq-item].open [data-faq-trigger] svg { transform: rotate(45deg); }

/* Card hover lift */
.lift-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lift-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -8px rgba(74,18,18,0.25); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift-card, #mobile-nav-panel, [data-faq-panel], [data-faq-trigger] svg {
    transition: none !important;
  }
}

/* Form states */
.form-input {
  border: 1.5px solid var(--border-soft);
  background: #fff;
}
.form-input:focus { border-color: var(--maroon); }

.btn-primary {
  background: var(--maroon);
  color: #fff;
}
.btn-primary:hover { background: var(--maroon-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--maroon-darker);
}
.btn-gold:hover { background: var(--gold-dark); }
