/*
Theme Name: HayBoost
Theme URI: https://hayboost.com
Author: HayBoost
Description: Block theme for HayBoost advertising agency — hero, service cards, process, FAQ and a lead form. Styled after the R&C theme.
Version: 1.2.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hayboost
*/

html { scroll-behavior: smooth; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main > .wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }
.wp-block-post-content > .wp-block-group.alignfull + .wp-block-group.alignfull { margin-block-start: 0; }
:where(a) { text-underline-offset: .18em; }
img { height: auto; }

/* sticky header */
.hb-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent) !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .hb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hb-header { top: 46px; } }
.hb-logo svg { display: block; height: 44px; width: auto; }

/* eyebrow */
.hb-eyebrow { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
.hb-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }
.hb-eyebrow.has-text-align-center { display: flex; justify-content: center; }

/* hero */
.hb-hero { position: relative; overflow: hidden; }
.hb-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent) 0%, transparent 65%); pointer-events: none; }
.hb-hero > * { position: relative; z-index: 1; }
.hb-hero-card { box-shadow: 0 30px 60px -20px rgba(6, 12, 28, .5); }

/* cards */
.hb-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(16, 27, 51, .35); border-color: var(--wp--preset--color--accent) !important; }
.hb-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary); }
.hb-icon svg { width: 26px; height: 26px; }
.hb-step-num { font-family: var(--wp--preset--font-family--heading); font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--accent); }
.hb-check-list { list-style: none; padding-left: 0 !important; }
.hb-check-list li { position: relative; padding-left: 1.9em; margin-bottom: .7em; }
.hb-check-list li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101B33' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/68% no-repeat; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.wp-block-details summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.08rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--accent); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .7rem; color: var(--wp--preset--color--muted); }

/* form */
.hb-form { display: grid; gap: 1rem; }
.hb-form .hb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .hb-form .hb-row { grid-template-columns: 1fr; } }
.hb-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.hb-form input[type=text], .hb-form input[type=email], .hb-form input[type=tel], .hb-form input[type=url], .hb-form select, .hb-form textarea { width: 100%; box-sizing: border-box; padding: .8rem .95rem; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; font: inherit; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.hb-form textarea { min-height: 140px; resize: vertical; }
.hb-form input:focus, .hb-form select:focus, .hb-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent); border-color: var(--wp--preset--color--accent); }
.hb-form .hb-hp { position: absolute; left: -9999px; }
.hb-form button { justify-self: start; border: 0; cursor: pointer; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary); padding: .95rem 1.8rem; border-radius: 999px; font: inherit; font-weight: 700; }
.hb-form button:hover { background: var(--wp--preset--color--primary); color: #fff; }
.hb-form .hb-note { font-size: .82rem; color: var(--wp--preset--color--muted); margin: 0; }
.hb-alert { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; margin-bottom: 1rem; }
.hb-alert.ok { background: #E7F6EC; color: #145A2E; }
.hb-alert.err { background: #FDECEC; color: #8A1C1C; }
.hb-panel { box-sizing: border-box; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 30px -22px rgba(16,27,51,.35); }

/* chips */
.hb-chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 980px; }
.hb-chips li { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: .7rem 1.25rem; font-weight: 600; }
.hb-chips li:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* footer */
.hb-footer a { color: inherit; text-decoration: none; opacity: .85; }
.hb-footer a:hover { opacity: 1; color: var(--wp--preset--color--accent); }
.hb-footer ul { margin: 0; }
.hb-footer li { margin-bottom: .45rem; }

.is-style-outline > .wp-block-button__link { border-width: 2px; }

/* header (shortcode-rendered) */
.hb-header .wp-block-shortcode { margin: 0; }
.hb-brandlink { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.hb-brandlink svg { display: block; height: 44px; width: auto; flex: none; }
.hb-brandlink > span { display: flex; flex-direction: column; }
.hb-brand { font-family: Fraunces, Georgia, serif !important; font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--wp--preset--color--primary); }
.hb-tagline { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; color: var(--wp--preset--color--muted); }
.hb-nav { display: flex; align-items: center; gap: 1.1rem; }
.hb-links { display: flex; gap: 1.15rem; font-size: .98rem; font-weight: 600; }
.hb-links a, .hb-mpanel a:not(.hb-btn) { color: var(--wp--preset--color--primary); text-decoration: none; white-space: nowrap; }
.hb-links a:hover { color: var(--wp--preset--color--accent); }
.hb-lang { display: flex; gap: .25rem; font-size: .74rem; font-weight: 700; }
.hb-lang a { padding: .28rem .5rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--primary); text-decoration: none; }
.hb-lang a.on, .hb-lang a:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hb-btn { display: inline-block; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--primary) !important; font-weight: 700; font-size: .92rem; padding: .65rem 1.2rem; border-radius: 999px; text-decoration: none !important; white-space: nowrap; }
.hb-btn:hover { background: var(--wp--preset--color--primary); color: #fff !important; }
.hb-mnav { display: none; position: relative; }
.hb-mnav summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--wp--preset--color--line); display: grid; place-content: center; gap: 4px; }
.hb-mnav summary::-webkit-details-marker { display: none; }
.hb-mnav summary span { display: block; width: 18px; height: 2px; background: var(--wp--preset--color--primary); border-radius: 2px; }
.hb-mpanel { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 1rem 1.2rem; display: grid; gap: .8rem; min-width: 230px; box-shadow: 0 20px 40px -20px rgba(16,27,51,.35); font-weight: 600; z-index: 60; }
@media (max-width: 1180px) { .hb-links, .hb-header-cta { display: none; } .hb-mnav { display: block; } }
@media (max-width: 420px) { .hb-tagline { display: none; } .hb-lang a { padding: .25rem .4rem; } }

/* footer (shortcode-rendered) */
.hb-fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; }
@media (max-width: 860px) { .hb-fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hb-fgrid { grid-template-columns: 1fr; } }
.hb-fh { font-family: var(--wp--preset--font-family--body) !important; font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent) !important; margin: 0 0 .9rem; }
.hb-footer ul { list-style: none; padding: 0; font-size: .95rem; }
.hb-footer .wp-block-shortcode { max-width: 1200px; }

/* per-language fonts (Fraunces / Plus Jakarta have no Armenian or Cyrillic letters) */
body.hb-lang-hy { --wp--preset--font-family--heading: "Noto Serif Armenian", Georgia, serif; --wp--preset--font-family--body: "Noto Sans Armenian", system-ui, sans-serif; }
body.hb-lang-ru { --wp--preset--font-family--heading: Lora, Georgia, serif; --wp--preset--font-family--body: Manrope, system-ui, sans-serif; }
body.hb-lang-hy h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.2; }
body.hb-lang-ru h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
body.hb-lang-hy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; }
body.hb-lang-hy .hb-eyebrow, body.hb-lang-hy .hb-tagline { letter-spacing: .06em; }
