/*
Theme Name: Rori Care
Theme URI: https://rori.care
Description: Block theme cloning rori.care (Webflow → WP FSE).
Version: 0.2.0
Author: Rori Care
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: rori-care
*/

/* Layout helpers that block-editor styling alone cannot express. */
body { font-feature-settings: "kern", "liga"; }

/* Webflow-style page constraint */
.wp-site-blocks > * > .wp-block-group.alignfull { width: 100%; }

/* Subtle hover for buttons matching Webflow */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Service / why-us / leadership card hover */
.rc-card { transition: transform .2s ease, box-shadow .2s ease; }
.rc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }

/* Mobile nav: hide phone in compact viewports */
@media (max-width: 720px) {
  .rc-nav-phone { display: none; }
}

/* Single post content: stretch images to 100% of the article container.
   Imported posts come from Webflow with inline width="..." or
   max-width:... attributes that leave images small/centered. */
.wp-block-post-content img,
.wp-block-post-content figure,
.wp-block-post-content figure img,
.wp-block-post-content .w-richtext img,
.wp-block-post-content [class*="w-richtext"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
}
.wp-block-post-content figure {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
}
.wp-block-post-content figcaption {
  font-size: .85rem;
  color: var(--wp--preset--color--muted, #5d6c7b);
  margin-top: .5rem;
  text-align: left;
}
/* Keep tall/portrait illustrations from blowing up to ridiculous heights */
.wp-block-post-content img {
  max-height: 80vh;
  object-fit: contain;
  background: #f8faf9;
}
