/*
Theme Name: Jodev Press
Theme URI:
Author: Jodev Press
Description: Custom pixel-parity WordPress theme for Jodev Press, LLC.
Version: 1.0.0
Text Domain: jodev-press
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;700&family=Bitter:wght@400;700&display=swap');

:root {
	--jp-cream: #FAF8F5;
	--jp-tan: #D8D3BB;
	--jp-olive: #494A30;
	--jp-black: #1a1a1a;
	--jp-white: #ffffff;
	--jp-font-heading: 'Merriweather', serif;
	--jp-font-body: 'Open Sans', sans-serif;
	--jp-font-button: 'Bitter', serif;
	--jp-max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--jp-cream);
	color: var(--jp-black);
	font-family: var(--jp-font-body);
	font-size: 16px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--jp-font-heading);
	font-weight: 700;
	margin: 0 0 0.5em;
	line-height: 1.25;
}

p { margin: 0 0 1em; }

.container {
	max-width: var(--jp-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* Buttons */
.btn, .btn-outline, .btn-disabled {
	display: inline-block;
	font-family: var(--jp-font-button);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.85rem;
	padding: 14px 32px;
	border-radius: 0;
	border: 2px solid var(--jp-olive);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	text-align: center;
}

.btn {
	background: var(--jp-olive);
	color: var(--jp-white);
}
.btn:hover { background: #3a3b25; }

.btn-outline {
	background: transparent;
	color: var(--jp-olive);
	border-color: var(--jp-olive);
}
.btn-outline:hover { background: var(--jp-olive); color: var(--jp-white); }

.btn-disabled {
	background: #cfcabc;
	color: #8a8a7a;
	border-color: #cfcabc;
	cursor: not-allowed;
	opacity: 0.75;
}

/* Header */
.site-header {
	background: var(--jp-cream);
	border-bottom: 1px solid rgba(73,74,48,0.15);
	position: relative;
	z-index: 100;
}

.site-header-inner {
	max-width: var(--jp-max-width);
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-branding img.custom-logo { max-height: 56px; width: auto; }

.brand-leaf { font-size: 1.6rem; line-height: 1; }

.brand-text { display: flex; flex-direction: column; }

.brand-wordmark {
	font-family: var(--jp-font-heading);
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--jp-olive);
}

.brand-tagline {
	font-family: var(--jp-font-body);
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	color: var(--jp-olive);
}

.main-navigation { display: flex; align-items: center; gap: 24px; }

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	font-family: var(--jp-font-button);
	font-weight: 400;
	font-size: 1rem;
	text-transform: none;
	letter-spacing: normal;
	color: var(--jp-black);
}

.main-navigation a {
	position: relative;
	padding-bottom: 4px;
}
.main-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--jp-olive);
	transition: right 0.2s ease;
}
.main-navigation a:hover { color: var(--jp-olive); }
.main-navigation a:hover::after { right: 0; }

.site-header-search {
	flex: 1;
	display: flex;
	justify-content: center;
}

.header-search-form { display: flex; align-items: center; }
.header-search-form input[type="search"] {
	border: 1px solid var(--jp-olive);
	padding: 8px 12px;
	font-family: var(--jp-font-body);
	background: var(--jp-white);
	min-width: 160px;
}

