/*
Theme Name: Alura Why Us
Theme URI: https://example.com/alura-why-us
Author: Kvarcas
Author URI: https://aplankyt.lt
Description: Minimalistinė "Why us" tipo pradinio puslapio tema su portfolio bloku vietoje statistikos skaičių. Sukurta pagal pateiktą dizainą (ALURA hero sekcija) - su redaguojamu turiniu per Customizer ir savo "Portfolio" įrašų tipu.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: alura
*/

/* -------------------------------------------------
   0. Reset & base
------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--color-bg: #f4f3f1;
	--color-card: #ffffff;
	--color-dark: #141414;
	--color-text: #17161a;
	--color-muted: #6f6d76;
	--color-line: rgba(20, 20, 20, 0.08);
	--color-star: #f5a623;
	--radius-lg: 20px;
	--radius-sm: 10px;
	--container: 1200px;
	--font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img {
	max-width: 100%;
	display: block;
}

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

ul {
	margin: 0;
	padding: 0;
}

button {
	font-family: inherit;
	cursor: pointer;
}

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

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

:focus-visible {
	outline: 2px solid var(--color-dark);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* -------------------------------------------------
   1. Header
------------------------------------------------- */
.site-header {
	flex: none;
	padding: 28px 0 12px;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	row-gap: 10px;
	gap: 24px;
}

.site-logo {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.primary-nav {
	display: none;
}

.primary-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	row-gap: 8px;
	gap: 20px 28px;
	font-size: 0.9rem;
	font-weight: 500;
}

.primary-nav a:hover {
	color: var(--color-muted);
}

.btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-card);
	border: 1px solid var(--color-line);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Bulletproof icon sizing: every icon is wrapped in a fixed-size,
   overflow-hidden box so it can never render at an SVG's intrinsic
   (often huge) default size, regardless of theme/plugin CSS conflicts. */
.icon-fixed {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	line-height: 0;
}

.icon-fixed svg {
	width: 100%;
	height: 100%;
	display: block;
}

.icon-fixed--14 {
	width: 14px;
	height: 14px;
}

.icon-fixed--16 {
	width: 16px;
	height: 16px;
}

.icon-fixed--18 {
	width: 18px;
	height: 18px;
}

.icon-fixed--28 {
	width: 28px;
	height: 28px;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--color-line);
	background: var(--color-card);
}

.mobile-nav {
	display: none;
	padding: 12px 0 4px;
}

.mobile-nav.is-open {
	display: block;
}

.mobile-nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mobile-nav a {
	display: block;
	padding: 10px 4px;
	font-weight: 600;
	border-bottom: 1px solid var(--color-line);
}

@media (min-width: 900px) {
	.primary-nav {
		display: block;
	}
	.menu-toggle {
		display: none;
	}
	.mobile-nav {
		display: none !important;
	}
}

/* -------------------------------------------------
   2. Why us hero section
------------------------------------------------- */
.site-main.why-us {
	position: relative;
	overflow: hidden;
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	padding: 56px 0 150px;
	min-height: 640px;
}

.why-us .container {
	display: grid;
	grid-template-columns: minmax(0, 280px) 1fr;
	gap: 56px;
	align-items: start;
	position: relative;
	z-index: 1;
	width: 100%;
}

@media (max-width: 900px) {
	.why-us .container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* --- left column --- */
.why-us-heading {
	font-size: clamp(2.75rem, 6vw, 3.5rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 8px 0 32px;
}

.why-us-heading span {
	display: block;
}

.feature-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	font-size: 0.92rem;
	font-weight: 500;
	border-bottom: 1px solid var(--color-line);
}

.feature-item:first-child {
	border-top: 1px solid var(--color-line);
}

.feature-icon {
	flex: none;
	width: 11px;
	height: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text);
}

.feature-icon.is-plus::before {
	content: "+";
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.feature-icon.is-circle {
	border: 1.4px solid currentColor;
	border-radius: 50%;
}

.feature-icon.is-square {
	border: 1.4px solid currentColor;
}

.testimonial-slider {
	max-width: 260px;
	position: relative;
}

.testimonial-slide {
	display: none;
}

.testimonial-slide.is-active {
	display: block;
	animation: alura-testimonial-fade 0.5s ease;
}

@keyframes alura-testimonial-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.testimonial-dots {
	display: flex;
	gap: 6px;
	margin-top: 16px;
}

.testimonial-dots .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.18);
	transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dots .dot.is-active {
	background: var(--color-dark);
	transform: scale(1.35);
}

.testimonial-stars {
	color: var(--color-star);
	font-size: 0.85rem;
	letter-spacing: 2px;
	margin-bottom: 6px;
}

.testimonial-score {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--color-text);
	margin-left: 4px;
	letter-spacing: normal;
}

