/*
Theme Name: Start Smile Academy
Theme URI: https://startsmile.az
Author: Start Smile Academy
Description: Xüsusi qayğıya ehtiyacı olan uşaqlar üçün inklüziv inkişaf mərkəzi Start Smile Academy-nin rəsmi WordPress teması.
Version: 1.0.0
Requires at least: 5.8
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: startsmile
*/

:root {
	--green: #1fb53a;
	--green-dark: #138a29;
	--green-soft: #e8f8eb;
	--yellow: #ffd60a;
	--yellow-soft: #fff7d1;
	--ink: #1d2a22;
	--muted: #5b6b61;
	--bg: #ffffff;
	--bg-alt: #f7fbf6;
	--radius: 22px;
	--shadow: 0 10px 30px rgba(19, 138, 41, .10);
	--max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: "Baloo 2", "Nunito", sans-serif;
	line-height: 1.2;
	margin: 0 0 .5em;
	color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 28px; border-radius: 999px;
	font-weight: 800; font-size: 16px; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
	font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(31, 181, 58, .3); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn-outline:hover { background: var(--green-soft); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #eef3ee;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { height: 78px; width: auto; }
.custom-logo { max-height: 64px; width: auto; }


.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 700;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--green-soft); color: var(--green-dark); }
.header-cta { margin-left: 8px; }

.menu-toggle {
	display: none; background: var(--green-soft); border: 0; border-radius: 12px;
	width: 46px; height: 46px; cursor: pointer; padding: 0;
	align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	display: block; width: 22px; height: 3px; background: var(--green-dark); border-radius: 2px;
	position: relative; transition: .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: 80px 0 100px;
	background:
		radial-gradient(circle at 85% 20%, var(--yellow-soft) 0, transparent 40%),
		radial-gradient(circle at 10% 90%, var(--green-soft) 0, transparent 45%),
		#fff;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge {
	display: inline-block; background: var(--yellow-soft); color: #8a6d00;
	font-weight: 800; font-size: 14px; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 5vw, 58px); }