.nav-toggle {
	display: none;
	background: none;
	border: 2px solid var(--jp-olive);
	padding: 8px 10px;
	cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle-icon { display: block; width: 22px; height: 2px; background: var(--jp-olive); position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: var(--jp-olive);
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

/* Hero */
.hero-band {
	background: var(--jp-tan);
	padding: 80px 0;
	text-align: left;
}
.hero-band .hero-inner {
	max-width: var(--jp-max-width);
	margin: 0 auto;
	padding: 0 24px;
}
.hero-band .hero-inner h1,
.hero-band .hero-inner p { max-width: 620px; }
.hero-band h1 { font-size: 2.6rem; color: var(--jp-black); }
.hero-band p { font-size: 1.1rem; margin-bottom: 1.5em; }

.hero-title-band {
	background: var(--jp-tan);
	padding: 60px 24px;
	text-align: center;
}
.hero-title-band h1 { font-size: 2.4rem; margin: 0; }

/* Section headings */
.section { padding: 64px 0; }
.section-heading {
	text-align: left;
	font-size: 2rem;
	margin-bottom: 40px;
}

/* Card grid */
.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.jodev-card {
	background: var(--jp-white);
	border: 1px solid rgba(73,74,48,0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.jodev-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.jodev-card--video img, .jodev-card--resource img, .jodev-card--podcast img { aspect-ratio: 3 / 2; }

.jodev-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.jodev-card-title { font-size: 1.1rem; margin: 0; }
.jodev-card-meta { font-size: 0.85rem; color: #555; }
.jodev-card-desc { font-size: 0.9rem; color: #444; flex-grow: 1; }
.jodev-card .btn, .jodev-card .btn-outline, .jodev-card .btn-disabled { margin-top: auto; align-self: flex-start; }

/* About Us */
.about-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
	padding: 64px 0;
}
.about-section.reverse { direction: rtl; }
.about-section.reverse > * { direction: ltr; }
.about-image { height: 100%; }
.about-section img {
	width: 100%;
	height: 630px;
	object-fit: cover;
	display: block;
}

/* "Our Story" section only: the image column stretches to match the full
   height of the (taller) text column, and the image itself sticks near the
   top of the viewport while that column scrolls past — releasing naturally
   once the bottom of the text column (ending "...healthcare professionals.")
   reaches it, so it scrolls normally into the next section from there. */
.about-section:not(.reverse) {
	align-items: stretch;
}
.about-section:not(.reverse) .about-image {
	height: auto;
	align-self: stretch;
}
.about-section:not(.reverse) .about-image img {
	position: sticky;
	top: 140px;
}

@media (max-width: 767px) {
	.about-section img { height: 320px; }
	.about-section:not(.reverse) .about-image img { position: static; top: auto; }
}
.about-bullets { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }

/* Legal */
.legal-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 64px 24px;
}
.legal-content h2, .legal-content h3 { margin-top: 1.5em; }
.legal-content ul { padding-left: 1.4em; }

/* Search */
.search-results-list { display: flex; flex-direction: column; gap: 24px; padding: 48px 0; }
.search-result-item { border-bottom: 1px solid rgba(73,74,48,0.15); padding-bottom: 24px; }
.search-result-type {
	display: inline-block;
	background: var(--jp-tan);
	color: var(--jp-olive);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	margin-bottom: 8px;
}
.search-empty { text-align: center; padding: 80px 24px; color: var(--jp-olive); }

/* Footer */
.site-footer {
	background: var(--jp-olive);
	color: var(--jp-white);
	padding: 48px 24px 32px;
}
.site-footer a { color: var(--jp-white); }
.footer-inner { max-width: var(--jp-max-width); margin: 0 auto; text-align: center; }

.footer-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 24px;
	padding: 0;
	margin: 0 0 32px;
}
.footer-nav a {
	font-weight: 400;
	font-size: 0.9rem;
	text-transform: none;
	letter-spacing: normal;
	position: relative;
	padding-bottom: 3px;
}
.footer-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--jp-white);
	transition: right 0.2s ease;
}
.footer-nav a:hover::after { right: 0; }
.footer-nav .menu-item-underline > a { text-decoration: underline; }

.footer-brand { margin-bottom: 28px; }
.footer-brand .footer-logo { max-height: 62px; width: auto; margin: 0 auto; }
.footer-brand .brand-wordmark, .footer-brand .brand-tagline { color: var(--jp-white); justify-content: center; }
.footer-brand .brand-text { align-items: center; }
.footer-brand .site-branding { justify-content: center; }

.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 28px; }
.footer-social a {
	width: 36px;
	height: 36px;
	border: 1px solid var(--jp-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	color: var(--jp-white);
	transition: background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
	background: var(--jp-white);
	color: var(--jp-olive);
}
.footer-social a svg { display: block; }

.footer-legal ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 0;
	margin: 0 0 16px;
	font-size: 0.8rem;
}
.footer-legal a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.2s ease; }
.footer-legal a:hover { text-decoration-color: var(--jp-white); }

.footer-copyright { font-size: 0.75rem; opacity: 0.85; }

/* Responsive */
@media (max-width: 1100px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: var(--jp-cream); flex-direction: column; align-items: flex-start; padding: 16px 24px; border-bottom: 1px solid rgba(73,74,48,0.15); display: none; }
	.main-navigation.is-open { display: flex; }
	.main-navigation ul { flex-direction: column; gap: 12px; width: 100%; }
	.header-search-form { width: 100%; margin-top: 12px; }
	.header-search-form input[type="search"] { width: 100%; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.about-section, .about-section.reverse { grid-template-columns: 1fr; direction: ltr; }
}

@media (max-width: 600px) {
	.card-grid { grid-template-columns: 1fr; }
	.hero-band h1, .hero-title-band h1 { font-size: 1.8rem; }
}
