/* ==========================================================================
   Barnet Locksmiths - Production Stylesheet
   Pure Vanilla CSS3 (Mobile-First Architecture)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --color-primary: #0f172a;        /* Deep Slate / Navy */
  --color-primary-light: #1e293b;  /* Slate Accent */
  --color-accent: #dc2626;         /* Emergency Dispatch Red */
  --color-accent-hover: #b91c1c;
  --color-cta: #eab308;            /* High-Visibility Attention Amber */
  --color-cta-hover: #ca8a04;
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  --color-text-main: #1e293b;
  --color-text-muted: #475569;
  --color-text-inverted: #ffffff;
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-width: 1140px;
}

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

html {
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  /* Extra bottom padding to prevent content overlap from sticky mobile bar */
  padding-bottom: 72px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-cta {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-cta:hover {
  background-color: var(--color-accent-hover);
}

.btn-header {
  background-color: var(--color-cta);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  white-space: nowrap;
}

.btn-header:hover {
  background-color: var(--color-cta-hover);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  color: var(--color-text-inverted);
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--color-accent);
}

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

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  padding: 0;
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

/* Navigation Menu */
.nav-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background-color: var(--color-primary-light);
  flex-direction: column;
  padding: 1rem 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.nav-menu.is-active {
  display: flex;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-cta);
}

/* Dropdown Menu */
.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.dropdown-menu.is-active {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 0.6rem 1rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.dropdown-item a:hover {
  color: var(--color-cta);
}

/* Desktop Navigation Media Queries */
@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .nav-item {
    position: relative;
    width: auto;
  }

  .nav-link {
    padding: 1.25rem 1rem;
    border: none;
    font-size: 0.95rem;
  }

  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    background-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-item a {
    padding: 0.75rem 1.25rem;
  }

  .dropdown-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.hero .cta-wrapper {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.hero .btn-cta {
  font-size: 1.25rem;
  padding: 1rem 2rem;
  width: 100%;
  max-width: 440px;
}

.hero-subtext {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 5.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .hero .btn-cta {
    width: auto;
  }
}

/* ==========================================================================
   Trust Signals Section
   ========================================================================== */
.trust-signals {
  background-color: var(--color-bg-light);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.trust-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.trust-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.trust-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.service-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.service-card .service-link {
  color: var(--color-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-card .service-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-choose {
  background-color: var(--color-bg-light);
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.reason-item {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.reason-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.reason-item p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-section {
  padding: 4.5rem 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.review-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.review-card blockquote {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.review-card .author {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Areas Covered Across Barnet
   ========================================================================== */
.areas-section {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.areas-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.areas-intro {
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.area-badge a {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.area-badge a:hover {
  background-color: var(--color-cta);
  color: var(--color-primary);
  border-color: var(--color-cta);
  transform: translateY(-2px);
}

/* ==========================================================================
   Accordion FAQs
   ========================================================================== */
.faq-section {
  padding: 4.5rem 0;
  background-color: var(--color-bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 3rem 0;
  font-size: 0.95rem;
  border-top: 1px solid #1e293b;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Mobile Sticky Footer Bar
   ========================================================================== */
.mobile-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: var(--color-primary);
  border-top: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.footer-bar-left {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.footer-bar-right .btn-mobile-call {
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .mobile-sticky-footer {
    display: none;
  }
}