/* --- Modern CSS Reset & Root Variables --- */
:root {
    --primary-color: #1C3FAA;
    --primary-hover-color: #15367A;
    --secondary-color: #10b981;
    --secondary-hover-color: #0f996c;
    --background-color: #f8fafc;
    --card-background-color: #ffffff;
    --text-color: #1f2937;
    --subtle-text-color: #6b7280;
    --border-color: #e5e7eb;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
}

/* Base styles */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans); margin: 0; padding: 0;
    background-color: var(--background-color); color: var(--text-color);
    line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: var(--primary-hover-color); }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
/* Accessibility helper for hidden-but-readable text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Header --- */
.site-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.25rem 0; /* keeps header compact despite bigger logo */
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  display: block;
  height: 52px;  /* increased from 44px */
  width: auto;
}

@media (max-width: 850px) {
  .logo-icon { height: 44px; }
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.logo-blue {
  color: #1C3FAA; /* shield blue */
}

.logo-yellow {
  color: #FDB927; /* shield yellow */
}


/* --- Hero Section & General Page Content --- */
.hero { text-align: center; padding: 6rem 1rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -0.025em; }
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .subtitle {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.85rem 1.75rem; border: none; border-radius: var(--border-radius); font-weight: 700; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover-color); color: white; }
.btn-secondary { background-color: var(--secondary-color); color: white; }
.btn-secondary:hover { background-color: var(--secondary-hover-color); color: white; }
.btn.full-width { width: 100%; text-align: center; padding: 1rem; font-size: 1.1rem; }
.btn:disabled { background-color: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Forms (Registration & Profile Pages) --- */
.form-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 2rem; }
.form-wrapper { background: var(--card-background-color); padding: 2.5rem; border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 500px; }
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header .logo { margin-bottom: 1rem; display: block; justify-content: center; }
.form-header h2 { margin-bottom: 0.5rem; }
.form-header p { color: var(--subtle-text-color); margin-top: 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border-color);
    border-radius: var(--border-radius); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.1); outline: none; 
}
.form-status { font-size: 0.9rem; text-align: center; margin-top: 0.5rem; font-weight: 500; min-height: 1.2em; }
.form-status.error { color: var(--error-color); }
.form-status.warning { color: var(--warning-color); }
.form-status.success { color: var(--success-color); }

