/*!
Theme Name: Final Point Mali Müşavirlik A.Ş.
Theme URI: https://merkezfinans.com
Author: Final Point Mali Müşavirlik A.Ş.
Author URI: https://merkezfinans.com
Description: Premium kurumsal finans, vergi danismanligi ve mali musavirlik WordPress temasi. Modern, hizli ve donusum odakli tasarim.
Version: 1.1.13
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: merkez-finans
Domain Path: /languages
Tags: corporate, finance, consulting, responsive, custom-colors, custom-logo, custom-menu, editor-style, featured-images, theme-options, threaded-comments, translation-ready, wide-blocks, block-styles
*/

/* ============================================================
   0. CSS RESET & NORMALIZE (Minimal)
   ============================================================ */

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

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

html {
	overflow-x: hidden;
	width: 100%;
}

body {
	font-family: var(--font-body);
	font-size: 1.6rem;
	line-height: 1.6;
	color: var(--color-text-dark);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	width: 100%;
	position: relative;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	border: none;
	background: none;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */

:root {
	/* --- Colors --- */
	--color-navy: #071B3A;
	--color-navy-50: #E6EDF5;
	--color-navy-100: #C0D2E8;
	--color-navy-200: #96B3D8;
	--color-navy-300: #6C94C8;
	--color-navy-400: #4D7BBD;
	--color-navy-500: #2E639B;
	--color-navy-600: #1A4D82;
	--color-navy-700: #0E4D92;
	--color-navy-800: #071B3A;
	--color-navy-900: #040F22;

	--color-accent: #2EA8FF;
	--color-accent-50: #E6F4FF;
	--color-accent-100: #C0E6FF;
	--color-accent-200: #96D4FF;
	--color-accent-300: #6CC2FF;
	--color-accent-400: #2EA8FF;
	--color-accent-500: #1A94EB;
	--color-accent-600: #0D7AC4;

	--color-soft: #EEF7FF;
	--color-soft-50: #F5FBFF;
	--color-soft-100: #EEF7FF;
	--color-soft-200: #D6EDFF;

	--color-white: #FFFFFF;
	--color-text-dark: #101828;
	--color-text-muted: #667085;
	--color-border: #D9E6F2;

	/* --- Gradients --- */
	--gradient-navy: linear-gradient(135deg, #071B3A 0%, #0E4D92 100%);
	--gradient-blue: linear-gradient(135deg, #0E4D92 0%, #2EA8FF 100%);
	--gradient-cta: linear-gradient(135deg, #0D7AC4 0%, #2EA8FF 50%, #0E4D92 100%);
	--gradient-hero-overlay: linear-gradient(90deg, rgba(7,27,58,0.92) 0%, rgba(7,27,58,0.75) 50%, rgba(7,27,58,0.50) 100%);
	--gradient-fade-white: linear-gradient(to top, #FFFFFF 0%, transparent 100%);

	/* --- Typography --- */
	--font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;

	/* Font sizes with clamp() for fluid responsiveness */
	--text-xs: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
	--text-sm: clamp(1.3rem, 0.5vw + 1.1rem, 1.4rem);
	--text-base: clamp(1.4rem, 0.5vw + 1.2rem, 1.6rem);
	--text-lg: clamp(1.6rem, 0.6vw + 1.3rem, 1.8rem);
	--text-xl: clamp(1.8rem, 0.8vw + 1.4rem, 2.2rem);
	--text-2xl: clamp(2.2rem, 1.2vw + 1.6rem, 3rem);
	--text-3xl: clamp(2.8rem, 2vw + 1.6rem, 4rem);
	--text-4xl: clamp(3.6rem, 3vw + 1.6rem, 5.6rem);
	--text-5xl: clamp(4.2rem, 4vw + 1.6rem, 6.4rem);

	/* --- Spacing --- */
	--space-xs: clamp(0.4rem, 0.2vw + 0.2rem, 0.6rem);
	--space-sm: clamp(0.8rem, 0.4vw + 0.4rem, 1.2rem);
	--space-md: clamp(1.6rem, 0.8vw + 0.8rem, 2.4rem);
	--space-lg: clamp(2.4rem, 1.2vw + 1.2rem, 4rem);
	--space-xl: clamp(3.2rem, 2vw + 1.6rem, 6.4rem);
	--space-2xl: clamp(4.8rem, 3vw + 2.4rem, 9.6rem);

	/* --- Border Radius --- */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-2xl: 32px;
	--radius-full: 9999px;

	/* --- Shadows --- */
	--shadow-soft: 0 4px 24px -4px rgba(7, 27, 58, 0.08);
	--shadow-card: 0 8px 32px -8px rgba(7, 27, 58, 0.12);
	--shadow-card-hover: 0 16px 48px -12px rgba(7, 27, 58, 0.18);
	--shadow-glass: 0 8px 32px 0 rgba(7, 27, 58, 0.15);
	--shadow-button: 0 4px 16px -4px rgba(46, 168, 255, 0.35);

	/* --- Container --- */
	--container-max: 1280px;
	--container-padding: clamp(1.6rem, 3vw, 3.2rem);

	/* --- Transitions --- */
	--transition-fast: 150ms ease;
	--transition-base: 300ms ease;
	--transition-slow: 500ms ease;

	/* --- Z-index layers --- */
	--z-base: 1;
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-modal: 300;
	--z-top: 400;
}

/* ============================================================
   2. GOOGLE FONTS
   ============================================================ */

/* Loaded via wp_enqueue_scripts in functions.php */

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: calc(var(--z-top) + 1);
	padding: var(--space-sm) var(--space-lg);
	background: var(--color-navy);
	color: var(--color-white);
	font-weight: 600;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	transition: top var(--transition-base);
}

.skip-link:focus {
	top: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* ============================================================
   4. LAYOUT HELPERS
   ============================================================ */

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.container-fluid {
	width: 100%;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.section-padding {
	padding-top: var(--space-2xl);
	padding-bottom: var(--space-2xl);
}

/* ============================================================
   5. GLASSMORPHISM EFFECT
   ============================================================ */

.glass-card {
	background: rgba(255, 255, 255, 0.10);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.20);
	border-radius: var(--radius-xl);
}

/* ============================================================
   6. ANIMATIONS
   ============================================================ */

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@keyframes countUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-float {
	animation: float 3s ease-in-out infinite;
}

.animate-float-delay-1 { animation-delay: 0.5s; }
.animate-float-delay-2 { animation-delay: 1s; }
.animate-float-delay-3 { animation-delay: 1.5s; }

.animate-fade-in-up {
	animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in-right {
	animation: slideInRight 0.6s ease forwards;
}

/* Scroll-triggered animation base */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   7. BUTTON COMPONENTS
   ============================================================ */

.btn {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	padding: var(--space-md) var(--space-xl);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--text-base);
	border-radius: var(--radius-lg);
	transition: all var(--transition-base);
	white-space: normal;
	text-align: center;
}

.btn-primary {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn-primary:hover {
	background: var(--color-accent-500);
	transform: translateY(-2px);
	box-shadow: var(--shadow-button);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.10);
	color: var(--color-white);
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(10px);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.20);
}

.btn-white {
	background: var(--color-white);
	color: var(--color-navy-800);
}

.btn-white:hover {
	background: var(--color-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-card-hover);
}

.btn-outline {
	background: transparent;
	color: var(--color-accent);
	border: 1px solid var(--color-accent);
}

.btn-outline:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* ============================================================
   8. CARD COMPONENTS
   ============================================================ */

.card {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	border: 1px solid rgba(217, 230, 242, 0.5);
	box-shadow: var(--shadow-card);
	transition: all var(--transition-base);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
	border-color: rgba(46, 168, 255, 0.3);
}

.card-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	background: var(--color-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-lg);
	transition: all var(--transition-base);
}

.card:hover .card-icon {
	background: var(--color-accent);
	box-shadow: var(--shadow-button);
}

.card-icon svg {
	width: 24px;
	height: 24px;
	color: var(--color-accent);
	transition: color var(--transition-base);
}

.card:hover .card-icon svg {
	color: var(--color-white);
}

/* ============================================================
   9. SECTION HEADER PATTERN
   ============================================================ */

.section-header {
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--space-xl);
}

.section-badge {
	display: inline-block;
	padding: var(--space-xs) var(--space-md);
	background: var(--color-accent-50);
	color: var(--color-accent-600);
	font-size: var(--text-sm);
	font-weight: 600;
	border-radius: var(--radius-full);
	margin-bottom: var(--space-md);
}

.section-title {
	font-size: var(--text-3xl);
	font-weight: 800;
	color: var(--color-navy-800);
	margin-bottom: var(--space-md);
}

.section-title .text-gradient {
	background: linear-gradient(135deg, var(--color-accent-400), var(--color-navy-400));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-description {
	font-size: var(--text-lg);
	color: var(--color-text-muted);
	line-height: 1.7;
}

/* ============================================================
   10. BREAKPOINT UTILITIES
   ============================================================ */

/* Hide on mobile */
@media (max-width: 767px) {
	.hide-mobile {
		display: none;
	}
}

/* Hide on tablet+ */
@media (min-width: 768px) {
	.hide-tablet-up {
		display: none;
	}
}

/* Hide on desktop */
@media (min-width: 1024px) {
	.hide-desktop {
		display: none;
	}
}

/* ============================================================
   11. PRINT STYLES
   ============================================================ */

@media print {
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 90%;
		opacity: 0.7;
	}

	header,
	footer,
	nav,
	.no-print {
		display: none !important;
	}
}
