/*
Theme Name: RevShare
Theme URI: https://therevshare.com
Author: RevShare
Description: RevShare WordPress theme with native header/footer, WordPress-managed menus, automatic page navigation, and Elementor-ready full-width pages.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revshare
Tags: business, one-column, custom-logo, custom-menu, featured-images, blog
*/

/* ==========================================================
   RevShare theme — brand tokens
   ========================================================== */
:root {
  --rs-primary: hsl(222, 47%, 20%);        /* Navy */
  --rs-primary-dark: hsl(222, 47%, 14%);
  --rs-green: #14a800;                     /* Commission green */
  --rs-whatsapp: #25D366;
  --rs-whatsapp-dark: #20bc59;
  --rs-facebook: #1877F2;
  --rs-stripe-navy: #0a2540;
  --rs-stripe-purple: #635BFF;
  --rs-cyan: #00D4FF;
  --rs-foreground: hsl(220, 50%, 15%);
  --rs-muted: hsl(210, 40%, 96%);
  --rs-muted-fg: hsl(215, 16%, 47%);
  --rs-border: hsl(214, 32%, 91%);
  --rs-radius: 0.75rem;
  --rs-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--rs-font);
  color: var(--rs-foreground);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--rs-primary); }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--rs-primary); }

.rs-container { width: 100%; max-width: 1587px; margin: 0 auto; padding: 0 21px; }
.rs-narrow { max-width: 800px; }

