/* ─── Layout primitives ──────────────────────────────────────────────────────── */

p, h1, h2, h3 {
    margin: 0;
}

.craft-container {
	max-width: 80rem;
	margin-inline: auto;
	padding: 1rem;
}
@media (min-width: 640px) {
	.craft-container {
		padding: 1.5rem;
	}
}
@media (min-width: 768px) {
	.craft-container {
		padding: 2rem;
	}
}

.section {
	padding-block: 2rem;
}
@media (min-width: 768px) {
	.section {
		padding-block: 3rem;
	}
}

.section--sm {
	padding-block: 3rem;
}
@media (min-width: 640px) {
	.section--sm {
		padding-block: 4rem;
	}
}

/* ─── Shared ─────────────────────────────────────────────────────────────────── */

.section-header {
	margin-bottom: 3rem;
}
.section-header--center {
	text-align: center;
}
.section-header--center .section-desc {
	margin-inline: auto;
}

.section-header h2 {
	margin-bottom: 1rem;
}

.section-desc {
	color: hsl(var(--muted-foreground));
	max-width: 36rem;
}

.section-cta {
	margin-top: 2.5rem;
	text-align: center;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */

.hero-section {
	min-height: 100svh;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding-block: 5rem;
}
@media (min-width: 640px) {
	.hero-section {
		padding-block: 8rem;
	}
}
@media (min-width: 768px) {
	.hero-section {
		padding-block: 10rem;
	}
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}
.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
}

.hero-irs-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	border-radius: 1.5rem;
	padding: 1rem;
	max-width: 32rem;
	width: 100%;
	text-decoration: none;
	text-align: left;
	margin-bottom: 2rem;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -4px rgba(0, 0, 0, 0.1);
	transition: background-color 0.15s;
}
@media (min-width: 640px) {
	.hero-irs-card {
		gap: 1rem;
		padding: 1.25rem;
	}
}
.hero-irs-card:hover {
	background-color: hsl(var(--background) / 0.9);
}

.hero-irs-icon {
	background-color: hsl(var(--accent) / 0.15);
	border-radius: 1rem;
	padding: 0.625rem;
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: hsl(var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-irs-icon i {
	width: 1rem;
	height: 1rem;
}
@media (min-width: 640px) {
	.hero-irs-icon i {
		width: 1.25rem;
		height: 1.25rem;
	}
}

.hero-irs-body {
	flex: 1;
	min-width: 0;
}

.hero-irs-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: hsl(var(--accent));
	margin-bottom: 0.25rem;
}

.hero-irs-title {
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
	text-wrap: balance;
}
@media (min-width: 640px) {
	.hero-irs-title {
		font-size: 1rem;
	}
}

.hero-irs-desc {
	display: none;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
	.hero-irs-desc {
		display: block;
	}
}

.hero-irs-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.hero-irs-nif {
	font-family: ui-monospace, monospace;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.1em;
}
@media (min-width: 640px) {
	.hero-irs-nif {
		font-size: 1.25rem;
	}
}

.hero-irs-more {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
	transition: color 0.15s;
}
.hero-irs-card:hover .hero-irs-more {
	color: hsl(var(--foreground));
}

.hero-title {
	color: hsl(var(--background));
	margin-bottom: 1rem;
	max-width: 56rem;
	font-size: 1.875rem;
	font-weight: 500;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	text-wrap: balance;
}
@media (min-width: 640px) {
	.hero-title {
		font-size: 2.25rem;
	}
}
@media (min-width: 768px) {
	.hero-title {
		font-size: 3.75rem;
	}
}
@media (min-width: 1536px) {
	.hero-title {
		font-size: 4.5rem;
		max-width: 72rem;
	}
}

.hero-subtitle {
	color: hsl(var(--background));
	margin-inline: auto;
	margin-bottom: 2rem;
	max-width: 48rem;
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: -0.025em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
	text-wrap: balance;
}
@media (min-width: 640px) {
	.hero-subtitle {
		font-size: 1rem;
	}
}
@media (min-width: 1280px) {
	.hero-subtitle {
		font-size: 1.25rem;
		max-width: 56rem;
	}
}

.hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
}

/* ─── Team ───────────────────────────────────────────────────────────────────── */

