/*
Theme Name: FreelanceDirectly
Description: Home page and content pages for freelancedirectly.com. Works together with the FreelanceDirectly plugin, which draws every other page and supplies the shared components.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Author: FreelanceDirectly
Text Domain: freelancedirectly
*/

/* Fallbacks, in case the plugin's stylesheet is not loaded. */
:root {
	--fdt-green: var(--fd-green, #108a00);
	--fdt-line: var(--fd-line, #e2e6e3);
	--fdt-muted: var(--fd-muted, #5d6965);
	--fdt-ink: var(--fd-ink, #0c110f);
}

body.fd-site { background: #fff; }
:where(.fd-site) :where(h1, h2, h3, p) { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

.fdt-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* -------------------------------------------------------------- header -- */

.fdt-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--fdt-line); }
.fdt-header__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.fdt-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.fdt-nav__link { padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 560; text-decoration: none; }
.fdt-nav__link:hover { background: #f1f3f1; }
.fdt-header__cta { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- hero -- */

.fdt-hero { padding: 84px 0 76px; overflow: hidden; }
.fdt-hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.fdt-kicker { font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--fdt-muted); margin-bottom: 18px !important; }
.fdt-hero h1 { font-size: clamp(42px, 6.1vw, 82px); line-height: 1.01; font-weight: 800; letter-spacing: -.048em; color: var(--fdt-ink); text-wrap: balance; }
.fdt-hero__sub { margin-top: 26px !important; max-width: 580px; font-size: 18px; line-height: 1.55; color: #39433f; }
.fdt-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fdt-btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.fdt-hero__note { display: flex; align-items: center; gap: 8px; margin-top: 20px !important; font-size: 14px; color: var(--fdt-muted); }
.fdt-hero__note .fd-icon { color: var(--fdt-green); }
.fdt-hero__note a { color: var(--fd-green-dark, #0d7100); font-weight: 600; overflow-wrap: anywhere; }

.fdt-demo { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 8px 26px 26px; }
.fdt-demo__glow { position: absolute; inset: -6% -14% -8% -2%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--fdt-green) 30%, #fff), transparent 72%); filter: blur(10px); }
.fdt-demo > :not(.fdt-demo__glow) { position: relative; z-index: 1; }
.fdt-demo__job { padding: 22px 24px; background: #fff; border: 1px solid var(--fdt-line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(12, 17, 15, .28); }
.fdt-demo__title { font-size: 19px; font-weight: 720; letter-spacing: -.02em; margin: 12px 0 8px !important; }
.fdt-demo__meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fdt-muted); }
.fdt-demo__dot { width: 9px; height: 9px; border-radius: 50%; background: #18b53c; flex: none; }
.fdt-demo__bubble { max-width: 82%; align-self: flex-start; padding: 12px 17px; background: #fff; border: 1px solid var(--fdt-line); border-radius: 18px 18px 18px 6px; font-size: 15px; box-shadow: 0 16px 34px -22px rgba(12, 17, 15, .3); }
.fdt-demo__bubble--me { align-self: flex-end; background: var(--fdt-green); border-color: transparent; color: #fff; border-radius: 18px 18px 6px 18px; }

/* ------------------------------------------------------------- marquee -- */

.fdt-marquee { overflow: hidden; border-block: 1px solid var(--fdt-line); padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fdt-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: fdt-slide 60s linear infinite; }
.fdt-marquee:hover .fdt-marquee__track, .fdt-marquee:focus-within .fdt-marquee__track { animation-play-state: paused; }
.fdt-marquee a { font-size: 15px; font-weight: 520; text-decoration: none; white-space: nowrap; color: #27302d; }
.fdt-marquee a:hover { color: var(--fd-green-dark, #0d7100); }
.fdt-marquee i { font-style: normal; color: #b3bbb7; }
@keyframes fdt-slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections -- */

.fdt-section { padding: 88px 0; }
.fdt-section--tint { background: var(--fd-bg, #f4f5f4); border-block: 1px solid var(--fdt-line); }
.fdt-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.fdt-section h2, .fdt-final h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 780; letter-spacing: -.035em; color: var(--fdt-ink); text-wrap: balance; }
.fdt-section__sub { margin-top: 14px !important; max-width: 560px; font-size: 16.5px; color: #39433f; }
.fdt-section__sub a { color: var(--fd-green-dark, #0d7100); font-weight: 600; }
.fdt-section .fd-packs { margin-top: 0; }

.fdt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.fdt-step { position: relative; padding: 4px 36px 4px 0; }
.fdt-step + .fdt-step { padding-left: 36px; border-left: 1px solid var(--fdt-line); }
.fdt-step__n { display: block; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--fdt-green); }
.fdt-step__icon { position: absolute; top: 6px; right: 36px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #f1f3f1; border: 1px solid var(--fdt-line); }
.fdt-step h3 { margin-top: 26px; font-size: 21px; font-weight: 720; letter-spacing: -.02em; }
.fdt-step p { margin-top: 10px; color: var(--fdt-muted); font-size: 15.5px; }

.fdt-clients { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.fdt-clients .fd-btn { margin-top: 28px; }
.fdt-clients__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fdt-clients__list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: #fff; border: 1px solid var(--fdt-line); border-radius: 20px; }
.fdt-clients__list b { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fd-green-soft, #e8f3e6); color: var(--fd-green-dark, #0d7100); font-weight: 750; }
.fdt-clients__list strong { display: block; font-size: 16.5px; font-weight: 700; }
.fdt-clients__list span { display: block; margin-top: 3px; color: var(--fdt-muted); font-size: 14.5px; }

.fdt-faqwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }

.fdt-final { padding: 104px 0; text-align: center; background: linear-gradient(180deg, #fff, var(--fd-bg, #f4f5f4)); }
.fdt-final h2 { max-width: 760px; margin-inline: auto; font-size: clamp(34px, 4.6vw, 58px); }
.fdt-final p { margin: 18px 0 30px; color: var(--fdt-muted); font-size: 15px; }

/* -------------------------------------------------------------- footer -- */

.fdt-footer { border-top: 1px solid var(--fdt-line); padding: 34px 0; background: #fff; }
.fdt-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.fdt-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fdt-footer__links a { font-size: 14px; color: var(--fdt-muted); text-decoration: none; }
.fdt-footer__links a:hover { color: var(--fdt-ink); text-decoration: underline; }
.fdt-footer__copy { font-size: 13.5px; color: var(--fdt-muted); }

/* ------------------------------------------------------- content pages -- */

.fdt-page { padding: 64px 0 96px; background: var(--fd-bg, #f4f5f4); min-height: 60vh; }
.fdt-page__in { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.fdt-page h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 780; letter-spacing: -.035em; margin-bottom: 26px; }
.fdt-content { padding: 36px 40px; font-size: 16.5px; line-height: 1.7; color: #27302d; }
.fdt-content > * + * { margin-top: 16px; }
.fdt-content h2 { font-size: 21px; font-weight: 720; letter-spacing: -.02em; margin-top: 34px; color: var(--fdt-ink); }
.fdt-content h3 { font-size: 17px; font-weight: 700; margin-top: 26px; }
.fdt-content a { color: var(--fd-green-dark, #0d7100); font-weight: 600; }
.fdt-content ul, .fdt-content ol { padding-left: 22px; }
.fdt-content img { max-width: 100%; height: auto; border-radius: 14px; }
.fdt-content em:only-child { color: var(--fdt-muted); }
.fdt-postlist { display: grid; gap: 14px; }
.fdt-postlist a { text-decoration: none; }
.fdt-postlist h2 { margin: 0 0 6px; font-size: 20px; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1020px) {
	.fdt-hero { padding: 56px 0; }
	.fdt-hero__in, .fdt-clients, .fdt-faqwrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.fdt-demo { max-width: 560px; padding-left: 8px; }
	.fdt-section { padding: 64px 0; }
	.fdt-nav { display: none; }
	.fdt-header__cta { margin-left: auto; }
}

@media (max-width: 760px) {
	.fdt-wrap { padding: 0 18px; }
	.fdt-steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.fdt-step, .fdt-step + .fdt-step { padding: 0; border-left: 0; }
	.fdt-step__icon { right: 0; }
	.fdt-hero__sub { font-size: 16.5px; }
	.fdt-content { padding: 24px 22px; }
	.fdt-footer__in { flex-direction: column; align-items: flex-start; }
	.fdt-final { padding: 72px 0; }
}

@media (max-width: 420px) {
	.fdt-header__cta .fd-btn--ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fdt-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 26px; padding: 0 18px; }
	.fdt-marquee__track [aria-hidden="true"], .fdt-marquee__track [aria-hidden="true"] + i { display: none; }
}