/* Buttons */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: var(--rs-radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.rs-btn-primary { background: var(--rs-primary); color: #fff; }
.rs-btn-primary:hover { background: var(--rs-primary-dark); color: #fff; }
.rs-btn-whatsapp { background: var(--rs-whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.25); }
.rs-btn-whatsapp:hover { background: var(--rs-whatsapp-dark); color: #fff; }
.rs-btn-facebook { background: var(--rs-facebook); color: #fff; }
.rs-btn-facebook:hover { background: #1567d3; color: #fff; }
.rs-btn-outline { background: transparent; color: var(--rs-foreground); border-color: var(--rs-border); }
.rs-btn-outline:hover { border-color: var(--rs-primary); }

/* Header */
.rs-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rs-border);
}
.rs-header-inner { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(120px, 1fr); align-items: center; height: 60px; gap: 1.25rem; }
.rs-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; font-size: 1.25rem; color: var(--rs-foreground); justify-self: start; white-space: nowrap; }
.rs-logo img, .rs-logo .custom-logo { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; display:block; }
.rs-nav { justify-self: center; }
.rs-nav ul { display: flex; align-items:center; gap: 1.75rem; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.rs-nav a { font-size: .88rem; font-weight: 500; color: var(--rs-muted-fg); text-decoration: none; transition: color .2s; }
.rs-nav a:hover { color: var(--rs-foreground); }
.rs-header-cta { display: flex; align-items: center; justify-self: end; gap: .75rem; }
.rs-header-cta .rs-btn { padding: .48rem .95rem; font-size: .8rem; border-radius: .45rem; }
.rs-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--rs-primary); }

/* Hero */
.rs-hero { padding: 80px 0 90px; background: radial-gradient(ellipse at 72% 10%, hsl(214,100%,98%), #fff 58%); }
.rs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 6rem); align-items: center; }
.rs-hero h1 { font-size: clamp(2.7rem, 4vw, 3.7rem); margin: 0 0 1.25rem; max-width: 720px; }
.rs-hero h1 .rs-accent { color: var(--rs-green); display:block; }
.rs-hero-sub { font-size: 1.25rem; line-height: 1.62; color: var(--rs-muted-fg); margin-bottom: 2.25rem; max-width: 665px; }
.rs-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--rs-border); background: var(--rs-muted);
  border-radius: 999px; padding: .25rem .85rem; font-size: .875rem; font-weight: 500; color: var(--rs-muted-fg);
  margin-bottom: 1.5rem;
}
.rs-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rs-green); }
.rs-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.rs-hero-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; color: var(--rs-muted-fg); }
.rs-hero-checks li { list-style: none; display: flex; align-items: center; gap: .4rem; }
.rs-hero-checks li::before { content: "✓"; color: var(--rs-green); font-weight: 700; }
.rs-hero-checks { padding: 0; margin: 0; }
.rs-hero-media { position:relative; }
.rs-hero .rs-hero-media img { width:100%; aspect-ratio: 4 / 3; object-fit:cover; object-position:center; display:block; border-radius: .9rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.22); }
.rs-payments .rs-hero-media img { width:100%; display:block; border-radius:1rem; box-shadow:0 20px 40px rgba(0,0,0,.22); }
.rs-your-cut { position:absolute; left:-25px; bottom:-24px; min-width:156px; height:86px; background:#fff; border:1px solid var(--rs-border); border-radius:13px; box-shadow:0 12px 24px rgba(15,23,42,.18); display:flex; align-items:center; gap:14px; padding:14px 16px; }
.rs-your-cut-icon { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:0 0 48px; background:#eafbe6; color:var(--rs-green); font-size:26px; line-height:1; }
.rs-your-cut-copy { display:flex; flex-direction:column; line-height:1.1; }
.rs-your-cut-copy small { color:var(--rs-muted-fg); font-size:13px; font-weight:600; margin-bottom:5px; white-space:nowrap; }
.rs-your-cut-copy strong { color:var(--rs-foreground); font-size:24px; font-weight:800; }

/* Sections */
.rs-section { padding: 6rem 0; }
.rs-section-muted { background: var(--rs-muted); }
.rs-section-head { text-align: center; margin-bottom: 4rem; }
.rs-section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin: 0 0 1rem; }
.rs-section-head p { font-size: 1.1rem; color: var(--rs-muted-fg); max-width: 640px; margin: 0 auto; }
.rs-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #2563eb; margin-bottom: .5rem; }

/* Cards grid */
.rs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rs-card {
  background: #fff; border: 1px solid var(--rs-border); border-radius: var(--rs-radius);
  padding: 1.75rem; transition: border-color .3s, box-shadow .3s;
}
.rs-card:hover { border-color: hsl(214,95%,87%); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.rs-card h3 { font-size: 1.2rem; margin: .75rem 0 .5rem; color: var(--rs-foreground); }
.rs-card p { margin: 0; color: var(--rs-muted-fg); }
.rs-card-icon { font-size: 1.75rem; color: #2563eb; }

/* Steps (how it works) */
.rs-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.rs-steps h3 { font-size: 1.5rem; color: var(--rs-foreground); margin-bottom: 1.5rem; }
.rs-step { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.rs-step-num {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.rs-steps-blue .rs-step-num { background: hsl(214,95%,93%); color: #2563eb; }
.rs-steps-green .rs-step-num { background: hsl(120,60%,95%); color: var(--rs-green); }
.rs-step h4 { margin: 0 0 .35rem; font-size: 1.1rem; color: var(--rs-foreground); }
.rs-step p { margin: 0; color: var(--rs-muted-fg); }

/* Commission split */
.rs-commission {
  background: var(--rs-primary); color: #fff; border-radius: 1.5rem;
  padding: 3rem; max-width: 900px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.rs-commission h2 { color: #fff; text-align: center; margin-top: 0; }
.rs-commission > p { color: hsl(214,95%,87%); text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.rs-split-box { background: #fff; color: var(--rs-foreground); border-radius: 1rem; padding: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.rs-split-col { flex: 1; min-width: 200px; text-align: center; }
.rs-split-amount { font-size: 2.25rem; font-weight: 700; color: var(--rs-primary); margin: .25rem 0; }
.rs-split-keep { background: hsl(120,60%,97%); border: 1px solid hsl(120,60%,90%); border-radius: var(--rs-radius); padding: 1rem; margin-bottom: .75rem; }
.rs-split-keep strong { color: var(--rs-green); font-size: 1.75rem; display: block; }
.rs-split-fwd { background: hsl(214,95%,97%); border: 1px solid hsl(214,95%,90%); border-radius: var(--rs-radius); padding: 1rem; }
.rs-split-fwd strong { color: #2563eb; font-size: 1.75rem; display: block; }
.rs-split-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* Dark payments band */
.rs-payments { background: var(--rs-stripe-navy); color: #fff; }
.rs-payments h2 { color: #fff; }
.rs-payments p { color: hsl(214,95%,87%); }
.rs-payments ul { padding: 0; margin: 0 0 2rem; }
.rs-payments li { list-style: none; display: flex; gap: .75rem; margin-bottom: .9rem; color: hsl(214,95%,93%); }
.rs-payments li::before { content: "✓"; color: var(--rs-cyan); font-weight: 700; }
.rs-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: .5rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; margin-right: .75rem; }

/* Testimonials */
.rs-quote-stars { color: #facc15; font-size: 1.1rem; letter-spacing: .15em; margin-bottom: 1rem; }
.rs-quote-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.rs-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--rs-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.rs-quote-author strong { display: block; color: var(--rs-foreground); }
.rs-quote-author span { font-size: .875rem; color: var(--rs-muted-fg); }

/* FAQ */
.rs-faq details { border-bottom: 1px solid var(--rs-border); padding: 1.25rem 0; }
.rs-faq summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; color: var(--rs-foreground); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: "+"; font-size: 1.4rem; color: var(--rs-muted-fg); }
.rs-faq details[open] summary::after { content: "–"; }
.rs-faq details p { color: var(--rs-muted-fg); margin: 1rem 0 0; }

/* Contact CTA */
.rs-cta-box { background: var(--rs-primary); color: #fff; border-radius: 1.5rem; padding: 4rem 2rem; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,.2); }
.rs-cta-box h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; }
.rs-cta-box p { color: hsl(214,95%,87%); max-width: 560px; margin: 0 auto 2.5rem; }
.rs-cta-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.rs-cta-note { font-size: .875rem; color: hsl(214,95%,80%); margin-top: 2rem !important; }

/* Footer */
.rs-footer { border-top: 1px solid var(--rs-border); padding: 3rem 0; }
.rs-footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.rs-footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.rs-footer-nav a { font-size: .875rem; color: var(--rs-muted-fg); text-decoration: none; }
.rs-footer-nav a:hover { color: var(--rs-foreground); }
.rs-copyright { text-align: center; margin-top: 2rem; font-size: .875rem; color: var(--rs-muted-fg); }

/* Blog / content */
.rs-content { padding: 4rem 0; }
.rs-article { max-width: 760px; margin: 0 auto; }
.rs-article h1.entry-title { font-size: 2.5rem; margin-bottom: 1rem; }
.rs-entry-meta { color: var(--rs-muted-fg); font-size: .875rem; margin-bottom: 2rem; }
.rs-post-card { border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 2rem; margin-bottom: 1.5rem; transition: box-shadow .2s; }
.rs-post-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.rs-post-card h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.rs-post-card h2 a { text-decoration: none; }
.rs-read-more { font-weight: 600; color: #2563eb; text-decoration: none; }
.entry-content a { color: #2563eb; }
.entry-content img { border-radius: var(--rs-radius); }
.wp-block-quote { border-left: 4px solid var(--rs-green); padding-left: 1.25rem; color: var(--rs-muted-fg); }

/* Pagination & comments basic */
.navigation { margin: 2rem 0; }
.navigation a { color: #2563eb; text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 1050px) {
  .rs-hero-grid, .rs-steps-grid { grid-template-columns: 1fr; }
  .rs-cards { grid-template-columns: 1fr 1fr; }
  .rs-nav { display: none; position: absolute; top: 4rem; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rs-border); padding: 1rem; }
  .rs-nav.open { display: block; }
  .rs-nav ul { flex-direction: column; gap: 1rem; }
  .rs-menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .rs-cards { grid-template-columns: 1fr; }
  .rs-section { padding: 4rem 0; }
  .rs-commission { padding: 2rem 1.25rem; }
}


/* ==========================================================
   WordPress menus + Elementor page integration
   ========================================================== */
.rs-nav .current-menu-item > a,
.rs-nav .current_page_item > a { color: var(--rs-foreground); font-weight: 600; }

.rs-elementor-page,
.rs-full-width-page { width: 100%; max-width: none; margin: 0; padding: 0; overflow-x: clip; }

/* Let Elementor own its canvas without inheriting article constraints. */
.rs-elementor-page .elementor { width: 100%; }
.rs-elementor-page .entry-content { max-width: none; }

.rs-footer-social { display: flex; gap: 1rem; align-items: center; }
.rs-footer-social a { font-weight: 600; text-decoration: none; }
.rs-social-facebook { color: var(--rs-facebook); }
.rs-social-whatsapp { color: var(--rs-whatsapp); }

/* WordPress admin bar + sticky header play nicely together. */
.admin-bar .rs-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .rs-header { top: 46px; }
}

@media (max-width: 1050px) {
  .rs-header-inner { position: relative; }
  .rs-nav { top: 100%; }
  .rs-nav .rs-menu { width: 100%; }
  .rs-nav li { width: 100%; }
  .rs-nav a { display: block; padding: .35rem 0; }
  .rs-header-cta .rs-btn { display: none; }
}


/* Reference-site page shell */
.rs-page-hero { min-height: 420px; display:flex; align-items:center; background: radial-gradient(ellipse at 80% 0%, hsl(214,100%,97%), #fff 58%); }
.rs-page-hero h1, .rs-payments h1, .rs-commission h1, .rs-cta-box h1 { font-size:clamp(2.4rem, 4vw, 3.5rem); margin:0 0 1rem; }
.rs-page-hero p:not(.rs-eyebrow) { font-size:1.15rem; color:var(--rs-muted-fg); max-width:680px; }
.rs-contact-button { box-shadow:none; }

@media (max-width: 1180px) {
  .rs-nav ul { gap: 1rem; }
  .rs-nav a { font-size: .82rem; }
}

@media (max-width: 1050px) {
  .rs-header-inner { display:flex; }
  .rs-header-cta { margin-left:auto; }
  .rs-your-cut { left:16px; bottom:-24px; }
}

@media (max-width: 600px) {
  .rs-container { padding-left:16px; padding-right:16px; }
  .rs-hero { padding-top:55px; }
  .rs-your-cut { min-width:142px; height:78px; }
}
