/*
Theme Name: Hosting Elevated
Theme URI: https://hostingelevated.com
Author: Hosting Elevated
Description: Quiet coastal luxury block theme for Hosting Elevated, boutique short-term rental management in North County San Diego. Shell white canvas, charcoal ink slabs, slate accents, Raleway and Montserrat.
Version: 1.0.23
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hosting-elevated
*/

/* ---------- Global polish ---------- */

body {
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

.wp-site-blocks > main {
  margin-block-start: 0;
}

/* Letter-spaced uppercase label */
.he-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.he-header {
  border-bottom: 1px solid rgba(89, 107, 120, 0.22);
}

.he-header .he-logo img {
  width: 168px;
  height: auto;
  display: block;
}

.he-header .wp-block-navigation a {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast);
}

.he-header .wp-block-navigation a:hover {
  color: var(--wp--preset--color--slate);
  text-decoration: none;
}

@media (max-width: 781px) {
  .he-header .he-logo img { width: 132px; }
}

/* ---------- Hero ---------- */

.he-hero {
  min-height: 78vh;
}

.he-hero .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(78vh - 6rem);
}

.he-hero h1 {
  max-width: 15em;
}

/* Charcoal wash: transparent top into deep charcoal bottom */
.he-hero .wp-block-cover__background {
  background: linear-gradient(
    to bottom,
    rgba(23, 24, 27, 0.25) 0%,
    rgba(23, 24, 27, 0.4) 38%,
    rgba(23, 24, 27, 0.72) 68%,
    rgba(23, 24, 27, 0.9) 100%
  ) !important;
  opacity: 1 !important;
}

/* Ghost button */
.btn-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-ghost .wp-block-button__link:hover {
  background: #FFFFFF;
  color: var(--wp--preset--color--contrast);
}

/* Quiet underlined text link */
.he-textlink a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.he-textlink a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

/* Slow Ken Burns drift on hero image */
@keyframes heKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.he-hero .wp-block-cover__image-background {
  animation: heKenBurns 8s ease-out forwards;
}

/* ---------- Photo divider ---------- */

.he-divider {
  min-height: 55vh;
}

/* ---------- Entrance + scroll animations ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: heFadeUp 0.8s ease-out forwards;
}

.fade-up-delay-1 { animation-delay: 0.15s; }
.fade-up-delay-2 { animation-delay: 0.3s; }
.fade-up-delay-3 { animation-delay: 0.45s; }

@keyframes heFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-cards .cta-bottom {
  margin-top: auto;
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 24, 27, 0.1);
}

/* Thin rule accent under section labels */
.he-rule {
  border: none;
  border-top: 1px solid rgba(89, 107, 120, 0.35);
  width: 3rem;
  margin-left: 0;
}

/* ---------- Journal ---------- */

.he-post-card h2 a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
}

.he-post-card h2 a:hover {
  color: var(--wp--preset--color--slate);
}

/* ---------- Footer ---------- */

.he-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.he-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.he-footer .he-submark img {
  width: 64px;
  height: auto;
}

/* ---------- Accessibility ---------- */

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--wp--preset--color--slate);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
  .fade-up { opacity: 1; transform: none; }
}


/* ---------- v2 polish ---------- */

/* Type refinement */
.he-label { font-size: 0.7rem; }
.he-label-slate { color: var(--wp--preset--color--slate); }

.he-hero-label { color: rgba(255, 255, 255, 0.92); }

.he-hero-title {
  color: #FFFFFF;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.005em;
  max-width: 15.5em;
  margin-top: 1.1rem;
  margin-bottom: 1.2rem;
}

.he-hero-sub {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: 1.9rem;
}

.he-band-label { color: rgba(234, 232, 230, 0.75); }

