/*
Theme Name: ReviewVault Demo Theme
Theme URI: https://www.onlinemediadirect.co.uk/
Author: Online Media Direct Ltd
Author URI: https://www.onlinemediadirect.co.uk/
Description: Lightweight demo theme for showcasing the ReviewVault plugin. Includes a simple homepage hero/slider, feature sections, and clean landing page styling.
Version: 1.0.19
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reviewvault-demo-theme
Tags: one-column, custom-logo, custom-background, custom-menu, featured-images, block-styles
*/

:root{
  --rv-ink:#0f172a;
  --rv-muted:#475569;
  --rv-line:#e2e8f0;
  --rv-accent:#0f766e; /* teal/emerald */
  --rv-bg:#ffffff;
  --rv-soft:#f8fafc;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--rv-ink);
  background:var(--rv-bg);
  line-height:1.6;
}

a{color:var(--rv-accent);text-decoration:none}
a:hover{text-decoration:underline}

.rv-container{max-width:1100px;margin:0 auto;padding:0 18px}

.site-header{
  border-bottom:1px solid var(--rv-line);
  background:#fff;
  position:sticky;top:0;z-index:50;
}
.header-inner{display:flex;align-items:center;gap:18px;min-height:70px}
.site-brand{display:flex;align-items:center;gap:12px}
.site-brand .site-title{font-weight:800;letter-spacing:.2px;color:var(--rv-ink);font-size:18px}
.site-brand .site-tagline{font-size:12px;color:var(--rv-muted);margin-top:-2px}



/* Logo sizing */
.custom-logo-link{display:block;line-height:0}
.custom-logo{
  height:56px;
  width:auto;
  max-height:56px;
  max-width:260px;
}

/* Mobile header layout: logo above, text below */
@media (max-width: 640px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:12px 0;
    min-height:auto;
  }
  .site-brand{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  /* Make the logo ~half the screen width, keep aspect ratio */
  .custom-logo{
    width:50vw !important;
    max-width:260px !important;
    height:auto !important;
    max-height:90px !important;
    object-fit:contain;
  }

  .site-brand .site-title{font-size:18px;line-height:1.15}
  .site-brand .site-tagline{font-size:12px}
}

.nav{margin-left:auto}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:14px;flex-wrap:wrap}
.nav a{display:inline-block;padding:8px 10px;border-radius:10px;color:var(--rv-ink)}
.nav a:hover{background:var(--rv-soft);text-decoration:none}

.hero{
  padding:44px 0 34px;
  border-bottom:1px solid var(--rv-line);
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(15,118,110,.12), transparent 55%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:26px;align-items:center}
@media (max-width: 880px){.hero-grid{grid-template-columns:1fr}}

.hero h1{font-size:44px;line-height:1.08;margin:0 0 12px}
.hero p{margin:0 0 18px;color:var(--rv-muted);font-size:18px;max-width:58ch}
.badges{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.badge{font-size:12px;border:1px solid var(--rv-line);padding:6px 10px;border-radius:999px;background:#fff}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  border:1px solid var(--rv-line);
  font-weight:700;
}
.btn-primary{background:var(--rv-accent);border-color:var(--rv-accent);color:#fff}
.btn-primary:hover{filter:brightness(.95);text-decoration:none}
.btn-ghost{background:#fff;color:var(--rv-ink)}
.btn-ghost:hover{background:var(--rv-soft);text-decoration:none}
.btn-orange{background:#f97316;border-color:#f97316;color:#fff}
.btn-orange:hover{filter:brightness(.95);text-decoration:none}

.slider{
  border:1px solid var(--rv-line);
  border-radius:18px;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(15,118,110,.08), rgba(15,23,42,.04)),
    radial-gradient(800px 380px at 20% 0%, rgba(15,118,110,.10), transparent 55%);
  min-height:320px;
  position:relative;
  box-shadow:0 18px 50px rgba(2,6,23,.08);
}
.slide{
  position:absolute;inset:0;
  opacity:0;transition:opacity .8s ease;
  background-size:cover;background-position:center;
}
.slide.active{opacity:1}
.slide::after{content:"";position:absolute;inset:0;background:none;}


@media (max-width: 640px){
  /* Mobile slider: show full image (avoid side crop) */
  .slider{min-height:220px}
  .slide{background-size:contain;background-repeat:no-repeat}
}

.section{padding:44px 0;border-bottom:1px solid var(--rv-line)}
.section h2{margin:0 0 10px;font-size:30px}
.section p.lead{margin:0 0 18px;color:var(--rv-muted);max-width:78ch}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width: 900px){.grid-3{grid-template-columns:1fr}}
.card{
  background:#fff;border:1px solid var(--rv-line);
  border-radius:18px;padding:18px;
  box-shadow:0 14px 40px rgba(2,6,23,.06);
}
.card h3{margin:0 0 6px;font-size:18px}
.card p{margin:0;color:var(--rv-muted)}

.kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--rv-muted);margin-bottom:10px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width: 900px){.split{grid-template-columns:1fr}}

