@charset "UTF-8";
/*
Theme Name: Hope Restored
Theme URI: https://hoperestoredcounselingservices.com/
Author: Hope Restored Counseling Services
Description: A calm, teal-and-amber therapy-practice theme for Hope Restored Counseling Services, with a dynamic home page and clean, readable interior pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: hope-restored
*/

:root {
  --cream: #f3f9f9;
  --sand: #e3f1f0;
  --sage: #4f9b9a;
  --sage-dark: #1f5457;
  --ink: #16282b;
  --muted: #526a6d;
  --clay: #e2903f;
  --clay-dark: #c6762a;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 40, 43, 0.1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
em { color: var(--clay-dark); font-style: italic; }
ul, ol { padding-left: 1.3em; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}
.skip-link { position: absolute; left: -999px; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.btn-primary { background: var(--clay-dark); color: var(--white); box-shadow: 0 6px 16px rgba(198, 118, 42, .35); }
.btn-primary:hover { background: #a85f1f; color: var(--white); }
.btn-ghost { border: 2px solid var(--sage-dark); color: var(--sage-dark); background: transparent; }
.btn-ghost:hover { background: var(--sage-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--sage-dark); }

/* Top bar + header */
.topbar { background: var(--sage-dark); color: #e8efe9; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .5rem 0; }
.topbar a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 249, 249, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 40, 43, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: .7rem; }
.brand-mark { border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; }
.brand-text span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.nav li { position: relative; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--clay-dark); }
.nav .btn { color: var(--white); padding: .6rem 1.3rem; }
.nav .btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* Submenu */
.nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; flex-direction: column; gap: 0;
  background: var(--white); box-shadow: var(--shadow); border-radius: 12px; padding: .5rem;
  min-width: 220px; z-index: 60;
}
.nav li:hover > ul, .nav li.menu-open > ul { display: flex; }
.nav ul ul li a { display: block; padding: .5rem .7rem; border-radius: 8px; }
.nav ul ul li a:hover { background: var(--sand); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0; background: linear-gradient(180deg, var(--sand), var(--cream)); }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: 0; pointer-events: none;
}
.hero-blob.one { width: 340px; height: 340px; background: var(--sage); top: -120px; right: 10%; }
.hero-blob.two { width: 260px; height: 260px; background: var(--clay); bottom: -100px; left: -60px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 220px 220px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -1.5rem; bottom: 2rem;
  background: var(--white); padding: .9rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: .9rem; max-width: 230px;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--sage-dark); }

/* Page banner (interior pages) */
.page-banner { background: linear-gradient(135deg, var(--sage-dark), #2f7d7c); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.page-banner .eyebrow { color: #cdeceb; }
.page-banner h1 { color: var(--white); margin-bottom: 0; }
.page-banner p { color: #e3f3f2; max-width: 640px; margin: 1rem auto 0; }

/* Struggles */
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); padding: 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--sage);
}
.card:nth-child(even) { border-top-color: var(--clay); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Quote */
.quote { background: var(--sage-dark); color: var(--white); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 800px; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; }
.quote cite { display: block; margin-top: 1.2rem; font-family: var(--sans); font-style: normal; font-size: .95rem; opacity: .8; }

/* Approach */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .8rem; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: .1em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--sage-dark); color: var(--white); font-size: .8rem;
  display: grid; place-items: center;
}
.panel { background: var(--sand); border-radius: var(--radius); padding: 2.4rem; }

/* Services */
.services { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  text-decoration: none; color: var(--ink); display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .icon { font-size: 1.8rem; margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .98rem; }
.service .more { color: var(--clay-dark); font-weight: 600; font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--clay-dark); color: var(--white);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem;
}
.step p { color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--sage-dark), #2f7d7c); color: var(--white); text-align: center; }
.cta p { max-width: 560px; margin-inline: auto; opacity: .92; }
.cta .hero-actions { justify-content: center; }
.cta .btn-ghost { border-color: var(--white); color: var(--white); }
.cta .btn-ghost:hover { background: var(--white); color: var(--sage-dark); }

