/**
 * FusionDevs — One-page landing styles
 * Material / flat design — teal & amber palette
 */

/* ── Design Tokens ── */
:root {
	/* Primary — dark teal (from the "D" in the logo) */
	--fd-teal-900: #0e2e2e;
	--fd-teal-800: #15403f;
	--fd-teal-700: #1a5c5a;
	--fd-teal-600: #1f7a77;
	--fd-teal-500: #26918d;
	--fd-teal-400: #3db5b0;
	--fd-teal-100: #b2e0de;
	--fd-teal-50:  #e0f3f2;

	/* Accent — warm amber (from the "F" in the logo) */
	--fd-amber-700: #c47f12;
	--fd-amber-600: #d99a1e;
	--fd-amber-500: #e8a830;
	--fd-amber-400: #f0be54;
	--fd-amber-100: #fce4b0;
	--fd-amber-50:  #fef6e3;

	--fd-grey-900: #1e2a2a;
	--fd-grey-800: #2e3d3d;
	--fd-grey-700: #3e5050;
	--fd-grey-600: #546363;
	--fd-grey-500: #6e8383;
	--fd-grey-400: #8fa3a3;
	--fd-grey-300: #b0bfbf;
	--fd-grey-200: #ced9d9;
	--fd-grey-100: #e6ecec;
	--fd-grey-50:  #f4f7f7;

	--fd-white: #ffffff;
	--fd-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
	--fd-shadow-md: 0 4px 12px rgba(0,0,0,.1);
	--fd-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
	--fd-shadow-card: 0 2px 8px rgba(0,0,0,.06);

	--fd-radius: 6px;
	--fd-radius-lg: 12px;
	--fd-transition: .25s cubic-bezier(.4,0,.2,1);

	--fd-font-body: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fd-font-heading: 'Lustria', Georgia, 'Times New Roman', serif;

	--fd-container: 1140px;
}

/* ── Screen-reader-only utility ── */
.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 ── */
.fusiondevs-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 9999;
	padding: .75rem 1.25rem;
	background: var(--fd-teal-700);
	color: var(--fd-white);
	border-radius: var(--fd-radius);
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
	opacity: 0;
	transition: top .15s ease, opacity .15s ease;
}
.fusiondevs-skip-link:focus {
	top: 1rem;
	opacity: 1;
	outline: 3px solid var(--fd-teal-400);
	outline-offset: 2px;
}

/* ── Global focus-visible outline ── */
:focus-visible {
	outline: 3px solid var(--fd-teal-400);
	outline-offset: 2px;
}
:focus:not(:focus-visible) {
	outline: none;
}

/* ── Container ── */
.fd-container {
	width: 100%;
	max-width: var(--fd-container);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ─────────────────────────────────────
   HEADER
   ───────────────────────────────────── */
.fd-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: transparent;
	transition: background var(--fd-transition), box-shadow var(--fd-transition);
}
body.admin-bar .fd-header {
	top: 32px;
}
.fd-header--scrolled {
	background: rgba(255,255,255,.97);
	box-shadow: var(--fd-shadow-sm);
	backdrop-filter: blur(8px);
}
.fd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}

/* Logo */
.fd-logo {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: var(--fd-white);
	transition: color var(--fd-transition);
}
.fd-header--scrolled .fd-logo {
	color: var(--fd-grey-900);
}
.fd-logo__mark {
	width: 44px;
	height: 44px;
	border-radius: 0;
	object-fit: contain;
}
.fd-logo__text {
	font-family: var(--fd-font-body);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -.02em;
}
.fd-logo__text strong {
	font-weight: 800;
}

/* Nav */
.fd-nav__list {
	display: flex;
	gap: .25rem;
}
.fd-nav__list li a {
	display: block;
	padding: .5rem 1rem;
	font-size: .875rem;
	font-weight: 500;
	color: rgba(255,255,255,.85);
	border-radius: var(--fd-radius);
	transition: background var(--fd-transition), color var(--fd-transition);
}
.fd-nav__list li a:hover {
	background: rgba(255,255,255,.12);
	color: var(--fd-white);
}
.fd-header--scrolled .fd-nav__list li a {
	color: var(--fd-grey-700);
}
.fd-header--scrolled .fd-nav__list li a:hover {
	background: var(--fd-teal-50);
	color: var(--fd-teal-700);
}

