/* ==========================================================================
   The Harami Foundation — extras on top of theme.json.
   Loaded on the website and inside the editor.
   ========================================================================== */

.hf-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 110px; }
mark.has-inline-color { background-color: transparent; }

/* ---------- Gold label (Paragraph → Styles → Gold label) ---------- */
p.is-style-hf-label {
	color: var(--wp--preset--color--gold); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
p.is-style-hf-label::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 2px; margin: -3px 12px 0 0; background: currentColor; }
.has-sand-background-color p.is-style-hf-label, .has-cream-background-color p.is-style-hf-label { color: #9A7A2E; }

/* ---------- Ticks (List → Styles → Gold ticks) ---------- */
ul.is-style-hf-ticks { list-style: none; padding-left: 0; }
ul.is-style-hf-ticks li { position: relative; padding: 6px 0 6px 34px; font-weight: 500; }
ul.is-style-hf-ticks li::before {
	content: ""; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--wp--preset--color--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23133B30' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Pattern & hero ---------- */
.is-style-hf-dots { background-image: url("../img/dots.svg"); }
.hf-hero { position: relative; overflow: hidden; }
.hf-hero::before {
	content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(200, 160, 74, .28), rgba(200, 160, 74, 0) 70%); pointer-events: none;
}
.hf-hero > * { position: relative; z-index: 1; }
.hf-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--cream); border-color: rgba(248, 244, 236, .55); background: transparent; }
.hf-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--cream); }

/* ---------- Cards ---------- */
.hf-card { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(14, 44, 36, .45); }
.hf-card h2 { margin-top: 0; }
.wp-block-column.is-style-hf-card {
	background: var(--wp--preset--color--white); border-radius: 18px; padding: 34px 30px;
	box-shadow: 0 20px 40px -30px rgba(14, 44, 36, .4); transition: transform .3s ease, box-shadow .3s ease;
}
.wp-block-column.is-style-hf-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(14, 44, 36, .5); }
.hf-icon img { width: 76px; height: auto; }
.hf-link a { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--clay); }
.hf-narrow { max-width: 560px; margin-left: auto !important; margin-right: auto !important; }
.hf-art img { width: 100%; max-width: 480px; height: auto; }

/* ---------- Trust strip ---------- */
.hf-trust .wp-block-column { display: flex; }
.hf-trust p { margin: 0; color: var(--wp--preset--color--forest); padding-left: 16px; border-left: 3px solid var(--wp--preset--color--gold); line-height: 1.5; }

/* ---------- Impact ---------- */
.hf-impact { background: rgba(255, 255, 255, .06); border: 1px solid var(--wp--preset--color--line-dark); border-radius: 16px; padding: 26px; }
.hf-impact-amt { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 36px; line-height: 1; color: var(--wp--preset--color--gold); margin-bottom: 10px; }
.hf-impact p:last-child { color: var(--wp--preset--color--mist); margin: 0; }

/* ---------- Steps ---------- */
.hf-step { text-align: center; }
.hf-step-num {
	width: 56px; height: 56px; margin: 0 auto 6px !important; border-radius: 50%;
	display: grid; place-items: center; background: var(--wp--preset--color--forest); color: var(--wp--preset--color--gold);
	font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 24px;
}

