/* =================================================
   ReddyBook — main.css
   Site-wide styling for reddylogin.biz
   ================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-primary: #166865;
  --color-primary-dark: #0e4a48;
  --color-primary-light: #1f8c87;
  --color-accent: #fac915;
  --color-accent-dark: #d4a800;
  --color-dark: #0a0e17;
  --color-dark-2: #131a26;
  --color-cream: #f9f3e5;
  --color-cream-2: #f4ecd6;
  --color-text: #1b232f;
  --color-text-muted: #5a6675;
  --color-text-inverse: #ffffff;
  --color-border: #e2e3e6;
  --color-border-dark: #243044;
  --color-success: #25d366;
  --color-success-dark: #128c7e;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(10, 14, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 14, 23, 0.12);
  --shadow-lg: 0 18px 48px rgba(10, 14, 23, 0.18);

  --container: 1180px;
  --gap-sm: 12px;
  --gap-md: 24px;
  --gap-lg: 48px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-sans); line-height: 1.25; margin: 0 0 .6em; color: var(--color-text); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw + .5rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + .5rem, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + .8rem, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-cream { background: var(--color-cream); }
.section-dark { background: var(--color-dark); color: var(--color-text-inverse); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark p { color: rgba(255,255,255,.82); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-lead { text-align: center; max-width: 760px; margin: 0 auto 40px; color: var(--color-text-muted); font-size: 1.05rem; }
.section-dark .section-lead { color: rgba(255,255,255,.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-whatsapp {
  background: var(--color-success);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 30px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { background: var(--color-success-dark); color: #fff; transform: translateY(-2px); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-accent:hover { background: var(--color-accent-dark); color: var(--color-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo img {
  height: 110px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.nav-logo span { color: #fff; font-weight: 700; font-size: 1.15rem; }
@media (max-width: 768px) {
  .nav-logo img { height: 80px; }
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .96rem;
  padding: 8px 0;
  position: relative;
}
.nav-menu a:hover { color: var(--color-accent); }
.nav-cta {
  background: var(--color-success);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-success-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: var(--color-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 12s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
@keyframes heroFade {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(10,14,23,.85), rgba(22,104,101,.78)),
    radial-gradient(circle at 80% 20%, rgba(250,201,21,.18), transparent 55%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-grid .hero-cta { justify-content: center; }
.hero-grid .hero-stats { justify-content: center; }
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}
.hero .lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-image img { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}
.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  line-height: 1.3;
}

/* ---------- Payment marquee ---------- */
.payments {
  background: linear-gradient(180deg, #0e1822 0%, #131a26 100%);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.payments h3 {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-weight: 600;
}
.payments-track {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.payments-marquee {
  display: flex;
  gap: 18px;
  align-items: center;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
}
.payments-marquee img {
  height: 36px;
  width: auto;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  box-sizing: content-box;
  transition: transform .2s ease, background .2s ease;
}
.payments-marquee img:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Author block ---------- */
.author {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin: 30px 0;
  border: 1px solid var(--color-border);
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  flex-shrink: 0;
}
.author-info p { margin: 0; }
.author-name { font-weight: 700; color: var(--color-primary-dark); margin-bottom: 4px; font-size: 1.05rem; }
.author-bio { font-size: .92rem; color: var(--color-text-muted); }
.author-date {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ---------- Journey / Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--color-text-muted); }

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.feature-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}
/* Small white-on-transparent PNG icons get a colored tile so they are visible on light cards */
.feature-card img[src$=".png"] {
  padding: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(22, 104, 101, 0.2);
  box-sizing: content-box;
}
/* Photo/screenshot .webp images use full-width display rather than a small icon tile */
.feature-card img[src$=".webp"] {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: .96rem; }

/* Two column with image */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 40px 0;
}
.two-col-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.two-col h2 { margin-top: 0; }
.two-col.reverse > div:first-child { order: 2; }

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  margin-top: 30px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.compare thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.compare tbody tr:nth-child(even) { background: #fafbfc; }
.compare td:first-child { font-weight: 600; color: var(--color-text); }
.compare td.good { color: var(--color-primary-dark); font-weight: 600; }
.compare td.bad { color: #b34740; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat {
  padding: 20px;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .95rem;
  color: rgba(255,255,255,.78);
}

/* ---------- Proof gallery ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.proof-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin: 30px auto 0;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '\2013'; transform: rotate(0); }
.faq-answer {
  padding: 0 22px 18px;
  color: var(--color-text-muted);
}
.faq-answer p { margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  margin: 48px auto;
  max-width: 980px;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0e17;
  color: rgba(255,255,255,.75);
  padding: 60px 0 24px;
  border-top: 4px solid var(--color-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 100px; width: auto; }
.footer-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.footer-pay img {
  height: 26px;
  width: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  object-fit: contain;
  box-sizing: content-box;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}
.footer-warn {
  text-align: center;
  margin: 30px auto 0;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  max-width: 720px;
}
.age-badge {
  display: inline-block;
  background: #b34740;
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 6px;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #25d366;
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waPulse 2.4s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}
.wa-float svg {
  width: 36px !important;
  height: 36px !important;
  fill: #fff;
  display: block;
}
@keyframes waPulse {
  0%   { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70%  { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-float { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 30px !important; height: 30px !important; }
}

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill {
  display: inline-block;
  background: rgba(250,201,21,.18);
  color: var(--color-accent);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-cream .pill { background: rgba(22,104,101,.12); color: var(--color-primary-dark); }
.lede { font-size: 1.08rem; color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 480px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse > div:first-child { order: 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-dark-2);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    width: 100%;
  }
  .nav-menu .nav-cta {
    text-align: center;
    margin: 10px 0;
    border-bottom: none;
  }
  .nav-toggle { display: inline-flex; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stat { padding: 12px 8px; }
  .hero-stat-num { font-size: 1.25rem; }
  .hero-stat-label { font-size: .72rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-num { font-size: 1.9rem; }
  .cta-banner { padding: 40px 18px; }
  .author { flex-direction: column