/*
Theme Name: Wolfpack Industrial Lab
Theme URI: https://wolfpackcoffeelab.com
Description: Industrial Lab Aesthetic FSE Theme para Wolfpack Coffee Lab. Precisión técnica + artesanía cafetera.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Author: Wolfpack Coffee Lab
Author URI: https://wolfpackcoffeelab.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wolfpack
Domain Path: /languages
Tags: dark-mode, fse, block-editor, coffee, engineering, craft, responsive
*/

/* Reset y Estilos Base */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
}

body {
	background-color: #081421;
	color: #d8e3f6;
	font-family: 'Inter', system-ui, sans-serif;
	line-height: 1.6;
}

/* Lab Grid Background Pattern */
.has-lab-grid-background,
.lab-grid {
	background-size: 40px 40px;
	background-image:
		linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

/* Material Symbols default variation settings */
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.has-lab-grid-dot-background {
	background-image: radial-gradient(circle at 1px 1px, #15202e 1px, transparent 0);
	background-size: 40px 40px;
}

/* Mobile Menu Animation */
.mobile-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
	max-height: 500px;
}

/* =============================================
    SITE HEADER — wolfpack-site-header
    ============================================= */

.wolfpack-site-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 50 !important;
	width: 100% !important;
	background-color: rgba(8, 20, 33, 0.95) !important;
	backdrop-filter: blur(4px) !important;
	-webkit-backdrop-filter: blur(4px) !important;
	border-bottom: 1px solid #4f4537 !important;
	padding: 0 !important;
}

.wolfpack-header-inner {
	max-width: 1536px !important;
	margin: 0 auto !important;
	min-height: 96px !important;
	padding: 0 32px !important;
}

/* Logo */
.wolfpack-site-header .wp-block-site-logo img {
	height: 80px;
	width: auto;
	object-fit: contain;
}

/* Main nav — desktop links */
.wolfpack-main-nav .wp-block-navigation__container {
	display: flex !important;
	gap: 32px !important;
	align-items: center !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wolfpack-main-nav .wp-block-navigation-item__content,
.wolfpack-main-nav .wp-block-navigation-item a {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d4c4b1;
	text-decoration: none;
	transition: all 0.3s;
	padding: 0 0 4px 0;
	border-bottom: 2px solid transparent;
}

.wolfpack-main-nav .wp-block-navigation-item__content:hover,
.wolfpack-main-nav .wp-block-navigation-item a:hover {
	color: #f7be5f;
	border-bottom-color: #f7be5f;
}

.wolfpack-main-nav .current-menu-item > a,
.wolfpack-main-nav .current-menu-item .wp-block-navigation-item__content,
.wolfpack-main-nav .current_page_item > a {
	color: #f7be5f;
	border-bottom: 2px solid #f7be5f;
}

/* Mobile hamburger button */
.wolfpack-main-nav .wp-block-navigation__responsive-container-open {
	color: #f7be5f;
	background: transparent;
	border: none;
	padding: 8px;
}

.wolfpack-main-nav .wp-block-navigation__responsive-container-open:hover {
	opacity: 0.8;
}

/* Mobile overlay panel */
.wolfpack-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: #081421;
	border-top: 1px solid #4f4537;
	padding: 16px 32px;
	z-index: 50;
}

.wolfpack-main-nav .wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.wolfpack-main-nav .wp-block-navigation__responsive-container-close {
	color: #f7be5f;
	background: transparent;
	border: none;
}

/* Header CTA button */
.wolfpack-header-cta .wp-block-button__link {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 8px 24px;
	border-radius: 0;
}

@media (max-width: 599px) {
	.wolfpack-header-cta {
		display: none;
	}
}

/* =============================================
    SITE FOOTER — wolfpack-site-footer
    ============================================= */

.wolfpack-site-footer {
	width: 100% !important;
	border-top: 1px solid #4f4537 !important;
	background-color: #081421 !important;
	padding: 0 !important;
}

.wolfpack-footer-main {
	max-width: 1536px !important;
	margin: 0 auto !important;
	padding: 64px 32px !important;
}

.wolfpack-footer-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 48px !important;
	width: 100% !important;
}

@media (min-width: 768px) {
	.wolfpack-footer-grid {
		grid-template-columns: 1fr 1fr 1fr !important;
		gap: 48px !important;
	}
}

/* Footer brand column */
.wolfpack-footer-brand-col {
	display: flex !important;
	flex-direction: column !important;
	gap: 24px !important;
}

.wolfpack-footer-title .wp-block-site-title,
.wolfpack-footer-title a {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 18px;
	font-weight: 900;
	color: #d8e3f6;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wolfpack-footer-desc {
	color: #d4c4b1;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}

.wolfpack-footer-social {
	display: flex !important;
	gap: 16px !important;
}

.wolfpack-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d4c4b1;
	transition: color 0.3s;
	text-decoration: none;
}

.wolfpack-social-link:hover {
	color: #f7be5f;
}

.wolfpack-social-link .material-symbols-outlined {
	font-size: 20px;
}

/* Footer nav column */
.wolfpack-footer-nav-col {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 32px !important;
}

.wolfpack-footer-nav-section {
	display: flex !important;
	flex-direction: column !important;
}