/* Mobile toggle */
.fd-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
	z-index: 1001;
}
.fd-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--fd-white);
	border-radius: 2px;
	transition: transform var(--fd-transition), opacity var(--fd-transition);
}
.fd-header--scrolled .fd-nav-toggle span {
	background: var(--fd-grey-800);
}
.fd-nav-toggle--active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.fd-nav-toggle--active span:nth-child(2) {
	opacity: 0;
}
.fd-nav-toggle--active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────
   HERO
   ───────────────────────────────────── */
.fd-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: 120px 0 80px;
	overflow: hidden;
	background: var(--fd-teal-900);
}
.fd-hero__overlay {
	position: absolute;
	inset: 0;
	background-image: var(--fd-hero-image);
	background-size: cover;
	background-position: center;
	opacity: .55;
}
.fd-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}
.fd-hero__eyebrow {
	display: inline-block;
	padding: .35rem 1rem;
	margin-bottom: 1.5rem;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fd-teal-100);
	background: rgba(255,255,255,.08);
	border-radius: 100px;
	border: 1px solid rgba(255,255,255,.12);
}
.fd-hero__title {
	font-family: var(--fd-font-heading);
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 400;
	line-height: 1.12;
	color: var(--fd-white);
	margin-bottom: 1.25rem;
}
.fd-hero__accent {
	color: var(--fd-amber-400);
}
.fd-hero__lead {
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--fd-grey-300);
	margin-bottom: 2.5rem;
	max-width: 540px;
}
.fd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

/* ── Buttons ── */
.fd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .8rem 2rem;
	font-size: .9rem;
	font-weight: 600;
	border-radius: var(--fd-radius);
	text-decoration: none;
	transition: background var(--fd-transition), color var(--fd-transition), box-shadow var(--fd-transition), transform .15s ease;
	cursor: pointer;
	border: none;
}
.fd-btn:hover {
	transform: translateY(-1px);
}
.fd-btn--primary {
	background: var(--fd-amber-600);
	color: var(--fd-teal-900);
	box-shadow: 0 2px 8px rgba(217,154,30,.35);
	font-weight: 700;
}
.fd-btn--primary:hover {
	background: var(--fd-amber-700);
	box-shadow: 0 4px 16px rgba(217,154,30,.4);
}
.fd-btn--outline {
	background: transparent;
	color: var(--fd-white);
	border: 1.5px solid rgba(255,255,255,.35);
}
.fd-btn--outline:hover {
	background: rgba(255,255,255,.1);
	border-color: rgba(255,255,255,.6);
}
.fd-btn--full {
	width: 100%;
}

/* ─────────────────────────────────────
   SECTIONS — shared
   ───────────────────────────────────── */
.fd-section {
	padding: 6rem 0;
}
.fd-section-head {
	text-align: center;
	margin-bottom: 3.5rem;
}
.fd-section-head__label {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fd-teal-600);
	margin-bottom: .6rem;
}
.fd-section-head__title {
	font-family: var(--fd-font-heading);
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 400;
	color: var(--fd-grey-900);
}

/* ─────────────────────────────────────
   SERVICES
   ───────────────────────────────────── */
.fd-services {
	background: var(--fd-grey-50);
}
.fd-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.fd-card {
	background: var(--fd-white);
	border-radius: var(--fd-radius-lg);
	padding: 2rem 1.75rem;
	box-shadow: var(--fd-shadow-card);
	transition: box-shadow var(--fd-transition), transform .2s ease;
}
.fd-card:hover {
	box-shadow: var(--fd-shadow-md);
	transform: translateY(-4px);
}
.fd-card__icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--fd-radius);
	background: var(--fd-teal-50);
	color: var(--fd-teal-600);
	margin-bottom: 1.25rem;
}
.fd-card__icon svg {
	width: 24px;
	height: 24px;
}
.fd-card__title {
	font-family: var(--fd-font-heading);
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--fd-grey-900);
	margin-bottom: .6rem;
}
.fd-card__text {
	font-size: .9rem;
	line-height: 1.65;
	color: var(--fd-grey-600);
}
.fd-card--featured {
	background: var(--fd-teal-800);
	color: var(--fd-white);
}
.fd-card--featured .fd-card__icon {
	background: rgba(255,255,255,.15);
	color: var(--fd-white);
}
.fd-card--featured .fd-card__title {
	color: var(--fd-white);
}
.fd-card--featured .fd-card__text {
	color: rgba(255,255,255,.8);
}

/* ─────────────────────────────────────
   PORTFOLIO
   ───────────────────────────────────── */
