/*
Theme Name: Fabrica Studio (Astra Child)
Theme URI: https://fabricastudio.com.au
Author: Fabrica Studio
Author URI: https://fabricastudio.com.au
Description: Astra child theme for Fabrica Studio, a digital marketing and graphic design studio for the music industry. Recreates the Canva site design. On activation it creates all 12 pages (editable in the block editor), imports the images to the Media Library, builds the main menu and the footer, and sets Home as the front page. Requires the free Astra theme.
Template: astra
Version: 3.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fabrica-astra
*/

/* =====================================================================
   1. BRAND TOKENS
   Change colours here and the whole site (and Astra) follows.
   ===================================================================== */
body {
	--fs-accent: #db1b1b;
	--fs-accent-dark: #b51616;
	--fs-light: #eceff1;
	--fs-charcoal: #2a2a2a;
	--fs-slate: #5a5a5a;
	--fs-mist: #d3d6d9;
	--fs-muted: #565b60;
	--fs-heading-font: 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif;
	--fs-body-font: 'Libre Franklin', 'Franklin Gothic Book', Arial, sans-serif;
	--fs-side: clamp(1.25rem, 5.9vw, 5rem);

	/* Point Astra's global colours at the brand palette. */
	--ast-global-color-0: #db1b1b;
	--ast-global-color-1: #000000;
	--ast-global-color-2: #2a2a2a;
	--ast-global-color-3: #2a2a2a;
	--ast-global-color-4: #eceff1;
	--ast-global-color-5: #ffffff;
	--ast-global-color-6: #d3d6d9;
	--ast-global-color-7: #565b60;
	--ast-global-color-8: #000000;
}

/* =====================================================================
   2. BASE (overrides Astra defaults)
   ===================================================================== */
html { scroll-behavior: smooth; }
body.fs-site *, body.fs-site *::before, body.fs-site *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.fs-site,
body.fs-site button,
body.fs-site input,
body.fs-site select,
body.fs-site textarea {
	font-family: var(--fs-body-font);
}
body.fs-site {
	background: var(--fs-light);
	color: var(--fs-charcoal);
	font-size: 1.0625rem;
	line-height: 1.55;
}
body.fs-site h1, body.fs-site h2, body.fs-site h3, body.fs-site h4, body.fs-site h5, body.fs-site h6,
body.fs-site .entry-content :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--fs-heading-font);
	font-weight: 700;
	line-height: .95;
	letter-spacing: -0.035em;
	color: inherit;
}
body.fs-site .entry-content h1:not([class*="font-size"]) { font-size: clamp(3.25rem, 7.5vw, 6rem); }
body.fs-site .entry-content h2:not([class*="font-size"]) { font-size: clamp(2rem, 4vw, 3rem); }
body.fs-site .entry-content h3:not([class*="font-size"]) { font-size: 1.375rem; }

body.fs-site .entry-content a,
body.fs-site .entry-content a:hover,
body.fs-site .entry-content a:focus { color: inherit; }
body.fs-site .entry-content p a { text-decoration: underline; text-underline-offset: 3px; }
:where(a):focus-visible, .wp-block-button__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img { max-width: 100%; height: auto; }

/* =====================================================================
   3. FULL-WIDTH PAGE LAYOUT (removes Astra's container/padding on our pages)
   ===================================================================== */
.fs-page .site-content > .ast-container,
.fs-page #content > .ast-container { max-width: 100% !important; padding: 0 !important; display: block; }
.fs-page #primary,
.fs-page .content-area { width: 100%; max-width: 100%; margin: 0 !important; padding: 0 !important; float: none; }
.fs-page #secondary { display: none; }
.fs-page .site-main > article,
.fs-page .ast-article-single,
.fs-page .ast-separate-container .ast-article-single { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0; }
.fs-page .entry-header,
.fs-page .ast-single-post-order,
.fs-page .post-navigation,
.fs-page .comments-area { display: none; }
.fs-page .entry-content { margin: 0 !important; }
.fs-page .entry-content > *:first-child { margin-top: 0; }
.fs-page .entry-content > .alignfull,
.fs-page .entry-content[ast-blocks-layout] > .alignfull,
.fs-page .entry-content[data-ast-blocks-layout] > .alignfull {
	width: 100%; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; margin-top: 0; margin-bottom: 0;
}
.fs-page .entry-content > .alignfull + .alignfull { margin-top: 0; }
.fs-page .entry-content .wp-block-group.alignfull.has-background { margin-top: 0; margin-bottom: 0; }

