/*
Theme Name: Ray of Hope Family Resources
Theme URI: https://rayofhopefamily.org
Author: Ray of Hope Family Resources
Description: A warm, compassionate theme for Ray of Hope Family Resources — a family-centered practice committed to hope, healing, and trauma-informed care.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ray-of-hope
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #fdf8f2;
  --warm-white: #fffcf7;
  --amber: #d4845a;
  --amber-light: #e8a882;
  --amber-dark: #b8663e;
  --sage: #7a9e7e;
  --sage-light: #a8c5ac;
  --sage-dark: #567a5a;
  --brown: #5c3d2e;
  --brown-light: #8b6555;
  --sand: #e8d5b7;
  --sand-light: #f4ead8;
  --text-dark: #2d1f17;
  --text-mid: #5c4035;
  --text-light: #8b6e60;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 132, 90, 0.15);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-icon { width: 38px; height: 38px; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.7rem; font-family: 'Nunito', sans-serif; color: var(--text-light); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--text-mid); letter-spacing: 0.04em; position: relative; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 2px; background: var(--amber); border-radius: 2px; transform: scaleX(0); transition: transform 0.3s; }
.nav-links a:hover { color: var(--amber-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { background: var(--amber); color: white !important; padding: 0.55rem 1.4rem; border-radius: 50px; transition: background 0.3s, transform 0.2s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--amber-dark) !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 4rem 5rem; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(232, 213, 183, 0.45) 0%, transparent 70%),
              radial-gradient(ellipse 50% 60% at 10% 80%, rgba(168, 197, 172, 0.3) 0%, transparent 60%),
              var(--cream);
}
.hero-circles { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; z-index: 1; pointer-events: none; }
.hero-circle { position: absolute; border-radius: 50%; animation: floatCircle 8s ease-in-out infinite; }
.hc1 { width: 420px; height: 420px; background: rgba(212,132,90,0.12); top: 10%; right: 5%; animation-delay: 0s; }
.hc2 { width: 280px; height: 280px; background: rgba(122,158,126,0.15); top: 30%; right: 25%; animation-delay: 2s; }
.hc3 { width: 180px; height: 180px; background: rgba(212,132,90,0.1); bottom: 15%; right: 10%; animation-delay: 4s; }
.hc4 { width: 100px; height: 100px; background: rgba(122,158,126,0.2); top: 15%; right: 40%; animation-delay: 1s; }
@keyframes floatCircle { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(122,158,126,0.15); border: 1px solid rgba(122,158,126,0.3); color: var(--sage-dark); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.8rem; animation: fadeUp 0.8s ease both; }
.hero-tag::before { content: '✦'; font-size: 0.65rem; }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.18; color: var(--brown); margin-bottom: 1.5rem; animation: fadeUp 0.8s ease 0.15s both; }
h1 em { font-style: italic; color: var(--amber); }
.hero-desc { font-size: 1.1rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 2.5rem; font-weight: 400; animation: fadeUp 0.8s ease 0.3s both; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.8s ease 0.45s both; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber); color: white; padding: 0.9rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 4px 20px rgba(212,132,90,0.35); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,132,90,0.45); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--brown); padding: 0.9rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; border: 2px solid var(--sand); transition: border-color 0.3s, background 0.3s, transform 0.2s; }
.btn-secondary:hover { border-color: var(--amber-light); background: var(--sand-light); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; animation: fadeUp 0.8s ease 0.6s both; }
.stat { border-left: 3px solid var(--amber-light); padding-left: 1rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--brown); font-weight: 600; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-light); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.25rem; }

/* ── SECTION BASE ── */
.site-section { padding: 6rem 4rem; }
.section-tag { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--amber); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.section-tag::before { content: ''; display: block; width: 24px; height: 2px; background: var(--amber); border-radius: 2px; }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--brown); line-height: 1.25; margin-bottom: 1.2rem; }
h2 em { font-style: italic; color: var(--amber); }
.section-intro { font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; max-width: 580px; }

/* ── SERVICES ── */
.services-section { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.service-card { background: var(--warm-white); border-radius: 20px; padding: 2.2rem; border: 1px solid rgba(212,132,90,0.1); transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--amber), var(--amber-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(92,61,46,0.1); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sand-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--brown); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.75; }

/* ── VALUES STRIP ── */
.values-strip { background: var(--brown); padding: 4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.value-item { text-align: center; padding: 1rem; }
.value-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.value-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--sand); margin-bottom: 0.5rem; }
.value-desc { font-size: 0.85rem; color: rgba(244,234,216,0.7); line-height: 1.65; }

/* ── ABOUT ── */
.about-section { background: var(--warm-white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--sand-light), var(--sand)); aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; }
.about-visual-inner { text-align: center; padding: 3rem; }
.about-sunburst { font-size: 6rem; margin-bottom: 1rem; line-height: 1; }
.about-visual-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--brown); line-height: 1.4; }
.about-visual-text em { font-style: italic; color: var(--amber); }
.about-badge { position: absolute; bottom: 1.5rem; right: 1.5rem; background: var(--amber); color: white; padding: 0.8rem 1.4rem; border-radius: 14px; font-weight: 700; font-size: 0.85rem; text-align: center; box-shadow: 0 6px 20px rgba(212,132,90,0.4); }
.about-badge span { display: block; font-size: 1.5rem; font-family: 'Playfair Display', serif; }
.about-content p { color: var(--text-mid); line-height: 1.85; font-size: 1rem; margin-bottom: 1.2rem; }
.about-pillars { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.pillar { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; background: var(--cream); border-radius: 14px; border-left: 3px solid var(--sage); }
.pillar-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.pillar-text strong { display: block; color: var(--brown); font-size: 0.95rem; margin-bottom: 0.2rem; }
.pillar-text span { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ── CONTACT ── */
.contact-section { background: var(--cream); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info p { color: var(--text-mid); line-height: 1.8; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--warm-white); border-radius: 14px; border: 1px solid var(--sand); }
.contact-item-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sand-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item-text strong { display: block; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.contact-item-text span { font-size: 0.95rem; color: var(--brown); font-weight: 600; }
.contact-form { background: var(--warm-white); border-radius: 24px; padding: 2.5rem; border: 1px solid rgba(212,132,90,0.12); box-shadow: 0 8px 40px rgba(92,61,46,0.06); }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--brown); margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--text-mid); letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea { padding: 0.8rem 1rem; border-radius: 10px; border: 1.5px solid var(--sand); background: var(--cream); font-family: 'Nunito', sans-serif; font-size: 0.95rem; color: var(--text-dark); outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--amber-light); box-shadow: 0 0 0 3px rgba(212,132,90,0.12); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; padding: 1rem; background: var(--amber); color: white; border: none; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 4px 18px rgba(212,132,90,0.35); }
.form-submit:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,132,90,0.45); }

/* ── FOOTER ── */
.site-footer { background: var(--brown); color: rgba(244,234,216,0.8); padding: 3rem 4rem 2rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--sand); margin-bottom: 0.6rem; }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; }
.footer-copy { font-size: 0.8rem; margin-top: 1.5rem; opacity: 0.5; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; text-align: right; }
.footer-links a { color: var(--sand-light); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--amber-light); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .site-section { padding: 4rem 1.5rem; }
  .hero-section { padding: 7rem 1.5rem 4rem; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .hero-circles { display: none; }
  .hero-stats { gap: 1.5rem; }
  .values-strip { padding: 3rem 1.5rem; }
}