/* --- Modals & Toasts --- */
.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-content { background-color: #fff; padding: 2.5rem; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow-lg); max-width: 400px; width: 90%; animation: modal-fade-in 0.3s ease-out; }
#modalMessage { font-size: 1.1rem; margin-bottom: 1.5rem; }
@keyframes modal-fade-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* --- Page-Specific Section Visibility --- */
.features, .plans, .video-section { display: none; }
.page-home .features, .page-home .plans, .page-home .video-section { display: block; }

/* --- Homepage Sections (Features, Plans, Video) --- */
.features { padding: 5rem 0; text-align: center; }
.features h2 { font-size: 2.5rem; margin-bottom: 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; text-align: center; }
.feature-item { padding: 1.5rem; }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-item h3 { font-size: 1.25rem; }
.feature-item p { color: var(--subtle-text-color); }
.plans { padding: 5rem 0; background-color: #eef2f7; }
.plans h2 { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; }
.plan-cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; align-items: center; }
.plan-card { background: var(--card-background-color); border-radius: 12px; padding: 2.5rem 2rem; box-shadow: var(--shadow-md); width: 340px; text-align: center; border: 2px solid transparent; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-card.recommended { border-color: var(--primary-color); transform: scale(1.05); }
.plan-card.recommended:hover { transform: scale(1.05) translateY(-8px); }
.recommendation-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: white; padding: 0.3rem 0.8rem; border-radius: 12px; font-size: 0.8rem; font-weight: 700; }
.plan-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.plan-card .price { font-size: 2.25rem; font-weight: 700; margin: 1rem 0 1.5rem; }
.plan-card .price span { font-size: 1rem; font-weight: 400; color: var(--subtle-text-color); }
.plan-features { list-style: none; padding: 0; margin: 0 0 2rem 0; text-align: left; }
.plan-features li { margin-bottom: 0.75rem; color: var(--subtle-text-color); }
.plan-features li:first-child { color: var(--text-color); }
.video-section { padding: 5rem 0; text-align: center; }
.video-section h2 { font-size: 2.5rem; margin-bottom: 3rem; }
.video-wrapper { margin: 0 auto; max-width: 800px; box-shadow: var(--shadow-lg); border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- Footer & Social Icons --- */
.site-footer {
  background: #0b1244;
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 32px;
  font-size: 1.06rem;
}

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

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-column {
  flex: 1 1 180px;
  min-width: 140px;
}

.footer-column h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: #b7bed6; transition: color .18s; font-weight: 500; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.footer-column p,
.footer-column .footer-social { margin-bottom: 10px; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: transform 0.2s, background 0.15s;
  color: #fff;
  font-size: 1.1rem;
  background: transparent;
}
.social-link.instagram-icon { background: #E1306C; }
.social-link.facebook-icon  { background: #1877F2; }
.social-link.x-icon         { background: #000000; }
.social-link.youtube-icon   { background: #FF0000; }
.social-link:hover { transform: scale(1.11); opacity: 0.93; }

.footer-bottom {
  border-top: 1px solid #243157;
  margin-top: 16px;
  padding: 12px 0;
  text-align: center;
  font-size: 1.02rem;
  color: #b7bed6;
  letter-spacing: 0.01em;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .footer-columns { flex-direction: column; gap: 18px; }
}
@media (max-width: 480px) {
  .footer-columns { gap: 8px; }
  .footer-column { min-width: 0; }
  .footer-bottom { font-size: 0.97rem; padding: 14px 0; }
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .header-content { flex-direction: row; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .form-wrapper { padding: 1.5rem; }
    .plan-card.recommended { transform: scale(1); }
    .plan-card:hover, .plan-card.recommended:hover { transform: translateY(-5px); }
    /* Hamburger styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 1200;
}
.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  position: relative;
  transition: background 0.3s;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: transform 0.3s, top 0.3s, bottom 0.3s;
}
.hamburger::before { top: -9px; }
.hamburger::after  { bottom: -9px; }

/* Hamburger transforms to 'X' on open */
body.nav-open .hamburger {
  background: transparent;
}
body.nav-open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
body.nav-open .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile nav styles */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; /* Adjust if header height changes */
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0 1rem 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    z-index: 1100;
  }
  body.nav-open .main-nav {
    display: flex;
  }
  .header-content {
    position: relative;
  }
}
/* --- Premium Centered Plan Layout --- */
.plan-cards.premium-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.plan-cards.premium-centered .plan-card {
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Make the Premium card bigger and highlighted */
.plan-cards.premium-centered .plan-card.premium {
  background: #f0f4ff;
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  max-width: 360px;
}

.plan-cards.premium-centered .plan-card.premium:hover {
  transform: scale(1.08);
}
/* --- Promo Modal (All Screens) --- */
.promo-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.promo-modal-overlay.show {
  display: flex;
}

.promo-modal {
  background: #fff;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

.promo-modal h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.promo-modal p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.promo-btn {
  display: inline-block;
  background: #0057D9;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.promo-btn:hover {
  background: #0045ad;
}

.close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f3f4f6;
  border: none;
  border-radius: 4px;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Keep badge on top */
.plan-cards.premium-centered .recommendation-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .plan-cards.premium-centered .plan-card.premium {
    transform: scale(1);
    max-width: 100%;
  }
  .plan-cards.premium-centered .plan-card.premium:hover {
    transform: scale(1);
  }
  .modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-content h2 {
  color: red;
  font-size: 1.2rem;
}
.warn-text {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn {
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-danger {
  background: red;
  color: #fff;
}
.btn-secondary {
  background: #2563eb;
  color: #fff;
}

}
.input-error {
  border: 2px solid #e11d48 !important;
  background: #fef2f2 !important;
}
.call-link-owner {
  background: #2563eb;
  color: #fff;
  border: none;
}
.call-link-owner:hover {
  background: #1d4ed8;
  color: #fff;
}
.call-link-emergency {
  background: #e11d48;
  color: #fff;
  border: none;
}
.call-link-emergency:hover {
  background: #be123c;
  color: #fff;
}


/* Features: always 3 in a row on desktop */
@media (min-width: 900px) {
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* Features always centered */
.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

/* --- FAQ Section Styles (Corrected) --- */
.faq-section {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.faq-title {
    text-align: center;
    font-size: var(--font-size-h2);
    margin-bottom: 3rem;
    font-weight: 800;
}

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

.faq-item {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item.open {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.faq-question:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-item.open .faq-question {
    color: var(--primary-color);
}

.faq-toggle-icon {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-toggle-icon::before {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) rotate(180deg);
}

.faq-item.open .faq-toggle-icon::after {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) rotate(270deg);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-item.open .faq-answer-wrapper {
    max-height: 300px; /* Use a fixed max-height for smoother transitions */
}

.faq-answer-content {
    padding: 0 1.5rem;
    font-size: 1rem;
    color: var(--subtle-text-color);
}

.faq-item.open .faq-answer-content {
    padding-bottom: 1.5rem;
}

/* --- Scroll to Top Button (Corrected) --- */
#scrollToTopBtn {
  position: fixed;
  bottom: 32px;
  right: 32px;   /* Change 'left' to 'right' */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0057D9;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  font-size: 1.35rem;
  cursor: pointer;
}
#scrollToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}
#scrollToTopBtn:hover {
  background: #003885;
}
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-footer {
  margin-top: auto;
}


