/* ===== Policy Vyapaar — shared styles ===== */

:root {
  --amber: #FFFBF3;
  --amber-dark: #C98A0F;
  --amber-soft: #FFFBF3;
  --charcoal: #2B2A28;
  --charcoal-soft: #5B5955;
  --charcoal-faint: #8C8A85;
  --cream: #FFFBF3;
  --white: #FFFFFF;
  --border: #E9E2D2;
  --shadow: 0 4px 24px rgba(43, 42, 40, 0.06);
  --shadow-lift: 0 12px 32px rgba(43, 42, 40, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; color: var(--charcoal-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 10px; display: block;
}
.section-head { max-width: 620px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }

:focus-visible { outline: 3px solid var(--amber-dark); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 999px;
  border: none; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--amber); color: var(--charcoal); }
.btn--primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 251, 243, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--charcoal-soft); position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.is-active { color: var(--charcoal); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--amber);
}
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 16px auto 16px; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-md); flex-direction: column; align-items: stretch; padding: 18px;
    box-shadow: var(--shadow-lift); gap: 14px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero-rings { position: absolute; top: -60px; right: -120px; width: 480px; height: 480px; opacity: 0.5; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.01em; }
.hero p.lead { font-size: 18px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Carousel ---------- */
.carousel { margin-top: 48px; position: relative; }
.carousel-track-wrap { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(.65,0,.35,1); }
.carousel-slide {
  flex: 0 0 100%; padding: 36px; min-height: 150px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, #3a3835 100%); color: var(--white);
}
.carousel-slide .tag {
  display: inline-flex; align-self: flex-start; background: var(--amber); color: var(--charcoal);
  font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.carousel-slide h3 { color: var(--white); font-size: clamp(20px, 3vw, 26px); margin-bottom: 8px; }
.carousel-slide p { color: rgba(255,255,255,0.78); margin: 0; max-width: 480px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.carousel-arrow {
  background: var(--white); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.carousel-arrow:hover { background: var(--amber-soft); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; padding: 0; transition: background 0.15s ease, transform 0.15s ease; }
.carousel-dot.is-active { background: var(--amber); transform: scale(1.2); }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -28px; position: relative; z-index: 2; }
.trust-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 20px; text-align: center; box-shadow: var(--shadow);
}
.trust-card .stat { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--charcoal); }
.trust-card .label { font-size: 13px; color: var(--charcoal-soft); margin-top: 4px; }
@media (max-width: 700px) { .trust-strip { grid-template-columns: 1fr; margin-top: 20px; } }

/* ---------- Plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.plan-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--amber); }
.plan-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.plan-icon svg { width: 24px; height: 24px; }
.plan-card h3 { font-size: 17px; margin-bottom: 6px; }
.plan-card p { font-size: 14px; margin-bottom: 14px; }
.plan-card .more { font-size: 13px; font-weight: 600; color: var(--amber-dark); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Form ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--cream); color: var(--charcoal); transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--amber-dark); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 0; }
.form-note { font-size: 12.5px; color: var(--charcoal-faint); margin-top: 14px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-status.is-success { display: block; background: #EAF6EC; color: #1F6B33; }
.form-status.is-error { display: block; background: #FBEAEA; color: #9B2C2C; }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; max-width: 560px; margin: 0 auto; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 22px); color: var(--charcoal); margin: 0 0 12px; }
.testimonial cite { font-size: 13px; color: var(--charcoal-faint); font-style: normal; }

/* ---------- Compare table ---------- */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
table.compare th, table.compare td {
  padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border);
  font-size: 14.5px; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.55;
}
table.compare th { background: var(--charcoal); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }
table.compare td:first-child, table.compare th:first-child { width: 14%; }
table.compare tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: var(--cream); }
.type-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-display); }
.type-cell .plan-icon { width: 36px; height: 36px; margin-bottom: 0; flex-shrink: 0; }
.type-cell .plan-icon svg { width: 17px; height: 17px; }

