/*
Theme Name: Busy Bee Care Providers
Theme URI: https://busybeecareproviders.com
Author: Busy Bee Care Providers, Inc.
Description: A warm, accessible WordPress theme for California Behavior Respite Services.
Version: 1.4.3
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: busy-bee
*/

:root {
  --honey: #ffd46a;
  --gold: #f3a83b;
  --apricot: #ffbd78;
  --deep-green: #294f3c;
  --leaf: #66816c;
  --ink: #202020;
  --cream: #fffaf2;
  --soft: #f6f4ef;
  --white: #ffffff;
  --muted: #5d625b;
  --line: #ded8c8;
  --radius: 22px;
  --shadow: 0 16px 50px rgba(25, 48, 38, .10);
  --max: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--deep-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { margin: 0 0 .6em; color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2.05rem, 4vw, 3.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.25em; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(35,79,62,.10); backdrop-filter: blur(12px); }
.header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-logo-frame { position: relative; display: block; width: 282px; height: 108px; overflow: hidden; }
.brand-logo { position: absolute; display: block; width: 340px; height: auto; left: -18px; top: -16px; }
.site-nav ul { display: flex; align-items: center; gap: clamp(22px, 2.1vw, 44px); margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--deep-green); }
.site-nav .current-menu-item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--gold); }
.menu-toggle { display: none; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--soft); font: inherit; font-weight: 800; }

