/* Page/template-specific styles: single article, static page, archive,
   homepage sections, service pages, contact page. */

.single-article__content,
.single-page__content {
	max-width: 68ch;
	margin-inline: auto;
	padding-block: var(--space-xl);
}

.single-article__content h2,
.single-page__content h2 {
	margin-top: var(--space-lg);
}

.single-article__thumbnail img,
.single-page__thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.single-article__header,
.single-page__header {
	padding-block: var(--space-xl) var(--space-md);
	text-align: center;
}

/* Gallery page */

.gallery-page__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	padding-block: var(--space-xl);
}

@media (min-width: 640px) {
	.gallery-page__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.gallery-page__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gallery-page__item {
	margin: 0;
}

.gallery-page__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.gallery-page__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-page__item:hover .gallery-page__image img {
	transform: scale(1.08);
}

.gallery-page__caption {
	margin-top: var(--space-sm);
	font-weight: 600;
	text-align: center;
}

.single-article__category {
	display: inline-block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-accent-dark);
	background: rgba(251, 155, 31, 0.12);
	border-radius: 999px;
	padding: 0.3em 0.75em;
	font-weight: 700;
	margin-block-end: var(--space-sm);
}

.single-article__meta {
	color: var(--color-ink-soft);
	font-size: var(--step--1);
	display: flex;
	gap: var(--space-sm);
	justify-content: center;
}

.page-header {
	padding-block: var(--space-xl) var(--space-lg);
	text-align: center;
}

.related-articles {
	padding-block: var(--space-xl);
	border-top: 1px solid var(--color-border);
}

.related-articles__title {
	margin-bottom: var(--space-lg);
}

.article-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}

.article-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.article-category-filter__link {
	display: inline-block;
	padding: 0.4em 0.9em;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	color: var(--color-ink-soft);
	font-size: var(--step--1);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.article-category-filter__link:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.article-category-filter__link.is-active {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #ffffff;
}

.article-archive-nav__select {
	padding: 0.5em 1em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: var(--step--1);
	background: var(--color-bg);
	color: inherit;
}

/* Service pages */

.single-service__header {
	padding-block: var(--space-xl) var(--space-md);
	text-align: center;
}

.single-service__lead {
	max-width: 48ch;
	margin-inline: auto;
	font-size: var(--step-1);
}

.single-service__content,
.single-service__benefits,
.single-service__scope,
.single-service__faq,
.single-service__cta {
	max-width: 68ch;
	margin-inline: auto;
	padding-block: var(--space-lg);
}

.single-service__benefits ul,
.single-service__scope ul {
	list-style: none;
	padding: 0;
	display: grid;
	gap: var(--space-md);
}

.single-service__benefits li,
.single-service__scope li {
	padding: var(--space-md);
	background: var(--color-bg-subtle);
	border-radius: var(--radius);
	border-left: 3px solid var(--color-primary);
}

.single-service__thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.single-service__cta {
	text-align: center;
	background: var(--color-bg-subtle);
	border-radius: var(--radius);
	padding: var(--space-xl) var(--space-lg);
}

.card-service__link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card-service__link:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
	border-color: transparent;
}

.card-service__thumbnail img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.card-service__body {
	padding: var(--space-md);
}

.card-service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--gradient-brand);
	color: #ffffff;
	font-size: 20px;
	margin-bottom: var(--space-sm);
	transition: transform 0.3s ease;
}

.card-service__link:hover .card-service__icon {
	transform: rotate(-8deg) scale(1.08);
}

.card-service__title {
	font-size: var(--step-1);
	margin-bottom: var(--space-xs);
}

.card-service__description {
	color: var(--color-ink-soft);
	font-size: var(--step--1);
}

/* Homepage: hero */

.hero {
	position: relative;
	background: var(--gradient-dark);
	overflow: hidden;
}

.hero::before,
.hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
}

.hero::before {
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(11, 116, 227, 0.5) 0%, transparent 70%);
	top: -120px;
	right: -100px;
}

.hero::after {
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(251, 155, 31, 0.35) 0%, transparent 70%);
	bottom: -140px;
	left: -80px;
}

.hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.hero__track::-webkit-scrollbar {
	display: none;
}

.hero__slide {
	position: relative;
	z-index: 1;
	min-width: 100%;
	scroll-snap-align: start;
	min-height: 72vh;
	display: flex;
	align-items: center;
}

.hero__image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
	animation: hero-ken-burns 18s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	.hero__image img {
		animation: none;
	}
}

.neuron-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero__image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 21, 36, 0.4) 0%, rgba(12, 21, 36, 0.85) 100%);
}

.hero__content {
	position: relative;
	z-index: 1;
	padding-block: var(--space-2xl);
	max-width: 44rem;
	color: #ffffff;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--color-accent);
	background: rgba(251, 155, 31, 0.12);
	border: 1px solid rgba(251, 155, 31, 0.35);
	padding: 0.4em 0.9em;
	border-radius: 999px;
	margin-bottom: var(--space-md);
}

.hero__title {
	color: #ffffff;
	font-size: clamp(2.5rem, 2rem + 3vw, 4.2rem);
}

.hero__description {
	color: #dbe1ea;
	font-size: var(--step-1);
	max-width: 38ch;
}

.hero__actions {
	display: flex;
	gap: var(--space-sm);
	flex-wrap: wrap;
	margin-top: var(--space-lg);
}

.hero__nav {
	position: absolute;
	bottom: var(--space-md);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: var(--space-xs);
	z-index: 1;
}

.hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid #ffffff;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

/* Homepage: about */

.about-section {
	padding-block: var(--space-2xl);
	position: relative;
	overflow: hidden;
}

.about-section__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.about-section__inner {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: var(--space-2xl);
	}
}

.about-section__image {
	position: relative;
}

.about-section__image::before {
	content: '';
	position: absolute;
	inset: -16px -16px auto auto;
	width: 70%;
	height: 70%;
	background: var(--gradient-accent);
	border-radius: var(--radius-lg);
	z-index: -1;
	opacity: 0.15;
}

.about-section__image img {
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-shadow: var(--shadow-md);
}

.about-section__description {
	font-size: var(--step-0);
	margin-bottom: var(--space-lg);
}

/* Homepage: generic section spacing */

.services-section,
.why-us-section,
.team-section,
.testimonials-section,
.articles-section,
.faq-section {
	padding-block: var(--space-2xl);
}

/* Homepage: gallery */

.gallery-section {
	padding-block: var(--space-2xl);
	position: relative;
}

.gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	gap: var(--space-md);
	padding-bottom: var(--space-lg);
}

.gallery__track::-webkit-scrollbar {
	display: none;
}

.gallery__slide {
	position: relative;
	flex: 0 0 auto;
	width: min(320px, 80vw);
	scroll-snap-align: start;
}

.gallery__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery__slide:hover .gallery__image img {
	transform: scale(1.08);
}

.gallery__caption {
	margin-top: var(--space-sm);
	font-weight: 600;
	text-align: center;
}

.gallery__nav {
	display: flex;
	justify-content: center;
	gap: var(--space-xs);
	margin-top: var(--space-sm);
}

.gallery__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.why-us-section,
.testimonials-section,
.about-section,
.gallery-section {
	background: var(--color-bg-subtle);
}

.services-section__header,
.why-us-section__header,
.team-section__header,
.testimonials-section__header,
.articles-section__header,
.faq-section__header,
.clients-section__header,
.gallery-section__header,
.statistics-section__header {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
	margin-bottom: var(--space-xl);
}

.services-section__header::before,
.why-us-section__header::before,
.team-section__header::before,
.testimonials-section__header::before,
.articles-section__header::before,
.faq-section__header::before,
.clients-section__header::before,
.gallery-section__header::before,
.statistics-section__header::before {
	content: '';
	display: block;
	width: 48px;
	height: 4px;
	border-radius: 999px;
	background: var(--gradient-accent);
	margin-inline: auto;
	margin-bottom: var(--space-md);
	transition: width 0.6s ease 0.2s;
}

