/*
Theme Name: MemeStudio SaaS
Theme URI: https://memesstudio.io
Author: MemeStudio Team
Author URI: https://memesstudio.io
Description: A complete SaaS WordPress theme for MemeStudio - the fastest online meme generator tool. Built for conversion, speed, and SEO with dedicated pages for Features, Pricing, About, FAQ, and Contact.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memesstudio
Tags: saas, business, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  --color-primary: #6C5CE7;
  --color-primary-dark: #5849c2;
  --color-accent: #FF6B6B;
  --color-dark: #1A1A2E;
  --color-text: #333344;
  --color-muted: #6B7280;
  --color-light-bg: #F7F7FC;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26,26,46,0.08);
  --max-width: 1180px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}
h1,h2,h3,h4 { font-weight: 800; color: var(--color-dark); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--color-muted); }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 20px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-alt { background: var(--color-light-bg); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  background: rgba(108,92,231,0.1);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 18px; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-dark); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-lg { padding: 17px 38px; font-size: 17px; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 999;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo { font-size: 22px; font-weight: 900; color: var(--color-dark); display:flex; align-items:center; gap:8px;}
.site-logo span { color: var(--color-primary); }
.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav a { color: var(--color-dark); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  padding: 100px 0 80px;
  background: radial-gradient(circle at top right, rgba(108,92,231,0.12), transparent 55%),
              radial-gradient(circle at bottom left, rgba(255,107,107,0.10), transparent 45%);
  text-align: center;
}
.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero .lead { max-width: 560px; margin: 0 auto 34px; font-size: 19px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 14px; color: var(--color-muted); }
.hero-visual { margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--color-border); }
.hero-visual .placeholder { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); height: 420px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:18px;}

/* logos */
.logo-strip { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: 0.55; margin-top: 40px; font-weight: 700; color: var(--color-muted); }

/* ==========================================================================
   6. FEATURE GRID
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(108,92,231,0.12);
  display:flex; align-items:center; justify-content:center;
  font-size: 24px; margin-bottom: 18px;
}

/* ==========================================================================
   7. STEPS
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-dark); color: #fff;
  display:flex; align-items:center; justify-content:center;
  font-weight: 800; margin: 0 auto 20px;
}

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonial-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px; height: 100%;
}
.testimonial-stars { color: #FFB020; margin-bottom: 14px; font-size: 15px; }
.testimonial-person { display:flex; align-items:center; gap: 12px; margin-top: 20px; }
.avatar-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--color-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.person-name { font-weight: 700; color: var(--color-dark); font-size: 14px; }
.person-role { font-size: 13px; color: var(--color-muted); }

/* ==========================================================================
   9. PRICING
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow); position: relative; transform: scale(1.03); }
.price-badge { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background: var(--color-primary); color:#fff; font-size:12px; font-weight:700; padding:5px 16px; border-radius:999px; }
.price-amount { font-size: 44px; font-weight: 900; color: var(--color-dark); margin: 14px 0 4px; }
.price-amount span { font-size: 16px; font-weight: 600; color: var(--color-muted); }
.price-list { list-style: none; padding: 0; margin: 26px 0; flex-grow: 1; }
.price-list li { padding: 9px 0; border-top: 1px solid var(--color-border); font-size: 14.5px; color: var(--color-text); }
.price-list li:first-child { border-top: none; }
.price-list li:before { content: "✓ "; color: #22c55e; font-weight: 800; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--color-dark); font-weight: 600; }
.compare-table thead th { color: var(--color-dark); font-weight: 800; }

/* ==========================================================================
   10. FAQ (accordion, no-JS fallback via <details>)
   ========================================================================== */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 22px 0; }
.faq-item summary { font-weight: 700; color: var(--color-dark); cursor: pointer; font-size: 17px; list-style: none; display:flex; justify-content:space-between; align-items:center;}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; font-size: 22px; color: var(--color-primary); }
.faq-item[open] summary:after { content: "−"; }
.faq-item p { margin-top: 12px; }

/* ==========================================================================
   11. CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-dark), #2d2b52);
  border-radius: 24px;
  padding: 70px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   12. FORMS
   ========================================================================== */
.form-field { margin-bottom: 20px; text-align: left; }
.form-field label { display:block; font-weight: 600; font-size: 14px; color: var(--color-dark); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--color-border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.contact-info-card { background: var(--color-light-bg); border-radius: var(--radius); padding: 30px; }
.contact-info-card h3 { margin-top: 0; }
.contact-info-item { margin-bottom: 18px; }
.contact-info-item strong { display:block; color: var(--color-dark); font-size: 14px; }

/* ==========================================================================
   13. BLOG
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-card .post-thumb { height: 180px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); }
.post-card .post-body { padding: 22px; }
.post-cat { color: var(--color-primary); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { font-size: 18px; margin: 10px 0; }
.post-meta { font-size: 13px; color: var(--color-muted); }
.single-post-content { max-width: 760px; margin: 0 auto; }
.single-post-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-header { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.entry-header .post-meta { margin-bottom: 10px; }
.category-pill { display:inline-block; background: var(--color-light-bg); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--color-primary); margin: 3px; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.7); padding: 70px 0 30px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap: 12px; font-size: 13px; }
.footer-logo { color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 14px; display:block; }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .grid-3, .grid-4, .pricing-grid, .steps, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .pricing-grid, .steps, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .section { padding: 60px 0; }
  h1 { font-size: 30px; }
}
