/**
 * Theme Name: Nomad Notes
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Sacramento&display=swap');

body {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
}

/*
 * Shared scale for post content + destination hero title (same visual rhythm as posts).
 * Mobile overrides at max-width 767px below.
 */
:root {
	--nomadnotes-content-font-size: var(--wp--preset--font-size--nomadnotes-body, 18px);
	--nomadnotes-content-line-height: 1.7;
	--nomadnotes-content-color: #333;
	--nomadnotes-h1-size: var(--wp--preset--font-size--nomadnotes-h1, 2.625rem);
	--nomadnotes-h1-line-height: 1.2;
	--nomadnotes-h1-letter-spacing: -0.02em;
	--nomadnotes-h2-size: var(--wp--preset--font-size--nomadnotes-h2, 1.75rem);
	--nomadnotes-h2-line-height: 1.3;
	--nomadnotes-h2-letter-spacing: -0.02em;
	--nomadnotes-h3-size: var(--wp--preset--font-size--nomadnotes-h3, 1.5rem);
	--nomadnotes-h3-line-height: 1.35;
	--nomadnotes-h3-letter-spacing: -0.01em;
	--nomadnotes-h4-size: var(--wp--preset--font-size--nomadnotes-h4, 1.25rem);
	--nomadnotes-h4-line-height: 1.4;
	--nomadnotes-h5-size: var(--wp--preset--font-size--nomadnotes-h5, 1.125rem);
	--nomadnotes-h5-line-height: 1.45;
	--nomadnotes-h6-size: var(--wp--preset--font-size--nomadnotes-h6, 1rem);
	--nomadnotes-h6-line-height: 1.5;
	--nomadnotes-blockquote-size: 1.125rem;
	--nomadnotes-blockquote-line-height: 1.6;
}

/* ==========================================================================
   Post content typography – Salt in our Hair inspired
   Applies only to single post/article text content
   ========================================================================== */

body.single-post .entry-content,
body.single-post .wp-block-post-content,
body.singular .entry-content,
body.singular .wp-block-post-content {
	font-size: var(--nomadnotes-content-font-size);
	line-height: var(--nomadnotes-content-line-height);
	letter-spacing: 0;
	color: var(--nomadnotes-content-color);
	max-width: 720px;
}

body.single-post .entry-content p,
body.single-post .wp-block-post-content p,
body.singular .entry-content p,
body.singular .wp-block-post-content p {
	margin: 0 0 1.5em;
}

body.single-post .entry-content p:last-child,
body.single-post .wp-block-post-content p:last-child,
body.singular .entry-content p:last-child,
body.singular .wp-block-post-content p:last-child {
	margin-bottom: 0;
}

body.single-post .entry-content h1,
body.single-post .wp-block-post-content h1,
body.singular .entry-content h1,
body.singular .wp-block-post-content h1 {
	font-size: var(--nomadnotes-h1-size);
	line-height: var(--nomadnotes-h1-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h1-letter-spacing);
	margin: 0 0 0.75em;
}

body.single-post .entry-content h2,
body.single-post .wp-block-post-content h2,
body.singular .entry-content h2,
body.singular .wp-block-post-content h2 {
	font-size: var(--nomadnotes-h2-size);
	line-height: var(--nomadnotes-h2-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h2-letter-spacing);
	margin: 2em 0 0.75em;
}

body.single-post .entry-content h2:first-child,
body.single-post .wp-block-post-content h2:first-child,
body.singular .entry-content h2:first-child,
body.singular .wp-block-post-content h2:first-child {
	margin-top: 0;
}

/* Post title block sits outside .wp-block-post-content; match in-content h1 scale. */
body.single-post .wp-block-post-title,
body.singular .wp-block-post-title {
	font-size: var(--nomadnotes-h1-size);
	line-height: var(--nomadnotes-h1-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h1-letter-spacing);
	margin: 0 0 0.75em;
	max-width: 720px;
}

body.single-post .entry-content h3,
body.single-post .wp-block-post-content h3,
body.singular .entry-content h3,
body.singular .wp-block-post-content h3 {
	font-size: var(--nomadnotes-h3-size);
	line-height: var(--nomadnotes-h3-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h3-letter-spacing);
	margin: 1.75em 0 0.5em;
}

body.single-post .entry-content h4,
body.single-post .wp-block-post-content h4,
body.singular .entry-content h4,
body.singular .wp-block-post-content h4 {
	font-size: var(--nomadnotes-h4-size);
	line-height: var(--nomadnotes-h4-line-height);
	font-weight: 600;
	letter-spacing: 0;
	margin: 1.5em 0 0.5em;
}