.he-band-sentence {
  color: #FFFFFF;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.he-section-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.he-on-dark { color: #FFFFFF; }

.he-body-muted {
  color: rgba(23, 24, 27, 0.78);
  font-size: 0.98rem;
  line-height: 1.75;
}

.he-body-on-dark {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.75;
}

.he-max-38 { max-width: 38em; margin-left: auto; margin-right: auto; }

.he-rule.wp-block-separator {
  border: none;
  border-top: 1px solid rgba(89, 107, 120, 0.4);
  width: 3rem;
  max-width: 3rem;
  margin: 0.25rem 0 0;
}

/* Cards */
.he-card {
  height: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(89, 107, 120, 0.16);
  padding: 2.1rem 1.9rem 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.he-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 24, 27, 0.08);
}

.he-card-number {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(89, 107, 120, 0.65);
  margin-bottom: 1.1rem;
}

.he-card-title {
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.7rem;
}

.he-card-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(23, 24, 27, 0.75);
  margin-bottom: 1.6rem;
}

.he-card-link a { color: var(--wp--preset--color--slate); text-decoration: none; border-bottom: 1px solid rgba(89, 107, 120, 0.4); padding-bottom: 2px; transition: border-color 0.2s ease, color 0.2s ease; }
.he-card-link a:hover { color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }

/* Portrait */
.he-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  width: 100%;
  height: auto;
  display: block;
}

.he-more-link a { color: var(--wp--preset--color--slate); text-decoration: none; border-bottom: 1px solid rgba(89, 107, 120, 0.4); padding-bottom: 2px; }
.he-more-link a:hover { color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }

/* Hero flush-left inside its constrained box */
.he-hero .wp-block-cover__inner-container > * {
  margin-left: 0;
}

@media (max-width: 781px) {
  .he-hero { padding-left: 1.4rem !important; padding-right: 1.4rem !important; }
  .he-hero-title { font-size: 1.9rem; }
  .he-card { padding: 1.7rem 1.4rem 1.5rem; }
}

/* Left-align hero content and rules against WP constrained-layout centering */
.he-hero.wp-block-cover .wp-block-cover__inner-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.wp-block-separator.he-rule {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Constrain hero inner box to the 1200 grid so text aligns with the header logo */
.he-hero.wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Remove decorative rules */
.wp-block-separator.he-rule { display: none; }

/* ---------- v3 refinements ---------- */

/* Header: wordmark left, icon right of nav */
.he-header .he-logo img {
  width: 210px;
  height: auto;
  display: block;
}

.he-header-icon img {
  width: 34px;
  height: auto;
  display: block;
  opacity: 0.9;
}

@media (max-width: 781px) {
  .he-header .he-logo img { width: 168px; }
  .he-header-icon { display: none; }
}

/* Card link breathing room */
.he-card-link.cta-bottom { padding-top: 1.4rem; }

/* Controlled line breaks: hide manual breaks on small screens */
@media (max-width: 700px) {
  br.he-br { display: none; }
}

/* Smaller portraits */
.he-portrait { max-width: 320px; }
.he-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; width: 100%; }

/* Interior page typography */
h1.wp-block-post-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.he-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(23, 24, 27, 0.8);
  max-width: 38em;
}

.he-service-block { padding: 2.4rem 0 0.4rem; }

.he-service-block .he-section-title { margin-top: 0.4rem; }

.he-service-body {
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(23, 24, 27, 0.78);
  max-width: 40em;
}

/* Soft fog panel */
.he-panel {
  background: var(--wp--preset--color--fog);
  padding: 2.6rem 2.4rem;
}

/* Photo trio row */
.he-photo-trio img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  display: block;
}

.he-photo-caption {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--slate);
  margin-top: 0.8rem;
}

