/**
 * Naggulu global styles (v3.3): typography scale, links, buttons, cards, form
 * fields, focus states and spacing. One layout breakpoint: 767px (Kadence's mobile).
 */
:root {
	--naggulu-bp-mobile: 767px; /* documentation only – media queries can't read custom properties */
	--naggulu-space-1: 8px;
	--naggulu-space-2: 16px;
	--naggulu-space-3: 24px;
	--naggulu-space-4: 32px;
	--naggulu-space-5: 48px;
	--naggulu-space-6: 64px;
	--naggulu-space-7: 96px;
	--naggulu-section-y: 96px;
	--naggulu-section-y-tight: 64px;
	--naggulu-grid-gap: 28px;
	--naggulu-on-teal: #e3f1f1;
	--naggulu-field-border: #8c8576;
	--naggulu-shadow: 0 10px 30px rgba(31, 42, 46, 0.1);
	--naggulu-shadow-sm: 0 2px 8px rgba(31, 42, 46, 0.08);
}

/* ---------- Typography scale (desktop / mobile) ---------- */
body {
	font-size: 16px;
	line-height: 1.65;
}

h1,
.naggulu-h1 {
	font-size: 54px;
}

h2,
.naggulu-h2 {
	font-size: 40px;
}

h3,
.naggulu-h3 {
	font-size: 24px;
}

h4,
.naggulu-h4 {
	font-size: 19px;
}

.naggulu-lead {
	font-size: 19px;
	color: var(--naggulu-muted);
}

.naggulu-muted {
	color: var(--naggulu-muted);
}

/* Eyebrow: dark-teal caps label with a short gold rule (decorative rule, not text). */
.naggulu-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font: 600 12px/1 var(--naggulu-font-body);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--naggulu-teal-dark);
}

.naggulu-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--naggulu-gold);
}

/* ---------- Links ---------- */
.entry-content a:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate) {
	color: var(--naggulu-teal-dark);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.entry-content a:not(.wp-block-button__link):not(.naggulu-btn):not(.naggulu-donate):hover {
	color: var(--naggulu-charcoal);
	text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */
.naggulu-btn,
.wp-block-button__link,
.button,
.entry-content button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--naggulu-teal-dark);
	color: #fff;
	font: 600 15px/1 var(--naggulu-font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.naggulu-btn:hover,
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover {
	background: var(--naggulu-charcoal);
	color: #fff;
}

/* Outline: dark-teal border + text on light backgrounds. */
.naggulu-btn--line,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--naggulu-teal-dark);
	color: var(--naggulu-teal-dark);
}

.naggulu-btn--line:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--naggulu-teal-dark);
	color: #fff;
}

/* Ghost: white border + text, only on teal/dark-teal/photo backgrounds. */
.naggulu-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

/* Donate (gold) – the ONLY use of gold as a fill. Charcoal label, no text-shadow. */
.naggulu-donate,
.wp-block-button.is-style-naggulu-donate .wp-block-button__link,
#masthead .header-button,
#masthead .mobile-header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--naggulu-gold);
	border: 2px solid var(--naggulu-gold);
	color: var(--naggulu-charcoal);
	font-family: var(--naggulu-font-body);
	font-weight: 600;
	text-decoration: none;
	text-shadow: none;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.naggulu-donate:hover,
.naggulu-donate:focus-visible,
.wp-block-button.is-style-naggulu-donate .wp-block-button__link:hover,
.wp-block-button.is-style-naggulu-donate .wp-block-button__link:focus-visible,
#masthead .header-button:hover,
#masthead .mobile-header-button:hover {
	background: var(--naggulu-gold);
	color: var(--naggulu-charcoal);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
	transform: translateY(-1px);
}

