/*
Theme Name: Yennova
Theme URI: https://yennova.com
Author: Yennova LLC
Description: Lightweight block theme for Yennova LLC (AI-driven biostatistics and data analytics for life sciences). Brand logo, colors (Midnight #0A2540, Cyan #00A8CC) and fonts (IBM Plex Serif, Inter) are built in and self-hosted. Go to Appearance > Yennova Setup after activating to create the site pages.
Version: 1.1.0
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: yennova
Tags: block-theme, full-site-editing, business, one-column, custom-colors, editor-style
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: #00A8CC; color: #fff; }
.screen-reader-text:focus { clip: auto; height: auto; width: auto; z-index: 100000; }

/* Full-width sections inside page content keep the side padding on small screens (needed on WordPress 6.5 and earlier). */
.has-global-padding > .alignfull.has-global-padding { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }

/* ---------- Header ---------- */
.yn-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid #E2E8F0; }
.admin-bar .yn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .yn-header { top: 46px; } }
.yn-logo { display: block; line-height: 0; }
.yn-logo img { width: var(--yn-logo-w, 240px); max-width: 60vw; height: auto; display: block; }
@media (max-width: 600px) { .yn-logo img { width: min(var(--yn-logo-w, 240px), 180px); } }
.yn-header .wp-block-navigation .current-menu-item > a,
.yn-header .wp-block-navigation a[aria-current="page"] { color: #00799A; }
.yn-header .wp-block-button__link { padding: .6rem 1.1rem; font-size: .925rem; }
@media (max-width: 781px) { .yn-header .yn-header-cta { display: none; } }

/* ---------- Eyebrow / kicker ---------- */
.yn-eyebrow { font-size: .8rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #00799A; margin-bottom: .5rem; }
.has-midnight-background-color .yn-eyebrow, .yn-dark .yn-eyebrow { color: #00A8CC; }

/* ---------- Hero ---------- */
.yn-hero { position: relative; overflow: hidden; }
.yn-hero::after {
	content: ""; position: absolute; inset: 0 0 0 auto; width: min(52vw, 640px); pointer-events: none; opacity: .9;
	background: url("assets/images/hero-network.svg") no-repeat right center / contain;
}
.yn-hero > * { position: relative; z-index: 1; }
.yn-hero-inner > * { max-width: 680px; }
.yn-hero-inner > h1 { max-width: 760px; }
.yn-hero-inner > * + * { margin-block-start: 1.25rem; }
@media (max-width: 900px) { .yn-hero::after { opacity: .18; width: 100%; } }

.yn-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.6; }

/* ---------- Cards ---------- */
.yn-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; height: 100%; }
.yn-card:hover { border-color: #00A8CC; box-shadow: 0 10px 30px -12px rgba(10,37,64,.25); transform: translateY(-2px); }
.wp-block-column > .yn-card { height: 100%; }
.yn-card h3 { font-size: 1.35rem; margin-top: .25rem; }
.yn-card p:last-child { margin-bottom: 0; }
.yn-card .yn-more a { font-weight: 600; text-decoration: none; }
.yn-card .yn-more a::after { content: " \2192"; }
.yn-card-icon { width: 44px; height: 44px; border-radius: 10px; background: #E6F6FA; display: grid; place-items: center; margin: 0 0 .75rem; }
.yn-card-icon svg { width: 24px; height: 24px; }
.yn-num { font-family: var(--wp--preset--font-family--plex-serif); color: #00A8CC; font-size: 1.1rem; font-weight: 600; }

/* ---------- Service sections ---------- */
.yn-service { border-top: 1px solid #E2E8F0; scroll-margin-top: 100px; }
.yn-service ul { margin-top: .5rem; }
.yn-service li { margin-bottom: .35rem; }
.yn-checklist { list-style: none; padding-left: 0 !important; }
.yn-checklist li { position: relative; padding-left: 1.6rem; }
.yn-checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; background: #00A8CC; }

/* ---------- Tags (experience) ---------- */
.yn-tags { font-size: .8rem !important; color: #00799A; font-weight: 600; letter-spacing: .04em; }

/* ---------- Dark band ---------- */
.yn-dark { color: #CBD5E1; }
.yn-dark h1, .yn-dark h2, .yn-dark h3 { color: #fff; }
.yn-dark a:not(.wp-block-button__link) { color: #7FD8EC; }
.yn-dark .wp-block-button__link { background: #00A8CC; color: #0A2540; }
.yn-dark .wp-block-button__link:hover { background: #fff; color: #0A2540; }
.yn-dark .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid #0A2540; color: #0A2540; background: transparent; padding: calc(.85rem - 2px) calc(1.5rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #0A2540; color: #fff; }

/* ---------- Placeholder text you must edit ---------- */
mark.yn-todo, .yn-todo { background: #FFF1A8; color: #5B4500; padding: 0 .2em; border-radius: 3px; }

/* ---------- Footer ---------- */
.yn-footer { color: #94A3B8; font-size: .925rem; }
.yn-footer a { color: #CBD5E1; text-decoration: none; }
.yn-footer a:hover { color: #00A8CC; }
.yn-footer img { width: calc(var(--yn-logo-w, 240px) * 1.5); max-width: 100%; height: auto; }
.yn-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }
.yn-footer ul { list-style: none; padding: 0; margin: 0; }
.yn-footer li { margin: 0 0 .5rem; }
.yn-footer .yn-legal { border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

/* ---------- Contact form ---------- */
.yn-form { display: grid; gap: 1.1rem; }
.yn-form .yn-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .yn-form .yn-row { grid-template-columns: 1fr; } }
.yn-form label { display: block; font-weight: 600; color: #0A2540; font-size: .925rem; margin-bottom: .35rem; }
.yn-form .yn-opt { font-weight: 400; color: #6B7280; }
.yn-form input[type=text], .yn-form input[type=email], .yn-form select, .yn-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: #0A2540; background: #fff;
	border: 1px solid #CBD5E1; border-radius: 6px; padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.yn-form textarea { min-height: 160px; resize: vertical; }
.yn-form input:focus, .yn-form select:focus, .yn-form textarea:focus { outline: none; border-color: #00A8CC; box-shadow: 0 0 0 3px rgba(0,168,204,.2); }
.yn-form .yn-consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: #4B5563; }
.yn-form .yn-consent input { margin-top: .3rem; }
.yn-form button { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 6px; padding: .85rem 1.75rem; background: #0A2540; color: #fff; justify-self: start; }
.yn-form button:hover { background: #00799A; }
.yn-form .yn-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.yn-notice { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; }
.yn-notice.is-success { background: #E6F6FA; border: 1px solid #00A8CC; color: #0A2540; }
.yn-notice.is-error { background: #FDECEC; border: 1px solid #E5484D; color: #7A1B1F; }

/* Outline buttons on dark bands */
.yn-dark .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.yn-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #0A2540; border-color: #fff; }

/* ---------- Blog (Insights) ---------- */
.yn-post-meta { font-size: .9rem; color: #6B7280; }
.yn-post-meta a { color: inherit; }
.yn-post-card { height: 100%; }
.yn-post-card .wp-block-post-featured-image { margin: 0 0 1rem; }
.yn-post-card .wp-block-post-featured-image img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.yn-post-card .wp-block-post-title a { text-decoration: none; color: #0A2540; }
.yn-post-card .wp-block-post-title a:hover { color: #00799A; }
.yn-post-card .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
.yn-post-card .wp-block-post-excerpt__more-link::after { content: " \2192"; }
.yn-article .wp-block-post-content > h2 { margin-top: 2.5rem; font-size: var(--wp--preset--font-size--x-large); }
.yn-article .wp-block-post-content > h3 { margin-top: 2rem; font-size: var(--wp--preset--font-size--large); }
.yn-article .wp-block-post-featured-image img { border-radius: 10px; }
.wp-block-post-terms.yn-eyebrow a { color: inherit; text-decoration: none; }
