/*
Theme Name: OTRO Financial
Theme URI: https://otrofinancial.com
Author: OTRO Financial
Description: Custom block theme for OTRO Financial — black on white with gold accents, DM Serif Display headings and Source Sans 3 body text. Includes full-page patterns for Home, Funding Programs, Forgivable Loans, Strategy Session, Resources, Events and About.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otro-financial
*/

/* ---------- Base ---------- */
.otro-main { margin-block-start: 0; }
.otro-main > .wp-block-post-content > .alignfull:first-child { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.otro-main .wp-block-post-content > * + .alignfull { margin-block-start: 0; }

.otro-section { padding-block: clamp(56px, 8vw, 104px); }
.otro-section--compact { padding-block: clamp(40px, 5vw, 64px); }
.otro-section--flush-top { padding-block-start: 0; }

.otro-standard { padding-block: clamp(48px, 7vw, 96px); }
.has-text-align-center { text-align: center; }
.otro-page-hero__text > * { max-width: 860px; }
.otro-post-item { padding-block: 24px; border-bottom: 1px solid var(--wp--preset--color--line); }

.otro-eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark);
	margin-block-end: 0;
}
.otro-eyebrow--ink { color: var(--wp--preset--color--ink); }
.otro-eyebrow + .wp-block-heading { margin-block-start: 12px; }

.otro-link-strong { font-weight: 700; }
.otro-link-strong a { text-decoration: none; }
.otro-link-strong a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.wp-block-button.otro-button-lg .wp-block-button__link { font-size: 19px; padding: 19px 34px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.wp-block-button__link { text-decoration: none; }

/* ---------- Header ---------- */
.otro-header {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--line);
	position: relative;
	z-index: 20;
}
.otro-header__inner { min-height: 88px; gap: 32px; }
.otro-logo { margin: 0; line-height: 1; white-space: nowrap; }
.otro-logo a { text-decoration: none; color: var(--wp--preset--color--ink); display: inline-flex; align-items: baseline; gap: 8px; }
.otro-logo__mark { font-family: var(--wp--preset--font-family--display); font-size: 34px; letter-spacing: 0.02em; }
.otro-logo__word {
	font-size: 14px; font-weight: 700; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--wp--preset--color--gold-dark);
}
.otro-nav { flex-grow: 1; font-size: 16px; font-weight: 600; gap: 28px; }
.otro-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); text-decoration: none; padding-block: 6px; border-bottom: 3px solid transparent; }
.otro-nav .wp-block-navigation-item__content:hover,
.otro-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--wp--preset--color--gold); }
.otro-header__cta .wp-block-button__link { padding: 13px 22px; font-size: 16px; }
@media (max-width: 1100px) {
	.otro-nav { justify-content: flex-end; }
	.otro-header .otro-header__cta { display: none; }
}
.otro-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 32px 24px; }
.otro-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; }

/* ---------- Footer ---------- */
.otro-footer {
	border-top: 4px solid var(--wp--preset--color--gold);
	padding-block: 64px 32px;
	font-size: 15px;
}
.otro-footer__cols { gap: 48px; }
.otro-footer__label {
	font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--wp--preset--color--gold-dark);
	margin-block-end: 8px;
}
.otro-footer__links { line-height: 2; color: var(--wp--preset--color--body); margin-block-start: 0; }
.otro-footer__links a { color: var(--wp--preset--color--body); text-decoration: none; }
.otro-footer__links a:hover { color: var(--wp--preset--color--gold-dark); text-decoration: underline; }
.otro-footer__fine {
	margin-block-start: 40px; padding-block-start: 20px;
	border-top: 1px solid #DCD3BF;
	font-size: 13px; line-height: 1.5; color: var(--wp--preset--color--muted);
	gap: 16px 40px;
}
.otro-footer__fine p { margin: 0; max-width: 900px; }

/* ---------- Hero ---------- */
.otro-hero__cols { gap: clamp(32px, 5vw, 64px); align-items: center; }
.otro-hero__buttons { margin-block-start: 32px; }
.otro-hero__media { position: relative; padding-block-end: 56px; }
.otro-photo img { width: 100%; display: block; object-fit: cover; border-radius: 14px; }
.otro-photo img:not([src]), .otro-photo img[src=""] {
	aspect-ratio: 2 / 3; background: #EFEBE1; border: 1px dashed #BDB4A0;
}
.otro-photo--hero img { aspect-ratio: 4 / 4.2; }
.otro-photo--card img { aspect-ratio: 16 / 10; border-radius: 0; }
.otro-photo--portrait img { aspect-ratio: 4 / 5; }
.otro-photo--square img { aspect-ratio: 1; border-radius: 12px; }
.otro-hero-quote {
	position: absolute; left: -24px; bottom: 0; width: min(360px, 90%);
	background: var(--wp--preset--color--white);
	border-top: 5px solid var(--wp--preset--color--gold);
	border-radius: 12px; padding: 22px 24px;
	box-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
}
.otro-hero-quote p { margin: 0; }
.otro-hero-quote > * + * { margin-block-start: 8px; }
.otro-hero-quote__title { font-family: var(--wp--preset--font-family--display); font-size: 24px; line-height: 1.2; }
.otro-hero-quote__by { font-size: 13px; font-weight: 700; color: var(--wp--preset--color--muted); }

