/*
Theme Name: ContBlox Child
Theme URI: https://contblox.com
Description: GeneratePress child theme for ContBlox — modular flat-pack container kits. Custom industrial-light styling.
Author: Limonet
Author URI: https://www.limonet.si
Template: generatepress
Version: 1.0.0
Text Domain: contblox-child
*/

:root {
  --cb-slate: #1f2933;
  --cb-accent: #e8590c;
  --cb-accent-dark: #c9490a;
  --cb-bg: #ffffff;
  --cb-muted: #5b6770;
  --cb-border: #e2e6ea;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #2b333b;
  background: var(--cb-bg);
}

h1, h2, h3, h4 {
  color: var(--cb-slate);
  font-weight: 700;
  line-height: 1.2;
}

/* Buttons / CTAs */
.wp-block-button__link,
.wpcf7 input[type="submit"] {
  background-color: var(--cb-accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.7em 1.6em;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: background-color .15s ease;
}
.wp-block-button__link:hover,
.wpcf7 input[type="submit"]:hover {
  background-color: var(--cb-accent-dark);
  color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--cb-accent);
  border: 2px solid var(--cb-accent);
}

/* Product / use-case cards */
.cb-card {
  border: 1px solid var(--cb-border);
  border-radius: 8px;
  padding: 1.5em;
  background: #fafbfc;
  height: 100%;
}
.cb-card h3 { margin-top: 0; }

/* Site header / logo */
.site-logo img, .site-header img { max-height: 56px; width: auto; }
.main-title a { color: var(--cb-slate); font-weight: 800; }

/* Footer */
.site-footer, .footer-widgets, .site-info {
  background-color: var(--cb-slate);
  color: #c7cfd6;
}
.site-info a, .footer-widgets a { color: #fff; }
.site-info { padding: 1.2em 0; font-size: .9em; }

/* Language switcher in menu */
.menu-item .lang-item, .pll-switcher { font-weight: 600; }

/* Content width handled in functions.php via GP settings; fallback */
.grid-container { max-width: 1100px; }

/* Hero intro spacing */
.entry-content > .wp-block-heading:first-child { margin-top: .2em; }

/* Floating language selector (top-right) */
.cb-lang-float {
	position: fixed;
	top: 14px;
	right: 16px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #1f2933;
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}
.cb-lang-float a {
	color: #cbd5e1;
	text-decoration: none;
	transition: color .15s ease;
}
.cb-lang-float a:hover { color: #ffffff; }
.cb-lang-float a.cb-lang-current { color: #e8590c; }
.cb-lang-sep { color: #475569; }
@media (max-width: 768px) {
	.cb-lang-float { top: 10px; right: 10px; padding: 5px 11px; font-size: 13px; }
}
