/**
 * Apex Prime Seafood - Main Theme Stylesheet
 *
 * @package Apex_Prime_Seafood
 */

:root {
	--apex-primary: #4BC75E;
	--apex-secondary: #0066A5;
	--apex-accent: #BA9529;
	--apex-dark: #2D3738;
	--apex-white: #FEFEFE;
	--apex-off-white: #F2F6FB;
	--apex-gray: #BEBEBE;
	--apex-black: #040404;
	--apex-font-display: 'Arial Black', 'Impact', sans-serif;
	--apex-font-body: 'Arial', 'Helvetica Neue', sans-serif;
	--apex-content-width: 1200px;
	--apex-narrow-width: 800px;
	--apex-radius: 8px;
	--apex-radius-sm: 4px;
	--apex-shadow: 0 2px 8px rgba(0,0,0,0.1);
	--apex-shadow-lg: 0 4px 24px rgba(0,0,0,0.15);
	--apex-transition: 0.3s ease;
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--apex-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--apex-dark);
	background: var(--apex-white);
	overflow-x: hidden;
}

/* Skip link */
.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;
	width: 1px;
	word-wrap: normal !important;
}

/* Container */
.apex-container {
	max-width: var(--apex-content-width);
	margin: 0 auto;
	padding: 0 24px;
}

.apex-narrow-container {
	max-width: var(--apex-narrow-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.apex-header {
	background: var(--apex-white);
	border-bottom: 1px solid rgba(0,0,0,0.06);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.apex-header-inner {
	max-width: var(--apex-content-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.site-logo img {
	max-height: 60px;
	width: auto;
	display: block;
}

.site-name-link {
	text-decoration: none;
	display: block;
}

.site-title-text {
	font-family: var(--apex-font-display);
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--apex-dark);
	letter-spacing: -0.02em;
}

/* Mobile menu toggle */
.apex-mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	position: relative;
	width: 40px;
	height: 40px;
}

.apex-mobile-icon,
.apex-mobile-icon::before,
.apex-mobile-icon::after {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--apex-dark);
	transition: var(--apex-transition);
	position: absolute;
	left: 8px;
}

.apex-mobile-icon { top: 18px; }
.apex-mobile-icon::before { content: ''; top: -7px; }
.apex-mobile-icon::after { content: ''; top: 7px; }

/* Navigation */
.apex-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 32px;
}

.apex-nav-list li a {
	text-decoration: none;
	color: var(--apex-dark);
	font-size: 0.95rem;
	font-weight: 500;
	transition: color var(--apex-transition);
	padding: 8px 0;
	display: block;
}

.apex-nav-list li a:hover,
.apex-nav-list li.current-menu-item a {
	color: var(--apex-primary);
}

/* Buttons */
.apex-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: var(--apex-radius);
	font-family: var(--apex-font-body);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: all var(--apex-transition);
	border: 2px solid transparent;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
}

.apex-btn-primary {
	background: var(--apex-primary);
	color: #fff;
}

.apex-btn-primary:hover {
	background: #3da84f;
	transform: translateY(-1px);
	box-shadow: var(--apex-shadow-lg);
}

.apex-btn-secondary {
	background: transparent;
	color: var(--apex-primary);
	border-color: var(--apex-primary);
}

.apex-btn-secondary:hover {
	background: var(--apex-primary);
	color: #fff;
}

.apex-btn-accent {
	background: var(--apex-accent);
	color: #fff;
}

.apex-btn-accent:hover {
	background: #a68225;
	transform: translateY(-1px);
	box-shadow: var(--apex-shadow-lg);
}

.apex-btn-lg {
	padding: 18px 40px;
	font-size: 1.1rem;
}

.apex-btn-sm {
	padding: 10px 20px;
	font-size: 0.9rem;
}

/* Page headers */
.page-header {
	margin-bottom: 48px;
}

.page-title {
	font-family: var(--apex-font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	color: var(--apex-dark);
	margin: 0;
	line-height: 1.15;
}

/* Entry content */
.entry-content {
	font-size: 1.05rem;
	line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: var(--apex-font-display);
	font-weight: 700;
	color: var(--apex-dark);
	margin: 1.5em 0 0.5em;
	line-height: 1.3;
}

.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content p {
	margin: 0 0 1.2em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em 1.5em;
	padding: 0;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--apex-radius);
}

.entry-content a {
	color: var(--apex-secondary);
	text-decoration: underline;
	text-decoration-color: rgba(0,102,165,0.3);
	transition: text-decoration-color var(--apex-transition);
}

.entry-content a:hover {
	text-decoration-color: var(--apex-secondary);
}

/* Post grid */
.apex-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
	margin-bottom: 48px;
}

