/* Hostna Site — WordPress layer.
   site.css is the builder's design system, generated. This file carries only
   what differs because the markup is core blocks: an element that changed
   (span → p, strong → p, figure > img), WordPress' own wrappers, and links a
   customer adds by hand. Keep it small; a rule that could live in
   RenderTrait::css() belongs there. */

/* ── page frame ─────────────────────────────────────────────────────── */
.wp-site-blocks{padding:0}
.wp-block-template-part:has(> .hb-header){position:sticky;top:0;z-index:20}
.hb-section{margin-block:0}
.hb-section p:last-child{margin-bottom:0}

/* the kicker is a paragraph here, and ".hb-hero-copy p" would size it as body copy */
.hb-hero-copy p.hb-kicker{font-size:.74rem;max-width:none}

/* links a customer types into a paragraph must look like links */
:where(.wp-block-post-content) :where(p,li) a{color:var(--hb-primary);text-decoration:underline}

/* ── buttons (core/button carries the look of .hb-btn) ──────────────── */
.wp-block-buttons.hb-actions,.wp-block-buttons.hb-price-cta,.wp-block-buttons.hb-header-cta{display:flex;gap:14px;flex-wrap:wrap}
.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:48px;background:var(--hb-primary-solid);color:var(--hb-on-primary);padding:13px 26px;border-radius:var(--hb-btn-r,999px);font-weight:650;font-family:var(--hb-fb);font-size:1rem;line-height:1.2;border:0;cursor:pointer;text-decoration:none;transition:transform .25s var(--hb-ease),box-shadow .25s var(--hb-ease)}
.wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 18px 32px -14px color-mix(in srgb,var(--hb-primary) 80%,transparent);color:var(--hb-on-primary)}
.wp-block-button.is-style-outline > .wp-block-button__link{background:transparent;color:var(--hb-ink);border:0;box-shadow:inset 0 0 0 1.5px var(--hb-line);padding:13px 26px}
.wp-block-button.is-style-outline > .wp-block-button__link:hover{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--hb-ink) 35%,transparent);background:var(--hb-bg-alt);color:var(--hb-ink)}
.hb-hero-over .wp-block-button.is-style-outline > .wp-block-button__link{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.5)}
.hb-header-cta{margin-left:8px}
.hb-header-cta .wp-block-button__link{min-height:40px;padding:9px 20px;font-size:.92rem}
.hb-cta-band .wp-block-button__link{background:var(--hb-on-primary);color:var(--hb-primary-solid)}
.hb-cta-band .hb-cta-copy p{color:var(--hb-on-primary);opacity:.9;margin:.5em 0 0}
.hb-price:not(.hb-price-hot) .wp-block-button__link{background:transparent;color:var(--hb-ink);box-shadow:inset 0 0 0 1.5px var(--hb-line)}
.hb-price:not(.hb-price-hot) .wp-block-button__link:hover{background:var(--hb-bg-alt);color:var(--hb-ink)}
.hb-cta-band .wp-block-buttons{margin-top:0}
.hb-price .wp-block-buttons{margin-top:auto;justify-content:center}

/* ── header: site title + navigation block ──────────────────────────── */
.hb-brand{margin:0;color:var(--hb-ink)}
.hb-brand a{color:inherit;text-decoration:none}
.wp-block-navigation.hb-nav{margin-left:auto;font-size:.95rem;font-weight:500}
.wp-block-navigation.hb-nav .wp-block-navigation__container{gap:22px}
.hb-nav .wp-block-navigation-item__content{color:color-mix(in srgb,var(--hb-ink) 76%,var(--hb-bg))}
.hb-nav .wp-block-navigation-item__content:hover,.hb-nav .current-menu-item > .wp-block-navigation-item__content{color:var(--hb-ink)}
@media(max-width:900px){.wp-block-navigation.hb-nav{display:flex}}
/* the navigation block's own phone menu, in the site's colours */
.hb-nav .wp-block-navigation__responsive-container-open{min-height:44px;min-width:44px;border:1px solid var(--hb-line);border-radius:999px;background:var(--hb-card);color:var(--hb-ink)}
.hb-nav .wp-block-navigation__responsive-container.is-menu-open{background:var(--hb-bg);color:var(--hb-ink);padding:24px}
.hb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:1.25rem;font-weight:600;color:var(--hb-ink);padding:10px 0}

