/*
Theme Name: Home Money Secrets
Theme URI: https://homemoneysecrets.com
Author: WFPX Communications and Publishing, LLC
Author URI: https://homemoneysecrets.com
Description: A soft, elegant pastel green homepage theme for Home Money Secrets — personal finance and home-based income.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-money-secrets
Tags: one-page, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, blog
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --bg-primary: #f4faf4;
  --bg-accent: #d6eed6;
  --highlight-cta: #7ec87e;
  --text-primary: #2b3d2b;
  --text-secondary: #557755;
  --white: #ffffff;

  --font-headline: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  --border-radius: 12px;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-headline);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em 0; }
a { color: var(--highlight-cta); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  overflow: hidden;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--highlight-cta);
  color: var(--white);
}
.btn-primary:hover {
  background-color: #6cb86c;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-dark {
  background-color: var(--text-primary);
  color: var(--white);
}
.btn-dark:hover {
  background-color: #3e593e;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* =============================================
   SITE HEADER / NAVIGATION
   ============================================= */
#site-header {
  background-color: var(--white);
  border-bottom: 1px solid #e8f4e8;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 16px 0;
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

.site-logo a:hover {
  text-decoration: none;
  color: var(--highlight-cta);
}

#site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

#site-navigation ul li a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

#site-navigation ul li a:hover {
  color: var(--highlight-cta);
  text-decoration: none;
}

.header-cta a {
  font-size: 0.9rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--text-primary);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background-color: var(--bg-primary);
  text-align: center;
  padding: 100px 0;
}

.hero-icon {
  color: var(--highlight-cta);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero .subheadline {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background-color: var(--white);
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.trust-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
  background-color: var(--bg-accent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-card {
  text-align: center;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--white);
  margin-bottom: 20px;
  color: var(--highlight-cta);
}

.benefit-card p {
  font-size: 0.95rem;
}

/* =============================================
   LEAD MAGNET
   ============================================= */
.lead-magnet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead-magnet-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.lead-magnet-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.lead-magnet-content li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.lead-magnet-content li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--highlight-cta);
  font-weight: bold;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background-color: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.testimonial-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  display: block;
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
}

/* =============================================
   EMAIL OPT-IN
   ============================================= */
.email-opt-in {
  background-color: var(--highlight-cta);
  text-align: center;
}

.email-opt-in h2 {
  color: var(--white);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.opt-in-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 30px auto 15px;
  flex-wrap: wrap;
}

.opt-in-form input[type="email"] {
  flex-grow: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  min-width: 250px;
  outline: none;
}

.privacy-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background-color: var(--text-primary);
  color: var(--white);
  padding: 50px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo a {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 25px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--white);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--highlight-cta);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

.footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   WORDPRESS CORE CLASSES
   ============================================= */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-secondary); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }

  .lead-magnet-grid,
  .testimonials-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .lead-magnet-grid { text-align: center; }
  .lead-magnet-image { order: -1; }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .menu-toggle { display: block; }

  #site-navigation {
    display: none;
    width: 100%;
    padding: 16px 0 8px;
  }

  #site-navigation.toggled { display: block; }

  #site-navigation ul {
    flex-direction: column;
    gap: 12px;
  }

  #site-header .header-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .trust-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .opt-in-form { flex-direction: column; }
  .opt-in-form input,
  .opt-in-form button { width: 100%; }
}
