/*
Theme Name: Traditions and Hope
Theme URI: https://traditionsandhope.org
Description: WooCommerce child theme for Traditions & Hope â€” 501(c)(3) community support and cultural preservation. Astra child â€” Zakley Enterprises.
Author: Zakley Enterprises
Author URI: https://zakley.com
Template: astra
Version: 1.0.0
License: Proprietary
Text Domain: traditionsandhope
*/

/* ============================================
   CSS CUSTOM PROPERTIES â€” Traditions and Hope
   Deep green / gold / warm earth
   Fonts: Merriweather (headings) + Lato (body)
   ============================================ */
:root {
  --th-green-deep: #1B5E20;
  --th-green: #33691E;
  --th-green-light: #558B2F;
  --th-gold: #D4A017;
  --th-gold-light: #F0CA4D;
  --th-warm-bg: #F1F8E9;
  --th-cream: #FAFDF6;
  --th-text: #333333;
  --th-text-mid: #555555;
  --th-text-light: #666666;
  --th-border: #E0E0E0;
  --th-white: #FFFFFF;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --gap: 1.5rem;
  --gap-sm: 0.75rem;
  --gap-lg: 3rem;
  --radius: 6px;
  --radius-lg: 12px;
}

/* ---- Global ---- */
body {
  font-family: var(--font-body);
  color: var(--th-text);
  background: var(--th-cream);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.site-title {
  font-family: var(--font-heading);
  color: var(--th-green-deep);
  font-weight: 700;
}

a { color: var(--th-green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--th-gold); }

/* ---- Header / Nav ---- */
.main-header-bar {
  background-color: rgba(250, 253, 246, 0.97);
  border-bottom: 1px solid var(--th-border);
}
.site-header .site-title,
.site-header .site-title a {
  color: var(--th-green-deep) !important;
  font-family: var(--font-heading);
  font-weight: 700;
}
.main-navigation a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-text-mid);
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--th-green);
}

/* ---- Buttons ---- */
.button,
button,
input[type="submit"],
.wp-block-button__link,
.ast-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--th-green);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.8rem;
  transition: background-color 0.2s;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--th-green-deep);
  color: #fff;
}

.btn-gold,
.woocommerce a.button.btn-gold {
  background-color: var(--th-gold);
  color: var(--th-green-deep);
}
.btn-gold:hover {
  background-color: #C49000;
  color: var(--th-green-deep);
}

/* ---- Hero Section (front page) ---- */
.th-hero {
  padding: 5rem 2rem 4rem;
  background: linear-gradient(135deg, var(--th-green-deep) 0%, var(--th-green) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.th-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(85,139,47,0.1) 0%, transparent 40%);
  pointer-events: none;
}
.th-hero * { position: relative; }
.th-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--th-gold);
  margin-bottom: 1.5rem;
}
.th-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  color: #fff;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.th-hero h1 em {
  font-style: normal;
  color: var(--th-gold-light);
}
.th-hero .tagline {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto;
}
.th-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.th-hero .hero-actions .btn-donate {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  background: var(--th-gold);
  color: var(--th-green-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.th-hero .hero-actions .btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: var(--th-green-deep);
}
.th-hero .hero-actions .btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
}
.th-hero .hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ---- Mission Cards ---- */
.th-mission {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.th-mission .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.th-mission .section-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  display: inline-block;
  border-bottom: 3px solid var(--th-gold);
  padding-bottom: 0.5rem;
}
.th-mission .section-header p {
  color: var(--th-text-light);
  max-width: 600px;
  margin: 0.5rem auto 0;
}
.th-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.th-card {
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.th-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.th-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.th-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--th-green);
}
.th-card p {
  font-size: 0.9rem;
  color: var(--th-text-light);
  margin: 0;
  line-height: 1.6;
}

/* ---- Donate CTA bar ---- */
.th-cta {
  padding: 0 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.th-cta-inner {
  padding: 2rem 2.5rem;
  background: var(--th-warm-bg);
  border: 1px solid var(--th-border);
  border-left: 4px solid var(--th-green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.th-cta-inner .cta-text strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--th-green-deep);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.th-cta-inner .cta-text p {
  color: var(--th-text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Contact Section ---- */
.th-contact {
  padding: 3rem 2rem 4rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.th-contact-box {
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
}
.th-contact-box h3 {
  color: var(--th-green);
  margin: 0 0 1rem 0;
}
.th-contact-box p {
  color: var(--th-text-light);
  margin: 0.5rem 0;
}

/* ---- WooCommerce Overrides ---- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  color: var(--th-green-deep);
  font-weight: 700;
}
.woocommerce ul.products li.product .price {
  color: var(--th-green);
  font-weight: 600;
}
.woocommerce .star-rating span::before {
  color: var(--th-gold);
}
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--th-warm-bg);
  color: var(--th-green);
}
.woocommerce .woocommerce-message {
  border-top-color: var(--th-green);
}
.woocommerce .woocommerce-info {
  border-top-color: var(--th-green-light);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--th-green);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--th-green-deep);
  color: rgba(255,255,255,0.7);
  padding: var(--gap-lg) var(--gap);
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: var(--th-gold); }
.site-footer .footer-nav a {
  margin: 0 1rem;
  color: rgba(255,255,255,0.7);
}
.site-footer .footer-nav a:hover { color: var(--th-gold); }

/* ---- Login Page ---- */
body.login {
  background: var(--th-green-deep);
  font-family: var(--font-body);
}
body.login #login h1 a {
  background-image: none;
  text-indent: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--th-gold);
  width: auto;
  height: auto;
}
body.login form {
  background: var(--th-white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body.login .button-primary {
  background: var(--th-green) !important;
  border-color: var(--th-green) !important;
  color: white !important;
  border-radius: var(--radius);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .th-grid { grid-template-columns: 1fr; }
  .th-cta-inner { flex-direction: column; text-align: center; }
  .th-hero { padding: 4rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .th-hero h1 { font-size: 1.7rem; }
  .th-hero .hero-actions { flex-direction: column; align-items: center; }
}