body.single-post .entry-content h5,
body.single-post .wp-block-post-content h5,
body.singular .entry-content h5,
body.singular .wp-block-post-content h5 {
	font-size: var(--nomadnotes-h5-size);
	line-height: var(--nomadnotes-h5-line-height);
	font-weight: 600;
	margin: 1.25em 0 0.5em;
}

body.single-post .entry-content h6,
body.single-post .wp-block-post-content h6,
body.singular .entry-content h6,
body.singular .wp-block-post-content h6 {
	font-size: var(--nomadnotes-h6-size);
	line-height: var(--nomadnotes-h6-line-height);
	font-weight: 600;
	margin: 1em 0 0.5em;
}

body.single-post .entry-content ul,
body.single-post .wp-block-post-content ul,
body.singular .entry-content ul,
body.singular .wp-block-post-content ul,
body.single-post .entry-content ol,
body.single-post .wp-block-post-content ol,
body.singular .entry-content ol,
body.singular .wp-block-post-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

body.single-post .entry-content li,
body.single-post .wp-block-post-content li,
body.singular .entry-content li,
body.singular .wp-block-post-content li {
	margin-bottom: 0.5em;
}

body.single-post .entry-content blockquote,
body.single-post .wp-block-post-content blockquote,
body.singular .entry-content blockquote,
body.singular .wp-block-post-content blockquote {
	font-size: var(--nomadnotes-blockquote-size);
	line-height: var(--nomadnotes-blockquote-line-height);
	margin: 1.5em 0;
	padding-left: 1.25em;
	border-left: 4px solid #ddd;
	color: #555;
}

/* Mobile: slightly tighter body line-height (heading sizes use fluid presets from theme.json). */
@media (max-width: 767px) {
	:root {
		--nomadnotes-content-line-height: 1.65;
	}

	body.single-post .entry-content h2,
	body.single-post .wp-block-post-content h2,
	body.singular .entry-content h2,
	body.singular .wp-block-post-content h2 {
		margin-top: 1.5em;
	}

	body.single-post .entry-content h3,
	body.single-post .wp-block-post-content h3,
	body.singular .entry-content h3,
	body.singular .wp-block-post-content h3 {
		margin-top: 1.25em;
	}
}

/*
 * Block / Site Editor canvas: body lacks body.singular, so repeat post-content typography here.
 * (Hero uses .wp-block-nomadnotes-hero-banner without body.* — still needs theme CSS enqueued in editor.)
 */
.editor-styles-wrapper .wp-block-post-content {
	font-size: var(--nomadnotes-content-font-size);
	line-height: var(--nomadnotes-content-line-height);
	letter-spacing: 0;
	color: var(--nomadnotes-content-color);
	max-width: 720px;
}

.editor-styles-wrapper .wp-block-post-content p {
	margin: 0 0 1.5em;
}

.editor-styles-wrapper .wp-block-post-content p:last-child {
	margin-bottom: 0;
}

.editor-styles-wrapper .wp-block-post-content h1 {
	font-size: var(--nomadnotes-h1-size);
	line-height: var(--nomadnotes-h1-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h1-letter-spacing);
	margin: 0 0 0.75em;
}

.editor-styles-wrapper .wp-block-post-content h2 {
	font-size: var(--nomadnotes-h2-size);
	line-height: var(--nomadnotes-h2-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h2-letter-spacing);
	margin: 2em 0 0.75em;
}

.editor-styles-wrapper .wp-block-post-content h2:first-child {
	margin-top: 0;
}

.editor-styles-wrapper .wp-block-post-content h3 {
	font-size: var(--nomadnotes-h3-size);
	line-height: var(--nomadnotes-h3-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h3-letter-spacing);
	margin: 1.75em 0 0.5em;
}

.editor-styles-wrapper .wp-block-post-content h4 {
	font-size: var(--nomadnotes-h4-size);
	line-height: var(--nomadnotes-h4-line-height);
	font-weight: 600;
	letter-spacing: 0;
	margin: 1.5em 0 0.5em;
}

.editor-styles-wrapper .wp-block-post-content h5 {
	font-size: var(--nomadnotes-h5-size);
	line-height: var(--nomadnotes-h5-line-height);
	font-weight: 600;
	margin: 1.25em 0 0.5em;
}

.editor-styles-wrapper .wp-block-post-content h6 {
	font-size: var(--nomadnotes-h6-size);
	line-height: var(--nomadnotes-h6-line-height);
	font-weight: 600;
	margin: 1em 0 0.5em;
}

.editor-styles-wrapper .wp-block-post-content ul,
.editor-styles-wrapper .wp-block-post-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

.editor-styles-wrapper .wp-block-post-content li {
	margin-bottom: 0.5em;
}