/* =====================================================================
   4. HEADER (Astra header + WordPress menu)
   Edit the menu in Appearance > Menus. Add the CSS class "fs-nav-cta"
   to a menu item to show it as an outlined button.
   ===================================================================== */
body.fs-site #masthead .ast-primary-header-bar,
body.fs-site #masthead .main-header-bar {
	background: var(--fs-charcoal) !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}
body.fs-site #masthead .ast-above-header-bar,
body.fs-site #masthead .ast-below-header-bar { display: none; }
body.fs-site #masthead .site-primary-header-wrap { min-height: 84px; }
body.fs-site #masthead .ast-primary-header-bar .site-primary-header-wrap,
body.fs-site #masthead .ast-container { max-width: calc(1200px + 2 * var(--fs-side)); margin-left: auto; margin-right: auto; padding-left: var(--fs-side); padding-right: var(--fs-side); }

/* Sticky header: fixed to the top on every page */
html { scroll-padding-top: var(--fs-header-h, 84px); }
body.fs-site #masthead { position: fixed; top: 0; left: 0; right: 0; z-index: 99; transition: box-shadow .3s ease; }
body.fs-site #masthead .ast-primary-header-bar,
body.fs-site #masthead .main-header-bar { transition: background-color .3s ease; }
body.fs-site #masthead .site-primary-header-wrap { transition: min-height .3s ease; }
body.admin-bar.fs-site #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.fs-site #masthead { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.fs-site #masthead { top: 0; } } /* admin bar scrolls away on phones */
/* Pages without a designed hero (blog posts, Privacy Policy) get space for the header */
body.fs-site:not(.fs-overlay-header) #content { padding-top: var(--fs-header-h, 84px); }

/* Transparent over the hero, solid charcoal once you scroll */
body.fs-overlay-header:not(.fs-scrolled) #masthead .ast-primary-header-bar,
body.fs-overlay-header:not(.fs-scrolled) #masthead .main-header-bar { background: transparent !important; }
body.fs-site.fs-scrolled #masthead .ast-primary-header-bar,
body.fs-site.fs-scrolled #masthead .main-header-bar { background: rgba(42,42,42,.97) !important; }
body.fs-site.fs-scrolled #masthead { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
@media (min-width: 922px) { body.fs-site.fs-scrolled #ast-desktop-header .site-primary-header-wrap { min-height: 68px; } }
/* Keep the open mobile menu scrollable inside the fixed header */
body.fs-site #ast-mobile-header .ast-mobile-header-content { max-height: calc(100vh - var(--fs-header-h, 70px)); overflow-y: auto; }

/* Wordmark: FABRICA Studio */
body.fs-site #masthead .site-title,
body.fs-site #masthead .site-title a {
	font-family: var(--fs-heading-font);
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	margin: 0;
}
body.fs-site #masthead .site-title strong { font-weight: 700; color: var(--fs-accent); }
body.fs-site #masthead .site-description { display: none; }

/* Menu links */
body.fs-site #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
	color: #fff;
	font-family: var(--fs-body-font);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding-left: 1.05em;
	padding-right: 1.05em;
}
body.fs-site #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
body.fs-site #ast-desktop-header .main-header-menu > .menu-item.current-menu-item > .menu-link {
	text-decoration: underline;
	text-underline-offset: 7px;
	text-decoration-thickness: 1px;
	color: #fff;
}
body.fs-site #ast-desktop-header .main-header-menu .dropdown-menu-toggle,
body.fs-site #ast-desktop-header .main-header-menu .ast-icon svg { color: inherit; fill: currentColor; }