.testimonial-quote {
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--color-muted);
	margin: 0 0 14px;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.testimonial-avatar {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--color-dark);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.testimonial-name {
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
}

.testimonial-role {
	font-size: 0.72rem;
	color: var(--color-muted);
	line-height: 1.3;
}

/* --- right column --- */
.why-us-intro {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	line-height: 1.55;
	max-width: 640px;
	text-indent: 3.2em;
	font-weight: 500;
}

@media (max-width: 900px) {
	.why-us-intro {
		text-indent: 0;
	}
}

/* portfolio row (replaces the stats row) */
.portfolio-row {
	position: relative;
	margin-top: 68px;
}

.portfolio-watermark {
	position: absolute;
	top: -38px;
	left: -6px;
	right: 0;
	font-size: clamp(2.5rem, 7vw, 5rem);
	font-weight: 800;
	color: rgba(20, 20, 20, 0.045);
	white-space: nowrap;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
	user-select: none;
}

.portfolio-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 700px) {
	.portfolio-grid:not(.is-slider) {
		grid-template-columns: 1fr;
	}
}

/* --- slider mode: activates automatically when there are more than 3 items --- */
.portfolio-grid.is-slider {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	padding-bottom: 16px;
	margin-bottom: -16px;
	scrollbar-width: thin;
	scrollbar-color: rgba(20, 20, 20, 0.28) rgba(20, 20, 20, 0.06);
}

.portfolio-grid.is-slider.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.portfolio-grid.is-slider .portfolio-card {
	flex: 0 0 270px;
	scroll-snap-align: start;
}

.portfolio-grid.is-slider::-webkit-scrollbar {
	height: 6px;
}

.portfolio-grid.is-slider::-webkit-scrollbar-track {
	background: rgba(20, 20, 20, 0.06);
	border-radius: 999px;
}

.portfolio-grid.is-slider::-webkit-scrollbar-thumb {
	background: rgba(20, 20, 20, 0.28);
	border-radius: 999px;
}

@media (max-width: 700px) {
	.portfolio-grid.is-slider .portfolio-card {
		flex-basis: 78vw;
	}
}

.portfolio-slider-hint {
	margin: 10px 2px 0;
	font-size: 0.76rem;
	color: var(--color-muted);
}

.portfolio-card {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 20px;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(20, 20, 20, 0.08);
}

.portfolio-card .thumb-wrap {
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--color-bg);
	margin-bottom: 18px;
}

.portfolio-card .thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portfolio-card .thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-muted);
}

.portfolio-card .cat {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-muted);
	margin: 0 0 4px;
}

.portfolio-card h3 {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 6px;
}

.portfolio-card p.desc {
	font-size: 0.82rem;
	color: var(--color-muted);
	line-height: 1.5;
	margin: 0;
}

.portfolio-empty {
	grid-column: 1 / -1;
	background: var(--color-card);
	border: 1px dashed var(--color-line);
	border-radius: var(--radius-lg);
	padding: 32px;
	text-align: center;
	color: var(--color-muted);
	font-size: 0.9rem;
}

/* corner decoration */
.why-us-corner {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 130px;
	height: 130px;
	background: var(--color-dark);
	border-radius: 60% 0 0 0;
	z-index: 2;
}

@media (max-width: 700px) {
	.why-us-corner {
		width: 90px;
		height: 90px;
	}
}

/* -------------------------------------------------
   2b. Contact section
------------------------------------------------- */
.contact-section {
	flex: none;
	background: var(--color-dark);
	color: #fff;
	min-height: 62vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 90px 0;
}

.contact-inner {
	max-width: 640px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.contact-heading {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
}

.contact-text {
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

.contact-details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 28px;
	margin: 4px 0 6px;
}

.contact-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
}

.contact-item .icon-fixed {
	color: rgba(255, 255, 255, 0.65);
}

a.contact-item:hover {
	color: rgba(255, 255, 255, 0.75);
}

.btn-pill-light {
	background: #fff;
	color: var(--color-dark);
	border-color: transparent;
}

/* -------------------------------------------------
   3. Generic content (fallback templates)
------------------------------------------------- */
.site-main {
	flex: 1 0 auto;
	padding: 40px 0 80px;
}

.page-title {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 24px;
}

.entry-content {
	font-size: 1rem;
	line-height: 1.7;
	max-width: 760px;
}

.post-list {
	list-style: none;
	display: grid;
	gap: 24px;
}

.post-list article {
	background: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.post-list h2 {
	margin: 0 0 8px;
	font-size: 1.3rem;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

/* -------------------------------------------------
   4. Footer
------------------------------------------------- */
.site-footer {
	flex: none;
	padding: 32px 0 60px;
	font-size: 0.82rem;
	color: var(--color-muted);
}

.site-footer .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
