/* ==========================================================================
   SchoolSays Homepage Blocks — Shared design tokens & utilities
   ========================================================================== */

:root {
	/* Primary dark-blue accent (headings, CTA background, outline buttons). */
	--sshb-navy: #283276;
	--sshb-blue: #00a2cf;
	--sshb-blue-light: #eaf5fc;
	--sshb-amber: #e5b636;
	--sshb-amber-dark: #e0961f;
	--sshb-teal: #1f7a72;
	--sshb-text: #4a5568;
	--sshb-text-light: #6b7683;
	--sshb-border: #e2e8f0;
	--sshb-white: #ffffff;
	--sshb-radius: 12px;
	--sshb-max-width: 1200px;
	--sshb-margin: 60px;
}
.inside-header {
	margin-bottom: var(--sshb-margin);
}

.sshb-container {
	max-width: var(--sshb-max-width);
	margin: 0 auto;
	padding: 0 24px;
}


.sshb-section {
	padding: var(--sshb-margin) 0;
}

/* Buttons */
.sshb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	font-size: 18px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.sshb-btn:hover {
	opacity: 0.88;
	text-decoration: none;
}

.sshb-btn--primary {
	background: var(--sshb-amber);
	color: var(--sshb-navy);
}

.sshb-btn--outline {
	background: transparent;
	color: var(--sshb-blue);
	border-color: var(--sshb-blue);
}

.sshb-btn--outline-white {
	background: transparent;
	color: var(--sshb-white);
	border-color: var(--sshb-white);
}

.sshb-btn--teal {
	background: var(--sshb-teal);
	color: var(--sshb-white);
}

/* Headings */
.sshb-eyebrow {
	color: var(--sshb-amber-dark);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 14px;
	margin: 0 0 8px;
}

.sshb-heading {
	color: var(--sshb-navy);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
}

.sshb-subtext {
	color: var(--sshb-text-light);
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* Reusable optional section heading (centered H2 + intro), shared across blocks */
.sshb-section-heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}

/* Grid helpers */
.sshb-grid {
	display: grid;
	gap: 24px;
}

/* Organic wave dividers
   Add "sshb-wave-bottom" to a section to let its background bleed into the
   next section with a wavy edge, or "sshb-wave-top" to let it rise up into
   the section above. Pair with a "sshb-wave-shape-*" class to choose the
   curve: gentle (subtle double curve, the original), bold (a single
   pronounced arc, closer to the original design), or ripple (a bolder
   triple curve). All three use the same background-color: inherit /
   mask-image technique — only the mask path and strip height differ. */
.sshb-wave-top,
.sshb-wave-bottom {
	position: relative;
	z-index: 1;
}

.sshb-wave-top::before,
.sshb-wave-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	pointer-events: none;
	background-color: inherit;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* Gentle — a single smooth, shallow arc (the original double-curve had a
   visible pinch where its two humps met; one continuous curve avoids that) */
.sshb-wave-shape-gentle::before,
.sshb-wave-shape-gentle::after {
	height: 56px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q300,0 600,40 T1200,40 V120 H0 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q300,0 600,40 T1200,40 V120 H0 Z'/%3E%3C/svg%3E");
}

/* Bold — a single, deep, pronounced arc (matches the original design's bolder look) */
.sshb-wave-shape-bold::before,
.sshb-wave-shape-bold::after {
	height: 110px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q600,120 1200,10 V120 H0 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,10 Q600,120 1200,10 V120 H0 Z'/%3E%3C/svg%3E");
}

/* Ripple — bolder triple curve, more texture across the width */
/* Ripple — bolder wave built from cubic-Bezier "S-curve" quarter-segments
   (the standard technique for a genuinely smooth sine-like wave in SVG).
   The previous version chained quadratic curves that were tangent-continuous
   at each join but flipped curvature direction abruptly there, which reads
   visually as a sharp point even though it's technically "smooth" — this
   version transitions curvature gradually instead, like a real sine wave. */
.sshb-wave-shape-ripple::before,
.sshb-wave-shape-ripple::after {
	height: 80px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,45 C50,45 100,10 150,10 C200,10 250,45 300,45 C350,45 400,80 450,80 C500,80 550,45 600,45 C650,45 700,10 750,10 C800,10 850,45 900,45 C950,45 1000,80 1050,80 C1100,80 1150,45 1200,45 V120 H0 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,45 C50,45 100,10 150,10 C200,10 250,45 300,45 C350,45 400,80 450,80 C500,80 550,45 600,45 C650,45 700,10 750,10 C800,10 850,45 900,45 C950,45 1000,80 1050,80 C1100,80 1150,45 1200,45 V120 H0 Z'/%3E%3C/svg%3E");
}

.sshb-wave-bottom::after {
	bottom: 0;
	transform: translateY(100%) scaleY(-1) scaleX(-1);
}

.sshb-wave-top::before {
	top: 0;
	transform: translateY(-100%);
}
.one-container .site-content {
    padding-bottom: 0 !important;
}


/*  Extra css */
.mt { margin-top: var(--sshb-margin); }
.mb { margin-bottom: var(--sshb-margin); }
.flip img {   -webkit-transform: scaleX(-1);   transform: scaleX(-1); }

@media (max-width: 782px) {
	.one-container .site-content {
    padding: 20px;
	}
	
	.sshb-wave-shape-gentle::before,
	.sshb-wave-shape-gentle::after {
		height: 32px;
	}

	.sshb-wave-shape-bold::before,
	.sshb-wave-shape-bold::after {
		height: 64px;
	}

	.sshb-wave-shape-ripple::before,
	.sshb-wave-shape-ripple::after {
		height: 48px;
	}
}

/* ==========================================================================
   Editor-only polish
   These classes only ever appear in each block's edit() output — never in
   save() — so styling them here has no effect on the live site. Grouped in
   one place so every repeater block (Feature Grid items, Feature Panel
   panels, Selected Work cards, Testimonials, How It Works steps, FAQ items)
   gets a consistent, tidy "Remove" affordance without duplicating CSS.
   ========================================================================== */
.sshb-remove-item {
	position: absolute !important;
	top: 8px;
	right: 8px;
	z-index: 5;
	display: inline-flex !important;
	align-items: center;
	height: auto !important;
	padding: 3px 10px !important;
	background: var(--sshb-white);
	border: 1px solid var(--sshb-border) !important;
	border-radius: 999px;
	font-size: 11px !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sshb-remove-item:hover {
	background: #fdecec;
	border-color: #d63638 !important;
}

@media (max-width: 782px) {
	.sshb-section {
		padding: 40px 0;
	}
}