.team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 768px) {
	.team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.team-card {
	border-radius: 1.5rem;
	overflow: hidden;
	background-color: hsl(var(--background));
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.team-card-bg {
	position: relative;
	height: 14rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 1.5rem;
}

.team-card-avatar {
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.team-card-avatar span {
	font-size: 1.5rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
}

.team-card-body {
	padding: 1rem;
	text-align: center;
	background-color: hsl(var(--background));
}
.team-card-body h3 {
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: -0.025em;
	margin-bottom: 0.25rem;
}
.team-card-body p {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	text-wrap: balance;
}

/* ─── Specialties ────────────────────────────────────────────────────────────── */

.specialties-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
}
@media (min-width: 768px) {
	.specialties-layout {
		flex-direction: row;
	}
}

.specialties-text {
	flex: 1;
	width: 100%;
}
.specialties-text h2 {
	margin: 0.5rem 0;
}
.specialties-text .section-desc {
	margin-bottom: 2rem;
	max-width: none;
}

.trust-list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid hsl(var(--foreground) / 0.2);
	border-bottom: 1px solid hsl(var(--foreground) / 0.2);
    margin-top: 2rem;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px solid hsl(var(--foreground) / 0.2);
}
.trust-item:last-child {
	border-bottom: none;
}
@media (min-width: 768px) {
	.trust-item {
		gap: 3rem;
		padding: 2rem;
	}
}

.trust-icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	stroke-width: 1;
}
@media (min-width: 768px) {
	.trust-icon {
		width: 3rem;
		height: 3rem;
	}
}

.trust-item p {
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
@media (min-width: 768px) {
	.trust-item p {
		font-size: 1.125rem;
	}
}

.specialties-image {
	flex: 1;
	width: 100%;
}

.specialties-image-wrap {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
	border-radius: 1.5rem;
}
@media (min-width: 768px) {
	.specialties-image-wrap {
		aspect-ratio: 2 / 3;
	}
}
.specialties-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ─── IRS Banner ─────────────────────────────────────────────────────────────── */

.irs-banner {
	display: block;
	width: 100%;
}

.irs-banner-inner {
	width: 100%;
	overflow: hidden;
	border-radius: 1rem;
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.irs-banner-inner img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s;
}
.irs-banner:hover .irs-banner-inner img {
	transform: scale(1.02);
}

/* ─── Images Grid ────────────────────────────────────────────────────────────── */

.gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}
@media (min-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1rem;
	}
}

.gallery-cell {
	border-radius: 1.5rem;
	overflow: hidden;
	position: relative;
}
@media (min-width: 768px) {
	.gallery-cell--2 {
		grid-column: span 2;
		aspect-ratio: 5 / 4;
	}
}
.gallery-cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

/* ─── Testimonials ───────────────────────────────────────────────────────────── */

.testimonials-mobile {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.testimonials-mobile {
		display: none;
	}
}

.testimonials-carousel-wrap {
	display: none;
	overflow: hidden;
	position: relative;
	padding-block: 1rem;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent,
		black 8rem,
		black calc(100% - 8rem),
		transparent
	);
	mask-image: linear-gradient(
		to right,
		transparent,
		black 8rem,
		black calc(100% - 8rem),
		transparent
	);
}
@media (min-width: 768px) {
	.testimonials-carousel-wrap {
		display: block;
	}
}

.testimonials-carousel {
	display: flex;
	gap: 1.5rem;
	will-change: transform;
}

.testimonial-card {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem;
	flex-shrink: 0;
	border-radius: 1.5rem;
	background-color: hsl(var(--background));
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.1),
		0 1px 2px -1px rgba(0, 0, 0, 0.1);
	width: 100%;
}
@media (min-width: 768px) {
	.testimonial-card {
		padding: 2.5rem;
		min-width: 28rem;
		max-width: 28rem;
	}
}

.testimonial-stars {
	display: flex;
	gap: 0.25rem;
}

.star {
	width: 1.25rem;
	height: 1.25rem;
}
.star--active {
	fill: hsl(var(--accent));
	stroke: none;
}
.star--inactive {
	fill: hsl(var(--secondary));
	stroke: none;
}

.testimonial-text {
	flex: 1;
}
.testimonial-text p {
	color: hsl(var(--muted-foreground));
	line-height: 1.625;
}

.testimonial-author {
	border-top: 1px solid hsl(var(--border));
	padding-top: 1.5rem;
}
.testimonial-author p {
	font-weight: 600;
	color: hsl(var(--foreground));
}

/* ─── FAQ ────────────────────────────────────────────────────────────────────── */

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

.faq-item {
	border-bottom: 1px solid hsl(var(--border));
}

.faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding-block: 1rem;
	font-size: 1rem;
	font-weight: 500;
	font-family: inherit;
	color: hsl(var(--foreground));
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	gap: 1rem;
	transition: color 0.15s;
}
.faq-trigger:hover {
	text-decoration: underline;
}

.faq-chevron {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	transition: transform 0.2s;
}
.faq-trigger[aria-expanded='true'] .faq-chevron {
	transform: rotate(180deg);
}

.faq-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.2s ease-out;
}
.faq-content.is-open {
	grid-template-rows: 1fr;
}

.faq-inner {
	overflow: hidden;
}

.faq-answer {
	padding-bottom: 1rem;
	color: hsl(var(--muted-foreground));
	line-height: 2;
	font-size: 0.875rem;
}
.faq-answer p {
	margin-bottom: 0.5rem;
}
.faq-answer p:last-child {
	margin-bottom: 0;
}

/* ─── Reduced motion ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.testimonials-carousel {
		flex-wrap: wrap;
	}
	.irs-banner-inner img {
		transition: none;
	}
}