/* ---------- Quote ---------- */
.hf-quote-mark { font-family: var(--wp--preset--font-family--serif); font-size: 110px; line-height: .6; color: var(--wp--preset--color--gold); margin-bottom: 0 !important; }
.hf-quote { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; font-weight: 600; color: var(--wp--preset--color--forest); max-width: 860px; margin-left: auto !important; margin-right: auto !important; }
.hf-quote-by { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9A7A2E !important; }
.hf-contact p { border-left: 3px solid var(--wp--preset--color--gold); padding-left: 18px; }
.hf-contact a { color: var(--wp--preset--color--forest); font-weight: 600; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--forest); border: 2px solid var(--wp--preset--color--forest); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--white); }
.wp-block-button__link { transition: background .2s, color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
@media (max-width: 600px) {
	.hf-home .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.hf-home .wp-block-button__link { width: 100%; text-align: center; }
}

/* ==========================================================================
   Donation form  [harami_donate]
   ========================================================================== */
.hf-donate { color: var(--wp--preset--color--ink); }
.hf-form { margin: 0; }
.hf-form__title { margin: 0 0 12px; font-weight: 700; font-size: 14px; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .1em; }
.hf-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hf-chip { position: relative; cursor: pointer; }
.hf-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hf-chip span {
	display: block; text-align: center; padding: 14px 6px; border-radius: 12px;
	border: 2px solid #E3DCCB; background: var(--wp--preset--color--cream);
	font-weight: 700; font-size: 17px; color: var(--wp--preset--color--forest); transition: all .15s;
}
.hf-chip:hover span { border-color: var(--wp--preset--color--gold); }
.hf-chip input:checked + span { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: #fff; box-shadow: 0 8px 18px -10px rgba(14, 44, 36, .8); }
.hf-chip input:focus-visible + span { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }
.hf-other { display: flex; align-items: center; margin-top: 10px; border: 2px solid var(--wp--preset--color--forest); border-radius: 12px; overflow: hidden; background: #fff; }
.hf-other[hidden] { display: none; }
.hf-other span { padding: 0 14px; font-weight: 700; color: var(--wp--preset--color--forest); background: var(--wp--preset--color--gold-soft); align-self: stretch; display: grid; place-items: center; }
.hf-other input { flex: 1; border: 0; padding: 14px; font: inherit; font-size: 18px; font-weight: 700; min-width: 0; }
.hf-other input:focus { outline: none; }
.hf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 20px 0 6px; }
.hf-donate--compact .hf-fields { grid-template-columns: 1fr; }
.hf-fields label { display: block; }
.hf-fields label > span { display: block; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--muted); margin-bottom: 6px; }
.hf-fields input, .hf-fields textarea {
	width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1.5px solid #DCD3C0; border-radius: 10px;
	background: #fff; font: inherit; font-size: 16px; color: var(--wp--preset--color--ink);
}
.hf-fields input:focus, .hf-fields textarea:focus { outline: none; border-color: var(--wp--preset--color--forest); box-shadow: 0 0 0 3px rgba(200, 160, 74, .3); }
.hf-fields__wide { grid-column: 1 / -1; }
.hf-check { display: flex !important; align-items: center; gap: 10px; font-size: 14px; color: var(--wp--preset--color--muted); }
.hf-check input { width: 18px; height: 18px; accent-color: var(--wp--preset--color--forest); }
.hf-submit {
	width: 100%; margin-top: 16px; border: 0; border-radius: 999px; cursor: pointer;
	padding: 18px 24px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--forest-dark);
	font: inherit; font-size: 18px; font-weight: 800; transition: background .2s, color .2s, transform .2s;
}
.hf-submit:hover { background: var(--wp--preset--color--forest); color: #fff; transform: translateY(-1px); }
.hf-submit.is-busy { opacity: .7; cursor: progress; }
.hf-secure { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: center; margin: 14px 0 0; font-size: 13px; color: var(--wp--preset--color--muted); line-height: 1.5; }
.hf-secure svg { flex: none; margin-top: 3px; }
.hf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.hf-alert { border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.hf-alert--ok { background: #E3F1E6; color: #1E5A2E; }
.hf-alert--err { background: #F8E3DC; color: #8A2E14; }
.hf-alert--admin { background: #FFF6D8; color: #6B5310; border: 1px dashed #C8A04A; }
.hf-alert--admin a { color: inherit; font-weight: 700; }
@media (max-width: 600px) {
	.hf-fields { grid-template-columns: 1fr; }
	.hf-amounts { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Progress  [harami_progress]
   ========================================================================== */
.hf-progress { background: rgba(255, 255, 255, .07); border: 1px solid var(--wp--preset--color--line-dark); border-radius: 16px; padding: 22px 24px; }
.hf-progress__label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--gold); }
.hf-progress__nums { margin: 0 0 14px; color: var(--wp--preset--color--mist); }
.hf-progress__nums strong { font-family: var(--wp--preset--font-family--serif); font-size: 30px; color: #fff; font-weight: 700; }
.hf-progress__bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hf-progress__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #C8A04A, #E9D29A); }
.hf-progress__meta { display: flex; justify-content: space-between; margin: 10px 0 0; font-size: 13px; color: var(--wp--preset--color--mist); }
.has-cream-background-color .hf-progress, .has-sand-background-color .hf-progress, .has-white-background-color .hf-progress { background: #fff; border-color: #E3DCCB; }
.has-cream-background-color .hf-progress__nums strong, .has-sand-background-color .hf-progress__nums strong { color: var(--wp--preset--color--forest); }

/* Amount buttons: 4 amounts in a row, "Other" underneath */
.hf-amounts { grid-template-columns: repeat(4, 1fr); }
.hf-chip--other { grid-column: 1 / -1; }
.hf-chip--other span { padding: 10px 6px; font-size: 15px; font-weight: 600; background: transparent; border-style: dashed; }
.hf-chip span { padding: 14px 4px; font-size: 16px; }
@media (max-width: 600px) { .hf-amounts { grid-template-columns: repeat(2, 1fr); } }
/* Footer logo stands out on dark green */
.hf-footer .wp-block-site-logo img { border-radius: 50%; box-shadow: 0 0 0 2px var(--wp--preset--color--gold); }

/* ---------- One-click donation buttons ---------- */
.hf-impact-btn { margin-top: 16px !important; }
.hf-impact-btn .wp-block-button__link { padding: 10px 18px; font-size: 14px; }
.hf-impact { display: flex; flex-direction: column; }
.hf-impact .hf-impact-btn { margin-top: auto !important; padding-top: 16px; }
.hf-quick { border-radius: 16px; border: 1px solid #E3DCCB; }
.hf-quick p { margin: 0 0 12px; }
.hf-quick-btns { gap: 8px; }
.hf-quick-btns .wp-block-button__link { padding: 11px 18px; font-size: 15px; }
.hf-give-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--forest-dark); font-weight: 700; text-decoration: none; }
.hf-give-btn:hover { background: var(--wp--preset--color--forest); color: #fff; }
@media (max-width: 600px) {
	.hf-home .hf-quick-btns { flex-direction: row; flex-wrap: wrap; }
	.hf-home .hf-quick-btns .wp-block-button { width: calc(50% - 4px); }
	.hf-home .hf-quick-btns .wp-block-button:last-child { width: 100%; }
}