@media (max-width: 781px) {
	.otro-hero__media { padding-block-end: 0; }
	.otro-hero-quote { position: static; width: auto; margin-block-start: 16px; }
}

/* ---------- Trust strip ---------- */
.otro-trust { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 28px; }
.otro-trust__row { gap: 16px 40px; align-items: center; }
.otro-trust p { margin: 0; }
.otro-trust__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.otro-trust__names { flex: 1 1 520px; font-size: 18px; font-weight: 700; color: var(--wp--preset--color--muted); }
.otro-trust__names span { color: var(--wp--preset--color--gold); padding-inline: 6px; }
.otro-trust__award { background: var(--wp--preset--color--gold-soft); border-radius: 8px; padding: 10px 16px; font-size: 14px; line-height: 1.35; }

/* ---------- Section heads ---------- */
.otro-section-head { gap: 16px 40px; margin-block-end: 40px; }
.otro-section-head__text { max-width: 780px; }
.otro-section-head__text > * { margin-block: 0; }
.otro-section-head__text > * + * { margin-block-start: 12px; }
.otro-center-head { margin-block-end: 48px; }

/* ---------- Grids & cards ---------- */
.otro-grid { gap: 24px; margin-block-start: 40px; }
.otro-section-head + .otro-grid { margin-block-start: 0; }
.otro-grid--two { gap: 32px; }
.otro-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 28px;
}
.otro-card > *:first-child { margin-block-start: 0; }
.otro-card > * + * { margin-block-start: 12px; }
.otro-card--padded { padding: clamp(28px, 4vw, 48px); border-radius: 16px; }
.otro-card--white { border-color: transparent; }
.otro-card--soft, .otro-card.has-background { border-color: transparent; }
.otro-card--gold-border { border: 2px solid var(--wp--preset--color--gold); }
.otro-card--media { padding: 0; overflow: hidden; }
.otro-card--media .otro-photo { margin: 0; }
.otro-card--media > :not(.otro-photo) { margin-inline: 24px; }
.otro-card--media > :last-child { margin-block-end: 26px; }
.otro-card .wp-block-heading a { color: inherit; text-decoration: none; }
.otro-card .wp-block-heading a:hover { color: var(--wp--preset--color--gold-dark); }
.otro-card .wp-block-buttons { margin-block-start: 24px; }

.otro-program { position: relative; padding-block-start: 38px; }
.otro-program::before {
	content: ""; position: absolute; top: 24px; left: 28px;
	width: 36px; height: 4px; border-radius: 2px; background: var(--wp--preset--color--gold);
}

.otro-quote { display: flex; flex-direction: column; }
.otro-quote h3 { font-size: 26px; }
.otro-quote__by { margin-block-start: auto !important; padding-block-start: 12px; font-size: 15px; line-height: 1.4; color: var(--wp--preset--color--muted); }
.otro-quote__by strong { color: var(--wp--preset--color--ink); }

/* ---------- Steps ---------- */
.otro-step { padding-block-start: 22px; border-top: 3px solid var(--wp--preset--color--ink); }
.otro-step > * { margin-block: 0; }
.otro-step > * + * { margin-block-start: 12px; }
.otro-step__num { font-family: var(--wp--preset--font-family--display); font-size: 44px; line-height: 1; color: var(--wp--preset--color--gold-dark); }

/* ---------- Lists ---------- */
.otro-checks { list-style: none; padding: 0; }
.otro-checks li { position: relative; padding-inline-start: 32px; margin-block-end: 12px; }
.otro-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.25em; width: 20px; height: 20px;
	background: var(--wp--preset--color--gold-dark);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.otro-checks--inline { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--wp--preset--color--muted); margin-block-start: 24px; }
.otro-checks--inline li { margin: 0; }
.otro-checks--two { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 32px; margin-block-start: 28px; }
.otro-checks--two li { margin: 0; color: var(--wp--preset--color--body); }
.otro-checks--two strong { display: block; color: var(--wp--preset--color--ink); }

.otro-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 0; }
.otro-chips li { padding: 12px 20px; border: 1px solid #D9CFB8; border-radius: 999px; font-size: 17px; font-weight: 600; background: var(--wp--preset--color--white); }
.otro-chips--soft li { background: var(--wp--preset--color--gold-soft); border-color: transparent; font-size: 15px; font-weight: 700; padding: 8px 16px; }

.otro-numbers { padding-inline-start: 1.4em; }
.otro-numbers li { margin-block-end: 10px; }
.otro-numbers li::marker { font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--gold-dark); }