.apex-post-card {
	background: var(--apex-white);
	border-radius: var(--apex-radius);
	overflow: hidden;
	box-shadow: var(--apex-shadow);
	transition: transform var(--apex-transition), box-shadow var(--apex-transition);
}

.apex-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--apex-shadow-lg);
}

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

.apex-post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apex-post-card-body {
	padding: 24px;
}

.entry-title {
	font-family: var(--apex-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.entry-title a {
	text-decoration: none;
	color: var(--apex-dark);
}

.entry-title a:hover {
	color: var(--apex-secondary);
}

.entry-summary {
	color: #666;
	font-size: 0.95rem;
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--apex-gray);
	margin-top: 8px;
}

/* Pagination */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
	padding-bottom: 48px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--apex-radius-sm);
	text-decoration: none;
	color: var(--apex-dark);
	background: var(--apex-off-white);
	font-weight: 500;
	transition: all var(--apex-transition);
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--apex-primary);
	color: #fff;
}

/* Single post */
.apex-single-article {
	padding: 64px 0;
}

.apex-single-article .entry-header {
	margin-bottom: 32px;
}

.apex-single-article .entry-title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.apex-single-article .entry-content {
	margin-top: 24px;
}

.apex-single-article .entry-thumbnail {
	margin-bottom: 32px;
}

.apex-single-article .entry-thumbnail img {
	width: 100%;
	border-radius: var(--apex-radius);
}

/* Full width template */
.apex-fullwidth-main {
	padding: 0;
}

.apex-fullwidth-main .apex-container {
	max-width: 100%;
	padding: 0;
}

/* 404 page */
.apex-404-main {
	min-height: 60vh;
	display: flex;
	align-items: center;
}

.apex-404-content {
	text-align: center;
	padding: 64px 0;
}

.apex-404-title {
	font-family: var(--apex-font-display);
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 900;
	color: var(--apex-dark);
	margin: 0 0 16px;
	opacity: 0.15;
}

.apex-404-content p {
	font-size: 1.2rem;
	color: #666;
	margin-bottom: 32px;
}

/* Fallback home */
.apex-fallback-home {
	padding: 64px 0;
}

.apex-editor-note {
	margin-top: 48px;
	padding: 24px;
	background: var(--apex-off-white);
	border-radius: var(--apex-radius);
	border-left: 4px solid var(--apex-primary);
}

.apex-editor-note p {
	margin: 8px 0 0;
	color: #666;
}

/* Footer */
.apex-footer {
	background: var(--apex-dark);
	color: #fff;
	padding: 64px 0 0;
}

.apex-footer-inner {
	max-width: var(--apex-content-width);
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.apex-footer-title {
	font-family: var(--apex-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	display: block;
	margin-bottom: 8px;
}

.apex-footer-tagline {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.7);
	display: block;
}

.apex-footer-widgets {
	color: rgba(255,255,255,0.8);
	font-size: 0.9rem;
}

.apex-footer-contact a {
	display: block;
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	font-size: 0.9rem;
	margin-bottom: 8px;
	transition: color var(--apex-transition);
}

.apex-footer-contact a:hover {
	color: var(--apex-primary);
}

.apex-footer-bottom {
	padding: 24px 0;
}

.apex-footer-bottom-inner {
	max-width: var(--apex-content-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.apex-footer-bottom p {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.6);
}

.apex-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}

.apex-footer-menu a {
	text-decoration: none;
	color: rgba(255,255,255,0.6);
	font-size: 0.85rem;
	transition: color var(--apex-transition);
}

.apex-footer-menu a:hover {
	color: var(--apex-primary);
}

/* WordPress alignment classes */
.alignfull {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	max-width: none;
}

.alignwide {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive */
@media (max-width: 1024px) {
	.apex-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.apex-header-inner {
		height: 64px;
	}

	.apex-mobile-toggle {
		display: block;
	}

	.apex-nav-list {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--apex-white);
		flex-direction: column;
		padding: 16px 24px 24px;
		gap: 4px;
		box-shadow: var(--apex-shadow);
		border-top: 1px solid rgba(0,0,0,0.06);
		z-index: 999;
	}

	.apex-nav-list.is-open {
		display: flex;
	}

	.apex-nav-list li {
		padding: 0;
	}

	.apex-nav-list li a {
		padding: 12px 0;
		border-bottom: 1px solid rgba(0,0,0,0.06);
	}

	.apex-footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.apex-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.apex-post-grid {
		grid-template-columns: 1fr;
	}

	.apex-container {
		padding: 0 16px;
	}

	.apex-btn {
		padding: 12px 24px;
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.site-title-text {
		font-size: 1.25rem;
	}

	.apex-header-inner {
		padding: 0 16px;
	}
}
