/*
Theme Name: Happy Living Options 245D
Theme URI: https://happylivingoptionsllc.com
Author: Consultant Services of MN
Author URI: https://consultantmn.com
Description: A lightweight, SEO-friendly WordPress theme built for Happy Living Options LLC, a Minnesota 245D home and community-based waiver services provider. Includes Home, Services, Contact, and Forms & Documents pages, schema.org LocalBusiness markup, and a bundled client document library.
Version: 1.0.0
Requires at least: 6.0
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: hlo-245d
*/

/* =========================================================
   0. CSS Custom Properties (brand palette from HLO logo)
   ========================================================= */
:root {
  --hlo-navy: #16335c;
  --hlo-blue: #2b6cb0;
  --hlo-blue-light: #eaf2fb;
  --hlo-green: #4f9a3a;
  --hlo-green-light: #eef7ea;
  --hlo-gold: #f2a900;
  --hlo-gold-light: #fdf3dc;
  --hlo-ink: #1f2733;
  --hlo-gray: #5a6472;
  --hlo-gray-light: #f5f7f9;
  --hlo-border: #e2e6eb;
  --hlo-white: #ffffff;

  --hlo-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hlo-font-heading: Georgia, "Times New Roman", serif;

  --hlo-radius: 14px;
  --hlo-shadow: 0 4px 18px rgba(22, 51, 92, 0.08);
  --hlo-shadow-hover: 0 8px 28px rgba(22, 51, 92, 0.14);
  --hlo-container: 1140px;
}

/* =========================================================
   1. Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hlo-font-body);
  color: var(--hlo-ink);
  background: var(--hlo-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hlo-blue); text-decoration: none; }
a:hover { color: var(--hlo-navy); text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 {
  font-family: var(--hlo-font-heading);
  color: var(--hlo-navy);
  line-height: 1.25;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container {
  max-width: var(--hlo-container);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--hlo-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* =========================================================
   2. Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--hlo-blue), var(--hlo-navy));
  color: #fff;
  box-shadow: var(--hlo-shadow);
}
.btn-primary:hover { color: #fff; box-shadow: var(--hlo-shadow-hover); }
.btn-gold {
  background: linear-gradient(135deg, #ffcc4d, var(--hlo-gold));
  color: var(--hlo-navy);
  box-shadow: var(--hlo-shadow);
}
.btn-gold:hover { color: var(--hlo-navy); box-shadow: var(--hlo-shadow-hover); }
.btn-outline {
  background: transparent;
  color: var(--hlo-navy);
  border-color: var(--hlo-navy);
}
.btn-outline:hover { background: var(--hlo-navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   3. Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--hlo-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-branding img { height: 52px; width: auto; }
.site-branding:hover { text-decoration: none; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.85rem;
  color: var(--hlo-gray);
  text-align: right;
}
.header-phone a {
  color: var(--hlo-navy);
  font-weight: 700;
  font-size: 1.05rem;
}

.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--hlo-ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--hlo-blue-light);
  color: var(--hlo-navy);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--hlo-navy);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hlo-navy);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after { content: ""; position: absolute; top: 7px; }

@media (max-width: 880px) {
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hlo-border);
    box-shadow: var(--hlo-shadow);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 10px 20px 18px; gap: 0; }
  .primary-nav a { padding: 12px 6px; border-radius: 6px; }
}

/* =========================================================
   4. Hero
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(242,169,0,0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(79,154,58,0.14), transparent 40%),
    linear-gradient(180deg, var(--hlo-blue-light) 0%, #ffffff 100%);
  padding: 76px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hlo-gold-light);
  color: #8a6400;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--hlo-gray);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-card {
  background: #fff;
  border-radius: var(--hlo-radius);
  box-shadow: var(--hlo-shadow);
  padding: 28px;
  border: 1px solid var(--hlo-border);
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--hlo-border);
  font-weight: 600;
  color: var(--hlo-navy);
}
.hero-card li:last-child { border-bottom: none; }
.hero-card .dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--hlo-green);
  margin-top: 6px;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   5. Sections / generic blocks
   ========================================================= */
section.block { padding: 72px 0; }
section.block.alt { background: var(--hlo-gray-light); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--hlo-gray); font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--hlo-border);
  border-radius: var(--hlo-radius);
  padding: 30px;
  box-shadow: var(--hlo-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--hlo-shadow-hover); transform: translateY(-2px); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--hlo-blue-light);
  color: var(--hlo-blue);
}
.card.gold .icon { background: var(--hlo-gold-light); color: #a97600; }
.card.green .icon { background: var(--hlo-green-light); color: var(--hlo-green); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-row .stat b {
  display: block;
  font-family: var(--hlo-font-heading);
  font-size: 2.1rem;
  color: var(--hlo-navy);
}
.stat-row .stat span { color: var(--hlo-gray); font-size: 0.92rem; }
@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.cta-band {
  background: linear-gradient(135deg, var(--hlo-navy), var(--hlo-blue));
  color: #fff;
  border-radius: 24px;
  padding: 52px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* =========================================================
   6. Page header (interior pages)
   ========================================================= */
.page-header {
  background: linear-gradient(180deg, var(--hlo-blue-light), #fff);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--hlo-border);
}
.page-header h1 { margin-bottom: 8px; }
.page-header .lede { color: var(--hlo-gray); max-width: 62ch; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--hlo-gray);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--hlo-gray); }

/* =========================================================
   7. Services page specifics
   ========================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hlo-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .num {
  font-family: var(--hlo-font-heading);
  font-size: 1.6rem;
  color: var(--hlo-gold);
  font-weight: 700;
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hlo-green-light);
  color: var(--hlo-green);
}

/* =========================================================
   8. Contact page / forms
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--hlo-navy);
  color: #fff;
  border-radius: var(--hlo-radius);
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card .item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-card .item .ico { font-size: 1.2rem; }
.contact-info-card a { color: #fff; text-decoration: underline; }
.contact-info-card .note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.hlo-form { background: #fff; border: 1px solid var(--hlo-border); border-radius: var(--hlo-radius); padding: 32px; box-shadow: var(--hlo-shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.92rem; color: var(--hlo-navy); }
.form-row .req { color: #c0392b; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--hlo-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--hlo-gray-light);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--hlo-blue);
  background: #fff;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; }
.form-notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-weight: 600;
}
.form-notice.success { background: var(--hlo-green-light); color: #2f6b23; }
.form-notice.error { background: #fdecea; color: #a33025; }

/* =========================================================
   9. Forms & Documents page
   ========================================================= */
.doc-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hlo-border);
  border-radius: var(--hlo-radius);
  padding: 26px;
  box-shadow: var(--hlo-shadow);
  margin-bottom: 20px;
}
.doc-card .doc-icon {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--hlo-blue-light);
  color: var(--hlo-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}
.doc-card .doc-body { flex: 1; }
.doc-card h3 { margin-bottom: 4px; }
.doc-card p { margin-bottom: 0; color: var(--hlo-gray); }
.doc-card .doc-meta { font-size: 0.82rem; color: var(--hlo-gray); margin-top: 4px; }
@media (max-width: 640px) {
  .doc-card { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer {
  background: var(--hlo-navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.site-footer .footer-logo img { height: 46px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* =========================================================
   11. Misc content pages
   ========================================================= */
.entry-content { max-width: 800px; }
.entry-content h2 { margin-top: 1.4em; }
.wp-block-image, figure { margin: 0 0 1.4em; }