.hero h1 .hl { color: var(--green); }
.hero h1 .hl-y { color: #e8b800; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .blob {
	background: #fff; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
	box-shadow: var(--shadow); padding: 30px; aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	animation: float 6s ease-in-out infinite;
}
.hero-visual .blob img { width: 90%; }
.dot { position: absolute; border-radius: 50%; }
.dot-y { width: 70px; height: 70px; background: var(--yellow); top: -10px; left: -10px; opacity: .9; }
.dot-g { width: 40px; height: 40px; background: var(--green); bottom: 20px; right: -10px; opacity: .85; }

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

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow {
	display: inline-block; color: var(--green-dark); font-weight: 800; letter-spacing: .08em;
	text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { color: var(--muted); }
.about-card {
	background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
	color: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
	position: relative; overflow: hidden;
}
.about-card::after {
	content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
	background: var(--yellow); opacity: .25; right: -40px; top: -40px;
}
.about-card h3 { color: #fff; font-size: 26px; }
.about-card p { margin: 0; font-size: 18px; position: relative; z-index: 1; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature {
	background: #fff; border-radius: 16px; padding: 16px; text-align: center;
	border: 1px solid #e6f2e7; font-weight: 700; font-size: 15px;
}
.feature .ico { font-size: 26px; display: block; margin-bottom: 4px; }

/* Programs */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.program {
	background: #fff; border-radius: var(--radius); padding: 32px 26px;
	box-shadow: var(--shadow); border-top: 6px solid var(--green);
	transition: transform .25s ease, box-shadow .25s ease;
}
.program:nth-child(even) { border-top-color: var(--yellow); }
.program:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(19, 138, 41, .16); }
.program .icon {
	width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
	font-size: 30px; background: var(--green-soft); margin-bottom: 18px;
}
.program:nth-child(even) .icon { background: var(--yellow-soft); }
.program h3 { font-size: 21px; }
.program p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Mission */
.mission {
	background: var(--yellow-soft); border-radius: 32px; padding: 60px;
	display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
}
.mission .smile {
	width: 140px; height: 140px; border-radius: 50%; background: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 70px; box-shadow: var(--shadow);
}
.mission h2 { font-size: clamp(26px, 3vw, 36px); }
.mission p { margin: 0; font-size: 18px; color: #4a4a2a; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 10px; }
.step .num {
	width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
	background: var(--green); color: #fff; font-weight: 800; font-size: 22px;
	display: flex; align-items: center; justify-content: center; font-family: "Baloo 2", sans-serif;
}
.step:nth-child(even) .num { background: var(--yellow); color: var(--ink); }
.step h4 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-item {
	display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 18px;
	padding: 20px; box-shadow: var(--shadow);
}
.info-item .ico {
	flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--green-soft);
	display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.info-item strong { display: block; font-size: 15px; color: var(--muted); font-weight: 700; }
.info-item a, .info-item span { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 17px; }

.contact-form {
	background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
	width: 100%; padding: 13px 16px; border-radius: 14px; border: 2px solid #e3ece4;
	font: inherit; font-size: 16px; background: #fcfefc; margin-bottom: 16px; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
	outline: none; border-color: var(--green); background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-weight: 700; }
.form-notice.ok { background: var(--green-soft); color: var(--green-dark); }
.form-notice.err { background: #ffecec; color: #b42318; }

.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #13321b; color: #cfe3d3; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { background: #fff; display: inline-block; border-radius: 18px; padding: 8px 14px; margin-bottom: 16px; }
.footer-logo img { height: 70px; width: auto; }
.site-footer h4 { color: #fff; font-size: 19px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe3d3; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
	width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08);
	display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.socials a:hover { background: var(--green); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 50px; padding: 20px 0;
	text-align: center; font-size: 14px; color: #93b39a;
}

/* WhatsApp floating */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 60px; height: 60px; border-radius: 50%; background: #25d366;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Generic pages / blog ---------- */
.page-hero { background: var(--green-soft); padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 0; }
.content-area { padding: 60px 0 80px; }
.entry-content { max-width: 800px; margin: 0 auto; }
.entry-content img { border-radius: 16px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 22px; }
.post-card h2 { font-size: 21px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card .meta { font-size: 14px; color: var(--muted); }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers {
	display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 10px;
	background: var(--green-soft); text-decoration: none; font-weight: 700;
}
.pagination .current { background: var(--green); color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.hero-visual .blob { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.programs, .steps { grid-template-columns: repeat(2, 1fr); }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.menu-toggle { display: flex; }
	.main-nav {
		position: absolute; top: 84px; left: 0; right: 0; background: #fff;
		border-bottom: 1px solid #eef3ee; box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
		display: none; padding: 12px 20px 20px;
	}
	.nav-open .main-nav { display: block; }
	.main-nav { flex-direction: column; }
	.main-nav ul { flex-direction: column; align-items: stretch; }
	.header-cta { margin: 8px 0 0; }
	.header-cta .btn { width: 100%; justify-content: center; }

	.hero { padding: 50px 0 70px; }
	.hero-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
	.hero-visual { max-width: 340px; margin: 0 auto; order: -1; }
	.mission { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
	.mission .smile { margin: 0 auto; }
	.section { padding: 64px 0; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.programs, .steps, .posts-grid, .features { grid-template-columns: 1fr; }
	.contact-form .row { grid-template-columns: 1fr; gap: 0; }
	.contact-form { padding: 24px; }
	.site-logo img { height: 52px; }
	.hero-actions .btn { width: 100%; justify-content: center; }
}

/* Header CTA override */
.main-nav .header-cta .btn-primary,
.main-nav .header-cta .btn-primary:hover { color: #fff; padding: 12px 24px; }
.main-nav .header-cta .btn-primary { background: var(--green); }
.main-nav .header-cta .btn-primary:hover { background: var(--green-dark); }
