/* ==========================================================================
   revesetpassions.com - Professional Home Security Systems Stylesheet
   Theme: High-Contrast Dark Navy (#0B132B / #1C2541), Amber Gold (#FFC107), Clean White (#FFFFFF)
   ========================================================================== */

:root {
  --color-bg-darkest: #0B132B;
  --color-bg-navy: #1C2541;
  --color-bg-slate: #3A506B;
  --color-bg-light: #F8FAFC;
  --color-bg-white: #FFFFFF;
  --color-accent-amber: #FFC107;
  --color-accent-hover: #E0A800;
  --color-accent-blue: #0EA5E9;
  --color-text-white: #FFFFFF;
  --color-text-slate-light: #CBD5E1;
  --color-text-slate-muted: #94A3B8;
  --color-text-dark: #0F172A;
  --color-border-dark: #2A3B5C;
  --color-border-light: #E2E8F0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

/* ==========================================================================
   Typography & Base Styles
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: #334155;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   HEADER ARCHITECTURE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg-darkest);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Top Utility Bar - Plain text ONLY, NO button styling */
.top-utility-bar {
  background-color: #070D1F;
  border-bottom: 1px solid #1E293B;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #CBD5E1 !important;
}

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

.top-bar-left {
  color: #CBD5E1 !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dispatch-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.top-bar-right {
  color: #CBD5E1 !important;
  font-weight: 500;
}

.top-bar-right a {
  color: #CBD5E1 !important;
  text-decoration: none !important;
  font-weight: 600;
  margin-left: 0.25rem;
  transition: color 0.2s ease;
}

.top-bar-right a:hover {
  color: #FFC107 !important;
}

/* Main Navigation Bar - 3-Column Desktop Alignment */
.main-nav-bar {
  padding: 0.85rem 0;
  background-color: var(--color-bg-darkest);
}

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

/* Left: Brand Logo */
.brand-logo {
  flex: 0 0 auto;
}

.brand-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-icon-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #FFC107 0%, #E0A800 100%);
  color: #0B132B;
  border-radius: 8px;
  font-weight: 900;
  font-size: 1.1rem;
}

/* Center: 5 Nav links horizontally centered */
.center-nav-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links-list a,
.nav-link {
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links-list a:hover,
.nav-links-list a.active,
.nav-link:hover,
.nav-link.active {
  color: #FFC107 !important;
}

.nav-links-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #FFC107;
  transition: width 0.2s ease;
}

.nav-links-list a:hover::after,
.nav-links-list a.active::after {
  width: 100%;
}

/* Right: Strictly ONE Yellow Call CTA Button */
.header-cta-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.btn-primary,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #FFC107;
  color: #0B132B !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary:hover,
.cta-button:hover {
  background-color: #E0A800;
  color: #0B132B !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.45);
}

.phone-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  display: none;
  background-color: #0F172A;
  border-top: 1px solid #1E293B;
  padding: 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-list a {
  color: #FFFFFF !important;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1E293B;
}

.mobile-nav-list a:hover {
  color: #FFC107 !important;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0B132B 0%, #1C2541 100%);
  color: #FFFFFF;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: #FFFFFF;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-content p {
  color: #CBD5E1;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 193, 7, 0.15);
  border: 1px solid #FFC107;
  color: #FFC107;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: 2px solid #3A506B;
  min-height: 48px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #1C2541;
  border-color: #CBD5E1;
  color: #FFFFFF !important;
}

.partner-hero-disclosure {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.5;
  border-left: 2px solid #3A506B;
  padding-left: 0.75rem;
}

.hero-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #070D1F;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   FEATURE & CONTENT SECTIONS
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-dark {
  background-color: #0B132B;
  color: #FFFFFF;
}

.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}

.section-dark p {
  color: #CBD5E1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748B;
}

.section-dark .section-header p {
  color: #94A3B8;
}

/* Alternating 2-Column Split Blocks */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.split-grid.reverse {
  direction: rtl;
}

.split-grid.reverse > * {
  direction: ltr;
}

.split-content h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.split-content p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #10B981;
  margin-top: 2px;
}

.split-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  background-color: #070D1F;
}

.section-dark .split-image {
  border-color: #2A3B5C;
}

/* ==========================================================================
   CARDS & COMPARISON GRIDS
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.feature-card {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #64748B;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Comparison Table Card */
.comparison-wrapper {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  background-color: #0B132B;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: #F8FAFC;
}

/* ==========================================================================
   PRE-FOOTER CALLOUT BANNER (URGENT HOTLINE)
   ========================================================================== */
.pre-footer-banner {
  background: linear-gradient(135deg, #FFC107 0%, #F59E0B 100%);
  color: #0B132B;
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
}

.pre-footer-banner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0B132B;
  margin-bottom: 0.75rem;
}

.pre-footer-banner p {
  font-size: 1.15rem;
  color: #1F2937;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  font-weight: 500;
}

.pre-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background-color: #0B132B;
  color: #FFFFFF !important;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1rem 2.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 19, 43, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
  min-height: 52px;
}

.pre-footer-btn:hover {
  background-color: #1C2541;
  color: #FFC107 !important;
  transform: scale(1.03);
}

/* ==========================================================================
   FOOTER ARCHITECTURE
   ========================================================================== */
.site-footer {
  background-color: #070D1F;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1E293B;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: #FFC107;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-hotline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFC107 !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFC107;
  padding-left: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-compliance-text {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   MOBILE STICKY TAP-TO-CALL BAR (< 768px)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0B132B;
  border-top: 2px solid #FFC107;
  padding: 0.75rem 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background-color: #FFC107;
  color: #0B132B !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
  min-height: 48px;
}

/* ==========================================================================
   FORM & INTERACTIVE COMPONENTS
   ========================================================================== */
.contact-form-card {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #FFC107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

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

.faq-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #0F172A;
}

.faq-item p {
  margin-bottom: 0;
  color: #475569;
}

/* Policy Content Layout */
.legal-content-card {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.legal-content-card h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #E2E8F0;
}

.legal-content-card h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content-card p,
.legal-content-card ul {
  margin-bottom: 1rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content-card ul {
  padding-left: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.25rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  /* Enforce Mobile Bottom Sticky Call Bar */
  body {
    padding-bottom: 70px;
  }
  
  .mobile-sticky-bar {
    display: block;
  }

  /* Header mobile changes */
  .top-utility-bar .container {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .center-nav-menu,
  .header-cta-wrapper {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Grid and Column Stacking */
  .hero-grid,
  .split-grid,
  .split-grid.reverse,
  .card-grid,
  .card-grid-2,
  .card-grid-4,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem !important;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .pre-footer-banner h2 {
    font-size: 1.75rem;
  }

  .legal-content-card {
    padding: 1.5rem;
    margin-top: 0;
  }

  .comparison-wrapper {
    overflow-x: auto;
  }

  .btn-primary,
  .btn-secondary,
  .cta-button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem !important;
  }

  .pre-footer-btn {
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    width: 100%;
  }
}
