/*
Theme Name: Huntington Park Smiles
Description: The static site's chrome for WordPress pages. Header, footer, booking section and the base stylesheet are generated from index.html by scripts/build-theme.py (inc/); this file only adds what WordPress content needs.
Version: 1.0.0
Author: Huntington Park Smiles
Text Domain: hps
*/

/* ---------- Language toggle: links on both the static homes (since 2026-10-02) and the theme; the
   theme marks the active one with .is-active, site.css styles [aria-current] the same way ---------- */
.lang-toggle a {
  display: inline-block; padding: 7px 13px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--forest-soft); transition: background .2s ease, color .2s ease;
}
.lang-toggle a.is-active { background: var(--forest); color: var(--ivory); }

/* ---------- Page head: title + the two direct actions above the fold ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: var(--white); }
.crumbs { font-size: 13.5px; color: var(--forest-soft); margin-bottom: 18px; }
.crumbs a { color: var(--forest-soft); }
.crumbs a:hover { color: var(--forest); }
.crumbs .breadcrumb_last { color: var(--forest); font-weight: 500; }
.page-title { font-size: clamp(2.1rem, 4.8vw, 3.2rem); max-width: 18ch; }
.page-intro { margin-top: 18px; max-width: 640px; font-size: 1.15rem; color: var(--forest-soft); }
.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Editor content ---------- */
.page-body { padding: clamp(40px, 6vw, 72px) 0; }
.entry-content { max-width: 760px; font-size: 1.05rem; line-height: 1.7; color: var(--forest-soft); }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content p { margin: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); color: var(--forest); margin-top: 2.2em; }
.entry-content h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); color: var(--forest); margin-top: 1.8em; }
.entry-content h2 em, .entry-content h3 em { font-style: italic; color: var(--bronze-dark); }
.entry-content a { color: var(--bronze-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--forest); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .45em; }
.entry-content strong { color: var(--forest); }
.entry-content blockquote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--bronze); color: var(--forest); font-family: var(--serif); font-size: 1.2rem; }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content figure { margin: 0; }
.entry-content figcaption { font-size: .9rem; color: var(--forest-soft); margin-top: 8px; }
.entry-content hr { height: 1px; border: 0; background: var(--line); margin: 2.4em 0; }
.entry-content .wp-block-buttons { gap: 12px; }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 15px 30px; border-radius: 999px; background: var(--bronze); color: #fff; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--bronze-dark); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--forest); color: var(--ivory); }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-table th { color: var(--forest); font-weight: 600; }

/* FAQ: the core Details block, styled like the home page's accordion */
.entry-content .wp-block-details { border-bottom: 1px solid var(--line); padding: 0; }
.entry-content .wp-block-details:first-of-type { border-top: 1px solid var(--line); }
.entry-content .wp-block-details + .wp-block-details { margin-top: 0; }
.entry-content .wp-block-details summary { list-style: none; cursor: pointer; padding: 22px 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.35rem); color: var(--forest); line-height: 1.3; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; color: var(--bronze-dark); font-size: 1.5rem; transition: transform .3s ease; }
.entry-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.entry-content .wp-block-details > :not(summary) { padding: 0 8px 22px; max-width: 660px; }
.entry-content .wp-block-details > :not(summary) + * { margin-top: .8em; }

/* Alignment helpers WordPress emits */
.entry-content .alignwide { max-width: var(--maxw); }
.entry-content .has-text-align-center { text-align: center; }

/* Fallback pages (404, search): a little breathing room */
.error404 .page-head { border-bottom: 0; }

@media (max-width: 560px) {
  .page-cta .btn { width: 100%; }
}