.fd-portfolio {
	background: var(--fd-white);
}
.fd-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.fd-portfolio__item {
	position: relative;
	border-radius: var(--fd-radius-lg);
	overflow: hidden;
	box-shadow: var(--fd-shadow-card);
	transition: box-shadow var(--fd-transition), transform .2s ease;
}
.fd-portfolio__item:hover {
	box-shadow: var(--fd-shadow-lg);
	transform: translateY(-4px);
}
.fd-portfolio__thumb {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: top left;
}
.fd-portfolio__info {
	padding: 1.25rem 1.5rem;
	background: var(--fd-white);
}
.fd-portfolio__info h3 {
	font-family: var(--fd-font-heading);
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--fd-grey-900);
	margin-bottom: .2rem;
}
.fd-portfolio__info p {
	font-size: .85rem;
	color: var(--fd-grey-500);
}

/* ─────────────────────────────────────
   TESTIMONIALS
   ───────────────────────────────────── */
.fd-testimonials {
	background: var(--fd-grey-50);
}
.fd-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.fd-testimonial {
	background: var(--fd-white);
	border-radius: var(--fd-radius-lg);
	padding: 2rem 1.75rem;
	box-shadow: var(--fd-shadow-card);
	margin: 0;
	display: flex;
	flex-direction: column;
}
.fd-testimonial__text {
	font-size: .95rem;
	line-height: 1.7;
	color: var(--fd-grey-700);
	flex: 1;
	margin-bottom: 1.5rem;
}
.fd-testimonial__author {
	display: flex;
	align-items: center;
	gap: .75rem;
}
.fd-testimonial__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
}
.fd-testimonial__name {
	display: block;
	font-style: normal;
	font-weight: 600;
	font-size: .9rem;
	color: var(--fd-grey-900);
}
.fd-testimonial__role {
	display: block;
	font-size: .8rem;
	color: var(--fd-grey-500);
}

/* ─────────────────────────────────────
   CONTACT
   ───────────────────────────────────── */
.fd-contact {
	background: var(--fd-white);
}
.fd-contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 3rem;
	align-items: start;
}
.fd-contact__info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.fd-contact__detail {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
}
.fd-contact__detail svg {
	width: 22px;
	height: 22px;
	color: var(--fd-teal-600);
	flex-shrink: 0;
	margin-top: .15rem;
}
.fd-contact__detail strong {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	color: var(--fd-grey-900);
	margin-bottom: .1rem;
}
.fd-contact__detail a,
.fd-contact__detail span {
	font-size: .9rem;
	color: var(--fd-grey-600);
}
.fd-contact__detail a:hover {
	color: var(--fd-teal-600);
}
.fd-contact__social {
	display: flex;
	gap: .75rem;
	padding-top: .5rem;
}
.fd-contact__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--fd-radius);
	background: var(--fd-grey-100);
	color: var(--fd-grey-600);
	transition: background var(--fd-transition), color var(--fd-transition);
}
.fd-contact__social-link svg {
	width: 18px;
	height: 18px;
}
.fd-contact__social-link:hover {
	background: var(--fd-teal-50);
	color: var(--fd-teal-600);
}

/* Contact form */
.fd-contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.fd-form-group {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.fd-form-group label {
	font-size: .85rem;
	font-weight: 600;
	color: var(--fd-grey-800);
}
.fd-required {
	color: #c62828;
	margin-left: .15em;
}
.fd-form-group input,
.fd-form-group textarea {
	padding: .75rem 1rem;
	border: 1.5px solid var(--fd-grey-200);
	border-radius: var(--fd-radius);
	background: var(--fd-grey-50);
	font-size: .9rem;
	color: var(--fd-grey-900);
	transition: border-color var(--fd-transition), box-shadow var(--fd-transition);
}
.fd-form-group input:focus-visible,
.fd-form-group textarea:focus-visible {
	outline: none;
}
.fd-form-group input::placeholder,
.fd-form-group textarea::placeholder {
	color: var(--fd-grey-400);
}
.fd-form-group input:focus,
.fd-form-group textarea:focus {
	border-color: var(--fd-teal-500);
	box-shadow: 0 0 0 3px rgba(38,145,141,.15);
	background: var(--fd-white);
}
.fd-form-group textarea {
	resize: vertical;
}

/* Field-level validation */
.fd-form-group input[aria-invalid="true"],
.fd-form-group textarea[aria-invalid="true"] {
	border-color: #c62828;
	box-shadow: 0 0 0 3px rgba(198,40,40,.1);
}
.fd-field-error {
	font-size: .8rem;
	color: #c62828;
	min-height: 1.1em;
}

/* Math captcha */
.fd-captcha label {
	font-size: .9rem;
}
.fd-captcha label strong {
	color: var(--fd-teal-600);
	font-size: 1rem;
}
.fd-captcha input[type="number"] {
	max-width: 140px;
	-moz-appearance: textfield;
}
.fd-captcha input[type="number"]::-webkit-inner-spin-button,
.fd-captcha input[type="number"]::-webkit-outer-spin-button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
}

