/*
Theme Name: Riaboy Therapy
Theme URI: https://riaboytherapy.com
Author: Riaboy Therapy
Description: A calm, grounded block theme for a solo psychotherapy practice. Warm paper base, deep pine green, and a single honey accent, set in Spectral and Figtree. Built for easy editing and native blogging.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riaboy-therapy
*/

/* Most styling is handled by theme.json (colors, fonts, spacing).
   The classes below add the few custom touches that core blocks
   don't cover on their own. Apply them to a block via the editor's
   "Advanced > Additional CSS class(es)" field. */

/* Width-capped blocks stay left aligned inside constrained groups,
   matching the design (WordPress otherwise centers them). */
.is-layout-constrained > [style*="max-width"]{margin-left:0 !important;margin-right:0 !important}

/* Eyebrow label with a short honey rule */
.rt-eyebrow{
  display:flex;align-items:center;gap:.7rem;
  font-family:var(--wp--preset--font-family--body);
  font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--wp--preset--color--honey);
}
.rt-eyebrow::before{content:"";width:26px;height:1px;background:var(--wp--preset--color--honey);flex:none}

/* Service / content cards */
.rt-card{
  border:1px solid rgba(46,61,52,.14);border-radius:8px;
  transition:transform .2s ease, box-shadow .2s ease;height:100%;
}
.rt-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px -22px rgba(46,61,52,.5)}
.rt-avail{border-top:1px solid rgba(46,61,52,.14);font-size:.85rem;color:var(--wp--preset--color--pine);font-weight:600}

/* Fees block sitting on the pine background */
.rt-feerow{
  background:rgba(244,242,236,.08);
  border:1px solid rgba(244,242,236,.18);
  border-radius:8px;
}

/* Buttons: pill shape everywhere */
.wp-block-button__link{border-radius:999px !important;font-weight:500}

/* Nav item styled as the booking pill button */
.wp-block-navigation-item.rt-nav-btn a{
  background:#2E3D34;color:#F4F2EC !important;
  border-radius:999px;padding:.55rem 1.25rem;
  font-weight:500;text-decoration:none;
  transition:background .2s ease, transform .2s ease;
}
.wp-block-navigation-item.rt-nav-btn a:hover{background:#3C5044;transform:translateY(-1px)}

/* Post cards on the blog / writing list */
.rt-post{border-top:2px solid var(--wp--preset--color--pine);padding-top:1.1rem}
.rt-post .wp-block-post-date{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--honey);font-weight:600}

/* Sticky, quiet header */
.rt-header{position:sticky;top:0;z-index:50;background:rgba(244,242,236,.9);backdrop-filter:blur(8px)}
/* backdrop-filter creates a containing block that would trap the mobile
   menu overlay inside the header bar; lift it while the menu is open */
.rt-header:has(.is-menu-open){backdrop-filter:none}

/* Gentle scroll reveal (respects reduced motion) */
@media (prefers-reduced-motion:no-preference){
  .rt-reveal{opacity:0;transform:translateY(18px);animation:rt-in .7s ease forwards;animation-timeline:view();animation-range:entry 0% cover 22%}
  @keyframes rt-in{to{opacity:1;transform:none}}
}
