/* =========================================
   AllKeyOkey — Mobile Locksmith
   style.css  (luxury edition)
   ========================================= */

:root {
  --primary: #1a1a2e;
  --primary-light: #25253d;
  --accent: #f5a623;
  --accent-hover: #e09515;
  --light: #f8f9fa;
  --light-2: #eef0f3;
  --text-dark: #2d2d2d;
  --text-muted: #6b7280;
  --text-light: #ffffff;
  --border: #e5e7eb;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --container: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);

  --shadow-soft: 0 4px 24px rgba(0,0,0,0.18);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.22);
  --shadow-glow: 0 0 24px rgba(245,166,35,0.18);
  --radius-card: 16px;
  --radius-btn: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ---------- Reset / Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--primary);
  text-rendering: optimizeLegibility;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #f5a623, #e8941a);
  color: #1a1a2e;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.5);
  background: linear-gradient(135deg, #ffb93d, #f5a623);
}

.btn-primary:active { transform: translateY(0); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #ffffff;
  color: #1a1a2e;
}

.btn-whatsapp::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.btn-whatsapp:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a2e'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #ffffff;
  color: #1a1a2e;
}

.btn-outline-orange {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #f5a623;
  border: 2px solid #f5a623;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-orange:hover {
  background: #f5a623;
  color: #1a1a2e;
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 200px;
}

.field-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.25);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-6px); }
  50%  { transform: translateX(6px); }
  75%  { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--primary);
  color: var(--text-light);
  font-size: .85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar .availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
}
.topbar .availability i { color: var(--accent); }
.topbar .phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-light);
}
.topbar .phone i { color: var(--accent); }
.topbar .phone:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
.header {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -.5px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo i { color: var(--accent); font-size: 1.6rem; }
.logo .brand-accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav a:hover,
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.nav-desktop { display: flex; }
.nav-mobile { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  background:
    linear-gradient(rgba(10,10,25,.78), rgba(10,10,25,.85)),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 100px 0;
}
.hero h1 { color: var(--text-light); margin-bottom: .25em; }
.hero .accent-bar {
  width: 80px; height: 4px; background: var(--accent);
  margin: 24px auto;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,.92);
}
.hero .cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .badges {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.hero .badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero .badges i { color: var(--accent); }

/* ---------- Section ---------- */
section { padding: 80px 0; }
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ---------- Services Grid ---------- */
.services { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f5a623, transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,166,35,0.3);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-card .icon {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,166,35,.12);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.service-card p {
  font-size: .92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Contact / Quote Form ---------- */
.quote {
  background: #fff;
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  position: relative;
}
.quote h2 { color: var(--text-light); }
.quote .section-head p { color: rgba(255,255,255,.8); }
.quote .section-head .eyebrow { color: var(--accent); }

.quote-form {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, #12122a, #1a1a2e);
  color: var(--text-light);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-btn);
  color: #ffffff;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}
.form-group select option {
  background: #1a1a2e;
  color: #ffffff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f5a623;
  background: rgba(245,166,35,0.06);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.quote-form .submit-row {
  text-align: center;
  margin-top: 8px;
}
.quote-form .submit-row .btn { padding: 16px 48px; }
.quote-form .form-note {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}

/* ---------- Additional Services (basement) ---------- */
.basement {
  background: var(--primary);
  color: var(--text-light);
  padding: 72px 0;
}
.basement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.basement h2 { color: var(--text-light); margin-bottom: 24px; }
.basement h2 + .accent-bar {
  width: 60px; height: 3px;
  background: var(--accent);
  margin-bottom: 24px;
}
.basement ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.basement ul li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.9);
}
.basement ul li:last-child { border-bottom: 0; }
.basement ul li i { color: var(--accent); font-size: .9rem; }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #0d0d1f, #1a1a2e);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,.75);
  padding: 32px 0;
  text-align: center;
  font-size: .9rem;
}
.footer a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .basement-grid { gap: 48px; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-mobile.open { display: flex; }

  .nav-mobile a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.1rem;
  }

  .header { position: relative; z-index: 1000; }

  .hero { padding: 72px 0 100px; min-height: 520px; }

  body { padding-bottom: 72px; }

  section { padding: 48px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 20px; }

  .basement-grid { grid-template-columns: 1fr; gap: 40px; }

  .topbar { font-size: .8rem; }
  .topbar .container { justify-content: center; }

  .service-card { padding: 24px 16px; border-radius: 12px; }

  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.2; }
  h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }

  .container { padding: 0 16px; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

.mobile-bar {
  display: none;
}

@media (max-width: 720px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(18, 18, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 2000;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  }

  .mobile-bar__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    border-right: 1px solid rgba(255,255,255,.06);
  }

  .mobile-bar__btn:last-child { border-right: none; }

  .mobile-bar__btn:hover,
  .mobile-bar__btn:active {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
  }

  .mobile-bar__call { color: #f5a623; }
  .mobile-bar__call:hover { color: #f5a623; background: rgba(245,166,35,0.1); }
  .mobile-bar__call:active {
    color: #f5a623;
    background: rgba(245,166,35,0.18);
    box-shadow: inset 0 0 24px rgba(245,166,35,0.25);
  }

  .mobile-bar__whatsapp { color: #25D366; }
  .mobile-bar__whatsapp:hover { color: #25D366; background: rgba(37,211,102,0.1); }

  .mobile-bar__quote { color: #ffffff; }
  .mobile-bar__quote:hover { color: #f5a623; background: rgba(245,166,35,0.08); }
}
