/*
Theme Name: FFF Media Native
Theme URI: https://fffmediagroup.com/
Author: FFF Media Group
Description: Lightweight, accessible block theme for FFF Media Group. Replaces Elementor-rendered layout with native WordPress templates and patterns.
Version: 0.3.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fff-media-native
*/

:root {
	--fff-ink: #1b2430;
	--fff-muted: #626773;
	--fff-pink: #d61c4e;
	--fff-pink-soft: #fbecef;
	--fff-canvas: #f7f7f8;
	--fff-border: #e6e7eb;
	--fff-black: #050505;
	--fff-max: 1180px;
	--fff-radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--fff-ink);
	font-family: "Sora", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

a { color: var(--fff-pink); text-underline-offset: .16em; }
a:hover { color: #9d2141; }
a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 3px;
}

.wp-site-blocks { overflow: clip; }
.wp-site-blocks > * { margin-block-start: 0; }
.fff-container {
	width: min(var(--fff-max), calc(100% - 96px));
	max-width: var(--fff-max) !important;
	margin-inline: auto !important;
}

/* Global header closely follows the live 2022 layout. The Navigation block
   provides the responsive overlay and keyboard behavior. */
.fff-header {
	background: #fff;
	box-shadow: 0 6px 18px rgba(27, 33, 48, .08);
	position: relative;
	z-index: 10;
}
.fff-header__inner { min-height: 80px; align-items: center; justify-content: flex-start !important; gap: 0; }
.fff-header .wp-block-site-logo { flex: 0 0 auto; margin-right: 23px; }
.fff-header .wp-block-site-logo img { width: 72px !important; height: 60px !important; max-height: none; object-fit: contain; }
.fff-header .wp-block-navigation-item__content {
	color: var(--fff-ink); font-size: 15px; font-weight: 700;
	letter-spacing: .02em; text-transform: uppercase;
	padding: .6rem .8rem;
}
.fff-header nav a {
	color: var(--fff-ink); font-size: 15px; font-weight: 700;
	letter-spacing: .02em; text-transform: uppercase; padding: 10px 20px;
}
.fff-header .wp-block-navigation-item__content:hover,
.fff-header .current-menu-item > .wp-block-navigation-item__content { color: var(--fff-pink); }
.fff-header .wp-block-navigation__responsive-container-open,
.fff-header .wp-block-navigation__responsive-container-close { color: var(--fff-ink); }
.fff-social-link { color: var(--fff-ink); font-weight: 700; text-decoration: none; margin-left: auto !important; }
.fff-social-link a {
	display: inline-grid; place-items: center; width: 22px; height: 22px;
	border-radius: 2px; background: var(--fff-ink); color: #fff;
	font-family: Arial, sans-serif; font-size: 14px; line-height: 1;
	text-decoration: none; text-transform: none;
}
.fff-social-link a:hover { background: var(--fff-pink); color: #fff; }

.fff-brand-menu { flex: 0 0 49px; width: 49px; }
.fff-brand-menu__toggle,
.fff-brand-drawer__close,
.fff-brand-drawer__backdrop { appearance: none; border: 0; padding: 0; }
.fff-brand-menu__toggle { display: grid; place-items: center; width: 26px; height: 26px; background: transparent; cursor: pointer; }
.fff-brand-menu__toggle img { display: block; width: 24px; height: 24px; }
.fff-brand-drawer { position: fixed; inset: 0; z-index: 100000; }
.fff-brand-menu br,
.fff-brand-drawer br { display: none; }
.fff-brand-drawer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.8); cursor: pointer; }
.fff-brand-drawer__panel {
	position: absolute; inset: 0 auto 0 0; width: min(350px, 90vw); overflow-y: auto;
	background: #fff; color: var(--fff-ink); transform: translateX(-100%);
	transition: transform .25s ease; box-shadow: 8px 0 24px rgba(0,0,0,.14);
}
.fff-brand-drawer.is-open .fff-brand-drawer__panel { transform: translateX(0); }
.fff-brand-drawer__header { display: flex; min-height: 61px; align-items: center; justify-content: space-between; padding: 0 20px 0 33px; }
.fff-brand-drawer__header h2 { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: 0; }
.fff-brand-drawer__close { display: grid; place-items: center; width: 32px; height: 32px; background: transparent; color: var(--fff-pink); cursor: pointer; }
.fff-brand-drawer__close .dashicons { width: 20px; height: 20px; font-size: 20px; line-height: 20px; }
.fff-brand-drawer__nav { display: grid; gap: 10px; padding: 0 27.5px 27.5px; }
.fff-brand-drawer__nav a { display: grid; place-items: center; height: 82px; margin-block-start: 0 !important; padding: 8px; background: #f7f7f9; }
.fff-brand-drawer__nav img { display: block; width: 100%; height: auto; }
body.fff-brand-drawer-open { overflow: hidden; }

main { min-height: 40vh; }
.fff-hero {
	background-color: var(--fff-pink-soft);
	background-image: linear-gradient(rgba(251,236,239,.22), rgba(251,236,239,.22)), url("assets/site/overlay-bg.jpg");
	background-position: center;
	background-size: cover;
	padding: clamp(5rem, 8vw, 7rem) 0;
	text-align: center;
}
.fff-hero h1, .fff-hero h2 { max-width: 1000px; margin: 0 auto 1.5rem; font-size: clamp(2.2rem, 5vw, 3.4375rem); font-weight: 800; line-height: 1.2; }
.fff-hero .fff-accent { color: #d97994; display: block; }
.fff-rotator {
	display: block; position: relative; width: 100%; height: 1.2em; overflow: hidden;
	color: var(--fff-pink); line-height: 1.2;
}
.fff-rotator__item {
	position: absolute; inset: 0; display: block; opacity: 0;
	transform: translateX(-100%); white-space: nowrap;
}
.fff-rotator__item.is-active { opacity: 1; transform: translateX(0); }
.fff-rotator__item.is-entering { animation: fff-headline-slide-in .6s ease both; }
.fff-rotator__item.is-exiting { animation: fff-headline-slide-out .6s ease both; }
.fff-rotator-line { margin: 0 auto 1.5rem !important; max-width: 100%; font-size: clamp(2.2rem, 5vw, 3.4375rem); font-weight: 800; line-height: 1.2; }
@keyframes fff-headline-slide-in { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes fff-headline-slide-out { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(100%); } }
.fff-hero p { max-width: 720px; margin: .8rem auto; }
.fff-hero .fff-rotator-line { max-width: 1000px; }
.fff-lead { font-size: clamp(1.05rem, 2.1vw, 1.3rem); }
.fff-button, .wp-block-button__link {
	display: inline-block; border: 0; border-radius: var(--fff-radius);
	background: var(--fff-pink); color: white; padding: 18px 40px;
	font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease;
}
.fff-button:hover, .wp-block-button__link:hover { background: #9d2141; color: #fff; transform: translateY(-1px); }
.fff-button--about { border-radius: 4px; font-size: 16px; line-height: 1; padding: 15px 30px; }

.fff-section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.fff-hero + .fff-section { margin-block-start: 0; padding-top: 3.5rem; }
.fff-hero + .fff-section h2 { font-size: 2rem; }
.fff-section--soft { background: var(--fff-canvas); }
.fff-section h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; }
.fff-grid { display: grid; gap: 1.25rem; }
.fff-brands-section,
.fff-hero + .fff-brands-section { padding: calc(3vw + 11px) 0 calc(3vw + 20px); }
.fff-brands-section h2 { margin: 0 0 44px; font-size: 2rem; line-height: 1; text-align: center; }
.fff-brand-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-inline: 8.4px; }
.fff-brand-columns > .fff-brand-column { margin-block-start: 0; }
.fff-brand-column { display: grid; gap: 20px; }
.fff-brand-logo { height: 104px; min-height: 104px; margin: 0; border: 0; background: #f7f7f9; }
.fff-brand-logo a { height: 104px; min-height: 104px; display: grid; place-items: center; padding: .75rem; }
.fff-brand-logo img { display: block; width: 100%; height: auto; }
.fff-cta { text-align: center; }

.wp-block-post-content > .fff-page-hero,
.wp-block-post-content > .fff-section { margin-block-start: 0; }
.wp-block-post-content > .fff-section { padding-block: 3rem; }
.fff-page-hero { background: var(--fff-pink-soft); padding: 4rem 0; }
.fff-page-hero h1 { margin: 0; font-size: clamp(2.25rem, 4vw, 2.75rem); line-height: 1.12; }
.fff-about-hero {
	background-image: linear-gradient(90deg, rgba(27,36,48,.72), rgba(27,36,48,.08)), url("assets/site/about-us-bg.jpg");
	background-position: center;
	background-size: cover;
	color: #fff;
}
.fff-about-hero p { max-width: 520px; font-size: 1.05rem; }
.fff-prose { max-width: 760px; margin-inline: auto; }
.fff-prose h2 { margin-top: 2.4em; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.fff-prose p { margin-block: 1.1em; }
.fff-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.fff-media { margin: 0; }
.fff-media img { display: block; width: 100%; height: auto; }
.fff-clients-section { background: #fff; padding-block: 2.4rem !important; }
.fff-clients-section h2 { font-size: 2rem; text-align: center; }
.fff-client-logos { max-width: none; margin: 2rem auto 0; }

.fff-contact-section { background: #f2f2f2; padding-block: 2.4rem !important; }
.fff-contact-title { margin: 0 0 1.25rem; font-size: 2rem; line-height: 1; text-align: center; }
.fff-contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.fff-contact-card { min-width: 0; min-height: 252px; margin: 10px; background: #fff; border: 0; padding: 45px; text-align: center; }
.fff-contact-card > .dashicons { width: 50px; height: 50px; color: var(--fff-pink); font-size: 50px; line-height: 50px; }
.fff-contact-card h2 { color: var(--fff-pink); font-size: 23px; font-weight: 600; margin: .5rem 0 .25rem; }
.fff-contact-card p { margin: 0; }
.fff-contact-card a { overflow-wrap: anywhere; }
.fff-contact-questions { margin: 0 10px 10px; background: #fff; padding: 45px; text-align: center; }
.fff-contact-questions h2 { margin: 0 0 1rem; font-size: 2rem; font-weight: 600; }
.fff-contact-questions > p:not(.fff-cta) { max-width: 1075px; margin: 0 auto 1.5rem; }
.fff-button--facebook { padding: 12px 24px; font-size: 15px; font-weight: 500; line-height: 1; }
.fff-button--facebook .dashicons { width: 1em; height: 1em; margin-right: .35rem; font-size: 1em; line-height: 1; }

.fff-jobs-section { background: #f2f2f2; }
.fff-job-card { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.fff-job-image { margin: 0; min-height: 476px; }
.fff-job-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fff-job-copy { display: flex; flex-direction: column; justify-content: center; background: #fff; padding: clamp(2.5rem, 5vw, 5rem); }
.fff-job-copy h1 { margin: 0 0 .8rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; }
.fff-job-copy p { margin: .55rem 0; }
.fff-dark { background: var(--fff-black); color: #fff; }
.fff-dark a { color: #fff; }
.fff-dark .fff-button { background: #f4ed3e; color: var(--fff-black); }
.fff-dark .fff-button:hover { background: #fff; }
.fff-brand-hero { padding: clamp(5rem, 11vw, 8rem) 0; text-align: center; }
.fff-brand-hero h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; }
.fff-brand-hero p { color: #c9c9c9; }
.fff-feed-fallback { border: 1px solid var(--fff-border); background: #f2f2f2; padding: 2rem; text-align: center; color: var(--fff-muted); }

.fff-post-shell { padding: clamp(4rem, 8vw, 7rem) 0; }
.fff-post-meta { color: var(--fff-muted); font-size: .92rem; }
.fff-post-meta a { font-weight: 700; }
.fff-post-byline { gap: .5rem 1rem; }
.fff-post-title { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; margin: .4rem 0 1rem; }
.fff-post-content { max-width: 760px; margin-inline: auto; }
.fff-post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin: 3rem auto; border-top: 1px solid var(--fff-border); border-bottom: 1px solid var(--fff-border); padding: 1.5rem 0; }
.fff-post-nav a { max-width: 46%; font-weight: 700; }

.fff-archive { padding: clamp(3rem, 6vw, 6rem) 0; }
.fff-archive h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 0 0 2rem; }
.fff-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fff-card { border: 1px solid var(--fff-border); padding: 1.5rem; }
.fff-card h2 { font-size: 1.5rem; margin: 0 0 .6rem; }
.fff-card .wp-block-post-excerpt { color: var(--fff-muted); }

.fff-footer { background: #000; color: #fff; padding: 1.3rem 0; font-size: .9rem; }
.fff-footer a { color: #fff; }
.fff-footer__inner { align-items: center; justify-content: space-between; }
.fff-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 900px) {
	.fff-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
	.fff-contact-grid { grid-template-columns: 1fr; }
	.fff-contact-card { min-height: 0; }
}
@media (max-width: 782px) {
	.fff-container { width: min(var(--fff-max), calc(100% - 36px)); }
	.fff-header__inner { min-height: 86px; }
	.fff-header .wp-block-site-logo img { width: 72px !important; height: 60px !important; }
	.fff-two-col, .fff-card-grid { grid-template-columns: 1fr; }
	.fff-job-card { grid-template-columns: 1fr; }
	.fff-job-image { min-height: 360px; }
	.fff-post-nav { flex-direction: column; }
	.fff-post-nav a { max-width: none; }
	.fff-footer__inner { align-items: flex-start; flex-direction: column; gap: .5rem; }
}
@media (max-width: 767px) {
	.fff-brand-columns { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
	.fff-hero { padding-block: 3rem; }
	.fff-brand-hero { padding-block: 4.25rem; }
	.fff-hero h1, .fff-hero h2 { font-size: 1.65rem; line-height: 1.15; margin-bottom: 1rem; }
	.fff-rotator { height: 1.3em; line-height: 1.3; }
	.fff-rotator-line { font-size: 1.35rem; line-height: 1.15; }
	.fff-hero .fff-container > * { margin-block-start: .85rem; }
	.fff-hero .fff-container > :first-child { margin-block-start: 0; }
	.fff-hero + .fff-section { padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fff-rotator__item { animation: none !important; }
}
@media (min-width: 1000px) {
	.fff-hero { padding-block: 5.5rem; }
}