/* Dropdown (Services) */
body.fs-site #ast-desktop-header .main-header-menu .sub-menu {
	background: var(--fs-charcoal);
	border: 0;
	border-top: 2px solid #fff;
	box-shadow: 0 12px 30px rgba(0,0,0,.25);
	padding: .5rem 0;
	min-width: 15rem;
}
body.fs-site #ast-desktop-header .main-header-menu .sub-menu .menu-item { border: 0; }
body.fs-site #ast-desktop-header .main-header-menu .sub-menu .menu-link {
	color: #fff;
	font-size: .95rem;
	font-weight: 400;
	letter-spacing: .01em;
	text-transform: none;
	padding: .5rem 1.25rem;
	border: 0;
}
body.fs-site #ast-desktop-header .main-header-menu .sub-menu .menu-link:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Menu button (menu item with CSS class fs-nav-cta) */
body.fs-site #ast-desktop-header .main-header-menu > .fs-nav-cta { display: flex; align-items: center; margin-left: .75rem; }
body.fs-site #ast-desktop-header .main-header-menu > .fs-nav-cta > .menu-link {
	border: 1px solid currentColor;
	line-height: 1;
	height: auto;
	padding: .8rem 1.2rem;
	transition: background .2s ease, color .2s ease;
}
body.fs-site #ast-desktop-header .main-header-menu > .fs-nav-cta > .menu-link,
body.fs-site #ast-desktop-header .main-header-menu > .fs-nav-cta.current-menu-item > .menu-link { text-decoration: none; }
body.fs-site #ast-desktop-header .main-header-menu > .fs-nav-cta > .menu-link:hover { background: #fff; color: var(--fs-charcoal); text-decoration: none; }

/* Dark header text on pages that start with a light background */
body.fs-header-dark:not(.fs-scrolled) #masthead .ast-primary-header-bar .site-title a,
body.fs-header-dark:not(.fs-scrolled) #ast-desktop-header .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link,
body.fs-header-dark:not(.fs-scrolled) #ast-desktop-header .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover,
body.fs-header-dark:not(.fs-scrolled) #masthead .ast-primary-header-bar .menu-toggle,
body.fs-header-dark:not(.fs-scrolled) #masthead .ast-primary-header-bar .site-title a,
body.fs-header-dark:not(.fs-scrolled) #masthead .ast-primary-header-bar .menu-toggle:hover,
body.fs-header-dark:not(.fs-scrolled) #masthead .ast-primary-header-bar .menu-toggle:focus { color: var(--fs-charcoal); }
body.fs-header-dark:not(.fs-scrolled) #ast-desktop-header .main-header-menu > .fs-nav-cta > .menu-link:hover { background: var(--fs-charcoal); color: #fff; }

/* Mobile header */
body.fs-site #masthead .menu-toggle,
body.fs-site #masthead .menu-toggle:hover,
body.fs-site #masthead .menu-toggle:focus { background: transparent !important; border: 0; color: #fff; box-shadow: none; }
body.fs-site #masthead .menu-toggle .ast-mobile-svg,
body.fs-site #masthead .menu-toggle svg { fill: currentColor; width: 26px; height: 26px; }
body.fs-site #ast-mobile-header .ast-mobile-header-content,
body.fs-site #masthead .ast-mobile-header-content { background: var(--fs-charcoal); padding: .5rem 0 1.25rem; }
body.fs-site .ast-mobile-header-content .menu-item .menu-link,
body.fs-site .ast-mobile-header-content .main-header-menu .sub-menu .menu-link,
body.fs-site #ast-mobile-header .main-header-menu .menu-link {
	color: #fff !important;
	background: transparent !important;
	border-color: rgba(255,255,255,.15) !important;
	padding-left: var(--fs-side);
	padding-right: var(--fs-side);
	text-transform: none;
	letter-spacing: .01em;
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.4;
	height: auto;
	padding-top: .8rem !important;
	padding-bottom: .8rem !important;
}
body.fs-site #ast-mobile-header .main-header-menu .sub-menu { background: transparent; border: 0; box-shadow: none; }
body.fs-site #ast-mobile-header .main-header-menu .sub-menu .menu-link { font-size: 1rem; padding-left: calc(var(--fs-side) + 1rem); opacity: .9; }
body.fs-site #ast-mobile-header .ast-menu-toggle { color: #fff; }
body.fs-site #ast-mobile-header .fs-nav-cta > .menu-link { margin: .75rem var(--fs-side) 0; padding: .9rem 1.2rem !important; border: 1px solid #fff !important; text-align: center; display: block; }

