/*
Theme Name: TraceWay
Theme URI:
Author: SOBOLEVALAB
Author URI:
Description: Custom B2B Theme for TraceWay project
Version: 1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traceway
*/

/* --- Base Reset --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var( --wp--preset--font-family--primary );
	color: var( --wp--preset--color--coal );
	background-color: var( --wp--preset--color--cream );
	line-height: 1.6;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var( --wp--preset--color--terra );
	text-decoration: none;
}

a:hover,
a:focus {
	color: var( --wp--preset--color--terra-hover );
}

/* --- Layout --- */
.container {
	width: 100%;
	max-width: var( --wp--style--global--content-size, 1280px );
	margin-inline: auto;
	padding-inline: 20px;
}

/* --- Buttons --- */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
	background-color: var( --wp--preset--color--terra );
	color: var( --wp--preset--color--cream );
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: var( --wp--preset--color--terra-hover );
}

.btn-secondary {
	background-color: transparent;
	color: var( --wp--preset--color--coal );
	border: 1px solid var( --wp--preset--color--coal2 );
	margin-inline-start: 12px;
}

.btn-secondary:hover,
.btn-secondary:focus {
	background-color: var( --wp--preset--color--coal2 );
	color: var( --wp--preset--color--cream );
}

/* --- Header --- */
.site-header {
	background-color: var( --wp--preset--color--cream );
	border-bottom: 1px solid var( --wp--preset--color--coal2 );
	padding: 16px 0;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.logo a {
	font-size: 24px;
	font-weight: 700;
	color: var( --wp--preset--color--coal );
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
}

.main-navigation a {
	color: var( --wp--preset--color--coal );
}

/* --- Hero Section --- */
.hero-section {
	padding: 80px 0;
	background-color: var( --wp--preset--color--cream );
	text-align: center;
}

.hero-title {
	font-size: calc( var( --wp--preset--font-size--large ) * 1.3 );
	margin-bottom: 20px;
	color: var( --wp--preset--color--coal );
}

.hero-subtitle {
	font-size: var( --wp--preset--font-size--medium );
	color: var( --wp--preset--color--coal );
	max-width: 700px;
	margin: 0 auto 32px;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* --- Features Section --- */
.features-section {
	padding: 80px 0;
}

.section-title {
	font-size: var( --wp--preset--font-size--large );
	text-align: center;
	margin-bottom: 48px;
	color: var( --wp--preset--color--coal );
}

.features-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) );
	gap: 32px;
}

.feature-card {
	padding: 32px;
	border: 1px solid var( --wp--preset--color--coal2 );
	border-radius: 8px;
	background-color: var( --wp--preset--color--cream );
}

.feature-card h3 {
	margin-bottom: 12px;
	font-size: 20px;
	color: var( --wp--preset--color--coal );
}

/* --- Equipment Section --- */
.equipment-section {
	padding: 80px 0;
	background-color: var( --wp--preset--color--cream );
}

.equipment-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 300px, 1fr ) );
	gap: 32px;
}

.equipment-card {
	border: 1px solid var( --wp--preset--color--coal2 );
	border-radius: 8px;
	padding: 24px;
	background-color: var( --wp--preset--color--cream );
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.equipment-thumbnail {
	margin-bottom: 16px;
	border-radius: 6px;
	overflow: hidden;
}

.equipment-title {
	font-size: 22px;
	margin-bottom: 12px;
	color: var( --wp--preset--color--coal );
}

.equipment-excerpt {
	color: var( --wp--preset--color--coal );
	font-size: var( --wp--preset--font-size--small );
	margin-bottom: 20px;
	flex-grow: 1;
}

/* --- Footer --- */
.site-footer {
	background-color: var( --wp--preset--color--coal );
	color: var( --wp--preset--color--cream );
	padding: 32px 0;
	text-align: center;
}

.site-footer a {
	color: var( --wp--preset--color--terra );
}