/* ---------- Gold band & stats ---------- */
.otro-band { border-radius: 16px; padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 80px); }
.otro-band__cols { gap: clamp(32px, 5vw, 64px); align-items: center; }
.otro-band .wp-block-heading { margin-block-start: 12px; }
.otro-band--row { gap: 24px 48px; margin-block-start: 64px; }
.otro-band__text { max-width: 780px; }
.otro-band__text > * { margin-block: 0; }
.otro-band__text > * + * { margin-block-start: 10px; }
.otro-stats > * + * { margin-block-start: 14px; }
.otro-stat {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	background: var(--wp--preset--color--white); border-radius: 12px; padding: 20px 24px; margin: 0;
}
.otro-stat span { font-size: 17px; font-weight: 600; }
.otro-stat strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); white-space: nowrap; }

/* ---------- Forgivable loans ---------- */
.otro-bignum { display: flex; flex-direction: column; margin: 0; }
.otro-bignum span { font-size: 16px; font-weight: 700; color: var(--wp--preset--color--muted); }
.otro-bignum strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.otro-bignums { border-top: 6px solid var(--wp--preset--color--gold); box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08); }
.otro-bignums .wp-block-separator { margin-block: 20px; border-color: var(--wp--preset--color--line); }
.otro-tile-wrap > * { margin-block: 0; }
.otro-tile-wrap > * + * { margin-block-start: 14px; }
.otro-tile {
	min-height: 120px; border-radius: 10px; display: flex; flex-direction: column;
	align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-align: center;
}
.otro-tile strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 48px; line-height: 1; }
.otro-tile--0 { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--muted); }
.otro-tile--0 strong { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 18px; }
.otro-tile--1 { background: #E3B93B; }
.otro-tile--2 { background: #EFCF6E; }
.otro-tile--3 { background: #F6E2A3; }
.otro-terms { margin-block-start: 48px; }
.otro-term-value { font-family: var(--wp--preset--font-family--display); font-size: clamp(32px, 3.5vw, 44px); line-height: 1.05; }
.otro-cta-row { gap: 24px 48px; }
.otro-cta-row .wp-block-heading { margin: 0; max-width: 780px; }
.otro-cta-row__text > * { margin-block: 0; }
.otro-cta-row__text > * + * { margin-block-start: 12px; }
.otro-disclaimer { margin-block-start: 28px; }

/* ---------- Pricing & booking ---------- */
.otro-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.otro-price strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 48px; line-height: 1; }
.otro-price span { font-size: 16px; color: var(--wp--preset--color--muted); }
.otro-price--stack { flex-direction: column; gap: 4px; margin: 0; }
.otro-price--stack strong { font-size: 56px; }
.otro-booking { background: var(--wp--preset--color--white); border-radius: 12px; padding: 24px 28px; gap: 20px 32px; margin-block-start: 28px; }
.otro-booking > p:last-child { max-width: 220px; margin: 0; }
.otro-facts { margin-block-start: 0; gap: 32px; }
.otro-fact > * { margin-block: 0; }
.otro-fact > * + * { margin-block-start: 8px; }
.otro-fact__value { font-family: var(--wp--preset--font-family--display); font-size: 30px; line-height: 1.1; }

/* ---------- Book ---------- */
.otro-book { gap: 32px; align-items: center; }
.otro-book__cover img { aspect-ratio: 2 / 3; border-radius: 6px; box-shadow: 0 12px 30px rgba(20, 20, 20, 0.15); }
.otro-stars { font-weight: 700; }
.otro-stars span { color: #B8860B; letter-spacing: 2px; font-size: 20px; }

/* ---------- Video cards ---------- */
.otro-video .wp-block-embed, .otro-video .wp-block-audio { margin: 0; }
.otro-video .wp-block-embed iframe { border-radius: 8px; }
.otro-video .otro-eyebrow { font-size: 12px; margin-block-start: 16px; }

/* ---------- Events ---------- */
.otro-events { border-top: 1px solid var(--wp--preset--color--line); }
.otro-event { gap: 28px; padding-block: 22px; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.otro-event p { margin: 0; }
.otro-event__date {
	flex: 0 0 104px; height: 88px; border-radius: 10px; background: var(--wp--preset--color--gold-soft);
	display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.otro-event__date span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--gold-dark); }
.otro-event__date span:last-child { color: var(--wp--preset--color--muted); letter-spacing: 0; }
.otro-event__date strong { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 36px; line-height: 1; }
.otro-event__info { flex: 1 1 auto; }
.otro-event__info > * { margin-block: 0; }
.otro-event__info > * + * { margin-block-start: 4px; }
.otro-event__when { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.otro-event__when span { padding: 3px 12px; border: 1px solid #D9CFB8; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--wp--preset--color--muted); }
@media (max-width: 700px) {
	.otro-event { flex-wrap: wrap !important; gap: 12px 20px; }
	.otro-event__date { flex-basis: 84px; height: 76px; }
	.otro-event__info { flex-basis: calc(100% - 110px); }
	.otro-event__when { flex-direction: row; align-items: center; margin-inline-start: 104px !important; }
}

/* ---------- Award ---------- */
.otro-award .otro-photo { margin: 0; }

/* ---------- Closing CTA ---------- */
.otro-cta .wp-block-buttons { margin-block-start: 28px; }