/* ── photographs: the class sits on the figure, not the img ─────────── */
.wp-block-image.hb-hero-fig,.wp-block-image.hb-about-fig{margin:0}
.wp-block-image.hb-hero-fig img,.wp-block-image.hb-about-fig img,.wp-block-image.hb-tile-photo img{width:100%;height:100%;object-fit:cover;border-radius:var(--hb-radius)}
.wp-block-image.hb-tile-photo img{border-radius:0}
.hb-masonry .wp-block-image.hb-tile-photo img{height:auto}
.wp-block-image.hb-hero-bgimg{position:absolute;inset:0;margin:0;border-radius:0}
.wp-block-image.hb-hero-bgimg img{width:100%;height:100%;object-fit:cover;border-radius:0}
.hb-tile-photo figcaption{position:absolute;left:16px;bottom:14px;margin:0;font-size:.9rem;color:#fff;z-index:2;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.hb-tile-cap{position:relative;z-index:2;margin:0;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.5)}

/* the icon is an empty group block here (the glyph is site.css' mask) */
.wp-block-group.hb-ico{display:grid;padding:0;gap:0}
.hb-list .hb-feature .hb-ico{grid-column:1;grid-row:1 / span 2;margin-bottom:0}
.hb-rows .hb-service > .hb-ico{margin:0}
.hb-list .hb-feature h3{grid-column:2}

/* phone header: the menu button carries the navigation, the hero carries the call to action */
.hb-brand{min-width:0}
.hb-header-cta .wp-block-button__link{white-space:nowrap}
/* (0,2,0): the buttons rule above shows it with the same weight, so the hide must match it */
@media(max-width:560px){.wp-block-buttons.hb-header-cta{display:none}}

/* ── elements that became paragraphs ────────────────────────────────── */
.hb-stat-num{display:block;margin:0;font-family:var(--hb-fh);font-size:clamp(2.1rem,3.6vw,2.8rem);font-weight:800;line-height:1.1;letter-spacing:-.03em;color:var(--hb-primary-ink)}
.hb-stat-label{margin:0;color:var(--hb-muted);font-size:.95rem}
.hb-service .hb-tag{margin-bottom:0}
.hb-ticks strong{color:var(--hb-ink)}
.hb-crow-k{margin:0;font-size:.8rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--hb-muted)}
.hb-crow-v{margin:0;color:var(--hb-ink);font-weight:500}
.hb-crow-v a{color:inherit;text-decoration:none}
.hb-step-n{margin:0;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-family:var(--hb-fh);font-weight:800;font-size:1.1rem;color:var(--hb-on-primary);background:var(--hb-primary-solid)}
.hb-step-body h3{margin:10px 0 4px}
.hb-step-body p{margin:0}
@media(max-width:620px){.hb-step-n{width:40px;height:40px}}
.hb-logo{margin:0}
.hb-price-amt{color:var(--hb-ink)}
.hb-hero-over .hb-hero-copy p{color:rgba(255,255,255,.88)}
.hb-hero-over .hb-hero-copy p.hb-kicker{color:#fff}

/* ── quotes: core/quote instead of figure > blockquote ──────────────── */
.wp-block-quote.hb-quote{margin:0;border:1px solid var(--hb-line);background:var(--hb-card);border-radius:var(--hb-radius);padding:clamp(22px,2.4vw,30px)}
.hb-quote p{margin:0;font-size:1.05rem;color:var(--hb-ink);flex:1}
.hb-quote cite{color:var(--hb-primary-ink);font-weight:650;font-size:.9rem;font-style:normal}
.wp-block-quote.hb-quote-big{max-width:860px;margin:0 auto;text-align:center;padding:clamp(28px,4vw,48px)}
.hb-quote-big p{font-family:var(--hb-fh);font-size:clamp(1.3rem,2.4vw,1.65rem);line-height:1.38}
/* core/details: the answer is a paragraph inside, padded like the static one */
.wp-block-details.hb-faq-item > p{padding:0 22px 20px}
.wp-block-details.hb-faq-item{margin:0}

/* ── footer ─────────────────────────────────────────────────────────── */
.hb-fbrand{margin:0 0 .4em;color:var(--hb-ink)}
.hb-flink{margin:0 0 9px;font-size:.95rem;color:var(--hb-muted)}
.hb-flink a{color:inherit;text-decoration:none}
.hb-flink a:hover{color:var(--hb-ink)}
.hb-footer-legal p{margin:0;font-size:.85rem}

/* ── contact form (hostna/contact-form) ─────────────────────────────── */
.hb-form{display:grid;gap:14px;margin-top:22px;max-width:520px}
.hb-field{display:grid;gap:6px;font-size:.85rem;font-weight:600;color:var(--hb-ink)}
.hb-field input,.hb-field textarea{width:100%;font:inherit;font-weight:400;color:var(--hb-ink);background:var(--hb-card);border:1px solid var(--hb-line);border-radius:12px;padding:12px 14px}
.hb-field input,.hb-field textarea{min-height:48px}
.hb-field input:focus,.hb-field textarea:focus{outline:3px solid var(--hb-primary-ink);outline-offset:1px;border-color:var(--hb-primary)}
.hb-field textarea{resize:vertical;min-height:120px}
.hb-form-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.hb-form-send{margin:0}
.hb-form-note{margin:0;padding:12px 14px;border-radius:12px;font-weight:500;color:var(--hb-ink);background:var(--hb-bg-alt);border:1px solid var(--hb-line)}
.hb-form-note.is-ok{border-color:var(--hb-accent)}
.hb-form-note.is-bad{border-color:#d63638}
.hb-form-legal{margin:0;font-size:.82rem;color:var(--hb-muted)}
.hb-footer-legal a{color:inherit;text-decoration:none}
.hb-footer-legal a:hover{color:var(--hb-ink)}
.hb-legal .hb-container{max-width:820px}

/* ── brand colours that follow the Styles panel ─────────────────────────
   The importer writes "Text on primary" and "Primary, as text" (checked at
   4.5:1). When the owner later changes Primary in Appearance > Editor >
   Styles, these derive both from the NEW Primary in the browser: dark text
   on a light Primary, white on a dark one, and a Primary deep (light page)
   or bright (dark page) enough to read as small text. Older browsers keep
   the importer's values. */
@supports (color: oklch(from red l c h)){
  body.hb-scheme-light,body.hb-scheme-dark{--hb-on-primary:oklch(from var(--wp--preset--color--primary) clamp(.16,(.64 - l) * 1000,1) 0 0);--hb-primary-solid:oklch(from var(--wp--preset--color--primary) calc((1 - clamp(0,(l - .64) * 1000,1)) * min(l,.58) + clamp(0,(l - .64) * 1000,1) * l) c h)}
  body.hb-scheme-light{--hb-primary-ink:oklch(from var(--wp--preset--color--primary) min(l,.5) c h)}
  body.hb-scheme-dark{--hb-primary-ink:oklch(from var(--wp--preset--color--primary) max(l,.8) c h)}
}
