/*
Theme Name: Fuchs by IQB
Theme URI: https://iqbusiness.net/
Author: IQB
Author URI: https://iqbusiness.net/
Description: A lightweight classic WordPress theme built on the Bootstrap 5 CSS framework. Developed by IQB for the Fuchs project. Fully responsive, translation-ready, and following WordPress theme development best practices.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fuchs-by-iqb
Tags: bootstrap, classic, custom-menu, featured-images, translation-ready, threaded-comments, right-sidebar, custom-logo
*/

/* =========================================================================
 * Fuchs by IQB — base theme stylesheet.
 *
 * Load order (see functions.php): Montserrat font + Bootstrap + Bootstrap
 * Icons -> this file (design tokens + base type) -> custom.css (component
 * re-branding). Design tokens are taken from the Figma design spec — see
 * design.md.
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * 1. Design tokens (from design.md)
 * ---------------------------------------------------------------------- */
:root {
	/* Brand — Primary (Light Blue) */
	--fuchs-primary: #1260A9;
	--fuchs-primary-400: #4180BA;
	--fuchs-primary-300: #71A0CB;
	--fuchs-primary-200: #A0BFDD;
	--fuchs-primary-100: #D0DFEE;

	/* Brand — Secondary (Teal) */
	--fuchs-teal: #118F91;
	--fuchs-teal-400: #41A5A7;
	--fuchs-teal-100: #CFE9E9;

	/* Brand — Secondary (Dark Blue) — dark sections / footer */
	--fuchs-dark-blue: #0F1F41;
	--fuchs-dark-blue-400: #3F4C67;
	--fuchs-dark-blue-100: #CFD2D9;

	/* Neutrals */
	--fuchs-text: #231F20;   /* Neutral 1000 */
	--fuchs-900: #393536;
	--fuchs-700: #656263;    /* secondary text */
	--fuchs-muted: #656263;
	--fuchs-500: #918F8F;    /* placeholder */
	--fuchs-border: #BDBCBC; /* Neutral 300 */
	--fuchs-200: #D3D2D2;
	--fuchs-bg-light: #E9E9E9; /* Neutral 100 */
	--fuchs-white: #FFFFFF;

	/* Status */
	--fuchs-warning: #FFAF36;
	--fuchs-success: #2F6846;
	--fuchs-error: #B72B1A;

	/* Typography */
	--fuchs-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fuchs-fw-light: 300;
	--fuchs-fw-regular: 400;
	--fuchs-fw-medium: 500;
	--fuchs-fw-semibold: 600;

	/* Type scale (px values from Figma) */
	--fuchs-fs-hero: 60px;   /* H1 / 400 */
	--fuchs-fs-h2: 50px;     /* section / 500 */
	--fuchs-fs-h3: 24px;     /* card / 500, +1px */
	--fuchs-fs-lead: 20px;   /* 400 */
	--fuchs-fs-nav: 18px;    /* 500 */
	--fuchs-fs-body: 16px;   /* 300 */
}

/* -------------------------------------------------------------------------
 * 2. Base typography
 * ---------------------------------------------------------------------- */
body {
	overflow-x: hidden;
	font-family: var(--fuchs-font);
	font-size: var(--fuchs-fs-body);
	font-weight: var(--fuchs-fw-light);
	line-height: 1.6;
	color: var(--fuchs-text);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--fuchs-font);
	font-weight: var(--fuchs-fw-medium);
	line-height: 1.2;
	color: var(--fuchs-text);
}

/* Hero display heading follows the Figma spec (light weight, large). */
.display-1, .display-2, .display-3, .display-4 {
	font-family: var(--fuchs-font);
	font-weight: var(--fuchs-fw-regular);
}

a {
	color: var(--fuchs-primary);
	text-decoration: none;
}
a:hover,
a:focus {
	color: var(--fuchs-primary-400);
	text-decoration: underline;
}

/* Lead paragraph size from the design (20px / 400). */
.lead {
	font-size: var(--fuchs-fs-lead);
	font-weight: var(--fuchs-fw-regular);
}

/* -------------------------------------------------------------------------
 * 3. Site header / primary navigation
 *    Matches the Figma header: solid dark-blue bar, white centred nav,
 *    logo left, "Get In Touch" primary button right. Responsive: collapses
 *    to a hamburger under the lg breakpoint (992px).
 * ---------------------------------------------------------------------- */

/* Solid dark-blue header, sticky to the top on every page. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background-color: var(--fuchs-dark-blue); /* #0F1F41 */
}