/* Entry content (interior pages, pulled from WP content) */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content h2 { margin-top: 1.6em; color: var(--sage-dark); }
.entry-content h3 { margin-top: 1.4em; color: var(--sage-dark); }
.entry-content ul, .entry-content ol { color: var(--muted); }
.entry-content blockquote {
  border-left: 4px solid var(--clay); margin: 1.6em 0; padding: .3em 0 .3em 1.4em;
  font-family: var(--serif); font-size: 1.2rem; color: var(--sage-dark); font-style: italic;
}
.entry-content img { border-radius: var(--radius); margin: 1.2em 0; }
.entry-content a { text-decoration-color: var(--clay); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid rgba(22,40,43,.12); padding: .6em .8em; text-align: left; }

/* FAQ accordion (progressive enhancement over plain h3/p content) */
.faq-item { border-bottom: 1px solid rgba(22, 40, 43, .12); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 1.15rem; color: var(--sage-dark);
  padding: 1.1rem 2rem 1.1rem 0; position: relative; font-weight: 600;
}
.faq-question::after {
  content: "+"; position: absolute; right: 0; top: 1rem; font-size: 1.4rem; color: var(--clay-dark);
  transition: transform .2s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 1.2rem; }

/* Comment-free notice / forms styling (for plugin shortcodes like appointment/contact forms) */
.entry-content form input[type="text"],
.entry-content form input[type="email"],
.entry-content form input[type="tel"],
.entry-content form textarea,
.entry-content form select {
  width: 100%; padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgba(22,40,43,.2);
  font-family: var(--sans); font-size: 1rem; margin-bottom: 1rem;
}
.entry-content form button, .entry-content form input[type="submit"] {
  background: var(--clay-dark); color: var(--white); border: 0; border-radius: 999px;
  padding: .9rem 1.7rem; font-weight: 600; cursor: pointer;
}

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; }
.post-card img { aspect-ratio: 16/10; object-fit: cover; }
.post-card .post-card-body { padding: 1.4rem 1.6rem; }
.post-card h2, .post-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.post-card .post-meta { color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
.single-post-header { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.single-post-header .post-meta { color: var(--muted); }

/* Footer */
.site-footer { background: #11272a; color: #cfe1e0; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.footer-brand h3 { margin: 0; }
.site-footer a { color: #cfe1e0; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.crisis { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; opacity: .85; }

/* Scroll reveal (progressive enhancement; content visible by default without JS) */
.reveal {
  opacity: 0;
  transform: translateY(64px) scale(.97);
  transition: opacity 1.1s cubic-bezier(.16,.8,.3,1), transform 1.1s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
.js-disabled .reveal, .no-js .reveal { opacity: 1; transform: none; }

/* Staggered cascade for grid/card groups: each sibling reveals slightly
   later than the one before it, for a more dramatic "pop" effect. */
.cards .reveal:nth-child(1), .service-grid .reveal:nth-child(1), .steps .reveal:nth-child(1) { transition-delay: 0s; }
.cards .reveal:nth-child(2), .service-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3), .service-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .24s; }
.cards .reveal:nth-child(4), .service-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .36s; }
.cards .reveal:nth-child(5), .service-grid .reveal:nth-child(5) { transition-delay: .48s; }
.cards .reveal:nth-child(6), .service-grid .reveal:nth-child(6) { transition-delay: .6s; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-media { order: -1; max-width: 380px; margin-inline: auto; }
  .hero-badge { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 1.6rem; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    background: var(--cream); padding: 1.2rem 4%;
    border-bottom: 1px solid rgba(22, 40, 43, .1);
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: .8rem; width: 100%; }
  .nav ul ul { position: static; box-shadow: none; padding-left: 1rem; display: none; }
  .nav li.menu-open > ul { display: flex; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar .container { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