/* Submit disabled state */
.fd-contact__form button[disabled] {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

/* Form status messages */
.fd-form-status {
	font-size: .9rem;
	font-weight: 500;
	padding: 0;
	border-radius: var(--fd-radius);
	min-height: 0;
	transition: padding var(--fd-transition), min-height var(--fd-transition);
}
.fd-form-status:empty {
	display: none;
}
.fd-form-status--success {
	display: block;
	padding: .85rem 1rem;
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}
.fd-form-status--error {
	display: block;
	padding: .85rem 1rem;
	background: #fbe9e7;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

/* ─────────────────────────────────────
   FOOTER
   ───────────────────────────────────── */
.fd-footer {
	background: var(--fd-grey-900);
	padding: 2.5rem 0;
}
.fd-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	text-align: center;
}
.fd-footer__brand {
	display: flex;
	align-items: center;
	gap: .5rem;
}
.fd-footer__logo {
	width: 32px;
	height: 32px;
	border-radius: 0;
	object-fit: contain;
}
.fd-footer__name {
	font-family: var(--fd-font-body);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--fd-white);
	letter-spacing: -.02em;
}
.fd-footer__name strong {
	font-weight: 800;
}
.fd-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .25rem;
}
.fd-footer__nav a {
	padding: .35rem .75rem;
	font-size: .85rem;
	color: var(--fd-grey-400);
	border-radius: var(--fd-radius);
	transition: color var(--fd-transition), background var(--fd-transition);
}
.fd-footer__nav a:hover {
	color: var(--fd-white);
	background: rgba(255,255,255,.06);
}
.fd-footer__copy {
	font-size: .8rem;
	color: var(--fd-grey-500);
}

/* ─────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────── */
@media (max-width: 1024px) {
	.fd-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	/* Mobile nav */
	.fd-nav-toggle {
		display: flex;
	}
	.fd-nav {
		position: fixed;
		top: 0;
		right: 0;
		width: 280px;
		height: 100vh;
		background: var(--fd-white);
		box-shadow: var(--fd-shadow-lg);
		padding: 5rem 1.5rem 2rem;
		transform: translateX(100%);
		transition: transform var(--fd-transition);
		z-index: 999;
	}
	.fd-nav--open {
		transform: translateX(0);
	}
	.fd-nav__list {
		flex-direction: column;
		gap: .25rem;
	}
	.fd-nav__list li a {
		color: var(--fd-grey-800);
		padding: .75rem 1rem;
		font-size: 1rem;
		border-radius: var(--fd-radius);
	}
	.fd-nav__list li a:hover {
		background: var(--fd-teal-50);
		color: var(--fd-teal-700);
	}

	/* Sections */
	.fd-section {
		padding: 4rem 0;
	}
	.fd-hero {
		padding: 100px 0 60px;
	}
	.fd-hero__title {
		font-size: 2rem;
	}

	.fd-services__grid {
		grid-template-columns: 1fr;
	}
	.fd-portfolio__grid {
		grid-template-columns: 1fr;
	}
	.fd-testimonials__grid {
		grid-template-columns: 1fr;
	}
	.fd-contact__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.fd-footer__nav {
		gap: 0;
	}
}

@media (max-width: 480px) {
	.fd-hero__actions {
		flex-direction: column;
	}
	.fd-btn {
		width: 100%;
		text-align: center;
	}
}

/* ─────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ─────────────────────────────────────
   HIGH CONTRAST
   ───────────────────────────────────── */
@media (forced-colors: active) {
	.fd-btn {
		border: 2px solid ButtonText;
	}
	.fd-card,
	.fd-testimonial,
	.fd-portfolio__item {
		border: 1px solid CanvasText;
	}
}

/* ── Address element reset ── */
address.fd-contact__info {
	font-style: normal;
}
