/*
Theme Name: New Tulips School
Theme URI: https://example.org/
Author: New Tulips School
Description: A warm, donation-focused block theme for New Tulips School, a 501(c)(3) nonprofit in Renton, Washington, supporting New Tulips School in Koteshwor, Kathmandu, Nepal. Every section is a block pattern you can edit in Appearance → Editor.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: new-tulips
Tags: block-patterns, full-site-editing, one-column, custom-colors, editor-style
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
:where([id]) { scroll-margin-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--marigold); color: var(--wp--preset--color--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, .wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--marigold);
	outline-offset: 3px;
}

/* ---------- Header ---------- */
.ntl-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--cream) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .ntl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ntl-header { top: 0; position: relative; } }
.ntl-brand { gap: 12px !important; }
.ntl-brand .wp-block-site-logo img { width: 52px; height: auto; }
.ntl-brand-name { margin: 0 !important; line-height: 1.1; }
.ntl-brand-name a { text-decoration: none; color: inherit; }
.ntl-badge {
	display: inline-block; margin: 0 !important; white-space: nowrap;
	padding: 3px 10px; border-radius: 999px;
	background: var(--wp--preset--color--sage-light);
	color: var(--wp--preset--color--teal);
	font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	border: 1px solid var(--wp--preset--color--sage);
}
.ntl-header .wp-block-navigation a { text-decoration: none; font-weight: 600; }
.ntl-header .wp-block-navigation a:hover { color: var(--wp--preset--color--tulip); }

/* ---------- Section bands (selectable as Group block styles) ---------- */
.is-style-ntl-cream  { background: var(--wp--preset--color--cream); }
.is-style-ntl-sage   { background: var(--wp--preset--color--sage-light); }
.is-style-ntl-teal   { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--cream); }
.is-style-ntl-teal :where(h1,h2,h3,h4,h5,h6) { color: var(--wp--preset--color--cream); }
.is-style-ntl-teal a:not(.wp-element-button) { color: var(--wp--preset--color--marigold); }
.is-style-ntl-teal .ntl-eyebrow { color: var(--wp--preset--color--marigold); }
.is-style-ntl-teal .ntl-muted { color: #c9d8d3; }
.is-style-ntl-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px; box-shadow: 0 1px 2px rgba(30,59,56,.04), 0 12px 32px -18px rgba(30,59,56,.25);
	transition: transform .25s ease, box-shadow .25s ease;
}
.is-style-ntl-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,59,56,.05), 0 22px 40px -20px rgba(30,59,56,.35); }
.is-style-ntl-teal .is-style-ntl-card { color: var(--wp--preset--color--ink); }
.is-style-ntl-teal .is-style-ntl-card :where(h1,h2,h3,h4) { color: var(--wp--preset--color--ink); }

/* Petal-shaped image frame for photos */
.is-style-ntl-petal { max-width: 440px; margin-inline: auto; }
.is-style-ntl-petal img { border-radius: 48% 48% 24px 24px / 38% 38% 24px 24px; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Typography helpers ---------- */
.ntl-eyebrow {
	font-size: 0.8rem !important; font-weight: 800 !important; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--tulip);
}
.ntl-muted { color: var(--wp--preset--color--muted); }
.ntl-hero-title em, .ntl-accent { font-style: italic; color: var(--wp--preset--color--tulip); }
.is-style-ntl-teal .ntl-accent { color: var(--wp--preset--color--marigold); }

/* ---------- Hero ---------- */
.ntl-hero { position: relative; overflow: hidden; }
.ntl-hero::before {
	content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
	background: radial-gradient(circle, rgba(244,185,66,.22), rgba(244,185,66,0) 65%);
	pointer-events: none;
}
.ntl-hero > * { position: relative; }
.ntl-hero-art img { width: 100%; height: auto; }
.ntl-checks { list-style: none; padding-left: 0 !important; }
.ntl-checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ntl-checks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--wp--preset--color--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Trust strip ---------- */
.ntl-trust p { margin: 0 !important; }
.ntl-trust strong { color: var(--wp--preset--color--marigold); }

/* ---------- Icons in cards ---------- */
.ntl-icon {
	width: 56px; height: 56px; border-radius: 18px 18px 18px 4px;
	display: grid !important; place-items: center; margin: 0 0 6px !important;
	background: var(--wp--preset--color--sage-light); font-size: 28px !important; line-height: 1;
}

/* ---------- Donate tiles ---------- */
.ntl-amounts .wp-block-button { flex: 1 1 calc(25% - 12px); min-width: 110px; }
.ntl-amounts .wp-block-button__link {
	width: 100%; padding: 18px 12px !important; font-size: 1.35rem !important;
	background: #fff !important; color: var(--wp--preset--color--ink) !important;
	border: 2px solid var(--wp--preset--color--sage) !important; border-radius: 16px !important;
	font-family: var(--wp--preset--font-family--display); font-weight: 600;
}
.ntl-amounts .wp-block-button__link:hover, .ntl-amounts .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--tulip) !important; color: var(--wp--preset--color--tulip) !important; transform: translateY(-2px);
}
.ntl-amount-note { font-size: .92rem !important; }

.is-style-ntl-teal .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--wp--preset--color--marigold); color: var(--wp--preset--color--ink);
}
.is-style-ntl-teal .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: #ffd27a; color: var(--wp--preset--color--ink);
}
.is-style-ntl-teal .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--cream); border-color: rgba(251,247,240,.6); }

/* Big pulse CTA in header */
.ntl-header .wp-block-button__link { box-shadow: 0 6px 18px -8px rgba(194,65,45,.7); }

/* ---------- Steps ---------- */
.ntl-step-num {
	font-family: var(--wp--preset--font-family--display); font-size: 3rem !important; line-height: 1 !important;
	color: var(--wp--preset--color--tulip); margin: 0 !important; font-weight: 600;
}
.is-style-ntl-teal .ntl-step-num { color: var(--wp--preset--color--marigold); }
.is-style-ntl-teal .ntl-checks li::before { background-color: var(--wp--preset--color--marigold);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231E3B38' stroke-width='3'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.wp-block-details.ntl-faq {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 16px;
	padding: 18px 22px; margin-top: 12px !important;
}
.wp-block-details.ntl-faq summary {
	cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; padding-right: 32px;
}
.wp-block-details.ntl-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.ntl-faq summary::after {
	content: "+"; position: absolute; right: 0; top: -4px; font-size: 1.6rem; font-weight: 400; color: var(--wp--preset--color--tulip);
	transition: transform .2s ease;
}
.wp-block-details.ntl-faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.ntl-faq[open] summary { margin-bottom: 8px; }

/* ---------- Tulip divider ---------- */
.ntl-divider { text-align: center; margin: 0 auto !important; }

/* ---------- Sticky mobile donate bar ---------- */
.wp-block-buttons.ntl-mobile-donate { display: none; }
@media (max-width: 781px) {
	.wp-block-buttons.ntl-mobile-donate {
		display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; margin: 0 !important;
	}
	.ntl-mobile-donate .wp-block-button, .ntl-mobile-donate .wp-block-button__link { width: 100%; }
	.ntl-mobile-donate .wp-block-button__link { box-shadow: 0 10px 30px -8px rgba(30,59,56,.5); padding-top: 16px !important; padding-bottom: 16px !important; }
	body { padding-bottom: 84px; }
	.ntl-header .ntl-header-cta { display: none !important; }
}

/* ---------- Footer ---------- */
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0; }
.ntl-footer ul { list-style: none; }
.ntl-footer a { text-decoration: none; }
.ntl-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