.editor-styles-wrapper .wp-block-post-content blockquote {
	font-size: var(--nomadnotes-blockquote-size);
	line-height: var(--nomadnotes-blockquote-line-height);
	margin: 1.5em 0;
	padding-left: 1.25em;
	border-left: 4px solid #ddd;
	color: #555;
}

.editor-styles-wrapper .wp-block-post-title {
	font-size: var(--nomadnotes-h1-size);
	line-height: var(--nomadnotes-h1-line-height);
	font-weight: 700;
	letter-spacing: var(--nomadnotes-h1-letter-spacing);
	margin: 0 0 0.75em;
	max-width: 720px;
}

 .nomad-nav {
    padding-right: 50px;
 }

 /* Subscriber Form - Desktop Layout */
/* Wrap form in .mc4wp-form or .subscriber-form for styles to apply */
.mc4wp-form,
.subscriber-form {
	position: relative;
	border: 5px solid #f7f8f9;
}

.mc4wp-form .row,
.subscriber-form .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

.mc4wp-form .col-md-3,
.mc4wp-form .col-md-4,
.mc4wp-form .col-md-9,
.subscriber-form .col-md-3,
.subscriber-form .col-md-4,
.subscriber-form .col-md-9 {
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

.mc4wp-form .col-md-3,
.subscriber-form .col-md-3 {
	flex: 0 0 25%;
	max-width: 25%;
}

.mc4wp-form .col-md-9,
.subscriber-form .col-md-9 {
	flex: 0 0 75%;
	max-width: 75%;
}

.mc4wp-form .ts-mail-head,
.subscriber-form .ts-mail-head {
	background: #f8f8f8;
	color: #333333;
	padding: 30px 25px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mc4wp-form .ts-mail-head span,
.subscriber-form .ts-mail-head span {
	display: block;
	font-size: 14px;
	color: #666666;
	font-weight: 400;
	line-height: 1.4;
}

.mc4wp-form .ts-mail-head h2,
.subscriber-form .ts-mail-head h2 {
	margin: 5px 0 0;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
	color: #333333;
}

.mc4wp-form .ts-mail-form,
.subscriber-form .ts-mail-form {
	background: #ffffff;
	padding: 25px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 15px;
}

.mc4wp-form .ts-mail-form .col-md-4,
.subscriber-form .ts-mail-form .col-md-4 {
	flex: 1 1 calc(33.333% - 10px);
	min-width: 0;
}

.mc4wp-form .ts-mail-form input[type="text"],
.mc4wp-form .ts-mail-form input[type="email"],
.subscriber-form .ts-mail-form input[type="text"],
.subscriber-form .ts-mail-form input[type="email"] {
	width: 100%;
	height: 48px;
	padding: 12px 16px;
	border: 1px solid #dddddd;
	border-radius: 4px;
	background: #ffffff;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.mc4wp-form .ts-mail-form input[type="text"]::placeholder,
.mc4wp-form .ts-mail-form input[type="email"]::placeholder,
.subscriber-form .ts-mail-form input[type="text"]::placeholder,
.subscriber-form .ts-mail-form input[type="email"]::placeholder {
	color: #aaaaaa;
}

.mc4wp-form .ts-mail-form input[type="text"]:focus,
.mc4wp-form .ts-mail-form input[type="email"]:focus,
.subscriber-form .ts-mail-form input[type="text"]:focus,
.subscriber-form .ts-mail-form input[type="email"]:focus {
	outline: none;
	border-color: #2dcb71;
}

.mc4wp-form .ts-mail-form input[type="submit"],
.subscriber-form .ts-mail-form input[type="submit"] {
	width: 100%;
	height: 48px;
	padding: 12px 24px;
	background: #2dcb71;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease;
}

.mc4wp-form .ts-mail-form input[type="submit"]:hover,
.subscriber-form .ts-mail-form input[type="submit"]:hover {
	background: #26b362;
}

/* Subscriber Form - Mobile Responsive */
@media (max-width: 991px) {
	.mc4wp-form .col-md-3,
	.mc4wp-form .col-md-9,
	.subscriber-form .col-md-3,
	.subscriber-form .col-md-9 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.mc4wp-form .ts-mail-head,
	.subscriber-form .ts-mail-head {
		padding: 25px 20px;
		text-align: center;
	}

	.mc4wp-form .ts-mail-head h2,
	.subscriber-form .ts-mail-head h2 {
		font-size: 20px;
	}

	.mc4wp-form .ts-mail-form,
	.subscriber-form .ts-mail-form {
		flex-direction: column;
		padding: 20px 15px;
		gap: 12px;
	}

	.mc4wp-form .ts-mail-form .col-md-4,
	.subscriber-form .ts-mail-form .col-md-4 {
		flex: 1 1 100%;
	}
}

@media (max-width: 575px) {
	.mc4wp-form .row,
	.subscriber-form .row {
		margin-left: -10px;
		margin-right: -10px;
	}

	.mc4wp-form .col-md-3,
	.mc4wp-form .col-md-4,
	.mc4wp-form .col-md-9,
	.subscriber-form .col-md-3,
	.subscriber-form .col-md-4,
	.subscriber-form .col-md-9 {
		padding-left: 10px;
		padding-right: 10px;
	}

	.mc4wp-form .ts-mail-head,
	.subscriber-form .ts-mail-head {
		padding: 20px 15px;
	}

	.mc4wp-form .ts-mail-head span,
	.subscriber-form .ts-mail-head span {
		font-size: 13px;
	}

	.mc4wp-form .ts-mail-head h2,
	.subscriber-form .ts-mail-head h2 {
		font-size: 18px;
	}

	.mc4wp-form .ts-mail-form,
	.subscriber-form .ts-mail-form {
		padding: 15px 10px;
	}

	.mc4wp-form .ts-mail-form input[type="text"],
	.mc4wp-form .ts-mail-form input[type="email"],
	.mc4wp-form .ts-mail-form input[type="submit"],
	.subscriber-form .ts-mail-form input[type="text"],
	.subscriber-form .ts-mail-form input[type="email"],
	.subscriber-form .ts-mail-form input[type="submit"] {
		height: 44px;
		font-size: 13px;
	}
}

/* ==========================================================================
   Category / Post Terms – Pills style
   ========================================================================== */
.taxonomy-category.post-category-section.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.taxonomy-category.post-category-section.wp-block-post-terms a {
	display: inline-block;
	padding: 0.1em 0.85em;
	background-color: var(--wp--preset--color--primary, #2dcb71);
	color: #fff;
	text-decoration: none;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 500;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.taxonomy-category.post-category-section.wp-block-post-terms a:hover,
.taxonomy-category.post-category-section.wp-block-post-terms a:focus {
	background-color: var(--wp--preset--color--primary, #2dcb71);
	opacity: 0.9;
	color: #fff;
}

.taxonomy-category.post-category-section.wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

/* ==========================================================================
   Destination hero (nomadnotes/hero-banner — meta field, not featured image)
   ========================================================================== */

/*
 * Layout only on the wrapper. Default type/color/align come from theme.json (styles.blocks)
 * so global styles + block Typography controls win without fighting this stylesheet.
 */
.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner {
	position: relative;
	margin-top: 0;
	margin-bottom: 0;
	width: 100%;
	height: min(70vh, 560px);
	max-height: min(70vh, 560px);
	overflow: hidden;
	box-sizing: border-box;
	/* Radius on the clip box, not the parallax img — avoids the curve “moving” on scroll. */
	border-bottom-left-radius: 50% 38%;
	border-bottom-right-radius: 50% 38%;
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner:not(.nomadnotes-hero-banner--text-only)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 100%);
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner > .nomadnotes-hero-banner__figure {
	position: relative;
	height: 100%;
	margin: 0;
	overflow: hidden;
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner .nomadnotes-hero-banner__title-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(1rem, 4vw, 2.75rem);
	text-align: inherit;
	pointer-events: none;
	box-sizing: border-box;
}

/*
 * Low specificity so block typography classes on the <h1> (from PHP) win over this rule.
 * font-size: inherit keeps alignment with the wrapper when only theme defaults apply.
 */
.nomadnotes-hero-banner__title {
	margin: 0;
	max-width: 22ch;
	font-size: inherit;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner--text-only {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: auto;
	min-height: min(45vh, 380px);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	box-sizing: border-box;
	background-color: var(--wp--preset--color--primary, #2dcb71);
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner--text-only .nomadnotes-hero-banner__title-wrap {
	position: static;
	inset: auto;
	flex: 1;
	justify-content: center;
	align-items: center;
	padding: 0;
	width: 100%;
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner--text-only .nomadnotes-hero-banner__title {
	text-shadow: none;
	max-width: 28ch;
}

.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner .nomadnotes-hero-banner__img {
	position: absolute;
	left: 0;
	top: 50%;
	z-index: 0;
	display: block;
	width: 100%;
	height: 132%;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
	transform: translate3d(
		0,
		calc(-60% + var(--nomadnotes-hero-parallax-y, 0px)),
		0
	);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-nomadnotes-hero-banner.nomadnotes-hero-banner .nomadnotes-hero-banner__img {
		will-change: auto;
		transform: translate3d(0, -60%, 0);
	}
}

.wp-block-nomadnotes-hero-banner.alignfull .nomadnotes-hero-banner__img,
.wp-block-nomadnotes-hero-banner.alignwide .nomadnotes-hero-banner__img {
	width: 100%;
}