.site-footer{padding:28px 0;background:var(--rv-soft)}
.footer-inner{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.small{font-size:12px;color:var(--rv-muted)}

.content{padding:32px 0}
.page-title{margin:0 0 8px;font-size:34px}
.page-sub{margin:0 0 18px;color:var(--rv-muted)}

.notice{
  border-left:4px solid var(--rv-accent);
  background:rgba(15,118,110,.06);
  padding:12px 14px;border-radius:14px;
  margin:18px 0;
}
code, pre{background:#0b1220;color:#e5e7eb;border-radius:12px}
code{padding:2px 6px}
pre{padding:14px;overflow:auto}


/* Support section wide card */
.card-wide{
  width:100%;
  padding:22px;
}
.card-kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:10px;
}
.support-row{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.support-item{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:14px;
}
.support-label{
  font-size:12px;
  color:#64748b;
  margin-bottom:6px;
}
.support-value{
  font-size:14px;
  color:#0f172a;
  line-height:1.45;
}
.support-value a{ color:#0f766e; font-weight:700; text-decoration:none; }
.support-value a:hover{ text-decoration:underline; }

@media (max-width: 900px){
  .support-row{ grid-template-columns:1fr; }
}



/* Hide footer menu on WooCommerce pages (belt + braces) */
.woocommerce .site-footer .footer-inner > .small + .small{ display:none; }


/* Force add-to-cart button color (avoid purple overrides) */
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce a.add_to_cart_button,
.woocommerce button.single_add_to_cart_button{
  background:#f97316 !important;
  border-color:#f97316 !important;
  color:#fff !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover{
  filter:brightness(.95);
}


/* EDD/Woo: hide stray widgets on store pages (belt + braces) */
.single-download .widget,
.post-type-archive-download .widget,
.tax-download_category .widget,
.tax-download_tag .widget,
.woocommerce .widget {
  display: none !important;
}

.widget-title{font-size:16px;margin:0 0 10px 0}
.widget{background:#fff;border:1px solid var(--rv-line);border-radius:18px;padding:14px;box-shadow:0 14px 40px rgba(2,6,23,.06);margin:0 0 14px 0}


.rv-pricing__note{margin:14px 0 0 0;text-align:center;color:var(--rv-muted);font-weight:700;font-size:13px}


/* WooCommerce grid hardening (force consistent 4-up on desktop) */
.woocommerce ul.products,
.woocommerce-page ul.products{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:16px !important;
  margin:18px 0 0 0 !important;
  padding:0 !important;
  list-style:none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{
  content:none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--rv-line);
  border-radius:18px;
  padding:16px;
  box-shadow:0 14px 40px rgba(2,6,23,.06);
}
.woocommerce ul.products li.product a{ text-decoration:none; }
.woocommerce ul.products li.product img{
  width:100% !important;
  height:auto !important;
  border-radius:14px;
  margin:0 0 10px 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:18px;
  margin:0 0 6px 0;
  color:var(--rv-ink);
}
.woocommerce ul.products li.product .price{
  color:var(--rv-ink);
  font-weight:900;
  margin:0 0 10px 0;
}
.woocommerce ul.products li.product .button{
  width:100%;
  margin-top:auto;
}

/* Responsive */
@media (max-width: 1100px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:1fr !important;
  }
}