.he-placeholder-tile {
  aspect-ratio: 4 / 5;
  background: var(--wp--preset--color--fog);
  border: 1px dashed rgba(89, 107, 120, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.he-placeholder-tile p {
  font-size: 0.8rem;
  color: var(--wp--preset--color--slate);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* Journal single post */
.single .wp-block-post-content p { max-width: 42em; }

/* ---------- v4: dark header on interior pages ---------- */

/* Default (interior pages): charcoal header, cream logo and nav */
.he-header {
  background: #17181B;
  border-bottom: 1px solid rgba(234, 232, 230, 0.14);
}

.he-header .wp-block-navigation a {
  color: #EAE8E6;
}

.he-header .wp-block-navigation a:hover {
  color: #FFFFFF;
}

.he-header .he-logo-cream { display: block; }
.he-header .he-logo-ink { display: none; }
.he-header .wp-block-navigation__responsive-container-open { color: #EAE8E6; }

/* Homepage keeps the light header */
body.home .he-header {
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid rgba(89, 107, 120, 0.22);
}

body.home .he-header .wp-block-navigation a { color: var(--wp--preset--color--contrast); }
body.home .he-header .wp-block-navigation a:hover { color: var(--wp--preset--color--slate); }
body.home .he-header .he-logo-cream { display: none; }
body.home .he-header .he-logo-ink { display: block; }
body.home .he-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--contrast); }

/* Smaller About photo row */
.he-photo-trio.wp-block-columns {
  max-width: 720px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ---------- v4.1 fixes ---------- */

/* Logo variant switching, high specificity */
.he-header .he-logo img.he-logo-ink,
.he-header .he-header-icon img.he-logo-ink { display: none !important; }
.he-header .he-logo img.he-logo-cream,
.he-header .he-header-icon img.he-logo-cream { display: block !important; }

body.home .he-header .he-logo img.he-logo-ink,
body.home .he-header .he-header-icon img.he-logo-ink { display: block !important; }
body.home .he-header .he-logo img.he-logo-cream,
body.home .he-header .he-header-icon img.he-logo-cream { display: none !important; }

/* Nav colors on the dark interior header */
body:not(.home) .he-header .wp-block-navigation a { color: #EAE8E6 !important; }
body:not(.home) .he-header .wp-block-navigation a:hover { color: #FFFFFF !important; }
body:not(.home) .he-header .wp-block-navigation__responsive-container-open { color: #EAE8E6 !important; }

/* Photo trio: smaller and centered on the text column, not the screen edge */
.he-photo-trio.wp-block-columns {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------------------------------------------------------------
   Compatibility hardening
   Some page-builder plugins (Pagelayer in particular) inject global
   typography rules like `body.pagelayer-body h1` that outrank normal
   theme styles. These rules restate the theme's own intent at a higher
   priority so the design holds regardless of what else is installed.
   --------------------------------------------------------------- */

body .wp-site-blocks,
body .wp-site-blocks p,
body .wp-site-blocks li {
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 300 !important;
  text-transform: none !important;
}

body .wp-site-blocks h1,
body .wp-site-blocks h2,
body .wp-site-blocks h3,
body .wp-site-blocks h4,
body .wp-site-blocks h5,
body .wp-site-blocks h6 {
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 300 !important;
  text-transform: none !important;
  color: var(--wp--preset--color--contrast) !important;
  letter-spacing: 0.01em !important;
}

/* Headings that sit on charcoal or over photos stay white. Must come
   after the rule above, which would otherwise force them to ink. */
body .wp-site-blocks .has-contrast-background-color h1,
body .wp-site-blocks .has-contrast-background-color h2,
body .wp-site-blocks .has-contrast-background-color h3,
body .wp-site-blocks .has-contrast-background-color h4,
body .wp-site-blocks .wp-block-cover h1,
body .wp-site-blocks .wp-block-cover h2,
body .wp-site-blocks .wp-block-cover h3,
body .wp-site-blocks .he-on-dark,
body .wp-site-blocks .he-hero-title {
  color: #FFFFFF !important;
}

body .wp-site-blocks .he-label {
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.28em !important;
  font-size: 0.7rem !important;
}

body .wp-site-blocks .he-hero-title {
  color: #FFFFFF !important;
  font-size: clamp(2.1rem, 3.4vw, 3rem) !important;
  line-height: 1.18 !important;
}

body .wp-site-blocks .he-section-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
  line-height: 1.25 !important;
}

body .wp-site-blocks .he-card-title {
  font-size: 1.28rem !important;
  font-weight: 400 !important;
}

body .wp-site-blocks .he-band-sentence {
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1.3rem !important;
  color: #FFFFFF !important;
}

body .wp-site-blocks .he-header .wp-block-navigation a,
body .wp-site-blocks .wp-block-button__link {
  font-family: var(--wp--preset--font-family--body) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
}

body .wp-site-blocks .he-header .wp-block-navigation a { letter-spacing: 0.22em !important; }
body .wp-site-blocks .wp-block-button__link { letter-spacing: 0.14em !important; }

/* Link colors */
body .wp-site-blocks .he-card-link a,
body .wp-site-blocks .he-more-link a,
body .wp-site-blocks .he-service-body a,
body .wp-site-blocks .he-lead a,
body .wp-site-blocks .he-body-muted a { color: var(--wp--preset--color--slate) !important; }

body .wp-site-blocks .he-post-card h2 a { color: var(--wp--preset--color--contrast) !important; }
body .wp-site-blocks .he-textlink a { color: rgba(255, 255, 255, 0.92) !important; }
body .wp-site-blocks .he-footer a { color: rgba(255, 255, 255, 0.85) !important; }
body .wp-site-blocks .he-footer a:hover { color: #FFFFFF !important; }

body .wp-site-blocks .btn-ghost .wp-block-button__link { color: #FFFFFF !important; }
body .wp-site-blocks .btn-ghost .wp-block-button__link:hover { color: var(--wp--preset--color--contrast) !important; }

/* The mid-page photo band works whether it is built as a Cover block or as
   a plain full-width Image block. Either way it crops to a band rather than
   running at the photo's full height. */

body .wp-site-blocks .wp-block-image.he-divider {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 0 !important;
}

body .wp-site-blocks .wp-block-image.he-divider img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 280px !important;
  max-height: 620px !important;
  object-fit: cover !important;
  object-position: center 60% !important;
}

/* ---------- v5: readability pass (Aug 18) ---------- */
/* Larger body sizes for easier reading. Armored with body .wp-site-blocks specificity + !important
   because Pagelayer injects body.pagelayer-body p { font-size: 14px } which beats bare classes.
   Labels/captions get explicit guards so they stay small. */

body .wp-site-blocks p { font-size: 1.02rem !important; }
body .wp-site-blocks .he-lead { font-size: 1.15rem !important; }
body .wp-site-blocks .he-service-body { font-size: 1.08rem !important; }
body .wp-site-blocks .he-body-muted { font-size: 1.05rem !important; }
body .wp-site-blocks .he-body-on-dark { font-size: 1.05rem !important; }
body .wp-site-blocks .he-card-body { font-size: 1rem !important; }
body .wp-site-blocks .he-hero-sub { font-size: 1.1rem !important; }
body .wp-site-blocks .he-band-sentence { font-size: 1.38rem !important; }
body .wp-site-blocks .single .wp-block-post-content p,
body.single .wp-site-blocks .wp-block-post-content p { font-size: 1.05rem !important; }

/* Small-text guards: keep labels and captions at their designed sizes */
body .wp-site-blocks .he-photo-caption { font-size: 0.7rem !important; }
body .wp-site-blocks .he-card-number { font-size: 0.7rem !important; }
body .wp-site-blocks .he-textlink a { font-size: 0.8rem !important; }

/* ---------- v6: Studio offer page (Aug 18) ---------- */

/* Hero cover */
.he-studio-hero .he-label { color: rgba(255,255,255,0.92) !important; }
.he-studio-hero h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.9rem) !important; line-height: 1.18; max-width: 17em; font-weight: 300; }
.he-studio-hero p { color: rgba(255,255,255,0.93) !important; max-width: 36em; }
.he-studio-hero .wp-block-cover__inner-container { padding-bottom: 6.5rem; }

/* Stat tiles */
.he-stat-num { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: clamp(2.1rem, 3.8vw, 3.2rem) !important; line-height: 1.1; color: #17181B; margin-bottom: 0.4rem; }
.he-stat-num small { font-size: 0.55em; color: #596B78; font-weight: 300; }
.he-stat-label { font-size: 0.7rem !important; letter-spacing: 0.24em; text-transform: uppercase; color: #596B78; font-weight: 400; }
.he-fine { font-size: 0.85rem !important; color: rgba(23,24,27,0.55); max-width: 44em; margin-left: auto; margin-right: auto; }

/* Warm fog full-width band */
.he-fogband { background: #EAE8E6; }

/* Steps */
.he-step-n { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #596B78; color: #596B78 !important; font-family: 'Raleway', sans-serif; font-size: 1.2rem !important; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.1rem; }
.he-step h3 { font-size: 1.12rem; font-weight: 400; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.he-step p { font-size: 0.94rem !important; color: rgba(23,24,27,0.72); line-height: 1.65; }

/* Browser + phone frames */
.he-browser { background: #fff; border: 1px solid rgba(89,107,120,0.25); box-shadow: 0 20px 50px rgba(23,24,27,0.14); }
.he-browser::before { content: '● ● ●'; display: block; background: #ECEAE8; color: #CDC6BA; font-size: 8px; letter-spacing: 4px; padding: 8px 14px; }
.he-browser img { width: 100%; display: block; }
.he-browser .wp-block-image { margin: 0; }
.he-phone { max-width: 230px; border-radius: 26px; border: 1px solid rgba(89,107,120,0.3); overflow: hidden; box-shadow: 0 20px 44px rgba(23,24,27,0.18); margin: 0 auto; }
.he-phone img { width: 100%; display: block; }
.he-phone .wp-block-image { margin: 0; }
.he-mini-caption { font-size: 0.85rem !important; color: rgba(23,24,27,0.55); margin-top: 0.9rem; }

/* Receipt cards */
.he-receipt { background: #fff; border: 1px solid rgba(89,107,120,0.18); box-shadow: 0 14px 34px rgba(23,24,27,0.08); padding: 1.1rem 1.1rem 0; height: 100%; display: flex; flex-direction: column; }
.he-receipt .wp-block-image { margin: 0 0 1.1rem; }
.he-receipt img { width: 100%; display: block; }
.he-receipt-cap { background: #F3F4F7; border-top: 1px solid rgba(89,107,120,0.28); margin: auto -1.1rem 0; padding: 1.15rem 1.4rem 1.3rem; }
.he-receipt-cap p { font-size: 0.9rem !important; color: rgba(23,24,27,0.72); line-height: 1.6; }
.he-receipt-cap .he-label { margin-bottom: 0.4rem; }

/* Package cards */
.he-pack-cols .wp-block-column { display: flex; }
.he-pack { background: #fff; border: 1px solid rgba(89,107,120,0.18); padding: 2.4rem 2.2rem 2.2rem; width: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.he-pack:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(23,24,27,0.08); }
.he-pack h3 { font-size: 1.3rem; font-weight: 400; margin: 0.4rem 0 0.2rem; }
.he-price { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 2.4rem !important; color: #17181B; margin: 0.5rem 0 1rem; }
.he-pack-li { font-size: 0.95rem !important; line-height: 1.55; color: rgba(23,24,27,0.78); padding: 0.3rem 0; margin: 0; }
.he-pack .wp-block-buttons { margin-top: auto; padding-top: 1.4rem; }
.he-pack .he-browser { margin-top: 1rem; }
.he-pack .he-mini-caption { font-size: 0.78rem !important; color: rgba(23,24,27,0.5); margin-top: 0.6rem; }
.he-btn-solid .wp-block-button__link { background: #596B78; color: #fff; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; border-radius: 0; padding: 0.85rem 2rem; }
.he-btn-solid .wp-block-button__link:hover { background: #17181B; }

/* Hosting option cards */
.he-host-card { background: #EAE8E6; padding: 1.8rem 2rem; height: 100%; }
.he-host-card h3 { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 1.08rem; letter-spacing: 0.02em; margin: 0.5rem 0 0.6rem; }
.he-host-card p { font-size: 0.93rem !important; color: rgba(23,24,27,0.75); line-height: 1.65; }

/* Accordion (details) */
.he-acc { border-bottom: 1px solid rgba(89,107,120,0.25); padding: 0.9rem 0; }
.he-acc summary { cursor: pointer; font-size: 1rem; font-weight: 400; letter-spacing: 0.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.he-acc summary::-webkit-details-marker { display: none; }
.he-acc summary::after { content: '+'; font-family: 'Raleway', sans-serif; color: #596B78; font-size: 1.3rem; font-weight: 300; }
.he-acc[open] summary::after { content: '–'; }
.he-acc p { font-size: 0.95rem !important; color: rgba(23,24,27,0.75); padding-top: 0.7rem; max-width: 52em; }

/* Small helpers */
.he-closer { font-size: 0.95rem !important; color: rgba(23,24,27,0.75); }
.he-cta-sub { font-size: 0.9rem !important; color: rgba(255,255,255,0.65); }
.he-cta-sub a { color: rgba(255,255,255,0.9); }

@media (max-width: 781px) {
  .he-studio-hero { min-height: 60vh; }
  .he-phone { margin-top: 2rem; }
}

/* v6.1 fixes: pack card alignment + rhythm, receipt cards hug content */
.he-pack, .he-pack p, .he-pack h3 { text-align: left; }
.he-pack > * { margin-block-start: 0 !important; }
.he-pack .he-pack-li { margin-block-start: 0.45rem !important; }
.he-pack h3 { margin-top: 0.4rem !important; }
.he-pack .he-price { margin: 0.4rem 0 1rem !important; }
.he-pack .he-browser { margin-top: 1.2rem !important; }
.he-pack .he-pack-photo { margin-top: 1.2rem !important; }
.he-pack .he-mini-caption { margin-top: 0.6rem !important; }
.he-pack .wp-block-buttons { margin-top: auto !important; padding-top: 1.4rem; }
.he-receipt { height: auto; }
.he-receipt-cap { margin-top: 1.1rem; }

/* v6.2 fixes: flex column + constrained layout auto-margins fight = shrink-wrapped centered children. Pin them full width. */
.he-pack > *, .he-receipt > * { margin-left: 0 !important; margin-right: 0 !important; width: 100%; }
.he-receipt-cap { width: calc(100% + 2.2rem) !important; margin-left: -1.1rem !important; margin-right: -1.1rem !important; }

/* v6.3 fixes: (1) hero left-aligned on the grid like the mockup; (2) v6 paragraph sizes re-declared at
   body .wp-site-blocks specificity because the v5 armored rule (body .wp-site-blocks p !important)
   was out-ranking the bare-class v6 rules and shrinking the stat numbers etc. */

.he-studio-hero.wp-block-cover { text-align: left; }
.he-studio-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size, 1140px); margin-left: auto; margin-right: auto; }
.he-studio-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; }

body .wp-site-blocks .he-studio-hero p { font-size: 1.08rem !important; }
body .wp-site-blocks .he-studio-hero p.he-label { font-size: 0.7rem !important; }
body .wp-site-blocks .he-stat-num { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: clamp(2.2rem, 4vw, 3.4rem) !important; line-height: 1.1; letter-spacing: 0.01em; }
body .wp-site-blocks .he-stat-label { font-size: 0.7rem !important; letter-spacing: 0.24em; }
body .wp-site-blocks .he-fine { font-size: 0.85rem !important; }
body .wp-site-blocks .he-step-n { font-size: 1.2rem !important; }
body .wp-site-blocks .he-step p { font-size: 0.94rem !important; }
body .wp-site-blocks .he-step p.he-step-n { font-size: 1.2rem !important; }
body .wp-site-blocks .he-mini-caption { font-size: 0.85rem !important; }
body .wp-site-blocks .he-pack .he-mini-caption { font-size: 0.78rem !important; }
body .wp-site-blocks .he-receipt-cap p { font-size: 0.9rem !important; }
body .wp-site-blocks .he-pack-li { font-size: 0.95rem !important; }
body .wp-site-blocks .he-price { font-family: 'Raleway', sans-serif; font-weight: 200; font-size: 2.4rem !important; }
body .wp-site-blocks .he-host-card p { font-size: 0.93rem !important; }
body .wp-site-blocks .he-acc p { font-size: 0.95rem !important; }
body .wp-site-blocks .he-closer { font-size: 0.95rem !important; }
body .wp-site-blocks .he-cta-sub { font-size: 0.9rem !important; }

/* v6.4 fixes: (1) heading sizes armored (theme h3 styles were out-ranking bare-class rules);
   (2) Studio page section labels/headings/intros widened to the wide grid so they align
   with the alignwide columns below them, like the mockup's single container. */

body .wp-site-blocks .he-step h3 { font-size: 1.12rem !important; font-weight: 400; letter-spacing: 0.03em; }
body .wp-site-blocks .he-pack h3 { font-size: 1.3rem !important; font-weight: 400; }
body .wp-site-blocks .he-host-card h3 { font-size: 1.08rem !important; font-weight: 400; letter-spacing: 0.02em; }
body .wp-site-blocks .he-acc summary { font-size: 1rem !important; }

.page-id-104 .wp-block-group.alignfull > .he-label,
.page-id-104 .wp-block-group.alignfull > .he-section-title,
.page-id-104 .wp-block-group.alignfull > .he-service-body { max-width: var(--wp--style--global--wide-size, 1140px); }

/* v6.5 fixes: (1) receipt caption band pinned to card edges (layout engine was overriding the
   negative margins, shifting the band right); (2) small tracked labels re-armored so body-text
   rules can't inflate them anywhere; (3) package bullets get the soft ink color + hanging indent. */

body .wp-site-blocks .he-receipt > .he-receipt-cap { margin-left: -1.1rem !important; margin-right: -1.1rem !important; width: calc(100% + 2.2rem) !important; max-width: none !important; }
body .wp-site-blocks .wp-block-group p.he-label { font-size: 0.7rem !important; font-weight: 400; letter-spacing: 0.28em; }
body .wp-site-blocks .he-pack-li { color: rgba(23,24,27,0.78) !important; padding-left: 1.15em; text-indent: -1.15em; }


/* ---------- v6.6: contact page email link (Aug 20) ---------- */
body .wp-site-blocks .he-mini-caption a { color: #596B78 !important; text-decoration: underline; text-underline-offset: 3px; }
body .wp-site-blocks .he-mini-caption a:hover { color: #17181B !important; }

/* ---- he-mobile-gutters: root padding (theme.json) is on; WP zeroes padding on nested
   groups, so restore the card paddings it removed, and give the header a gutter. ---- */
.wp-site-blocks .he-panel.has-global-padding { padding: 2.6rem 2.4rem; }
.wp-site-blocks .he-receipt.has-global-padding { padding: 1.1rem 1.1rem 0; }
.wp-site-blocks .he-receipt-cap.has-global-padding { padding: 1.15rem 1.4rem 1.3rem; }
.wp-site-blocks .he-pack.has-global-padding { padding: 2.4rem 2.2rem 2.2rem; }
.wp-site-blocks .he-host-card.has-global-padding { padding: 1.8rem 2rem; }
.he-header > .wp-block-group { padding-left: var(--wp--style--root--padding-left, 1.25rem); padding-right: var(--wp--style--root--padding-right, 1.25rem); }
@media (max-width: 781px) {
  .wp-site-blocks .he-panel.has-global-padding { padding: 1.8rem 1.25rem; }
  .wp-site-blocks .he-pack.has-global-padding { padding: 1.8rem 1.25rem; }
  .wp-site-blocks .he-host-card.has-global-padding { padding: 1.4rem 1.25rem; }
}