@media (max-width: 700px) {
  table.compare, table.compare thead, table.compare tbody, table.compare th, table.compare td, table.compare tr { display: block; width: 100%; }
  table.compare { min-width: 0; }
  table.compare thead { display: none; }
  table.compare tr { border-bottom: 8px solid var(--cream); padding: 18px 18px 6px; }
  table.compare td { border-bottom: none; padding: 10px 0; }
  table.compare td:first-child, table.compare th:first-child { width: 100%; }
  table.compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-dark); margin-bottom: 4px; }
  table.compare td:first-child::before { display: none; }
  .type-cell { font-size: 17px; }
}

/* ---------- Accordion / legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 96px; }
.legal-nav a { display: block; padding: 8px 0; font-size: 14px; color: var(--charcoal-soft); border-left: 2px solid transparent; padding-left: 14px; margin-left: -2px; }
.legal-nav a:hover { color: var(--charcoal); }
.legal-updated { font-size: 13px; color: var(--charcoal-faint); margin-bottom: 28px; }
details.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--white); overflow: hidden; }
details.accordion-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
details.accordion-item summary::-webkit-details-marker { display: none; }
details.accordion-item summary .chev { margin-left: auto; width: 18px; height: 18px; transition: transform 0.2s ease; flex-shrink: 0; }
details.accordion-item[open] summary .chev { transform: rotate(180deg); }
details.accordion-item .accordion-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
details.accordion-item .accordion-icon svg { width: 16px; height: 16px; }
details.accordion-item .accordion-body { padding: 0 22px 22px 68px; font-size: 14.5px; }
details.accordion-item .accordion-body p { margin-bottom: 12px; }

@media (max-width: 760px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; margin-bottom: 8px; }
  .legal-nav a { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 6px 10px; }
  details.accordion-item .accordion-body { padding-left: 22px; }
}

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.contact-card a { font-weight: 600; }
.contact-card a:hover { color: var(--amber-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand img { height: 32px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 13.5px; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.footer-col a:hover { color: var(--amber); }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center; transition: background 0.15s ease;
}
.social-row a:hover { background: var(--amber); }
.social-row svg { width: 17px; height: 17px; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (non-home pages) ---------- */
.page-hero { padding: 56px 0 16px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p.lead { font-size: 16.5px; max-width: 560px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- WhatsApp Floating Button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.wa-float:hover {
  background-color: #128C7E;
  transform: translateY(-5px);
  color: white;
}

.wa-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hide text on mobile to keep it clean */
@media (max-width: 480px) {
  .wa-float {
    padding: 14px;
    bottom: 20px;
    right: 20px;
  }
  .wa-float span {
    display: none;
  }
}

/* ===== Soft cream palette and refined interactions ===== */
.btn--primary {
  color: var(--charcoal);
  border: 1px solid #eadfca;
}

.btn--primary:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--amber-dark);
}

.legal-nav,
details.accordion-item,
.plan-card,
.contact-card,
.form-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease,
    border-color 0.24s ease, background-color 0.24s ease;
}

details.accordion-item:hover,
.plan-card:hover,
.contact-card:hover,
.form-card:hover {
  transform: translateY(-3px);
  border-color: #ead8b5;
  background: var(--cream);
  box-shadow: var(--shadow-lift);
}

details.accordion-item[open] {
  background: var(--cream);
  border-color: #ead8b5;
}

.legal-nav a:hover,
.footer-col a:hover,
.nav-links a:hover {
  color: var(--amber-dark);
}

.social-row a:hover {
  background: var(--cream);
  color: var(--amber-dark);
  transform: translateY(-2px);
}

/* ===== Requested yellow icon and CTA styling ===== */
.plan-icon,
details.accordion-item .accordion-icon,
.social-row a {
  background: #f7b923;
  border-color: #f7b923;
  color: #ffffff;
}

.btn--primary:hover {
  background: #f7b923;
  border-color: #f7b923;
  color: #ffffff;
}

.btn--primary:hover svg,
.btn--primary:hover i {
  color: #ffffff;
  fill: currentColor;
}
