/*
Theme Name: Little Owl
Theme URI: https://littleowlcounselling.ca
Author: Jane Desplenter Rose
Description: A warm, grounded, non-clinical custom block theme for Little Owl Counselling & Hypnotherapy. Prairie-inspired palette, no page builder.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: little-owl
*/

/* Structural / detail CSS that complements theme.json.
   Colours reference the palette via CSS custom properties WordPress generates
   from theme.json, e.g. var(--wp--preset--color--orange). */

/* Smooth, gentle base */
html { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Badge / eyebrow label (home hero) */
.lo-badge {
  display: inline-block;
  font-family: var(--wp--preset--font-family--nunito-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--purple);
  background: var(--wp--preset--color--beige-light);
  border: 1px solid var(--wp--preset--color--purple);
  border-radius: 2px;
  padding: 0.45em 0.9em;
}

/* Buttons: gentle lift on hover */
.wp-block-button__link {
  transition: transform 0.15s ease, filter 0.15s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
/* Fixed label size (>=18.66px) so the orange CTAs meet WCAG AA contrast as large text */
.wp-block-button .wp-block-button__link { font-size: 1.2rem; }

/* Cards (service teasers) */
.lo-card {
  background: var(--wp--preset--color--beige-light);
  border: 1px solid var(--wp--preset--color--mauve);
  border-top: 3px solid var(--wp--preset--color--purple);
  border-radius: 5px;
  padding: clamp(1.25rem, 3vw, 2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Bottom-align the "learn more" link so cards of differing text length stay even */
.lo-card > p:last-child { margin-top: auto; margin-bottom: 0; }

/* Dark bands (footer / header-style sections) */
.lo-dark {
  background: var(--wp--preset--color--heading);
  color: var(--wp--preset--color--beige-light);
}
.lo-dark a { color: var(--wp--preset--color--beige-light); }
.lo-dark a:hover { color: var(--wp--preset--color--orange); }

/* FAQ accordion (native details/summary) */
.lo-faq details {
  border: 1px solid var(--wp--preset--color--mauve);
  border-left: 3px solid var(--wp--preset--color--purple);
  border-radius: 4px;
  margin-bottom: 0.6rem;
  background: var(--wp--preset--color--beige-light);
  overflow: hidden;
}
.lo-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--wp--preset--font-family--fraunces);
  font-weight: 600;
  color: var(--wp--preset--color--heading);
  position: relative;
}
.lo-faq summary::-webkit-details-marker { display: none; }
.lo-faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  color: var(--wp--preset--color--orange);
  font-size: 1.4rem;
  line-height: 1;
}
.lo-faq details[open] summary::after { content: "\2013"; }
.lo-faq details > *:not(summary) { padding: 0 1.25rem 1.25rem; margin: 0; }

/* Contact form styling (Contact Form 7 + fallback) */
.lo-contact-form label,
.wpcf7-form label { font-family: var(--wp--preset--font-family--nunito-sans); font-weight: 600; color: var(--wp--preset--color--heading); display: block; }
.lo-contact-form input,
.lo-contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-top: 0.35rem;
  border: 1px solid var(--wp--preset--color--mauve);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--wp--preset--color--body);
  box-sizing: border-box;
}
.wpcf7-form p { margin: 0 0 1rem; }
.lo-contact-form button,
.wpcf7-form input[type="submit"] {
  border: 0;
  cursor: pointer;
  background: var(--wp--preset--color--orange);
  color: var(--wp--preset--color--beige-light);
  font-family: var(--wp--preset--font-family--nunito-sans);
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
}
.wpcf7-form input[type="submit"]:hover { filter: brightness(1.06); }

/* Small print (AI disclosure, footer fine print) */
.lo-fineprint { font-size: 0.8rem; opacity: 0.85; }

/* Grounded/editorial: crisper edges on media and contained content boxes */
.wp-block-image img { border-radius: 5px !important; }
main .has-beige-light-background-color.has-background:not(.alignfull),
main .wp-block-group.has-border-color:not(.alignfull) { border-radius: 6px !important; }

/* Accessible focus outline */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible,
summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--wp--preset--color--orange);
  outline-offset: 2px;
}
