:root {
	--starline-primary: #16a34a;
	--starline-primary-dark: #15803d;
	--starline-secondary: #111827;
	--starline-text: #374151;
	--starline-muted: #6b7280;
	--starline-border: #e5e7eb;
	--starline-light: #f7f8fa;
	--starline-white: #ffffff;
	--starline-danger: #dc2626;
	--starline-radius: 10px;
	--starline-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--starline-text);
	background: var(--starline-white);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

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

a {
	color: var(--starline-secondary);
	text-decoration: none;
	transition: color 0.25s ease, background-color 0.25s ease,
		transform 0.25s ease;
}

a:hover {
	color: var(--starline-primary);
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var(--starline-secondary);
	line-height: 1.25;
}

p {
	margin-top: 0;
}

.starline-container {
	width: min(1200px, calc(100% - 32px));
	margin-right: auto;
	margin-left: auto;
}

.content-narrow {
	max-width: 850px;
}

.site-main {
	min-height: 500px;
	padding-top: 60px;
	padding-bottom: 60px;
}

.front-page-main,
.elementor-page-content,
.starline-elementor-page .site-main {
	padding-top: 0;
	padding-bottom: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	z-index: 999999;
	top: 15px;
	left: 15px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	color: var(--starline-secondary);
	background: var(--starline-white);
	clip: auto;
	box-shadow: var(--starline-shadow);
}

/* Top bar */

.site-topbar {
	padding: 7px 0;
	color: var(--starline-white);
	background: var(--starline-secondary);
	font-size: 13px;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.topbar-inner p {
	margin: 0;
}

/* Header */

.site-header {
	position: relative;
	z-index: 100;
	background: var(--starline-white);
	border-bottom: 1px solid var(--starline-border);
}

.header-main {
	display: grid;
	grid-template-columns: 220px minmax(280px, 1fr) auto;
	align-items: center;
	gap: 30px;
	min-height: 84px;
}

.site-branding img {
	max-height: 60px;
	width: auto;
}

.site-title {
	color: var(--starline-secondary);
	font-size: 26px;
	font-weight: 800;
}

.header-search form {
	position: relative;
	display: flex;
	width: 100%;
}

.header-search input[type="search"] {
	width: 100%;
	height: 48px;
	padding: 0 130px 0 18px;
	border: 1px solid var(--starline-border);
	border-radius: var(--starline-radius);
	outline: none;
}

.header-search input[type="search"]:focus {
	border-color: var(--starline-primary);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.header-search button,
.header-search input[type="submit"] {
	position: absolute;
	top: 4px;
	right: 4px;
	height: 40px;
	padding: 0 22px;
	color: var(--starline-white);
	background: var(--starline-primary);
	border: 0;
	border-radius: 7px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.header-account-link,
.header-cart-link {
	font-size: 14px;
	font-weight: 700;
}

.header-cart-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
}

.starline-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	color: var(--starline-white);
	background: var(--starline-primary);
	border-radius: 999px;
	font-size: 12px;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 9px;
	background: transparent;
	border: 1px solid var(--starline-border);
	border-radius: 8px;
}

.menu-toggle-line {
	display: block;
	width: 100%;
	height: 2px;
	margin: 4px 0;
	background: var(--starline-secondary);
}

.main-navigation-wrap {
	border-top: 1px solid var(--starline-border);
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a {
	display: block;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 700;
}

.primary-menu .sub-menu {
	position: absolute;
	z-index: 999;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 10px;
	margin: 0;
	background: var(--starline-white);
	border: 1px solid var(--starline-border);
	border-radius: var(--starline-radius);
	box-shadow: var(--starline-shadow);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: 0.25s ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
}

.primary-menu .sub-menu a:hover {
	background: var(--starline-light);
}

/* Buttons */

.starline-button,
.post-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	color: var(--starline-white);
	background: var(--starline-primary);
	border: 0;
	border-radius: 8px;
	font-weight: 700;
}

.starline-button:hover,
.post-read-more:hover {
	color: var(--starline-white);
	background: var(--starline-primary-dark);
	transform: translateY(-2px);
}

/* Default homepage */

.default-hero {
	padding: 80px 0;
	background:
		linear-gradient(
			135deg,
			rgba(22, 163, 74, 0.1),
			rgba(249, 115, 22, 0.08)
		);
}

.hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
}

.hero-label {
	margin-bottom: 10px;
	color: var(--starline-primary);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hero-content h1 {
	margin-bottom: 20px;
	font-size: clamp(38px, 5vw, 64px);
}

.hero-content p {
	max-width: 580px;
	margin-bottom: 28px;
	font-size: 18px;
}

.hero-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 40px;
	color: var(--starline-muted);
	background: var(--starline-white);
	border: 2px dashed var(--starline-border);
	border-radius: 22px;
	text-align: center;
	box-shadow: var(--starline-shadow);
}

.homepage-section {
	padding: 75px 0;
}

.section-light {
	background: var(--starline-light);
}

.section-heading {
	margin-bottom: 30px;
	text-align: center;
}

.section-heading h2 {
	margin-bottom: 0;
	font-size: clamp(28px, 4vw, 40px);
}

/* Blog */

.archive-header {
	margin-bottom: 35px;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.post-card {
	overflow: hidden;
	background: var(--starline-white);
	border: 1px solid var(--starline-border);
	border-radius: var(--starline-radius);
	box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
}

.post-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.04);
}

.post-card-content {
	padding: 24px;
}

.post-card-meta,
.entry-meta {
	color: var(--starline-muted);
	font-size: 14px;
}

.post-card-title {
	margin: 8px 0 14px;
	font-size: 22px;
}

.post-card-excerpt {
	margin-bottom: 20px;
}

.single-entry .entry-title {
	font-size: clamp(34px, 5vw, 54px);
}

.entry-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 25px;
}

.entry-featured-image {
	margin-bottom: 35px;
}

.entry-featured-image img {
	width: 100%;
	border-radius: var(--starline-radius);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.page-header {
	margin-bottom: 30px;
}

.no-results,
.error-404-content {
	max-width: 650px;
	margin: 0 auto;
	text-align: center;
}

.error-number {
	margin-bottom: 0;
	color: var(--starline-primary);
	font-size: clamp(100px, 20vw, 200px);
	font-weight: 900;
	line-height: 1;
}

/* Pagination */

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 45px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: var(--starline-light);
	border-radius: 7px;
}

.page-numbers.current,
.page-numbers:hover {
	color: var(--starline-white);
	background: var(--starline-primary);
}

/* Footer */

.site-footer {
	color: #d1d5db;
	background: var(--starline-secondary);
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 50px;
	padding-top: 65px;
	padding-bottom: 55px;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
	color: var(--starline-white);
}

.footer-widget ul,
.footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-widget li,
.footer-menu li {
	margin-bottom: 8px;
}

.site-footer a {
	color: #d1d5db;
}

.site-footer a:hover {
	color: var(--starline-white);
}

.footer-bottom {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	font-size: 14px;
}

.footer-bottom p {
	margin: 0;
}