.reveal-ready [data-reveal] .services-section__header::before,
.reveal-ready [data-reveal] .why-us-section__header::before,
.reveal-ready [data-reveal] .team-section__header::before,
.reveal-ready [data-reveal] .testimonials-section__header::before,
.reveal-ready [data-reveal] .articles-section__header::before,
.reveal-ready [data-reveal] .faq-section__header::before,
.reveal-ready [data-reveal] .clients-section__header::before,
.reveal-ready [data-reveal] .gallery-section__header::before,
.reveal-ready [data-reveal] .statistics-section__header::before {
	width: 0;
}

.reveal-ready [data-reveal].is-visible .services-section__header::before,
.reveal-ready [data-reveal].is-visible .why-us-section__header::before,
.reveal-ready [data-reveal].is-visible .team-section__header::before,
.reveal-ready [data-reveal].is-visible .testimonials-section__header::before,
.reveal-ready [data-reveal].is-visible .articles-section__header::before,
.reveal-ready [data-reveal].is-visible .faq-section__header::before,
.reveal-ready [data-reveal].is-visible .clients-section__header::before,
.reveal-ready [data-reveal].is-visible .gallery-section__header::before,
.reveal-ready [data-reveal].is-visible .statistics-section__header::before {
	width: 48px;
}

.services-section__description,
.why-us-section__description,
.team-section__description,
.testimonials-section__description,
.articles-section__description,
.faq-section__description,
.gallery-section__description {
	font-size: var(--step-0);
}

.services-section__cta,
.articles-section__cta,
.gallery-section__cta {
	text-align: center;
	margin-top: var(--space-xl);
}

/* Homepage: why us */

.why-us-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.why-us-section__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.why-us-section__grid {
	counter-reset: why-us;
}

/* Each card gets one flat, discrete color: blue -> dark bridge (same
   --gradient-dark used by the Clients section, ties the two sections
   together visually) -> deep amber, left to right (not a gradient - a
   solid swatch progression). Amber (#b46106, a lightened-but-still-
   accessible take on --color-accent) is used instead of the raw
   CTA-button orange because the raw value only clears 2.1:1 against
   white text - this shade clears 4.51:1 (the AA floor - any lighter
   fails), so all three cards can share the same white text/numeral
   treatment. */
.why-us-item {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--color-primary);
	padding: var(--space-lg);
	border-radius: var(--radius-lg);
	border-color: transparent;
	counter-increment: why-us;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-item:nth-child(1) { background: var(--color-primary); }
.why-us-item:nth-child(2) { background: var(--gradient-dark); }
.why-us-item:nth-child(3) { background: #b46106; }

@media (min-width: 640px) {
	.why-us-item:nth-child(4) { background: var(--color-primary); }
	.why-us-item:nth-child(5) { background: var(--gradient-dark); }
	.why-us-item:nth-child(6) { background: #b46106; }
}

/* Oversized ghost numeral bleeding off the corner - gives each card a
   distinct focal mark instead of a flat color block. Sits behind the
   text (z-index) and stays low-contrast so it never competes with it. */
.why-us-item::before {
	content: counter(why-us, decimal-leading-zero);
	position: absolute;
	top: -0.15em;
	right: -0.1em;
	z-index: 0;
	font-family: var(--font-heading);
	font-size: 6rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.14);
	font-weight: 700;
	pointer-events: none;
	transition: transform 0.4s ease, color 0.4s ease;
}

/* Diagonal shine sweep on hover - a soft light band travels across the
   card left to right, layered above the background but below the text. */
.why-us-item::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
	background-size: 250% 250%;
	background-position: -50% -50%;
	transition: background-position 0.7s ease;
	pointer-events: none;
}

.why-us-item:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: var(--shadow-md);
}

.why-us-item:hover::before {
	transform: scale(1.1);
	color: rgba(255, 255, 255, 0.22);
}

.why-us-item:hover::after {
	background-position: 50% 50%;
}

.why-us-item__title,
.why-us-item__description {
	position: relative;
	z-index: 1;
	color: #ffffff;
}

.why-us-item__title {
	font-size: var(--step-1);
	padding-right: 2.5rem;
}

.why-us-item__description {
	font-size: var(--step--1);
	opacity: 0.9;
}

/* Homepage: statistics */

