/*
Theme Name: Hands of Love
Theme URI: https://holkenya.org
Author: Hands of Love Educational Centre
Author URI: https://holkenya.org
Description: A warm, story-led block theme for Hands of Love Educational Centre — a community school in Kariobangi, Nairobi. Built around the school's content refresh: hero stories, impact stats, sponsor-a-child, and donor-friendly pages. Earthy terracotta and forest-green palette with Fraunces headings and Nunito Sans body.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hands-of-love
Tags: full-site-editing, block-patterns, education, charity, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, three-columns
*/

/* Most styling lives in theme.json. This file is intentionally minimal —
   it exists to satisfy WordPress and to layer a few small refinements
   that are easier expressed in CSS than in JSON. */

/* Smooth focus outlines */
:where(a:focus-visible),
:where(button:focus-visible),
:where(.wp-block-button__link:focus-visible) {
  outline: 2px solid var(--wp--preset--color--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sticky header soft shadow */
.wp-block-template-part.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wp--preset--color--ivory);
  border-bottom: 1px solid rgba(43, 36, 25, 0.08);
}

/* Donate button — primary CTA across the site */
.hol-donate-btn .wp-block-button__link {
  background: var(--wp--preset--color--terracotta) !important;
  color: var(--wp--preset--color--ivory) !important;
  font-weight: 700;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hol-donate-btn .wp-block-button__link:hover {
  background: #A85332 !important;
  transform: translateY(-1px);
}

/* Secondary outline button */
.hol-outline-btn .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--terracotta) !important;
  border: 2px solid var(--wp--preset--color--terracotta) !important;
  font-weight: 700;
  border-radius: 999px !important;
  padding: 10px 26px !important;
}
.hol-outline-btn .wp-block-button__link:hover {
  background: var(--wp--preset--color--terracotta) !important;
  color: var(--wp--preset--color--ivory) !important;
}

/* Impact stat card */
.hol-stat-card {
  background: var(--wp--preset--color--cream);
  border: 1px solid var(--wp--preset--color--sand);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
}
.hol-stat-number {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--wp--preset--color--terracotta);
  line-height: 1;
  margin-bottom: 8px;
}
.hol-stat-label {
  color: var(--wp--preset--color--muted);
  font-size: 0.95rem;
}

/* Program card */
.hol-program-card {
  background: var(--wp--preset--color--ivory);
  border: 1px solid rgba(43, 36, 25, 0.08);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hol-program-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(43, 36, 25, 0.08);
}
.hol-program-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wp--preset--color--sand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
}

/* Story spotlight card */
.hol-story-card {
  background: var(--wp--preset--color--cream);
  border-radius: 16px;
  overflow: hidden;
}
.hol-story-card .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero overlay */
.hol-hero {
  position: relative;
  min-height: 560px;
  background: linear-gradient(180deg, rgba(43,36,25,0.55) 0%, rgba(43,36,25,0.30) 60%, rgba(43,36,25,0.50) 100%),
              var(--wp--preset--color--forest);
  background-size: cover;
  background-position: center;
  color: var(--wp--preset--color--ivory);
}
.hol-hero .wp-block-heading,
.hol-hero p {
  color: var(--wp--preset--color--ivory);
}

/* Decorative section dividers */
.hol-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wp--preset--color--sand) 30%, var(--wp--preset--color--sand) 70%, transparent);
  margin: 48px auto;
  max-width: 600px;
}

/* Footer */
.wp-block-template-part.site-footer {
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--cream);
}
.wp-block-template-part.site-footer a {
  color: var(--wp--preset--color--cream);
}
.wp-block-template-part.site-footer h3,
.wp-block-template-part.site-footer .wp-block-heading {
  color: var(--wp--preset--color--ivory);
}

/* Lift quotes a touch */
.wp-block-quote,
.wp-block-pullquote {
  font-family: var(--wp--preset--font-family--display);
  font-style: italic;
}

/* Mobile tweaks */
@media (max-width: 781px) {
  .hol-hero { min-height: 420px; }
  .hol-program-card { padding: 24px; }
}
