/*
Theme Name: Crestlink
Theme URI: https://localhost/crestlink
Author: Crestlink
Description: Crestlink theme: performance marketing, front page, and legal page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crestlink
*/

/**
 * Shared layout for front-page content sections (padding, max-width, horizontal rhythm).
 * Add class `fazis-front-section` to each <section> under .fazis-front__main.
 */
:root {
	/* Brand */
	--crest-ink: rgb(15 23 42);
	--crest-ink-soft: rgb(30 41 59);
	--crest-accent: rgb(234 88 12);
	--crest-accent-hover: rgb(194 65 12);
	--crest-violet: rgb(99 102 241);
	/* Surfaces (warm neutrals vs old cold blue-gray) */
	--crest-page: rgb(250 250 249);
	--crest-surface: rgb(255 247 237);
	--crest-surface-muted: rgb(254 252 250);
	--crest-border: rgb(254 215 170);
	--crest-border-soft: rgb(252 231 213);
	--fazis-section-pt: 9.375rem;
	/* Breathing room before the next section (avoids “stuck” band transitions). */
	--fazis-section-pb: clamp(2.5rem, 4vw, 4rem);
	--fazis-section-max: calc(1520px + 2 * 7.4vw);
	--fazis-section-px: clamp(1.25rem, 7.4vw, 12.5rem);
	--fazis-section-pt-sm: 5rem;
	--fazis-section-px-sm: 1.25rem;
	--fazis-section-inner-max: 95rem;
	--fazis-section-inner-gap: clamp(2rem, 4vw, 4rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.fazis-front-section {
	padding-top: var(--fazis-section-pt);
	padding-bottom: var(--fazis-section-pb);
	max-width: var(--fazis-section-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fazis-section-px);
	padding-right: var(--fazis-section-px);
}

@media (max-width: 550px) {
	.fazis-front-section {
		padding-top: var(--fazis-section-pt-sm);
		padding-bottom: var(--fazis-section-pb);
		padding-left: var(--fazis-section-px-sm);
		padding-right: var(--fazis-section-px-sm);
	}
}

/* Inner wrapper: add `fazis-front-section__inner` next to your block’s `__inner` class (e.g. fazis-foo__inner). */
.fazis-front-section__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	max-width: var(--fazis-section-inner-max);
	margin-left: auto;
	margin-right: auto;
	gap: var(--fazis-section-inner-gap);
	width: 100%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--crest-ink-soft, #1e293b);
	background: var(--crest-page, #fafaf9);
}

a {
	color: var(--crest-accent, rgb(234 88 12));
}

.fazis-main {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

.fazis-title {
	margin: 0 0 1rem;
	font-size: 1.75rem;
	line-height: 1.25;
}

.fazis-content > *:first-child,
.fazis-excerpt > *:first-child {
	margin-top: 0;
}

.fazis-content > *:last-child,
.fazis-excerpt > *:last-child {
	margin-bottom: 0;
}

article + article {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid #e5e7eb;
}

.navigation.pagination {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Scroll-reveal title wrappers: span full width in flex column inners */
.fazis-use__head,
.fazis-team__head,
.fazis-intro__title-wrap {
	width: 100%;
}