.statistics-section {
	padding-block: var(--space-xl);
	background: var(--gradient-dark);
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.statistics-section__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.statistics-section__header {
	max-width: 42rem;
	margin: 0 auto var(--space-xl);
	text-align: center;
}

.statistics-section__title {
	color: #ffffff;
}

.statistics-section__description {
	color: #a7b1c2;
	margin-top: var(--space-sm);
}

.statistics-section__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-lg);
	text-align: center;
	max-width: 1200px;
	margin-inline: auto;
}

.statistic {
	text-align: center;
	flex: 0 1 200px;
}

.statistic__value {
	font-family: var(--font-heading);
	font-size: var(--step-4);
	font-weight: 600;
	background: var(--gradient-accent);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.25rem;
	animation: statistic-shimmer 5s ease-in-out infinite;
	text-align: center;
}

@keyframes statistic-shimmer {
	0%, 100% { background-position: 0% center; }
	50% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
	.statistic__value {
		animation: none;
	}
}

.statistic__label {
	color: #ffffff;
	font-weight: 600;
	margin-bottom: 0.15rem;
	text-align: center;
}

.statistic__description {
	color: #a7b1c2;
	font-size: var(--step--1);
}

/* Homepage: clients */

.clients-section {
	padding-block: var(--space-xl);
	background: var(--gradient-dark);
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.clients-section__inner {
	position: relative;
	z-index: 1;
}

.clients-section__title {
	color: #ffffff;
	text-align: center;
}

/* Homepage: FAQ */

.faq-list {
	max-width: 48rem;
	margin-inline: auto;
}

/* Homepage: CTA */

.cta-section {
	position: relative;
	padding-block: var(--space-2xl);
	background: var(--gradient-brand);
	color: #ffffff;
	text-align: center;
	overflow: hidden;
}

.cta-section__bg {
	position: absolute;
	inset: -20% 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.45;
	will-change: transform;
}

.cta-section::before {
	content: '';
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(251, 155, 31, 0.4) 0%, transparent 70%);
	filter: blur(60px);
	top: -100px;
	right: -60px;
	pointer-events: none;
	animation: cta-blob-drift 8s ease-in-out infinite;
}

@keyframes cta-blob-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-24px, 20px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
	.cta-section::before {
		animation: none;
	}
}

.cta-section__inner {
	position: relative;
	z-index: 1;
	max-width: 42rem;
	margin-inline: auto;
}

.cta-section__title {
	color: #ffffff;
}

.cta-section__description {
	color: #e3edfb;
	font-size: var(--step-1);
	margin-bottom: var(--space-lg);
}

/* Contact page */

.contact-page__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	padding-block: var(--space-2xl);
}

@media (min-width: 768px) {
	.contact-page__grid {
		grid-template-columns: 1fr 1.2fr;
	}
}

.contact-page__details {
	list-style: none;
	margin: 0 0 var(--space-lg);
	padding: 0;
}

.contact-page__details li {
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--color-border);
}

.contact-page__details strong {
	display: block;
	font-size: var(--step--1);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-primary);
	margin-bottom: 0.25rem;
}

.contact-page__map-trigger {
	display: block;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	border-radius: var(--radius);
	transition: background-color 0.15s ease;
}

.contact-page__map-trigger:hover,
.contact-page__map-trigger:focus-visible {
	background: var(--color-bg-subtle);
}

.contact-page__map-trigger.is-active strong {
	color: var(--color-accent, var(--color-primary));
}

.contact-page__map {
	border-radius: var(--radius);
	overflow: hidden;
	min-height: 320px;
	height: 100%;
}

.contact-page__map iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}

.contact-page__whatsapp {
	background: #25d366;
}

.contact-page__whatsapp:hover {
	background: #1ebe5a;
}

.contact-page__form {
	background: var(--color-bg-subtle);
	border-radius: var(--radius);
	padding: var(--space-lg);
}

.contact-page__form input[type="text"],
.contact-page__form input[type="email"],
.contact-page__form input[type="tel"],
.contact-page__form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: var(--step-0);
	margin-top: 0.25rem;
}

.contact-page__form .wpcf7-submit {
	margin-top: var(--space-sm);
}
