/* ============================================
   VERNIX AUTO LOCKSMITH — styles.css
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #0A0A0A;
  --navy-mid: #111111;
  --navy-lt:  #1A1A1A;
  --gold:     #00AADF;
  --gold-lt:  #33BBEA;
  --gold-dk:  #0090C0;
  --white:    #FFFFFF;
  --off-white:#F4F6F8;
  --slate:    #64748B;
  --slate-lt: #94A3B8;
  --border:   #E2E8F0;
  --text:     #1E293B;
  --text-sub: #475569;

  --radius:   12px;
  --radius-sm:8px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 12px 40px rgba(0,0,0,.14);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Utilities ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dk);
  background: rgba(0,170,223,.1);
  border: 1px solid rgba(0,170,223,.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.left { text-align: left; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.highlight { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,170,223,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: .875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn-full { width: 100%; justify-content: center; }

.pulse {
  animation: pulse 2.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,170,223,.5); }
  50%       { box-shadow: 0 0 0 12px rgba(0,170,223,.0); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* ---- Logo image ---- */
.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Keep old .logo styles for footer (uses SVG logo) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}
.logo-sub {
  font-size: .72rem;
  font-weight: 500;
  color: var(--slate-lt);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: rgba(255,255,255,.7) !important;
  background: rgba(255,255,255,.07);
  padding: 0 !important;
}
.nav-social:hover { color: var(--white) !important; background: #1877F2 !important; }
.nav-social[aria-label="Instagram"]:hover { background: #E1306C !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,170,223,.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(0,144,192,.2) 0%, transparent 60%),
    linear-gradient(160deg, #0A0A0A 0%, #111111 50%, #0A0A0A 100%);
}

/* Decorative grid */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0,170,223,.12);
  border: 1px solid rgba(0,170,223,.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,170,223,.2);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card.featured {
  border-color: rgba(0,170,223,.3);
  background: linear-gradient(135deg, #F0FAFF, #fff);
}
.service-card.featured::after { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon.auto       { background: rgba(0,170,223,.1);  color: #0090C0; }
.service-icon.emergency  { background: rgba(239,68,68,.1);   color: #DC2626; }
.service-icon.residential{ background: rgba(16,185,129,.1);  color: #059669; }
.service-icon.commercial { background: rgba(139,92,246,.1);  color: #7C3AED; }

.service-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.emergency-tag {
  color: #DC2626;
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.services-cta {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.services-cta p {
  font-size: 1.05rem;
  color: var(--text-sub);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content p {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 32px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.why-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0,170,223,.1);
  color: var(--gold-dk);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-list li > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.why-list strong { font-weight: 700; color: var(--navy); font-size: .95rem; }
.why-list span   { font-size: .875rem; color: var(--text-sub); }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews { background: var(--off-white); }

.stars-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.stars { display: flex; gap: 4px; }
.stars-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-sub);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars { display: flex; gap: 3px; }

.review-card p {
  font-size: .925rem;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.review-card p::before { content: '\201C'; }
.review-card p::after  { content: '\201D'; }

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-author strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}
.review-author span {
  font-size: .8rem;
  color: var(--slate);
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
}
a.contact-detail:hover {
  border-color: rgba(0,170,223,.4);
  background: rgba(0,170,223,.04);
}

.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(0,170,223,.1);
  color: var(--gold-dk);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-detail > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}
.detail-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}

/* Form */
.contact-form-wrap {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.required { color: #DC2626; }

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-lt); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,170,223,.15);
}

.form-note {
  font-size: .8rem;
  color: var(--slate);
  text-align: center;
}
.form-note a { color: var(--gold-dk); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  color: #065F46;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-weight: 600;
  font-size: .95rem;
}
.form-success.visible { display: flex; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding: 64px 24px 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); }

.footer-brand p {
  font-size: .875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: #1877F2; color: var(--white); }

.footer-links h4,
.footer-contact h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
.footer-contact svg { color: var(--gold); flex-shrink: 0; }
.footer-contact a {
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: 1fr; gap: 48px; }
  .why-stats     { grid-template-columns: repeat(4, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 14px; }
  .nav-social { width: 44px; height: 44px; }

  .hamburger { display: flex; }

  .hero-content { padding: 60px 24px 80px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid  { grid-template-columns: 1fr; }
  .why-stats     { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }

  .footer-inner  { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand  { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .stat-number { font-size: 2.4rem; }
  .why-stats   { grid-template-columns: 1fr 1fr; }

  .header-logo { height: 40px; }
}