.site-navbar {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

/* Branding — custom logo or site-title text fallback. */
.site-header .custom-logo-link {
	display: inline-block;
	line-height: 0;
}
.site-header .custom-logo {
	width: auto;
	height: auto;
	max-height: 52px;
}
.site-header .site-title-text {
	color: #fff;
	font-weight: var(--fuchs-fw-semibold);
	font-size: 1.35rem;
	letter-spacing: 0.5px;
}
.site-header .site-title-text:hover,
.site-header .site-title-text:focus {
	color: #fff;
	text-decoration: none;
}

/* Nav links — Montserrat 18px / 500, white (design spec). */
.site-header .navbar-nav .nav-link {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--fuchs-fs-nav);      /* 18px */
	font-weight: var(--fuchs-fw-medium); /* 500  */
	padding-left: 0.9rem;
	padding-right: 0.9rem;
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus,
.site-header .navbar-nav .nav-link.active,
.site-header .navbar-nav .show > .nav-link {
	color: #fff;
}

/* Dropdown (e.g. About > Our Story) — dark panel to match the header. */
.site-header .dropdown-menu {
	background-color: var(--fuchs-dark-blue-400, #3F4C67);
	border: 0;
	border-radius: 0.375rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.site-header .dropdown-item {
	color: rgba(255, 255, 255, 0.85);
	font-weight: var(--fuchs-fw-medium);
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
	background-color: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* "Get In Touch" CTA button spacing. */
.site-header .site-cta {
	margin-left: 1rem;
	white-space: nowrap;
}

/* Hamburger toggler. */
.site-header .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.35);
}
.site-header .navbar-toggler:focus {
	box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

/* Mobile / collapsed layout (below 992px). */
@media (max-width: 991.98px) {
	.site-header .navbar-nav {
		padding-top: 0.5rem;
	}
	.site-header .navbar-nav .nav-link {
		padding-left: 0;
		padding-right: 0;
	}
	.site-header .site-cta {
		margin-left: 0;
		margin-top: 0.75rem;
		align-self: flex-start;
	}
	.site-header .dropdown-menu {
		background-color: transparent;
		box-shadow: none;
		padding-left: 0.75rem;
	}
}

/* -------------------------------------------------------------------------
 * 4. Accessibility helpers (required by Theme Check)
 * ---------------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
}
.skip-link:focus {
	left: 6px;
	top: 7px;
}

/* -------------------------------------------------------------------------
 * 5. WordPress required classes
 * ---------------------------------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
}
.alignright {
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.sticky {
	display: block;
}
.bypostauthor {
	display: block;
}
.wp-caption {
	max-width: 100%;
}
.wp-caption-text {
	text-align: center;
}
.gallery-caption {
	display: block;
}

/* -------------------------------------------------------------------------
 * 6. Site footer
 *    Matches the Figma footer: dark-blue surface, brand block (logo +
 *    description + social) left, three link columns right, copyright bar.
 *    Responsive: columns stack on small screens.
 * ---------------------------------------------------------------------- */

.site-footer {
	background-color: var(--fuchs-dark-blue); /* #0F1F41 fallback */
	/* Faint industrial image (Theme Settings → Footer BG Image) is applied as an
	   inline background-image on the element in footer.php, over this overlay. */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: rgba(255, 255, 255, 0.75);
	margin-top: auto; /* pin footer to bottom via #page flex column */
}

.site-footer .container {
	padding-top: 3.5rem;
	padding-bottom: 2.5rem;
}

/* Brand block */
.site-footer .footer-brand .custom-logo {
	width: auto;
	height: auto;
	max-height: 54px;
	margin-bottom: 1rem;
}
.site-footer .footer-brand-title {
	display: inline-block;
	color: #fff;
	font-weight: var(--fuchs-fw-semibold);
	font-size: 1.4rem;
	letter-spacing: 0.5px;
	text-decoration: none;
	margin-bottom: 1rem;
}
.site-footer .footer-desc {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	line-height: 1.7;
	max-width: 34ch;
	margin-bottom: 1.25rem;
}

/* Social icons — blue rounded squares (Figma). */
.site-footer .footer-social {
	gap: 0.6rem;
}
.site-footer .footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background-color: var(--fuchs-primary); /* #1260A9 */
	color: #fff;
	font-size: 1.05rem;
	transition: background-color 0.15s ease-in-out;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus {
	background-color: var(--fuchs-primary-400); /* #4180BA */
	color: #fff;
}

/* Column headings */
.site-footer .footer-heading {
	color: #fff;
	font-size: 1.05rem;
	font-weight: var(--fuchs-fw-semibold);
	margin-bottom: 1.1rem;
}

/* Link columns */
.site-footer .footer-menu li {
	margin-bottom: 0.6rem;
}
.site-footer .footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	font-weight: var(--fuchs-fw-light);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}
.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus {
	color: #fff;
	text-decoration: none;
}

/* Bottom copyright bar */
.site-footer .footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background-color: rgba(0, 0, 0, 0.15);
}
.site-footer .footer-bottom .container {
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.site-footer .footer-bottom-inner {
	gap: 0.5rem;
}
.site-footer .footer-copy,
.site-footer .footer-credit {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
}

/* -------------------------------------------------------------------------
 * 7. Content modules — shared / common
 *    Base helpers used by the ACF flexible-content sections. Each section
 *    also has its own file in assets/css/modules/, loaded only when present.
 * ---------------------------------------------------------------------- */

/* Vertical rhythm for every module section. */
.fuchs-section {
	padding-top: clamp(3rem, 6vw, 6rem);
	padding-bottom: clamp(3rem, 6vw, 6rem);
}

/* Section heading — design H2: Montserrat 50px / 500. */
.fuchs-section-title {
	font-family: var(--fuchs-font);
	font-weight: var(--fuchs-fw-medium);
	font-size: clamp(2rem, 3.5vw, 50px);
	line-height: 1.15;
	margin-bottom: 1.25rem;
}

/* Rich-text (WYSIWYG) blocks. */
.fuchs-rte {
	color: var(--fuchs-700);
	line-height: 1.7;
}
.fuchs-rte > :last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 8. Slider / carousel — shared (Bootstrap carousel skin)
 *    Common to any module that uses fuchs_iqb_render_slider() (e.g. CSI).
 * ---------------------------------------------------------------------- */

.fuchs-slider {
	border-radius: 12px;
	overflow: hidden;
}

/* Uniform image ratio for slides. */
.fuchs-slider .carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Dot indicators. */
.fuchs-slider .carousel-indicators {
	margin-bottom: 0.75rem;
}
.fuchs-slider .carousel-indicators [data-bs-target] {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	background-color: rgba(255, 255, 255, 0.6);
	opacity: 1;
	transition: background-color 0.15s ease-in-out;
}
.fuchs-slider .carousel-indicators .active {
	background-color: #fff;
}

/* Prev/next controls — compact rounded buttons. */
.fuchs-slider .carousel-control-prev,
.fuchs-slider .carousel-control-next {
	width: auto;
	opacity: 1;
}
.fuchs-slider .carousel-control-prev {
	justify-content: flex-start;
	padding-left: 0.75rem;
}
.fuchs-slider .carousel-control-next {
	justify-content: flex-end;
	padding-right: 0.75rem;
}
.fuchs-slider .carousel-control-prev-icon,
.fuchs-slider .carousel-control-next-icon {
	width: 2.25rem;
	height: 2.25rem;
	background-color: rgba(15, 31, 65, 0.55);
	border-radius: 50%;
	background-size: 1rem;
}
.fuchs-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.fuchs-slider .carousel-control-next:hover .carousel-control-next-icon {
	background-color: var(--fuchs-primary, #1260A9);
}

/* -------------------------------------------------------------------------
 * 9. News card — shared
 *    Article card used by the News listing (content_block_section) and the
 *    Related Articles slider (related_articles_section).
 * ---------------------------------------------------------------------- */
.news-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid var(--fuchs-100, #E9E9E9);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.news-card:hover {
	box-shadow: 0 16px 34px rgba(15, 31, 65, 0.1);
	transform: translateY(-3px);
}
.news-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.news-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.news-card-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--fuchs-primary-100, #D0DFEE), var(--fuchs-teal-100, #CFE9E9));
}
.news-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.25rem 1.35rem 1.5rem;
}
.news-card-date {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--fuchs-primary, #1260A9);
	font-size: 0.85rem;
	font-weight: var(--fuchs-fw-medium, 500);
	margin-bottom: 0.6rem;
}
.news-card-title {
	font-size: 1.2rem;
	font-weight: var(--fuchs-fw-semibold, 600);
	line-height: 1.3;
	margin-bottom: 0.6rem;
}
.news-card-title a {
	color: var(--fuchs-text, #231F20);
	text-decoration: none;
}
.news-card-title a:hover,
.news-card-title a:focus {
	color: var(--fuchs-primary, #1260A9);
}
.news-card-excerpt {
	color: var(--fuchs-700, #656263);
	font-size: 0.95rem;
	font-weight: var(--fuchs-fw-light, 300);
	line-height: 1.6;
	margin-bottom: 1.25rem;
}
.news-card-btn {
	align-self: flex-start;
	margin-top: auto;
}