.wolfpack-footer-heading {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d8e3f6;
	margin: 0 0 24px 0;
}

.wolfpack-footer-nav-explorar .wp-block-navigation__container,
.wolfpack-footer-nav .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wolfpack-footer-nav-explorar .wp-block-navigation-item__content,
.wolfpack-footer-nav-explorar .wp-block-navigation-item a,
.wolfpack-footer-nav .wp-block-navigation-item__content,
.wolfpack-footer-nav .wp-block-navigation-item a {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d4c4b1;
	text-decoration: none;
	transition: color 0.3s;
}

.wolfpack-footer-nav-explorar .wp-block-navigation-item__content:hover,
.wolfpack-footer-nav-explorar .wp-block-navigation-item a:hover,
.wolfpack-footer-nav .wp-block-navigation-item__content:hover,
.wolfpack-footer-nav .wp-block-navigation-item a:hover {
	color: #f7be5f;
}

.wolfpack-footer-links {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

.wolfpack-footer-link {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d4c4b1;
	text-decoration: none;
	transition: color 0.3s;
}

.wolfpack-footer-link:hover {
	color: #f7be5f;
}

/* Footer newsletter column */
.wolfpack-footer-newsletter {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
}

.wolfpack-footer-newsletter-desc {
	color: #d4c4b1;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}

.wolfpack-newsletter-form {
	display: flex !important;
	border: 1px solid #4f4537 !important;
	overflow: hidden !important;
}

.wolfpack-newsletter-input {
	flex: 1;
	background: transparent;
	border: none;
	color: #d8e3f6;
	padding: 8px 16px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 14px;
	outline: none;
}

.wolfpack-newsletter-input::placeholder {
	color: #9c8f7d;
}

.wolfpack-newsletter-input:focus {
	outline: none;
}

.wolfpack-newsletter-btn {
	background-color: #f7be5f;
	color: #432c00;
	border: none;
	padding: 8px 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s;
}

.wolfpack-newsletter-btn:hover {
	opacity: 0.8;
}

.wolfpack-newsletter-btn .material-symbols-outlined {
	font-size: 20px;
}

/* Footer bottom bar */
.wolfpack-footer-bottom {
	border-top: 1px solid #4f4537 !important;
	max-width: 1536px !important;
	margin: 0 auto !important;
	padding: 32px !important;
}

.wolfpack-footer-bottom-inner {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
}

.wolfpack-footer-copy {
	color: #64748b;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	margin: 0;
}

.wolfpack-footer-badges {
	display: flex !important;
	gap: 32px !important;
}

.wolfpack-footer-badges span {
	color: #64748b;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3em;
}

@media (max-width: 767px) {
	.wolfpack-footer-grid {
		gap: 32px;
	}

	.wolfpack-footer-nav-col {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.wolfpack-footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.wolfpack-footer-badges {
		flex-direction: column;
		gap: 8px;
	}
}

/* Card Styles */
.wp-block-group.is-style-card-lab {
	border: 1px solid #4f4537;
	transition: all 0.3s ease;
}

.wp-block-group.is-style-card-lab:hover {
	border-color: #f7be5f;
}

/* Headings Typography */
.wp-block-heading {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* Heading scales for WP native block content; Tailwind pages use utility classes */
.wp-site-blocks h1, .entry-content h1 {
	font-size: 48px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wp-site-blocks h2, .entry-content h2 {
	font-size: 32px;
	line-height: 1.2;
	font-weight: 600;
}

.wp-site-blocks h3, .entry-content h3 {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 600;
}

/* Body Text */
.wp-block-paragraph {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
}

p.is-large {
	font-size: 18px;
	line-height: 1.6;
}

/* Labels */
.wp-block-paragraph.is-style-label-sm {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Buttons */
.wp-block-buttons .wp-block-button__link {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 12px 24px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.wp-block-buttons .wp-block-button__link:hover {
	opacity: 0.8;
	transform: translateY(-2px);
}

/* Links — scoped to WP native blocks only; Tailwind pages manage their own link colors */
.wp-site-blocks a:not([class]),
.entry-content a:not([class]) {
	color: #f7be5f;
	text-decoration: none;
	transition: color 0.3s ease;
}

.wp-site-blocks a:not([class]):hover,
.entry-content a:not([class]):hover {
	color: #ffdeae;
}

/* Images */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Picture elements para WebP */
picture {
	display: block;
}

picture img {
	width: 100%;
	height: auto;
}

/* Borders y divisores */
.wp-block-separator {
	border: none;
	border-top: 1px solid #4f4537;
}

/* Dark mode (siempre activado) */
@media (prefers-color-scheme: dark) {
	body {
		background-color: #081421;
		color: #d8e3f6;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.wp-site-blocks h1, .entry-content h1 {
		font-size: 36px;
	}

	.wp-site-blocks h2, .entry-content h2 {
		font-size: 24px;
	}

	.wp-site-blocks h3, .entry-content h3 {
		font-size: 20px;
	}

	.wp-block-buttons .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Skip to content link */
.skip-to-content-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #f7be5f;
	color: #432c00;
	padding: 8px;
	text-decoration: none;
	z-index: 100;
}

.skip-to-content-link:focus {
	top: 0;
}
