/* ============================================
   SPARE KEY LOCKSMITH — STYLES
   Color scheme pulled from the logo (blue + cyan)
   with a warm yellow accent matching the key icon.
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --blue-light:    #4FC3F0;   /* logo bright cyan */
  --blue:          #1E88C9;   /* logo medium blue */
  --blue-dark:     #0F4C75;   /* deep navy */
  --blue-ink:      #082C49;   /* very dark navy */
  --yellow:        #FFC91A;   /* key accent */
  --yellow-deep:   #E6A800;
  /* Neutrals */
  --white:         #FFFFFF;
  --cream:         #FAFBFC;
  --gray-50:       #F4F7FA;
  --gray-100:      #E5EBF1;
  --gray-300:      #B8C2CC;
  --gray-600:      #5A6878;
  --gray-800:      #1F2D3D;
  --black:         #0B141C;

  /* Typography */
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw:          1200px;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow-sm:     0 2px 8px rgba(8, 44, 73, 0.08);
  --shadow-md:     0 10px 30px rgba(8, 44, 73, 0.12);
  --shadow-lg:     0 20px 50px rgba(8, 44, 73, 0.18);

  /* Motion */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

em { font-style: italic; color: var(--blue); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Shared section bits ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--blue-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
}
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--yellow); }

.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
}
.btn--primary {
  background: var(--yellow);
  color: var(--blue-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--yellow-deep);
  color: var(--blue-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--blue-ink);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar__tagline {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.top-bar__contacts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.top-bar__phone {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.top-bar__phone:hover { color: var(--yellow); }
.top-bar__phone--secondary { color: rgba(255,255,255,0.85); }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.header__logo img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__list {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav__list a {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.nav__list a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav__list a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease);
}
.nav__cta:hover { background: var(--blue-dark); }

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blue-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   HERO SLIDER
   ============================================ */
.slider {
  position: relative;
  height: clamp(440px, 70vh, 680px);
  overflow: hidden;
  background: var(--blue-ink);
}
.slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 44, 73, 0.85) 0%,
    rgba(8, 44, 73, 0.55) 50%,
    rgba(8, 44, 73, 0.25) 100%
  );
  display: flex;
  align-items: center;
  color: var(--white);
}
.slide__kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--yellow);
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s var(--ease) 0.3s forwards;
}
.slide__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  max-width: 14ch;
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s var(--ease) 0.45s forwards;
}
.slide__title em {
  color: var(--blue-light);
  font-style: italic;
}
.slide__text {
  font-size: 1.15rem;
  max-width: 38ch;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.95);
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s var(--ease) 0.6s forwards;
}
.slide.is-active .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s var(--ease) 0.75s forwards;
}

@keyframes slideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Slider arrows */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--blue-ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: var(--shadow-md);
}
.slider__arrow:hover {
  background: var(--yellow);
  transform: translateY(-50%) scale(1.08);
}
.slider__arrow--prev { left: 24px; }
.slider__arrow--next { right: 24px; }

/* Slider dots */
.slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.slider__dot:hover { transform: scale(1.2); }
.slider__dot.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- Decorative key divider ---------- */
.key-divider {
  display: flex;
  justify-content: center;
  padding: 40px 24px;
  background: var(--cream);
}
.key-divider img {
  max-width: 600px;
  width: 100%;
  opacity: 0.9;
}

/* ============================================
   WELCOME
   ============================================ */
.welcome {
  background: var(--cream);
  padding: 20px 0 80px;
  text-align: center;
}
.welcome__inner { max-width: 760px; }
.welcome__lead {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin: 0 0 32px;
}
.welcome__lead strong { color: var(--blue-ink); }

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.badges li {
  background: var(--white);
  border: 2px solid var(--gray-100);
  color: var(--blue-ink);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 90px 0;
  background: var(--white);
}
.services .section-head { text-align: center; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.service-card p {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-card--highlight {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-ink));
  border-color: var(--blue-dark);
}
.service-card--highlight h3 { color: var(--white); }
.service-card--highlight p { color: rgba(255,255,255,0.85); }
.service-card--highlight .service-card__icon {
  background: var(--yellow);
  color: var(--blue-ink);
}

/* ============================================
   SERVICE AREA
   ============================================ */
.area {
  padding: 90px 0;
  background: var(--cream);
  position: relative;
}
.area__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.area__text p {
  font-size: 1.1rem;
  color: var(--gray-600);
}
.counties {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.counties li {
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--blue-ink);
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.area__note {
  font-style: italic;
  color: var(--blue);
  margin-top: 24px;
}
.area__map img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 90px 0;
  background: var(--white);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testimonial {
  background: var(--cream);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  margin: 0;
  border: 1px solid var(--gray-100);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial__stars {
  color: var(--yellow);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial blockquote {
  margin: 0 0 16px;
  font-style: italic;
  color: var(--gray-800);
  font-size: 1.02rem;
  line-height: 1.6;
}
.testimonial blockquote p { margin: 0; }
.testimonial figcaption {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}

/* ============================================
   TRUST (award + payment)
   ============================================ */
.trust {
  padding: 70px 0;
  background: var(--cream);
}
.trust__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.trust__award img {
  max-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.trust__payment h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.trust__payment img {
  max-width: 360px;
  margin-bottom: 12px;
}
.trust__payment p {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-ink) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,195,240,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,201,26,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.contact__inner { position: relative; z-index: 1; }
.contact__lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 40px;
}
.contact__phones {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact__phone {
  background: var(--white);
  color: var(--blue-ink);
  padding: 24px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  min-width: 260px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  box-shadow: var(--shadow-md);
}
.contact__phone:hover {
  background: var(--yellow);
  color: var(--blue-ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.contact__phone-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.contact__phone:hover .contact__phone-label { color: var(--blue-ink); }
.contact__phone-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-ink);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand { padding-right: 20px; }
.footer__logo {
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  max-width: 200px;
  margin-bottom: 16px;
}
.footer__tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.footer__col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__col p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.footer__col a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--yellow); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer__bottom p { margin: 0; }

/* ============================================
   RESPONSIVE — Tablet & Mobile
   ============================================ */
@media (max-width: 900px) {
  .area__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .trust__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .trust__payment img { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .top-bar__inner { justify-content: center; text-align: center; }

  .header__inner { padding: 10px 0; }
  .header__logo img { height: 50px; }

  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
  }
  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__list li { width: 100%; }
  .nav__cta { display: inline-block; }

  .slider { height: 520px; }
  .slider__arrow { width: 40px; height: 40px; }
  .slider__arrow--prev { left: 12px; }
  .slider__arrow--next { right: 12px; }

  .services, .area, .testimonials, .contact { padding: 60px 0; }
  .services__grid { grid-template-columns: 1fr; }

  .contact__phone { min-width: 100%; padding: 20px 24px; }
  .contact__phone-number { font-size: 1.5rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer__brand { padding-right: 0; }
  .footer__logo { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .top-bar { font-size: 13px; }
  .top-bar__contacts { gap: 14px; }
}
