/*
Theme Name: FiSK Modern v4
Theme URI: https://www.findingscoliosiskindly.org/
Author: FiSK Project
Author URI: https://www.findingscoliosiskindly.org/
Description: A modern, accessible block theme for The Finding Scoliosis Kindly (FiSK) Project. Keeps the signature sage-green brand palette with a fresh, mobile-first layout. Built for compatibility with GiveWP donations, Contact Form 7, Events Manager and MetaSlider. No page-builder or jQuery dependency.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fisk-modern-v4
Tags: blog, news, grid-layout, one-column, two-columns, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, block-styles, sticky-post, translation-ready, accessibility-ready
*/

/* ------------------------------------------------------------------
   FiSK Modern — custom styles (block theme: style.css loads automatically)
   ------------------------------------------------------------------ */

/* Accessible focus ring everywhere */
:focus-visible {
	outline: 3px solid #2f6b2f;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---- Header ---- */
.fisk-header {
	background: #ffffff;
	border-bottom: 1px solid #e3ecdd;
	box-shadow: 0 2px 12px rgba(31, 41, 55, 0.06);
	z-index: 50;
}

.fisk-topbar {
	background: #1e3a24;
	color: #ffffff;
	font-size: 0.8125rem;
}

.fisk-topbar a {
	color: #ffffff;
	text-decoration: none;
}

.fisk-topbar a:hover,
.fisk-topbar a:focus-visible {
	text-decoration: underline;
}

/* Donate button: forest green, white text (contrast ~5.7:1) */
.fisk-donate-btn .wp-block-button__link {
	background: #2f6b2f;
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.7em 1.6em;
	transition: background 0.2s ease, transform 0.15s ease;
}

.fisk-donate-btn .wp-block-button__link:hover,
.fisk-donate-btn .wp-block-button__link:focus-visible {
	background: #1e4d22;
	transform: translateY(-1px);
}

/* ---- Hero ---- */
.fisk-hero {
	background: linear-gradient(135deg, #a6d68b 0%, #c4e3b2 55%, #e9f5e1 100%);
}

.fisk-hero h1,
.fisk-hero h2 {
	color: #1e3a24; /* dark green text on sage — never white on sage */
}

.fisk-hero p {
	color: #33402f;
}

/* ---- Cards ---- */
.fisk-card {
	background: #ffffff;
	border: 1px solid #e3ecdd;
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fisk-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
}

.fisk-card h3 {
	color: #1e3a24;
}

/* ---- Impact counters ---- */
.fisk-counter-number {
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	color: #2f6b2f;
	line-height: 1;
}

.fisk-counter-label {
	font-weight: 600;
	color: #1f2937;
}

/* ---- Testimonials ---- */
.fisk-testimonial {
	background: #ffffff;
	border-left: 5px solid #a6d68b;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 6px 18px rgba(31, 41, 55, 0.07);
}

/* ---- CTA band ---- */
.fisk-cta-band {
	background: #1e3a24;
}

.fisk-cta-band h2,
.fisk-cta-band p {
	color: #ffffff;
}

.fisk-cta-band .wp-block-button__link {
	background: #f0b429; /* warm amber */
	color: #1f2937;      /* dark text on amber for contrast */
	font-weight: 700;
}

.fisk-cta-band .wp-block-button__link:hover,
.fisk-cta-band .wp-block-button__link:focus-visible {
	background: #ffd25e;
}

/* Outline button inside the dark CTA band: white text + white border */
.fisk-cta-band .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #ffffff;
	border-color: #ffffff;
}
.fisk-cta-band .is-style-outline .wp-block-button__link:hover,
.fisk-cta-band .is-style-outline .wp-block-button__link:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

/* ---- Footer ---- */
.fisk-footer {
	background: #16241a;
	color: #d7e2d2;
}

.fisk-footer h2,
.fisk-footer h3 {
	color: #ffffff;
}

.fisk-footer a {
	color: #e9f5e1;
}

.fisk-footer a:hover,
.fisk-footer a:focus-visible {
	color: #ffffff;
}

.fisk-footer .wp-block-social-links .wp-social-link a {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.fisk-footer .wp-block-social-links .wp-social-link a:hover {
	background: #2f6b2f;
}

/* ---- Forms (CF7 + GiveWP friendly) ---- */
.fisk-form-wrap input[type="text"],
.fisk-form-wrap input[type="email"],
.fisk-form-wrap input[type="tel"],
.fisk-form-wrap input[type="url"],
.fisk-form-wrap textarea,
.fisk-form-wrap select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #cfdcc8;
	border-radius: 8px;
	font-size: 1rem;
	background: #ffffff;
}

.fisk-form-wrap input:focus,
.fisk-form-wrap textarea:focus,
.fisk-form-wrap select:focus {
	border-color: #2f6b2f;
	outline: none;
	box-shadow: 0 0 0 3px rgba(47, 107, 47, 0.2);
}

/* GiveWP v4 form inherits theme fonts; keep its buttons on-brand */
.give-form-wrap .give-btn,
[id*="give-form"] .give-btn {
	font-family: "Oswald", "Arial Narrow", sans-serif;
}

/* Turnstile widget spacing on the donation form */
.cf-turnstile,
.give-turnstile-wrapper {
	margin: 1rem 0;
}

/* ---- Utilities ---- */
.fisk-section-pad {
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

/* Responsive: stack header nicely on small screens */
@media (max-width: 781px) {
	.fisk-header-inner {
		gap: 0.75rem;
	}
}
