/* ===== Locksmith Ninja Perth - Main Stylesheet ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #c8102e;       /* Bold red - locksmith industry */
  --primary-dark: #9a0c23;
  --secondary: #1a1a1a;     /* Deep black */
  --accent: #f5a623;        /* Gold/key color */
  --light: #f8f8f8;
  --gray: #6b6b6b;
  --gray-light: #e5e5e5;
  --white: #ffffff;
  --success: #2e7d32;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 16px; color: #444; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--secondary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.88rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info a { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.topbar-info a:hover { color: var(--accent); }
.topbar-social a { color: var(--white); margin-left: 12px; font-size: 1rem; }
.topbar-social a:hover { color: var(--accent); }

/* ============ HEADER / NAV ============ */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.logo img { max-height: 70px; width: auto; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-menu a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  padding: 6px 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 12px 24px !important;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
}
.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--secondary);
  cursor: pointer;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #000; color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(200,16,46,0.75) 100%),
              url('https://images.unsplash.com/photo-1558002038-1055907df827?w=1600&q=80') center/cover;
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 3.3rem; margin-bottom: 20px; }
.hero p.lead { font-size: 1.25rem; max-width: 800px; margin: 0 auto 32px; opacity: 0.95; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; justify-content: center; gap: 30px;
  margin-top: 50px; flex-wrap: wrap;
}
.hero-badge { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hero-badge i { color: var(--accent); font-size: 1.4rem; }

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { margin-bottom: 12px; }
.section-title .subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 8px;
}
.section-title p { max-width: 750px; margin: 0 auto; color: var(--gray); }

/* ============ ABOUT/INTRO ============ */
.about-intro { background: var(--light); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.intro-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.intro-content h2 { margin-bottom: 20px; }
.intro-features { list-style: none; margin-top: 24px; }
.intro-features li { padding: 8px 0; display: flex; align-items: flex-start; gap: 12px; }
.intro-features i { color: var(--success); font-size: 1.2rem; margin-top: 4px; }

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}
.service-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 30px auto 20px;
}
.service-card-body { padding: 0 28px 28px; text-align: center; }
.service-card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.service-card p { font-size: 0.95rem; color: var(--gray); }
.service-card .service-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary);
}
.service-card .service-link i { margin-left: 6px; transition: var(--transition); }
.service-card .service-link:hover i { margin-left: 12px; }

/* ============ WHY CHOOSE ============ */
.why-choose {
  background: var(--secondary);
  color: var(--white);
}
.why-choose h2 { color: var(--white); }
.why-choose .section-title p { color: #bbb; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.why-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.why-item:hover { background: rgba(200,16,46,0.15); border-color: var(--primary); }
.why-item i {
  font-size: 2.5rem; color: var(--accent); margin-bottom: 16px; display: block;
}
.why-item h4 { color: var(--white); margin-bottom: 10px; }
.why-item p { color: #bbb; font-size: 0.92rem; margin: 0; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 26px; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border-left: 4px solid var(--primary);
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px; right: 22px;
  font-size: 5rem;
  color: var(--gray-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial h4 { margin-bottom: 8px; }
.testimonial p { font-style: italic; color: #555; }
.testimonial .author {
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
  font-style: normal;
}

/* ============ FAQ ============ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
}
.faq-question i { transition: var(--transition); color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 24px 22px; }

/* ============ PAGE HEADER (inner pages) ============ */
.page-header {
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(200,16,46,0.75) 100%),
              url('https://images.unsplash.com/photo-1614064548237-096dab2c4dee?w=1600&q=80') center/cover;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumb { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.breadcrumb a { color: var(--accent); }

/* ============ SERVICE PAGE CONTENT ============ */
.service-detail .content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.service-content img.feature-img {
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.service-content h2 { margin-top: 32px; }
.service-content h3 { margin-top: 24px; }
.service-content ul { margin: 16px 0 16px 22px; }
.service-content li { margin-bottom: 8px; }

.sidebar {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.sidebar h3 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 10px; }
.sidebar ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 6px;
  color: var(--secondary);
  font-weight: 500;
  transition: var(--transition);
}
.sidebar ul li a:hover, .sidebar ul li a.active {
  background: var(--primary); color: var(--white);
  transform: translateX(5px);
}
.sidebar-cta {
  background: var(--secondary);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 24px;
}
.sidebar-cta h4 { color: var(--white); margin-bottom: 10px; }
.sidebar-cta p { color: #ccc; margin-bottom: 16px; font-size: 0.9rem; }
.sidebar-cta a.phone {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin: 10px 0;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-box {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius);
}
.contact-info-box h3 { margin-bottom: 20px; color: var(--primary); }
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-info-item i {
  background: var(--primary);
  color: var(--white);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; margin-bottom: 4px; color: var(--secondary); }
.contact-info-item a, .contact-info-item span { color: #444; }

.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--secondary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.map-section { padding: 0; }
.map-section iframe { display: block; width: 100%; }

/* ============ FOOTER ============ */
.footer {
  background: #0d0d0d;
  color: #bbb;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 10px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--primary);
}
.footer-logo img { max-height: 70px; margin-bottom: 16px; background: #fff; padding: 8px; border-radius: 6px; }
.footer p { color: #bbb; font-size: 0.93rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #bbb; font-size: 0.93rem; display: flex; align-items: center; gap: 8px; }
.footer ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer ul li a i { font-size: 0.75rem; color: var(--primary); }

.footer-contact-item {
  display: flex; gap: 12px;
  margin-bottom: 14px;
  font-size: 0.93rem;
}
.footer-contact-item i { color: var(--primary); margin-top: 4px; }
.footer-contact-item a { color: #bbb; }
.footer-contact-item a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.88rem;
  color: #888;
}

/* ============ FLOATING CALL BUTTON ============ */
.float-call {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--primary);
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,16,46,0.5);
  z-index: 99;
  font-size: 1.4rem;
  animation: pulse 2s infinite;
}
.float-call:hover { color: var(--white); transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,16,46,0.7); }
  70% { box-shadow: 0 0 0 18px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

/* ============ ABOUT PAGE ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.stat-card {
  text-align: center;
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card .number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  font-family: 'Poppins', sans-serif;
}
.stat-card .label { color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; font-size: 0.85rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.4rem; }
  .intro-grid, .contact-grid, .service-detail .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
    gap: 14px;
    transform: translateY(-150%);
    transition: var(--transition);
    align-items: stretch;
  }
  .nav-menu.active { transform: translateY(0); }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-info { font-size: 0.8rem; gap: 12px; }
  section { padding: 60px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.lead { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.7rem; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .topbar-social { display: none; }
}