.button, .wp-block-button__link, button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 2px solid var(--deep-green); border-radius: 999px; background: var(--deep-green); color: var(--white); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover, button[type="submit"]:hover { color: var(--ink); background: var(--honey); border-color: var(--honey); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(35,79,62,.16); }
.button--gold { color: var(--ink); background: var(--honey); border-color: var(--honey); }
.button--gold:hover { color: var(--white); background: var(--deep-green); border-color: var(--deep-green); }
.button--outline { color: var(--deep-green); background: transparent; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero { position: relative; overflow: hidden; padding: 62px 0 48px; background: linear-gradient(135deg, #fff 0%, var(--cream) 62%, #fff0d7 100%); }
.hero::before { content: ""; position: absolute; width: 980px; height: 370px; right: -180px; bottom: -210px; border-radius: 50% 0 0 0; background: rgba(255,210,137,.20); transform: rotate(-11deg); }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -290px; top: -300px; border: 78px solid rgba(255,189,120,.20); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(450px, .72fr); gap: clamp(48px, 5vw, 82px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--deep-green); font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 3px; background: var(--honey); }
.hero h1 { max-width: 1000px; font-size: clamp(3.25rem, 3.65vw, 4.35rem); line-height: 1.04; }
.hero p { max-width: 720px; color: #4f5350; font-size: clamp(1.08rem, 1.25vw, 1.28rem); }
.hero-card { position: relative; padding: 36px 42px; border: 1px solid rgba(35,79,62,.09); border-radius: 30px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(42,45,40,.12); }
.hero-card h2 { font-size: clamp(2rem, 2.25vw, 2.55rem); }
.hero-card .check-list { gap: 11px; margin-top: 18px; }
.hero-card .check-list li { font-size: .94rem; line-height: 1.45; }
.check-list { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 25px; height: 25px; margin-top: 2px; border-radius: 50%; background: #e6f0e8; color: var(--deep-green); font-weight: 900; }

.trust-bar { padding: 35px 0; background: #0f4127; color: var(--white); }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 44px; font-size: 15px; font-weight: 800; }
.trust-items--rich { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: center; min-height: 92px; padding: 4px 34px; border-right: 1px solid rgba(255,255,255,.45); }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(0,0,0,.22); color: var(--honey); font-size: 34px; font-weight: 500; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { margin-bottom: 5px; font: 700 1.16rem/1.2 Georgia, serif; }
.trust-item small { color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 500; line-height: 1.45; }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section--green { color: var(--white); background: var(--deep-green); }
.section--green h2, .section--green h3 { color: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 45px; }
.section-heading p { color: var(--muted); font-size: 1.12rem; }
.section--green .section-heading p { color: rgba(255,255,255,.82); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 30px rgba(25,48,38,.05); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 18px; background: #fff1bd; color: var(--deep-green); font-size: 24px; font-weight: 900; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 7vw, 90px); align-items: start; }
.difference-section { background: #fffdfa; }
.difference-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.difference-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.compact-card { min-height: 250px; }
.bb-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(41,79,60,.12); border-radius: 28px; background: var(--soft); box-shadow: var(--shadow); }
.bb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-photo-note { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.88); color: #454945; font-size: 11px; line-height: 1.25; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.photo-story-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: clamp(38px, 5vw, 72px); align-items: center; }
.bb-photo--story { aspect-ratio: 1.7 / 1; }
.photo-story-copy > p { color: var(--muted); font-size: 1.1rem; }
.photo-story-points { display: grid; gap: 18px; margin-top: 30px; }
.photo-story-points > div { display: grid; gap: 4px; padding: 18px 20px; border-left: 4px solid var(--honey); background: var(--cream); }
.photo-story-points strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.photo-story-points span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.bb-photo--page-lead { width: min(calc(100% - 40px), 1320px); aspect-ratio: 16 / 8.6; margin: 36px auto 0; }
.bb-photo--team { aspect-ratio: 16 / 8.75; }
.bb-photo--about-sunflowers { aspect-ratio: 1200 / 630; background: var(--cream); }
.bb-photo--prose-wide { position: relative; left: 50%; width: min(calc(100vw - 40px), 1200px); aspect-ratio: 3 / 2; margin: 3.25rem 0 2.25rem; transform: translateX(-50%); }
.contact-photo-section { padding: 54px 0 18px; background: var(--white); }
.bb-photo--contact { max-width: 1240px; aspect-ratio: 16 / 8.6; margin: 0 auto; }
.highlight { padding: 34px; border-left: 7px solid var(--honey); border-radius: 0 var(--radius) var(--radius) 0; background: var(--cream); }
.steps { counter-reset: steps; display: grid; gap: 22px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 54px 1fr; gap: 18px; }
.step::before { content: counter(steps); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--honey); color: var(--ink); font-weight: 900; }

.page-hero { padding: 78px 0 70px; background: var(--cream); text-align: center; }
.page-hero h1 { max-width: 950px; margin-inline: auto; font-size: clamp(2.6rem, 5vw, 4.5rem); }
.page-hero p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.18rem; }
.prose { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 75px 0 100px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.7em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }

.faq { display: grid; gap: 14px; }
.faq details { padding: 22px 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq summary { cursor: pointer; color: var(--ink); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; }
.faq details p { margin: 16px 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; }
.contact-card { padding: 34px; border-radius: var(--radius); background: var(--deep-green); color: var(--white); }
.contact-card h2, .contact-card h3, .contact-card a { color: var(--white); }
.contact-card a:hover { color: var(--honey); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field--full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 14px; border: 1px solid #bfc3bb; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(244,182,41,.45); border-color: var(--deep-green); }
.form-notice { padding: 15px 18px; margin-bottom: 22px; border-radius: 12px; background: #e7f3e9; color: var(--deep-green); font-weight: 700; }
.form-notice--error { background: #fff0ec; color: #8a2b18; }

.cta { padding: 56px; border-radius: 32px; background: var(--honey); color: var(--ink); }
.cta h2 { max-width: 780px; }
.cta p { max-width: 760px; }

.site-footer { padding: 66px 0 28px; background: var(--ink); color: rgba(255,255,255,.75); }
.footer-logo-frame { position: relative; width: 330px; height: 150px; margin: -28px 0 4px; overflow: hidden; }
.footer-logo { position: absolute; width: 400px; height: auto; left: -18px; top: -20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 48px; }
.site-footer h2, .site-footer h3, .site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--honey); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 5px; }
  .site-nav a { display: block; padding: 9px; }
  .hero-grid, .split, .contact-grid, .difference-grid, .photo-story-grid { grid-template-columns: 1fr; }
  .trust-items--rich { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { max-width: 680px; }
  .photo-story-copy { max-width: 760px; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 86px; }
  .brand-logo-frame { width: 190px; height: 64px; }
  .brand-logo { width: 255px; left: -19px; top: -10px; }
  .footer-logo-frame { width: 270px; height: 125px; }
  .footer-logo { width: 335px; left: -15px; top: -17px; }
  .grid-2, .grid-3, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .hero { padding: 66px 0 52px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-card, .card, .cta { padding: 26px; }
  .hero .button-row { display: grid; }
  .hero .button { width: 100%; }
  .hero .button--outline { border-color: transparent; }
  .footer-bottom { flex-direction: column; }
  .trust-items--rich, .difference-cards { grid-template-columns: 1fr; }
  .bb-photo, .bb-photo--page-lead, .bb-photo--prose-wide { border-radius: 18px; }
  .bb-photo--page-lead { width: calc(100% - 28px); aspect-ratio: 4 / 3; margin-top: 20px; }
  .bb-photo--story { aspect-ratio: 4 / 3; }
  .bb-photo--prose-wide { width: calc(100vw - 28px); aspect-ratio: 4 / 3; }
  .contact-photo-section { padding: 28px 0 8px; }
  .bb-photo--contact { aspect-ratio: 4 / 3; }
  .bb-photo--team { aspect-ratio: auto; }
  .bb-photo--team img { height: auto; }
  .bb-photo-note { right: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 9px; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); padding: 18px 8px; }
  .trust-item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
