/*
Theme Name: Ray of Hope Family Resources
Theme URI: https://rayofhopefamilyresources.ca
Author: Ray of Hope Family Resources
Description: Safe, inclusive, and supportive homes for anyone who needs one. Serving Edmonton, Alberta.
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: ray-of-hope
*/

*, *::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; --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.95); 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.05rem; color: var(--brown); line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.68rem; font-family: 'Nunito', sans-serif; color: var(--text-light); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.88rem; font-weight: 600; color: var(--text-mid); 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.5rem 1.3rem; border-radius: 50px; transition: background 0.3s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--amber-dark) !important; }

/* HERO */
.hero-section { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-left { padding: 5rem 3rem 5rem 5rem; background: var(--cream); }
.hero-right { height: 100vh; position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-right::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--cream) 0%, transparent 35%); }
.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.78rem; 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.4rem, 4vw, 3.5rem); 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.05rem; line-height: 1.85; color: var(--text-mid); margin-bottom: 2.5rem; 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 4px 20px rgba(212,132,90,0.35); }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); }
.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; }
.btn-secondary:hover { border-color: var(--amber-light); background: var(--sand-light); }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; 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.6rem; color: var(--brown); font-weight: 600; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.2rem; }

/* PHOTO STRIP */
.photo-strip { display: grid; grid-template-columns: repeat(3,1fr); height: 260px; }
.photo-strip-item { position: relative; overflow: hidden; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-strip-item:hover img { transform: scale(1.06); }
.photo-strip-item::after { content: ''; position: absolute; inset: 0; background: rgba(92,61,46,0.32); }
.photo-strip-label { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; color: white; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.05em; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* SECTION BASE */
.site-section { padding: 6rem 5rem; }
.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: 600px; }

/* SERVICES */
.services-section { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.8rem; margin-top: 3.5rem; }
.service-card { background: var(--warm-white); border-radius: 20px; overflow: hidden; border: 1px solid rgba(212,132,90,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(92,61,46,0.1); }
.service-card-img { height: 200px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 1.8rem; }
.service-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }
.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 */
.values-strip { background: var(--brown); padding: 5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; }
.value-item { text-align: center; padding: 1rem; }
.value-icon { font-size: 2.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-img-wrap { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(92,61,46,0.35) 0%, transparent 55%); }
.about-badge { position: absolute; bottom: 1.5rem; right: 1.5rem; z-index: 2; 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.4rem; }
.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; }
.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; }

/* CAREERS */
.careers-section { background: var(--cream); }
.careers-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 3.5rem; }
.careers-cta-box { background: var(--brown); border-radius: 20px; padding: 2.5rem; color: white; }
.careers-cta-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--sand); margin-bottom: 1rem; }
.careers-cta-box p { font-size: 0.95rem; color: rgba(244,234,216,0.8); line-height: 1.75; margin-bottom: 1.8rem; }
.btn-careers { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber); color: white; padding: 0.85rem 1.8rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.92rem; transition: background 0.3s, transform 0.2s; }
.btn-careers:hover { background: var(--amber-dark); transform: translateY(-2px); }
.jobs-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.job-card { background: var(--warm-white); border-radius: 16px; padding: 1.8rem; border: 1px solid rgba(212,132,90,0.12); display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; transition: transform 0.3s, box-shadow 0.3s; }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(92,61,46,0.08); }
.job-info h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); margin-bottom: 0.4rem; }
.job-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.job-tag { background: var(--sand-light); color: var(--text-mid); padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.job-tag.full { background: rgba(122,158,126,0.15); color: var(--sage-dark); }
.job-tag.part { background: rgba(212,132,90,0.12); color: var(--amber-dark); }
.job-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; max-width: 480px; }
.job-apply { flex-shrink: 0; }
.btn-apply { display: inline-block; background: var(--amber); color: white; padding: 0.65rem 1.4rem; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: background 0.3s; white-space: nowrap; }
.btn-apply:hover { background: var(--amber-dark); }

/* CONTACT */
.contact-section { background: var(--warm-white); }
.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: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; background: var(--cream); 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.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.contact-item-text span { font-size: 0.9rem; color: var(--brown); font-weight: 600; line-height: 1.6; }
.contact-form { background: var(--cream); 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(--warm-white); 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 4px 18px rgba(212,132,90,0.35); }
.form-submit:hover { background: var(--amber-dark); transform: translateY(-2px); }

/* FOOTER */
.site-footer { background: var(--brown); color: rgba(244,234,216,0.8); padding: 3rem 5rem 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); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--amber-light); }

@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); }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-right { height: 300px; }
  .hero-left { padding: 5rem 1.5rem 3rem; }
  .site-section { padding: 4rem 1.5rem; }
  .about-inner, .contact-inner, .careers-intro { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .footer-links { text-align: left; }
  .photo-strip { grid-template-columns: 1fr; height: auto; }
  .photo-strip-item { height: 200px; }
  .values-strip { padding: 3rem 1.5rem; }
  .job-card { flex-direction: column; }
}
