@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- White & Blue Theme Variables --- */
:root {
  --bg-light-primary: #ffffff; /* White base */
  --bg-light-secondary: #f8fafc; /* Very light slate-blue */
  --bg-light-tertiary: #f1f5f9; /* Inactive states */
  --accent-blue: #0ea5e9; /* Premier Light Blue */
  --accent-blue-hover: #0284c7; /* Darker blue hover */
  --accent-blue-light: #eff6ff; /* Highlight background */
  --accent-blue-rgb: 14, 165, 233;
  --text-dark-primary: #0f172a; /* Slate 900 */
  --text-dark-secondary: #334155; /* Slate 700 */
  --text-dark-muted: #64748b; /* Slate 500 */
  --border-color: #e2e8f0; /* Slate 200 */
  --border-focus: var(--accent-blue);
  --success-color: #10b981;
  --danger-color: #ef4444;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --max-width: 1200px;
  --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* --- Base Reset & Setup --- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light-primary);
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark-primary);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* --- Layout Container --- */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-light-secondary);
}

/* --- Typography Helpers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-subtitle {
  color: var(--accent-blue);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-title span {
  color: var(--accent-blue);
}

.section-desc {
  color: var(--text-dark-muted);
  margin-top: 1rem;
  font-size: 1rem;
}

/* --- Buttons System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.05em;
  gap: 10px;
}

.btn-blue {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-blue:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Top Info Bar --- */
.topbar {
  background-color: #0f172a;
  font-size: 0.82rem;
  padding: 0.6rem 0;
  color: #94a3b8;
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-item svg {
  color: var(--accent-blue);
  width: 14px;
  height: 14px;
}

/* --- Navigation Header --- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  color: var(--accent-blue);
}

.logo span {
  color: var(--accent-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu li {
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* --- Mega Menu & Dropdowns --- */
.nav-item-dropdown {
  position: static;
}

.dropdown-arrow {
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.3s ease;
  width: 10px;
  height: 10px;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 15px;
  right: 15px;
  width: calc(100% - 30px);
  transform: translateY(15px);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-blue);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-dropdown:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-areas {
  left: auto;
  right: 15px;
  width: calc(100% - 30px);
  max-width: 700px;
}

.mega-menu-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega-menu-areas .mega-menu-container {
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.mega-menu-column h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  font-weight: 800;
}

.mega-menu-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu-column ul li a {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  font-weight: 500;
  display: block;
  transition: var(--transition);
}

.mega-menu-column ul li a:hover {
  color: var(--accent-blue);
  transform: translateX(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-phone-link {
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-phone-link:hover {
  color: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.nav-phone-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* --- Inner Page Breadcrumbs Hero --- */
.inner-hero {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
              url('../assets/security_detail.png') no-repeat center center / cover;
  border-bottom: 1px solid var(--border-color);
  padding: 5.5rem 0;
  position: relative;
}

.inner-hero.about-hero {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
                    url('../assets/about_security.png');
}

.inner-hero.services-hero {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
                    url('../assets/services_security.png');
}

.inner-hero.contact-hero {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
                    url('../assets/contact_security.png');
}

.inner-hero.california-hero {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
                    url('../assets/california_security.png');
}

.inner-hero.los-angeles-hero {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
                    url('../assets/los_angeles_security.png');
}

.inner-hero.san-diego-hero {
  background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.45) 0%, rgba(255, 255, 255, 0.55) 100%),
                    url('../assets/san_diego_security.png');
}

.inner-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.inner-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-dark-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-dark-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-blue);
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
}

/* --- Split Grid Layout --- */
.split-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
  align-items: start;
}

.main-content h2, .main-content h3 {
  margin: 2.2rem 0 1rem 0;
  color: var(--text-dark-primary);
}

.main-content p {
  margin-bottom: 1.25rem;
  color: var(--text-dark-secondary);
}

.main-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.main-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.main-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center center / contain;
}

/* --- Reusable Booking Form Sidebar --- */
.sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-widget {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-blue);
}

.service-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light-secondary);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.service-menu-list a:hover, .service-menu-list a.active {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
}

.service-menu-list svg {
  width: 14px;
  height: 14px;
}

/* --- Booking Form Card --- */
.lead-form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.2rem;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.lead-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-blue);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-subtitle {
  color: var(--text-dark-muted);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 2rem;
}

.lead-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark-secondary);
}

.form-field input, .form-field select, .form-field textarea {
  background-color: var(--bg-light-secondary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-dark-primary);
  font-size: 0.92rem;
  transition: var(--transition);
  width: 100%;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent-blue);
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Location Visual Section --- */
.location-img-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 2.2rem;
}

.location-img-container img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* --- Footer --- */
.footer {
  background-color: #0f172a;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  color: #94a3b8;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-blue);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

/* --- Sticky CTA Footer Bar (Mobile-first CRO) --- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  border-top: 2px solid var(--accent-blue);
  display: none;
  grid-template-columns: 1fr 1fr;
  z-index: 999;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark-primary);
  height: 100%;
}

.mobile-cta-btn:first-child {
  border-right: 1px solid var(--border-color);
  background-color: var(--bg-light-secondary);
}

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

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: 400px;
  background-color: #ffffff;
  border: 1px solid var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  z-index: 1050;
  display: none;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  margin-bottom: 1rem;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
}

/* --- Areas List & Card Layouts --- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.area-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.07);
  border-color: var(--accent-blue);
}

.area-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.area-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-card-content {
  padding: 1.5rem;
}

.area-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.area-card-desc {
  color: var(--text-dark-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.city-list-section {
  background-color: var(--bg-light-secondary);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-top: 4rem;
  border: 1px solid var(--border-color);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.city-group h4 {
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.city-group ul {
  list-style: none;
}

.city-group ul li {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 15px;
}

.city-group ul li::before {
  content: '•';
  color: var(--accent-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width: 900px) {
  .area-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .city-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
  
  .city-grid {
    grid-template-columns: 1fr;
  }
  
  .city-list-section {
    padding: 1.5rem;
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .section {
    padding: 4.5rem 0;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sidebar {
    position: static;
  }
  
  .location-img-container img {
    height: 300px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 280px;
    background-color: #ffffff;
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 7rem 2.5rem 2.5rem 2.5rem;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mega-menu-panel {
    display: none !important;
  }
  
  body {
    padding-bottom: 60px; /* Offset for sticky mobile bar */
  }
  
  .mobile-sticky-cta {
    display: grid;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-menu {
    gap: 1.2rem;
  }
  .nav-phone-link {
    margin-right: 5px;
    font-size: 0.9rem;
  }
  .logo {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .inner-title {
    font-size: 2.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-width: none;
    bottom: 1rem;
  }
}