/* =====================================================================
   5. HOME HERO
   ===================================================================== */
.fs-hero { align-items: flex-start !important; padding: max(6.5rem, 13vh) var(--fs-side) 0 !important; overflow: hidden; }
.fs-hero .wp-block-cover__video-background, .fs-hero .wp-block-cover__image-background { filter: grayscale(1) contrast(1.05); }
.fs-hero .wp-block-cover__inner-container { width: 100%; max-width: 1280px; margin: 0 auto; }
.fs-hero-box {
	margin-left: auto; width: min(100%, 42vw); min-width: 340px;
	min-height: calc(100vh - max(6.5rem, 13vh));
	padding: 1.75rem 1.75rem 18vh;
	border: 1px solid rgba(255,255,255,.32); border-bottom: 0;
	display: flex; flex-direction: column; justify-content: flex-start; color: #fff;
}
.fs-hero-box > * { margin-left: 0 !important; margin-right: 0 !important; }
.fs-kicker { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.62); margin: 0; }
body.fs-site .fs-hero-title {
	font-family: var(--fs-body-font);
	font-size: clamp(3.25rem, 6.6vw, 7rem);
	line-height: .9; letter-spacing: -0.035em;
	margin: 1.6rem 0 0; color: #fff;
}
body.fs-site .fs-hero-title strong, body.fs-site .fs-hero-title strong span { font-weight: 700; color: var(--fs-accent); }
body.fs-site .fs-hero-title > span, body.fs-site .fs-hero-title > span span { font-weight: 400; color: #fff; }
.fs-hero-foot { margin-top: auto; padding-top: 3rem; display: flex; align-items: flex-end; justify-content: space-between; }
.fs-hero-foot p { margin: 0; }
body.fs-site .entry-content .fs-hero-link a, body.fs-site .fs-hero-link a { font-family: var(--fs-body-font); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: #fff; transition: color .2s ease; }
body.fs-site .entry-content .fs-hero-link a:hover { color: var(--fs-accent); }
.fs-arrow { color: #fff; display: block; transition: color .2s ease; }
.fs-arrow:hover { color: var(--fs-accent); }
.fs-hero-line { font-size: 1.15rem; margin: 1.25rem 0 1.5rem; max-width: 24rem; }
.fs-hero-box .wp-block-buttons { margin: 0; }
@media (max-width: 781px) {
	.fs-hero { padding-top: 6rem !important; }
	.fs-hero-box { width: 100%; min-width: 0; min-height: calc(100vh - 6rem); padding: 1.5rem 1.5rem 14vh; }
}

/* =====================================================================
   6. SHARED TYPE HELPERS
   ===================================================================== */
.fs-muted { color: var(--fs-muted); }
.fs-mist { color: var(--fs-mist); }
.fs-sub { color: var(--fs-mist); font-size: 1rem; margin-top: .25rem; }
.fs-right { text-align: right; }
.fs-caps { text-transform: uppercase; letter-spacing: 0.02em; font-family: var(--fs-body-font); font-weight: 700; }
.fs-caption { color: #fff; font-size: 1.1rem; margin-top: 1rem; }
body.fs-site .fs-page-title { font-size: clamp(3rem, 7.2vw, 6.25rem) !important; line-height: .9 !important; margin-top: 0 !important; margin-bottom: 0 !important; letter-spacing: -0.05em; padding-right: max(0px, min(100%, 1200px) - 16ch); }
.fs-narrow .fs-page-title { padding-right: 0; }
.fs-dark-top { padding-top: calc(clamp(3rem, 8vw, 6rem) + 4rem) !important; }
.fs-top .fs-lead { margin-top: 0; }
/* Keep narrow text blocks left-aligned with the headings (instead of centred) */
.fs-lead, .fs-hero-line { padding-right: max(0px, min(100%, 1200px) - 60rem); }
.fs-hero-line { padding-right: 0; }
.wp-block-shortcode, .fs-page .is-layout-constrained > .fs-form, .fs-page .is-layout-constrained > .fs-form-msg { max-width: var(--wp--style--global--content-size) !important; }
.fs-section-title { letter-spacing: -0.03em; }
.fs-wide img, .fs-shot img { width: 100%; }
.fs-shot img { display: block; }
.fs-justify { text-align: justify; hyphens: auto; }
@media (max-width: 640px) { .fs-justify { text-align: left; } }
body.fs-site .fs-more a { font-weight: 700; }
.fs-gap { gap: 1.5rem; }
body.fs-site .fs-campaign { font-family: var(--fs-heading-font); font-size: 1.5rem; line-height: 1.05; margin: .9rem 0 .4rem; }
.fs-project { gap: 2.5rem; }
.fs-project-title { margin: 0 0 .75rem; }

/* =====================================================================
   7. HOME SECTIONS
   ===================================================================== */
.fs-intro .fs-photo figcaption { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fs-muted); margin-top: .6rem; }
.fs-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity .2s ease; }
.fs-tile a:hover img { opacity: .85; }
body.fs-site .entry-content .fs-tile-title a { text-decoration: none; }
body.fs-site .fs-tile-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.fs-work .fs-service { margin: 0; padding: 1.4rem 1rem; font-size: 1rem; color: var(--fs-muted); }
.fs-work .fs-service strong { color: var(--fs-charcoal); }
body.fs-site .entry-content .fs-work .fs-service strong a { text-decoration: none; }
.fs-work .fs-rule { margin: 0; border: 0; border-top: 1px solid #8a8f94; opacity: 1; width: 100%; max-width: none; }
.fs-work .fs-service:first-child { padding-top: .4rem; }

.fs-team { padding: 0 !important; }
.fs-team .wp-block-columns { gap: 0 !important; margin: 0; }
.fs-team .wp-block-image { margin: 0; height: 100%; }
.fs-team .wp-block-image img { width: 100%; height: 100%; min-height: 34rem; object-fit: cover; display: block; }
.fs-team-text { padding: 5rem var(--fs-side); display: flex; flex-direction: column; gap: 6rem; }
.fs-person { display: grid; grid-template-columns: minmax(6rem, 1fr) 2.2fr; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,.75); padding-top: .9rem; }
.fs-person > * { margin: 0 !important; }
.fs-name { font-size: .8rem; font-weight: 700; letter-spacing: .2em; }
.fs-bio { color: #f2f2f2; font-size: 1rem; }
@media (max-width: 781px) { .fs-team-text { gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; } .fs-person { grid-template-columns: 1fr; gap: .5rem; } .fs-team .wp-block-image img { min-height: 18rem; } }

/* =====================================================================
   8. SERVICE / PORTFOLIO PAGES
   ===================================================================== */
.fs-project-foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 1.25rem; }
.fs-project-text { flex: 1 1 26rem; max-width: 44rem; }
.fs-project-text > * { margin-block: 0 .5rem; }
.fs-platform { color: var(--fs-mist); font-size: .9rem; }
.fs-pair, .fs-strip { gap: 1rem; }
.fs-strip.wp-block-columns { flex-wrap: nowrap; }
.fs-strip .wp-block-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
@media (max-width: 781px) { .fs-strip.wp-block-columns { flex-wrap: wrap; } .fs-strip .wp-block-column { flex-basis: 45% !important; } }

.fs-facts { gap: 2rem; margin: 2rem 0 1rem; }
.fs-facts .wp-block-column { border-top: 1px solid rgba(128,128,128,.6); padding-top: .8rem; }
body.fs-site .fs-fact-big { font-family: var(--fs-heading-font); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; margin: 0 0 .35rem; letter-spacing: -.03em; }
.fs-fact-label { margin: 0; font-size: .95rem; opacity: .85; }

.fs-list { padding-left: 1.2rem; margin-left: 0; }
.fs-list li { margin-bottom: .4rem; }
.fs-list-cols { columns: 2; column-gap: 3rem; }
@media (max-width: 781px) { .fs-list-cols { columns: 1; } }

.fs-table table { width: 100%; border-collapse: collapse; border: 0; }
.fs-table th, .fs-table td { border: 0 !important; border-bottom: 1px solid var(--fs-charcoal) !important; padding: 1rem .5rem; text-align: left; vertical-align: top; font-size: .95rem; background: transparent; }
.fs-table thead th { border-bottom: 2px solid var(--fs-charcoal) !important; font-weight: 400; }
.fs-table td:first-child { width: 38%; font-weight: 700; }
.wp-block-details { border-bottom: 1px solid #9aa0a5; padding: 1rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 700; }
.wp-block-details p { margin: .75rem 0 0; }

.wp-block-image img { height: auto; }
.wp-block-image figcaption { font-size: .95rem; margin-top: .75rem; color: inherit; opacity: .85; text-align: left; }

/* =====================================================================
   9. BUTTONS (override Astra button styles)
   ===================================================================== */
body.fs-site .wp-block-button .wp-block-button__link,
body.fs-site .wp-block-button .wp-element-button {
	background: #fff;
	color: var(--fs-charcoal);
	border: 1px solid #fff;
	border-radius: 0;
	font-family: var(--fs-body-font);
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	padding: .8em 1.5em;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
body.fs-site .wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); background: var(--fs-mist); border-color: var(--fs-mist); color: var(--fs-charcoal); }
/* On light backgrounds the default button turns charcoal */
body.fs-site .has-light-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body.fs-site .has-white-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body.fs-site .wp-block-button.fs-btn-dark .wp-block-button__link { background: var(--fs-charcoal); border-color: var(--fs-charcoal); color: #fff; }
body.fs-site .has-light-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.fs-site .has-white-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.fs-site .wp-block-button.fs-btn-dark .wp-block-button__link:hover { background: #000; border-color: #000; color: #fff; }
body.fs-site .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent !important; color: inherit !important; border: 1px solid currentColor; }
body.fs-site .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: var(--fs-charcoal) !important; border-color: #fff; }
body.fs-site .has-light-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body.fs-site .has-white-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--fs-charcoal) !important; color: #fff !important; border-color: var(--fs-charcoal); }
.fs-cta .wp-block-heading { margin-top: 0; }

/* =====================================================================
   10. CONTACT FORM  [fabrica_contact_form]
   ===================================================================== */
.fs-form { display: grid; gap: 1.1rem; padding-right: max(0px, min(100%, 1200px) - 46rem); }
.fs-form > * { min-width: 0; }
.fs-form label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: inherit; }
body.fs-site .fs-form input, body.fs-site .fs-form select, body.fs-site .fs-form textarea { font: inherit; font-weight: 400; padding: .8rem .9rem; border: 1px solid #8a8f94; background: #111; color: #fff; border-radius: 0; width: 100%; max-width: none; box-shadow: none; }
.fs-form input:focus, .fs-form select:focus, .fs-form textarea:focus { outline: 2px solid #fff; outline-offset: 2px; }
.fs-form .fs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .fs-form .fs-row { grid-template-columns: 1fr; } }
body.fs-site .fs-form button { font: inherit; font-weight: 700; padding: .9rem 1.6rem; background: #fff; color: #2a2a2a; border: 0; border-radius: 0; cursor: pointer; justify-self: start; transition: transform .2s ease; }
body.fs-site .fs-form button:hover { transform: translateY(-2px); background: var(--fs-mist); color: #2a2a2a; }
.fs-form .fs-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.fs-form-note { font-size: .85rem; opacity: .8; margin: 0; }
.fs-form-msg { padding: 1rem 1.2rem; border: 1px solid currentColor; margin-bottom: 1.5rem; }

/* =====================================================================
   11. FOOTER (edit it in Appearance > Patterns > "Fabrica footer")
   ===================================================================== */
.fs-footer-wrap { background: var(--fs-charcoal); color: #fff; }
.fs-footer { background: var(--fs-charcoal); color: #fff; padding: 3.5rem var(--fs-side) 2rem; max-width: none; margin: 0; }
.fs-footer > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.fs-footer a { color: #fff; text-decoration: none; }
.fs-footer a:hover { text-decoration: underline; text-underline-offset: 5px; color: #fff; }
body.fs-site .fs-footer h2 { color: #fff; margin: 0 0 1rem; font-size: clamp(2.5rem, 5vw, 4rem); }
body.fs-site .fs-footer h2 span { font-weight: 400; }
.fs-footer p { margin-block: 0 .75rem; }
.fs-footer-head { font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--fs-mist); margin: 0 0 .75rem !important; }
.fs-footer-links { list-style: none; margin: 0; padding: 0; }
.fs-footer-links li { margin: 0 0 .45rem; font-size: .95rem; }
.fs-footer-note { color: var(--fs-mist); font-size: .85rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.25rem; margin-top: 2.5rem !important; }
body.fs-site .site-footer { display: none; } /* Astra's own footer is replaced by the pattern above */

/* =====================================================================
   12. BLOG / OTHER PAGES (posts, privacy policy) keep Astra's layout
   ===================================================================== */
body.fs-site:not(.fs-page) .site-content { padding-top: 3rem; padding-bottom: 4rem; }

/* =====================================================================
   13. ANIMATIONS (opt-in classes, add them in Block > Advanced > Additional CSS class)
   fs-letters  heading letters rise in   | fs-fade-in  fades in
   fs-type     heading types out letter by letter
   fs-frame    box wipes in              | fs-bounce   gentle bounce
   fs-reveal   fades up on scroll        | fs-zoom     image zooms on hover
   fs-dim      darkens a cover image
   ===================================================================== */
.fs-dim { --fs-brightness: 1.05; }
.fs-dim video, .fs-dim .wp-block-cover__video-background, .fs-dim .wp-block-cover__image-background { filter: brightness(var(--fs-brightness)) contrast(1.05); }
.fs-letters .fs-char { display: inline-block; opacity: 0; transform: translateY(.55em); animation: fs-rise .75s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i,0) * 60ms + 250ms); }
@keyframes fs-rise { to { opacity: 1; transform: none; } }
.fs-type .fs-char { opacity: 0; animation: fs-show .01s linear forwards; animation-delay: calc(var(--i,0) * 110ms + 700ms); }
@keyframes fs-show { to { opacity: 1; } }
.fs-fade-in { opacity: 0; animation: fs-fade 1s ease 1.1s forwards; }
@keyframes fs-fade { to { opacity: 1; } }
.fs-frame { animation: fs-wipe 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fs-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.fs-bounce { display: inline-block; animation: fs-bounce 2.2s ease-in-out infinite; }
@keyframes fs-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.fs-js .fs-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.fs-js .fs-reveal.is-visible { opacity: 1; transform: none; }
.fs-zoom { overflow: hidden; }
.fs-zoom img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.fs-zoom:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
	.fs-letters .fs-char, .fs-type .fs-char, .fs-fade-in, .fs-frame, .fs-bounce { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.fs-js .fs-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.fs-zoom img, .wp-block-button__link { transition: none !important; }
}
/* In the editor, show everything */
.editor-styles-wrapper .fs-reveal, .editor-styles-wrapper .fs-fade-in, .editor-styles-wrapper .fs-letters .fs-char, .editor-styles-wrapper .fs-type .fs-char { opacity: 1 !important; transform: none !important; animation: none !important; }

/* =====================================================================
   14. ACCENT COLOUR (#db1b1b) – change --fs-accent at the top to recolour
   ===================================================================== */
body.fs-site ::selection { background: var(--fs-accent); color: #fff; }
body.fs-site .entry-content p a, body.fs-site .entry-content li a { text-decoration-color: var(--fs-accent); }
body.fs-site .entry-content p a:hover, body.fs-site .entry-content li a:hover,
body.fs-site .entry-content .fs-tile-title a:hover { color: var(--fs-accent); }
body.fs-site .has-black-background-color .entry-content p a:hover, body.fs-site .fs-footer a:hover { color: #fff; text-decoration-color: var(--fs-accent); }
.fs-footer a:hover { text-decoration-color: var(--fs-accent); }
body.fs-site .fs-footer h2 strong { color: var(--fs-accent); }

/* Header: red underline on hover, red top bar on the dropdown, red fill on the quote button */
body.fs-site #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
body.fs-site #ast-desktop-header .main-header-menu > .menu-item.current-menu-item > .menu-link { text-decoration-color: var(--fs-accent); text-decoration-thickness: 2px; }
body.fs-site #ast-desktop-header .main-header-menu .sub-menu { border-top-color: var(--fs-accent); }
body.fs-site #ast-desktop-header .main-header-menu > .fs-nav-cta > .menu-link:hover,
body.fs-header-dark:not(.fs-scrolled) #ast-desktop-header .main-header-menu > .fs-nav-cta > .menu-link:hover { background: var(--fs-accent); border-color: var(--fs-accent); color: #fff; }
body.fs-site #ast-mobile-header .fs-nav-cta > .menu-link { background: var(--fs-accent) !important; border-color: var(--fs-accent) !important; }

/* Buttons: solid red, darker on hover */
body.fs-site .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body.fs-site .has-light-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body.fs-site .has-white-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link,
body.fs-site .wp-block-button.fs-btn-dark .wp-block-button__link { background: var(--fs-accent); border-color: var(--fs-accent); color: #fff; }
body.fs-site .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.fs-site .has-light-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.fs-site .has-white-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
body.fs-site .wp-block-button.fs-btn-dark .wp-block-button__link:hover { background: var(--fs-accent-dark); border-color: var(--fs-accent-dark); color: #fff; }
body.fs-site .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body.fs-site .has-light-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body.fs-site .has-white-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--fs-accent) !important; border-color: var(--fs-accent); color: #fff !important; }

/* Contact form */
body.fs-site .fs-form button { background: var(--fs-accent); color: #fff; }
body.fs-site .fs-form button:hover { background: var(--fs-accent-dark); color: #fff; }
.fs-form input:focus, .fs-form select:focus, .fs-form textarea:focus { outline-color: var(--fs-accent); }

/* Small touches */
.fs-facts .wp-block-column { border-top-color: var(--fs-accent); }
.wp-block-details summary::marker { color: var(--fs-accent); }

/* Hide the typed heading until the script has split it into letters (avoids a flash) */
.fs-js .fs-type:not([data-fs-split]), .fs-js .fs-letters:not([data-fs-split]) { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .fs-js .fs-type, .fs-js .fs-letters { visibility: visible !important; } }
.editor-styles-wrapper .fs-type, .editor-styles-wrapper .fs-letters { visibility: visible !important; }
