/* ═══════════════════════════════════════════
   INSURANCE WEBSITE STYLES
   Colors injected via PHP from config.php
   ═══════════════════════════════════════════ */

/* CSS Variables - injected by PHP in header */
:root {
  --primary: #1e40af;
  --accent: #ff6b00;
  --text: #1f2937;
  --bg: #f8fafc;
  --white: #ffffff;
  --gray: #4b5563;
  --light-gray: #e5e7eb;
  --dark: #0f172a;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

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

/* ═══════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════ */

.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

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

.header-top a {
  color: var(--white);
  font-weight: 500;
}

.header-top a:hover {
  color: var(--accent);
}

.header-main {
  padding: 15px 0;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

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

.nav {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #ff8533 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */

.hero {
  background: linear-gradient(160deg, var(--primary) 0%, #22c55e 100%);
  color: var(--white);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 60px 60px;
}

.hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff6b00 0%, #f97316 100%);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  filter: drop-shadow(0 1px 2px rgba(255, 107, 0, 0.3));
}

/* ═══════════════════════════════════════════
   HOMEPAGE DISCLAIMER - Google Ads Compliance
   ═══════════════════════════════════════════ */

.homepage-disclaimer {
    background: transparent;
    padding: 8px 0 0;
    margin-top: -20px;
}

.disclaimer-text {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

.disclaimer-text strong {
    color: #64748b;
    font-weight: 500;
    font-style: normal;
}

/* ═══════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════ */

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   PLANS SECTION
   ═══════════════════════════════════════════ */

.plans {
  background: var(--white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  transition: all 0.3s ease;
  border-left: 4px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b00 0%, #f97316 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
  border-left-color: transparent;
}

.plan-card:hover::before {
  transform: scaleY(1);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plan-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.plan-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.plan-card p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

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

/* ═══════════════════════════════════════════
   WHY CHOOSE US
   ═══════════════════════════════════════════ */

.why-us {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.why-item {
  text-align: center;
  padding: 30px;
}

.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
  position: relative;
}

.why-icon::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #ff6b00;
  border-radius: 50%;
}

.why-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.why-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.why-item p {
  color: var(--gray);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(255, 107, 0, 0.2);
}

.stat-label {
  color: var(--gray);
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */

.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 800;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-phone:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}

.cta-phone svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.about-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8533 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.about-feature h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.about-feature p {
  font-size: 14px;
  margin: 0;
}

/* ═══════════════════════════════════════════
   INSURANCE PLANS PAGE
   ═══════════════════════════════════════════ */

.plans-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.plans-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.plans-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.plans-page .plans-grid {
  margin-bottom: 40px;
}

.plan-full {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: start;
}

.plan-full-icon {
  font-size: 64px;
}

.plan-full-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.plan-full-content p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.plan-cta:hover {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */

.contact-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.contact-hero p {
  font-size: 18px;
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 30px;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(30, 64, 175, 0.25);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gray);
}

.contact-item a {
  color: var(--accent);
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #dc2626;
  font-size: 14px;
  margin-top: 5px;
}

.form-success {
  background: #dcfce7;
  color: #166534;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* ═══════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════ */

.legal-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: 36px;
  font-weight: 800;
}

.legal-content {
  background: var(--white);
  padding: 60px 0;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 15px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--gray);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   POPUP
   ═══════════════════════════════════════════ */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

.popup {
  background: var(--white);
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  padding: 35px 30px;
  position: relative;
  text-align: center;
  animation: popupSlide 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6b7280;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

.popup-icon {
  font-size: 56px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.popup h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.popup p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.popup-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a4c 100%);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.popup-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(249, 115, 22, 0.5);
}

.popup-phone svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.popup-note {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 5px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav.active {
    right: 0;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 20px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .plan-full {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-phone {
    font-size: 18px;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 80px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .popup {
    padding: 30px 25px;
  }
  
  .popup-phone {
    font-size: 18px;
    padding: 12px 25px;
  }
}
