/* ==========================================================================
   No BS Relationship Coach: component styles
   Colors, fonts and sizes come from theme.json (Appearance > Editor > Styles),
   so changing them there changes the whole site. This file only handles layout.
   ========================================================================== */

:root {
	--nb-red: var(--wp--preset--color--red, #B20111);
	--nb-red-dark: var(--wp--preset--color--red-dark, #8F000D);
	--nb-ink: var(--wp--preset--color--ink, #000309);
	--nb-navy: var(--wp--preset--color--navy, #0B1730);
	--nb-slate: var(--wp--preset--color--slate, #596275);
	--nb-strip: var(--wp--preset--color--strip, #F8F8FA);
	--nb-line: var(--wp--preset--color--line, #E4E6EA);
	--nb-body: var(--wp--preset--font-family--body, "Hanken Grotesk", sans-serif);
	--nb-display: var(--wp--preset--font-family--display, "Barlow Condensed", "Arial Narrow", sans-serif);
	--nb-gutter: clamp(16px, 3.8vw, 39px);
	--nb-wide: 1200px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks img { height: auto; }
:where(a, button, input):focus-visible { outline: 3px solid var(--nb-red); outline-offset: 2px; }

/* ---------- Header ---------- */
.nb-header { background: #fff; min-height: 82px; box-shadow: 0 1px 0 rgba(0,0,0,.07); padding: 0 clamp(16px, 4.5vw, 46px); display: flex; align-items: center; position: relative; z-index: 5; }
.nb-header > .nb-header__inner { width: 100%; gap: 24px; }
.nb-logo { margin: 0; line-height: 0; flex: none; }
.nb-logo img { display: block; max-width: 100%; height: auto; }
.nb-header__right { gap: 54px; }
.nb-nav { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.nb-nav .wp-block-navigation__container { gap: 38px; }
.nb-nav .wp-block-navigation-item__content { padding: 4px 0 9px; color: var(--nb-navy); text-decoration: none; border-bottom: 2px solid transparent; }
.nb-nav .wp-block-navigation-item__content:hover { color: var(--nb-red); }
.nb-nav .current-menu-item > .wp-block-navigation-item__content,
.nb-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--nb-red); border-bottom-color: var(--nb-red); }
.nb-search { line-height: 0; }
.home .nb-nav .wp-block-navigation-item:nth-child(1) > .wp-block-navigation-item__content,
.blog .nb-nav .wp-block-navigation-item:nth-child(2) > .wp-block-navigation-item__content { color: var(--nb-red); border-bottom-color: var(--nb-red); }
.nb-search .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; }
.nb-search .wp-block-search__button { background: none !important; border: 0; padding: 4px; margin: 0; color: var(--nb-navy); }
.nb-search .wp-block-search__button:hover { color: var(--nb-red); }
.nb-search .wp-block-search__button svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Hero (book) ---------- */
.nb-hero--book {
	background: #ecd8c5 url("images/hero-bg-book.svg") center bottom / cover no-repeat;
	min-height: min(41vw, 560px);
	padding: clamp(22px, 2.6vw, 44px) var(--nb-gutter);
	display: flex; align-items: center; overflow: hidden;
}
.nb-hero--book > .nb-hero__inner { width: 100%; margin-top: 0; margin-bottom: 0; align-items: center; gap: clamp(16px, 3vw, 48px); padding-left: clamp(0px, 2.85vw, 44px); flex-wrap: nowrap; }
.nb-hero__title { font-family: var(--nb-display); font-weight: 800; text-transform: uppercase; margin: 0; font-size: clamp(44px, 6.8vw, 86px); line-height: .845; letter-spacing: -.03em; color: var(--nb-ink); }
.nb-hero__title mark { display: block; background: none; }
.nb-hero__text { margin: clamp(6px, 1.22vw, 16px) 0 0; max-width: 22.2em; font-size: clamp(16px, 1.79vw, 22px); line-height: 1.26; font-weight: 500; color: #0b1220; }
.nb-hero__inner .wp-block-buttons { margin: clamp(14px, 1.7vw, 24px) 0 0; }
.wp-block-button .wp-block-button__link.wp-element-button { font-size: 16px; }
.nb-hero__btn .wp-block-button__link { min-width: 234px; min-height: 45px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.nb-hero__book { margin: 0; line-height: 0; text-align: right; padding-right: clamp(0px, 3vw, 48px); }
.nb-hero__book img { height: min(36vw, 480px); width: auto; max-width: none; display: inline-block; filter: drop-shadow(0 22px 22px rgba(60,30,20,.30)) drop-shadow(0 4px 6px rgba(60,30,20,.25)); transform: rotate(1.5deg); }

/* ---------- Feature strip ---------- */
.nb-strip { background: var(--nb-strip); border-bottom: 1px solid #eef0f2; min-height: 95px; padding: 0 var(--nb-gutter); display: flex; align-items: center; }
.nb-strip > .nb-strip__grid { display: grid; grid-template-columns: 235fr 237fr 254fr 220fr; align-items: center; width: 100%; margin: 0; }
.nb-strip__grid > * { margin: 0 !important; }
.nb-feature { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; padding: 4px 0 4px 28px; min-height: 50px; position: relative; }
.nb-feature:first-child { padding-left: 9px; gap: 18px; }
.nb-feature + .nb-feature::before { content: ""; position: absolute; left: 0; top: -2px; bottom: -2px; width: 1px; background: #dcdfe4; }
.nb-feature svg { width: 38px; height: 38px; flex: none; color: var(--nb-red); }
.nb-feature:first-child svg { width: 46px; height: 46px; }
.nb-feature .wp-block-html { margin: 0; line-height: 0; flex: none; }
.nb-feature__title { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; letter-spacing: .005em; text-transform: uppercase; line-height: 1.2; }
.nb-feature__text { margin: 0; font-size: 12.3px; letter-spacing: -.012em; line-height: 1.27; max-width: 140px; text-wrap: balance; color: var(--nb-slate); }

/* ---------- Section headings ---------- */
.nb-section { padding-left: var(--nb-gutter); padding-right: var(--nb-gutter); }
.nb-section > .nb-eyebrow { margin: 0 auto; text-align: center; color: var(--nb-red); font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nb-eyebrow::after { content: ""; display: block; width: 40px; height: 2px; background: var(--nb-red); margin: 8px auto 0; }
.nb-section > .nb-section__title { margin: 6px auto 0; text-align: center; font-weight: 800; font-size: 32.3px; letter-spacing: 0; line-height: 1.1; }
.nb-latest { padding-top: 15px; padding-bottom: 16px; }
.nb-latest > .nb-section__title { margin-bottom: 15px; }
.nb-more { padding-top: 13px; padding-bottom: 16px; }
.nb-more > .nb-eyebrow { margin-bottom: 7px; }
.nb-more > .nb-eyebrow::after { margin-top: 5px; }
.nb-index { padding-top: 40px; padding-bottom: 56px; }
.nb-index > .nb-section__title { margin-bottom: 28px; }
.nb-archive-desc { text-align: center; color: var(--nb-slate); margin: -12px auto 24px; max-width: 40em; }

/* ---------- Article grid + cards ---------- */
.nb-cards .wp-block-post-template { column-gap: 25px; row-gap: 8px; list-style: none; margin: 0; padding: 0; }
.nb-index .wp-block-post-template { row-gap: 25px; }
.nb-cards .wp-block-query { margin-top: 0 !important; }
.nb-cards .wp-block-post-template > li { margin: 0; padding: 0; }
.nb-cards .wp-block-post-template > li > .wp-block-template-part { height: 100%; display: block; }

.nb-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,25,40,.07), 0 6px 18px rgba(20,25,40,.07); }
.nb-card > * { margin: 0 !important; }
.nb-card__img { line-height: 0; }
.nb-card__img a { display: block; }
.nb-card__img img, .nb-img-fallback { width: 100%; height: auto; aspect-ratio: 218 / 102; object-fit: cover; display: block; }
.nb-img-fallback { background: linear-gradient(135deg, #1d1719 0%, #3a1418 60%, #6d1119 100%); }
.nb-card__body { display: flex; flex-direction: column; flex: 1; padding: 7px 14px 10px; }
.nb-card__body > * { margin: 0; }
.nb-card__title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 19px; max-width: 188px; }
.nb-card__title a { color: var(--nb-ink); text-decoration: none; }
.nb-card__title a:hover { color: var(--nb-red); }
.nb-card__excerpt { display: flex; flex-direction: column; flex: 1; }
.nb-card__excerpt .wp-block-post-excerpt__excerpt { margin: 5.5px 0 0; flex: 1; max-width: 187px; font-size: 14.4px; line-height: 17.7px; letter-spacing: -.008em; color: var(--nb-slate); }
.nb-card__excerpt .wp-block-post-excerpt__more-text { margin: 6px 0 0; line-height: 15px; }
.nb-card__excerpt .wp-block-post-excerpt__more-link { color: var(--nb-red); font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; }
.nb-card__excerpt .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }

.nb-more .nb-card__img img, .nb-more .nb-img-fallback { aspect-ratio: 219 / 72; }
.nb-more .nb-card__body { padding: 4.5px 12px 11px 13px; }
.nb-more .nb-card__title { font-size: 16px; line-height: 16.3px; }
.nb-more .nb-card__excerpt .wp-block-post-excerpt__excerpt { font-size: 13.6px; line-height: 15px; margin-top: 4px; }
.nb-more .nb-card__excerpt .wp-block-post-excerpt__more-text { margin-top: 7px; }
.nb-more .nb-card__excerpt .wp-block-post-excerpt__more-link { font-size: 12px; }
.nb-index .nb-card__title { font-size: 19px; line-height: 21px; max-width: none; }
.nb-index .nb-card__excerpt .wp-block-post-excerpt__excerpt { max-width: none; font-size: 15px; line-height: 19px; }

.wp-block-query-pagination { gap: .5rem; margin-top: 2.5rem; font-weight: 700; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: .4rem .8rem; border-radius: 2px; text-decoration: none; color: var(--nb-ink); }
.wp-block-query-pagination a:hover { color: var(--nb-red); }
.wp-block-query-pagination .page-numbers.current { background: var(--nb-red); color: #fff; }

/* ---------- Email band ---------- */
.nb-cta { position: relative; min-height: 130px; padding: 0 var(--nb-gutter); color: #fff; display: flex; align-items: center; background: #14090b url("images/cta-bg.jpg") center / cover no-repeat; }
.nb-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,12,.55) 0%, rgba(10,8,12,.25) 55%, rgba(10,8,12,0) 100%); pointer-events: none; }
.nb-cta > .nb-cta__grid { position: relative; width: 100%; margin: 0; align-items: center; gap: 48px; padding: 0 clamp(0px, 1.5vw, 15px) 0 clamp(0px, 3.3vw, 34px); flex-wrap: nowrap; }
.nb-cta .wp-block-heading.nb-cta__title { margin: 0; color: #fff; font-size: 32.3px; font-weight: 700; letter-spacing: 0; line-height: 1.1; }
.nb-cta .nb-cta__text { margin: 6px 0 0; font-size: 17px; line-height: 1.3; color: rgba(255,255,255,.93); max-width: 26.5em; }
.nb-cta .wp-block-html { margin: 0; }
.nb-cta__grid > .wp-block-column:first-child { flex: 1 1 0 !important; }
.nb-cta__grid > .wp-block-column:last-child { flex: 0 0 385px !important; }
.nb-form { display: flex; gap: 9px; max-width: 385px; margin: 0; }
.nb-form input[type="email"] { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 3px; background: #fff; color: var(--nb-ink); font: 400 13px/1 var(--nb-body); }
.nb-form input::placeholder { color: #5b6478; }
.nb-form button { flex: none; height: 40px; padding: 0 22px; border: 0; border-radius: 3px; background: var(--nb-red); color: #fff; font: 700 14px/1 var(--nb-body); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.nb-form button:hover { background: var(--nb-red-dark); }
.nb-form__note { margin: 11px 0 0; font-size: 12.5px; line-height: 1.2; color: rgba(255,255,255,.92); }
.nb-cta :where(a, button, input):focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.nb-footer { border-top: 1px solid #e9ebee; background: #fff; min-height: 75px; padding: 0 var(--nb-gutter); display: flex; align-items: center; }
.nb-footer > .nb-footer__inner { width: 100%; gap: 16px 16px; flex-wrap: nowrap; }
.nb-footer__nav { flex: 0 0 auto; }
.nb-footer__nav { font-size: 12.5px; font-weight: 500; }
.nb-footer__nav .wp-block-navigation__container { gap: 22px; }
.nb-footer__nav .wp-block-navigation-item__content { color: var(--nb-navy); text-decoration: none; padding: 0; }
.nb-footer__nav .wp-block-navigation-item__content:hover { color: var(--nb-red); }
.nb-footer__copy { margin: 0; font-size: 11px; color: var(--nb-slate); white-space: nowrap; }

/* ---------- Single post / page ---------- */
.nb-single { padding: clamp(32px, 5vw, 56px) var(--nb-gutter) clamp(40px, 6vw, 64px); }
.nb-single__cat { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.nb-single__cat a { color: var(--nb-red); text-decoration: none; }
.nb-single .nb-single__title { margin: 0 auto 16px; font-size: clamp(30px, 5vw, 46px); }
.nb-meta { gap: 16px; margin-bottom: 28px; color: var(--nb-slate); font-size: 14px; }
.nb-single .wp-block-post-featured-image { margin-bottom: 36px; }
.nb-single .wp-block-post-featured-image img { border-radius: 3px; width: 100%; }
.nb-single .wp-block-post-content { line-height: 1.7; }
/* ONE TEXT SIZE FOR EVERY POST.
   Set the size once on the Post Content block (Appearance > Editor > Templates > Single, click the post text,
   then Typography > Size). Everything inside a post inherits it, including text that was pasted in with its own
   size or given a custom size block by block. Headings keep their own sizes. */
.nb-single .wp-block-post-content :is(p, li, blockquote, td, th, a, span, strong, em, b, i, u, mark, font) { font-size: inherit !important; }
.nb-single .wp-block-post-content h2 { margin-top: 2em; }
.nb-single .wp-block-post-content h3 { margin-top: 1.7em; }
.nb-tags { margin-top: 40px; font-size: 14px; color: var(--nb-slate); }
.nb-postnav { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--nb-line); font-weight: 700; gap: 16px; }
.nb-postnav a { text-decoration: none; }
.nb-404 { text-align: center; }
.nb-search-page { margin: 0 auto; max-width: 560px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.nb-cards .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 20px; }
}
@media (max-width: 900px) {
	.nb-header { min-height: 70px; }
	.nb-logo img { width: 300px; }
	.nb-header__right { gap: 20px; }
	.nb-strip { padding-top: 22px; padding-bottom: 22px; }
	.nb-strip > .nb-strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
	.nb-feature:nth-child(3)::before { display: none; }
	.nb-feature:nth-child(3) { padding-left: 9px; }
	.nb-cta { padding-top: 34px; padding-bottom: 34px; }
	.nb-footer { padding-top: 22px; padding-bottom: 22px; }
	.nb-footer > .nb-footer__inner { flex-direction: column; flex-wrap: wrap; text-align: center; justify-content: center; }
	.nb-footer .nb-logo img { width: 270px; }
}
/* ---------- Phone ---------- */
@media (max-width: 781px) {
	.nb-hero--book { min-height: 0; padding-top: 28px; padding-bottom: 28px; }
	.nb-hero--book > .nb-hero__inner { padding-left: 0; gap: 22px; flex-wrap: wrap; }
	.nb-hero__inner > .wp-block-column { flex-basis: 100% !important; }
	.nb-hero__book { text-align: center; padding: 0; }
	.nb-hero__book img { height: 300px; }
	.nb-hero__text { max-width: 100%; }
	.nb-cta > .nb-cta__grid { padding: 0; gap: 22px; }
	.nb-cta > .nb-cta__grid { flex-wrap: wrap; }
	.nb-cta__grid > .wp-block-column:is(:first-child, :last-child) { flex: 1 1 100% !important; }
}
@media (max-width: 600px) {
	.nb-header { padding: 0 16px; min-height: 64px; }
	.nb-logo img { width: 200px; }
	.nb-cards .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
	.nb-strip > .nb-strip__grid { grid-template-columns: 1fr; }
	.nb-feature, .nb-feature:nth-child(3) { padding-left: 9px; }
	.nb-feature + .nb-feature::before { display: none; }
	.nb-section > .nb-section__title { font-size: 26px; }
	.nb-card__title, .nb-card__excerpt .wp-block-post-excerpt__excerpt { max-width: none; }
	.nb-card .nb-card__title { font-size: 20px; line-height: 1.15; }
	.nb-card .nb-card__excerpt .wp-block-post-excerpt__excerpt { font-size: 16px; line-height: 1.45; letter-spacing: 0; margin-top: 8px; }
	.nb-card .nb-card__body { padding: 12px 16px 14px; }
	.nb-feature:first-child svg { width: 38px; height: 38px; }
	.nb-form { flex-direction: column; }
	.nb-form input[type="email"], .nb-form button { height: 46px; }
	.nb-hero__btn .wp-block-button__link { min-width: 0; width: 100%; }
	.nb-hero__inner .wp-block-buttons, .nb-hero__btn { width: 100%; }
}