/* Heart icon (mockup) before every Donate label. */
.naggulu-donate::before,
.wp-block-button.is-style-naggulu-donate .wp-block-button__link::before,
#masthead .header-button::before,
#masthead .mobile-header-button::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.5-9.2C1 8 3.6 4.5 7.2 4.5c2 0 3.6 1.1 4.8 2.7 1.2-1.6 2.8-2.7 4.8-2.7 3.6 0 6.2 3.5 4.7 7.3C19.5 16.4 12 21 12 21z'/%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'%3E%3Cpath d='M12 21s-7.5-4.6-9.5-9.2C1 8 3.6 4.5 7.2 4.5c2 0 3.6 1.1 4.8 2.7 1.2-1.6 2.8-2.7 4.8-2.7 3.6 0 6.2 3.5 4.7 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* On dark-teal/teal surfaces Donate gets the approved 2px white outline. */
.naggulu-on-teal .naggulu-donate,
.naggulu-on-teal .wp-block-button.is-style-naggulu-donate .wp-block-button__link,
.has-theme-palette1-background-color .naggulu-donate,
.has-theme-palette6-background-color .naggulu-donate {
	border-color: #fff;
}

/* ---------- Cards ---------- */
.naggulu-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--naggulu-line);
	border-radius: var(--naggulu-radius);
	box-shadow: var(--naggulu-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.naggulu-card__body {
	padding: 26px;
}

a.naggulu-card:hover,
.naggulu-card.is-linked:hover {
	box-shadow: var(--naggulu-shadow);
	transform: translateY(-3px);
}

/* ---------- Form fields ---------- */
.naggulu-field {
	margin-bottom: 18px;
}

.naggulu-field label,
.naggulu-form label {
	display: block;
	margin-bottom: 7px;
	font-weight: 600;
	font-size: 14px;
	color: var(--naggulu-teal-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--naggulu-field-border);
	border-radius: 10px;
	background: #fff;
	color: var(--naggulu-charcoal);
	font: 15px/1.4 var(--naggulu-font-body);
	box-shadow: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--naggulu-muted);
	opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
	border-color: var(--naggulu-muted);
}

textarea {
	min-height: 130px;
	resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
	border-color: #9b2c2c;
}

.naggulu-field__error {
	margin-top: 6px;
	font-size: 13.5px;
	color: #9b2c2c;
}

.naggulu-field__help {
	margin-top: 6px;
	font-size: 13.5px;
	color: var(--naggulu-muted);
}

/* ---------- Focus states (keyboard only) ---------- */
:focus {
	outline: none;
}

:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--naggulu-teal-dark);
	outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--naggulu-teal-dark);
	box-shadow: 0 0 0 3px rgba(3, 111, 111, 0.18);
}

/* On dark-teal surfaces (top bar, footer, caption panels) the ring is white. */
#masthead .site-top-header-wrap :focus-visible,
#colophon :focus-visible,
.naggulu-on-teal :focus-visible,
.naggulu-ph :focus-visible {
	outline-color: #fff;
}

.skip-link:focus {
	background: #fff;
	color: var(--naggulu-teal-dark);
}

/* ---------- Spacing ---------- */
.naggulu-section {
	padding-top: var(--naggulu-section-y);
	padding-bottom: var(--naggulu-section-y);
}

.naggulu-section--tight {
	padding-top: var(--naggulu-section-y-tight);
	padding-bottom: var(--naggulu-section-y-tight);
}

.naggulu-section--white {
	background: #fff;
}

.naggulu-section--teal {
	background: var(--naggulu-teal-dark);
	color: var(--naggulu-on-teal);
}

.naggulu-section--teal h2,
.naggulu-section--teal h3 {
	color: #fff;
}

.naggulu-grid {
	display: grid;
	gap: var(--naggulu-grid-gap);
}

.naggulu-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.naggulu-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.naggulu-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (prefers-reduced-motion: reduce) {

	* {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Mobile (<= 767px) ---------- */
@media (max-width: 767px) {

	:root {
		--naggulu-gutter: 20px;
		--naggulu-section-y: 60px;
		--naggulu-section-y-tight: 44px;
	}

	body {
		font-size: 15.5px;
	}

	h1,
	.naggulu-h1 {
		font-size: 36px;
	}

	h2,
	.naggulu-h2 {
		font-size: 30px;
	}

	h3,
	.naggulu-h3 {
		font-size: 21px;
	}

	.naggulu-grid--2,
	.naggulu-grid--3,
	.naggulu-grid--4 {
		grid-template-columns: 1fr;
	}

	.naggulu-btn,
	.wp-block-button__link {
		white-space: normal;
		line-height: 1.25;
	}
}
