/* ===========================
   AIDMed Insurance — style.css
   Brand: Navy #1a3d6b, Sky #3e8fc1, Light #f8fafd
   Fonts: Playfair Display + DM Sans
=========================== */

:root {
  --navy: #1a3d6b;
  --navy-dark: #122d52;
  --sky: #3e8fc1;
  --sky-light: #6aafd9;
  --sky-pale: #d6eaf8;
  --bg: #f8fafd;
  --white: #ffffff;
  --text: #1e2a3a;
  --text-muted: #5a6a7e;
  --border: #dce8f5;
  --shadow: 0 4px 24px rgba(26,61,107,0.10);
  --shadow-lg: 0 12px 48px rgba(26,61,107,0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }

em { font-style: italic; color: var(--sky); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62,143,193,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(26,61,107,0.3);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--sky);
  border-color: var(--sky);
}
.btn-outline:hover {
  background: var(--sky);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--sky-pale);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- Section Headers ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
  background: var(--sky-pale);
  padding: 6px 16px;
  border-radius: 50px;
}
.section-eyebrow.light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.section-title { color: var(--navy); margin-bottom: 16px; }
.section-title.light { color: var(--white); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ============================
   HEADER
============================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-weight: 500;
  color: var(--text);
  padding: 4px 0;
}
.mobile-menu.open { display: flex; }

/* ============================
   HERO
============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #eaf3fb 0%, #f8fafd 50%, #dce8f5 100%);
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--sky-light), transparent);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--sky-pale), transparent);
  bottom: 0; left: -100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-heading { color: var(--navy); margin-bottom: 20px; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-icon { color: var(--sky); font-weight: 700; }

/* Hero Card */
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-card-inner { padding: 36px 32px; }
.card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}
.hero-card h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.3rem; }
.hero-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; }
.card-email {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--sky);
  font-weight: 500;
}
.card-email:hover { text-decoration: underline; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ============================
   STATS
============================ */
.stats-strip {
  background: var(--bg);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 48px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ============================
   PLANS
============================ */
.plans { background: var(--white); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.plan-card--featured {
  background: linear-gradient(145deg, var(--navy), var(--sky));
  border-color: transparent;
  color: var(--white);
}
.plan-card--featured h3,
.plan-card--featured p { color: var(--white); }
.plan-card--featured .plan-features li { color: rgba(255,255,255,0.85); }
.plan-card--featured .plan-features li::before { color: #7dd9f5; }

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--sky-light);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.plan-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.plan-card--featured .plan-icon { background: rgba(255,255,255,0.15); }
.plan-card h3 { color: var(--navy); margin-bottom: 12px; }
.plan-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; flex: 1; }
.plan-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sky);
  font-weight: 700;
}

/* ============================
   WHY AIDMED
============================ */
.why { background: var(--bg); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-visual { position: relative; }
.why-img-block {
  position: relative;
  padding: 32px;
}
.why-accent-box {
  position: absolute;
  top: 0; left: 0;
  width: 85%;
  height: 85%;
  background: linear-gradient(135deg, var(--sky-pale), var(--border));
  border-radius: var(--radius);
}
.why-logo-large {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-logo-large img { max-width: 280px; }

.why-card-float {
  position: absolute;
  bottom: 0; right: 0;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}
.why-card-float .float-icon { font-size: 1.5rem; }
.why-card-float strong { display: block; font-size: 0.9rem; color: var(--navy); }
.why-card-float p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.why-content .section-title { text-align: left; }
.why-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.02rem;
}
.why-points { display: flex; flex-direction: column; gap: 24px; }
.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-point-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--sky-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.why-point strong { display: block; color: var(--navy); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; font-size: 0.98rem; }
.why-point p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ============================
   CONTACT
============================ */
.contact {
  position: relative;
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 50%, var(--sky) 100%);
  overflow: hidden;
}
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.contact-shape {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-info .section-title { text-align: left; margin-bottom: 16px; }
.light-sub { color: rgba(255,255,255,0.75); font-size: 1.02rem; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.detail-icon { font-size: 1.4rem; margin-top: 2px; }
.contact-detail strong { display: block; color: var(--white); margin-bottom: 4px; }
.contact-detail p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.contact-detail a { color: rgba(255,255,255,0.7); }
.contact-detail a:hover { color: var(--white); text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  color: var(--navy);
  margin-bottom: 24px;
  font-size: 1.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(62,143,193,0.15);
}
.form-group input.error,
.form-group select.error {
  border-color: #e05c5c;
}
.form-group textarea { resize: vertical; }

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--sky);
}
.form-check label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check a { color: var(--sky); }
.form-check a:hover { text-decoration: underline; }

.form-success {
  margin-top: 16px;
  padding: 16px;
  background: #e8f8f0;
  border: 1px solid #a8d8bc;
  border-radius: var(--radius-sm);
  color: #1a6640;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-error {
  margin-top: 16px;
  padding: 16px;
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius-sm);
  color: #c0392b;
  font-size: 0.85rem;
}
.form-error a { color: #c0392b; text-decoration: underline; }

/* ============================
   FOOTER
============================ */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; max-width: 280px; margin-bottom: 8px; }
.footer-address { color: rgba(255,255,255,0.5) !important; font-size: 0.82rem !important; }
.footer-email {
  display: inline-block;
  margin-top: 12px;
  color: var(--sky-light);
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-email:hover { text-decoration: underline; }
.footer-links h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.6;
}

/* ============================
   BACK TO TOP
============================ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover { transform: translateY(-3px); background: var(--sky); }

/* ============================
   ANIMATIONS
============================ */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   INNER PAGES (Privacy / Terms)
============================ */
.inner-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 120px 0 64px;
  text-align: center;
}
.inner-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.inner-hero p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.inner-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}
.inner-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 40px 0 12px;
}
.inner-content h2:first-child { margin-top: 0; }
.inner-content p, .inner-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.inner-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.inner-content a { color: var(--sky); }
.inner-content a:hover { text-decoration: underline; }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 480px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-form-wrap { max-width: 560px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .plans-grid { max-width: 100%; }
  .stats-grid { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .stat-item { padding: 12px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .hero-inner { padding-top: 40px; }
  .back-to-top { bottom: 20px; right: 20px; }
}
