/**
 * Aureline — Main Stylesheet
 * Apple-inspired light theme by FRF Soft
 *
 * @package Aureline
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
	--aureline-accent: #0071e3;
	--aureline-accent-hover: #0077ed;
	--aureline-text: #1d1d1f;
	--aureline-text-muted: #6e6e73;
	--aureline-bg: #f5f5f7;
	--aureline-surface: #ffffff;
	--aureline-border: rgba(0, 0, 0, 0.08);
	--aureline-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--aureline-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
	--aureline-radius: 16px;
	--aureline-container: 1200px;
	--aureline-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
	--aureline-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--aureline-header-height: 72px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--aureline-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--aureline-text);
	background-color: var(--aureline-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--aureline-accent);
	text-decoration: none;
	transition: color var(--aureline-transition);
}

a:hover,
a:focus {
	color: var(--aureline-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75em;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--aureline-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
	margin: 0 0 1.25em;
}

.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;
}

.screen-reader-text:focus {
	background-color: var(--aureline-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--aureline-text);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.aureline-container {
	width: 100%;
	max-width: var(--aureline-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.aureline-container--full {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.content-area {
	display: grid;
	gap: 48px;
	padding-top: 48px;
	padding-bottom: 80px;
}

.content-area.sidebar-right {
	grid-template-columns: 1fr 320px;
}

.content-area.sidebar-left {
	grid-template-columns: 320px 1fr;
}

.content-area.sidebar-none {
	grid-template-columns: 1fr;
}

.content-area__main {
	min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 1000;
	height: var(--aureline-header-height);
	transition: background var(--aureline-transition), box-shadow var(--aureline-transition);
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}

.header-style-glass .site-header {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--aureline-border);
}

.header-style-solid .site-header {
	background: var(--aureline-surface);
	border-bottom: 1px solid var(--aureline-border);
	box-shadow: var(--aureline-shadow);
}

.header-style-transparent .site-header {
	background: transparent;
	border-bottom: 1px solid transparent;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--aureline-header-height);
	gap: 24px;
}

.site-branding {
	flex-shrink: 0;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--aureline-text);
	letter-spacing: -0.01em;
}

.site-title:hover {
	color: var(--aureline-text);
	opacity: 0.8;
}

.site-description {
	margin: 0;
	font-size: 0.75rem;
	color: var(--aureline-text-muted);
}

.site-logo img {
	max-height: 48px;
	width: auto;
}

/* Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: block;
	padding: 8px 16px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--aureline-text);
	border-radius: 980px;
	transition: background var(--aureline-transition), color var(--aureline-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	background: rgba(0, 0, 0, 0.05);
	color: var(--aureline-text);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--aureline-surface);
	border: 1px solid var(--aureline-border);
	border-radius: 980px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	color: var(--aureline-text);
}

.menu-toggle__icon {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

.header-cta {
	flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.aureline-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	border-radius: 980px;
	border: none;
	cursor: pointer;
	transition: all var(--aureline-transition);
	text-decoration: none;
}

.aureline-btn--primary {
	background: var(--aureline-accent);
	color: #fff;
}

.aureline-btn--primary:hover {
	background: var(--aureline-accent-hover);
	color: #fff;
	transform: scale(1.02);
}

.aureline-btn--text {
	padding: 0;
	background: none;
	color: var(--aureline-accent);
	font-weight: 500;
}

.aureline-btn--text:hover {
	color: var(--aureline-accent-hover);
}

/* ==========================================================================
   Post Cards & Blog
   ========================================================================== */

.posts-grid {
	display: grid;
	gap: 32px;
}

.blog-layout-grid .posts-grid {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.blog-layout-list .posts-grid {
	grid-template-columns: 1fr;
}

.post-card {
	background: var(--aureline-surface);
	border-radius: var(--aureline-radius);
	overflow: hidden;
	box-shadow: var(--aureline-shadow);
	border: 1px solid var(--aureline-border);
	transition: transform var(--aureline-transition), box-shadow var(--aureline-transition);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--aureline-shadow-lg);
}

.post-card .post-thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card__body {
	padding: 24px;
}

.entry-title {
	margin-bottom: 0.5em;
	font-size: 1.25rem;
}

.entry-title a {
	color: var(--aureline-text);
}

.entry-title a:hover {
	color: var(--aureline-accent);
}

.entry-meta {
	font-size: 0.8125rem;
	color: var(--aureline-text-muted);
	margin-bottom: 12px;
}

.entry-summary {
	font-size: 0.9375rem;
	color: var(--aureline-text-muted);
}

/* Single Post */
.single-post {
	background: var(--aureline-surface);
	border-radius: var(--aureline-radius);
	padding: 48px;
	box-shadow: var(--aureline-shadow);
	border: 1px solid var(--aureline-border);
}

.single-post .post-thumbnail {
	margin-bottom: 32px;
	border-radius: calc(var(--aureline-radius) - 4px);
	overflow: hidden;
}

.single-post .entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.page-content {
	background: var(--aureline-surface);
	border-radius: var(--aureline-radius);
	padding: 48px;
	box-shadow: var(--aureline-shadow);
	border: 1px solid var(--aureline-border);
}

.page-builder-active .page-content {
	background: transparent;
	box-shadow: none;
	border: none;
	padding: 0;
	border-radius: 0;
}

.aureline-page-title {
	letter-spacing: -0.03em;
}

.page-header {
	margin-bottom: 40px;
	text-align: center;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.widget-area .widget {
	background: var(--aureline-surface);
	border-radius: var(--aureline-radius);
	padding: 24px;
	margin-bottom: 24px;
	border: 1px solid var(--aureline-border);
	box-shadow: var(--aureline-shadow);
}

.widget-title {
	font-size: 1rem;
	margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--aureline-surface);
	border-top: 1px solid var(--aureline-border);
	margin-top: auto;
}

.footer-widgets {
	padding: 64px 0 32px;
}

.footer-widgets__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
}

.footer-widget-title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--aureline-text-muted);
	margin-bottom: 16px;
}

.site-footer__bottom {
	padding: 24px 0;
	border-top: 1px solid var(--aureline-border);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.8125rem;
	color: var(--aureline-text-muted);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: var(--aureline-text-muted);
}

.footer-menu a:hover {
	color: var(--aureline-accent);
}

.site-footer__credit a {
	color: var(--aureline-text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.navigation.posts-navigation {
	margin-top: 48px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers,
.nav-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--aureline-surface);
	border: 1px solid var(--aureline-border);
	border-radius: 10px;
	font-size: 0.875rem;
	color: var(--aureline-text);
	transition: all var(--aureline-transition);
}

.page-numbers.current,
.nav-links a:hover {
	background: var(--aureline-accent);
	border-color: var(--aureline-accent);
	color: #fff;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--aureline-border);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	background: var(--aureline-bg);
	border-radius: var(--aureline-radius);
	padding: 20px;
	margin-bottom: 16px;
}

/* ==========================================================================
   404 & Search
   ========================================================================== */

.error-404 {
	text-align: center;
	padding: 80px 0;
}

.error-404__home {
	margin-top: 32px;
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin: 24px auto;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 12px 20px;
	border: 1px solid var(--aureline-border);
	border-radius: 980px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--aureline-surface);
}

.search-form input[type="submit"] {
	padding: 12px 24px;
	background: var(--aureline-accent);
	color: #fff;
	border: none;
	border-radius: 980px;
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
}

/* ==========================================================================
   Blank Canvas (Page Builders)
   ========================================================================== */

.aureline-blank-canvas {
	background: var(--aureline-bg);
}

.site--blank-canvas .site-main--blank-canvas {
	padding: 0;
	margin: 0;
}

.page-builder-active .site-main {
	padding: 0;
}

/* Elementor compatibility */
.elementor-page .site-main {
	padding: 0;
}

.elementor-section.elementor-section-boxed > .elementor-container {
	max-width: var(--aureline-container);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.content-area.sidebar-right,
	.content-area.sidebar-left {
		grid-template-columns: 1fr;
	}

	.single-post,
	.page-content {
		padding: 32px 24px;
	}
}

@media (max-width: 768px) {
	:root {
		--aureline-header-height: 64px;
	}

	.menu-toggle {
		display: flex;
	}

	.main-navigation .primary-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--aureline-surface);
		padding: 16px;
		border-bottom: 1px solid var(--aureline-border);
		box-shadow: var(--aureline-shadow-lg);
	}

	.main-navigation.toggled .primary-menu {
		display: flex;
	}

	.primary-menu a {
		width: 100%;
		padding: 12px 16px;
	}

	.header-cta {
		display: none;
	}

	.site-header__inner {
		gap: 12px;
	}

	.blog-layout-grid .posts-grid {
		grid-template-columns: 1fr;
	}

	.site-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.aureline-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	body {
		font-size: 16px;
	}
}

/* ==========================================================================
   Default Hero (fresh install)
   ========================================================================== */

.aureline-hero {
	padding: 96px 0 72px;
	text-align: center;
	background: linear-gradient(180deg, #ffffff 0%, var(--aureline-bg) 100%);
}

.aureline-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--aureline-accent);
}

.aureline-hero__title {
	margin: 0 0 16px;
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.aureline-hero__subtitle {
	max-width: 640px;
	margin: 0 auto 32px;
	font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
	line-height: 1.5;
	color: var(--aureline-text-muted);
}

.aureline-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.aureline-btn--outline {
	background: transparent;
	color: var(--aureline-text);
	border: 1px solid var(--aureline-border);
	box-shadow: var(--aureline-shadow);
}

.aureline-btn--outline:hover {
	background: var(--aureline-surface);
	color: var(--aureline-text);
}

.aureline-features {
	padding: 24px 0 80px;
}

.aureline-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.aureline-feature-card {
	background: var(--aureline-surface);
	border: 1px solid var(--aureline-border);
	border-radius: var(--aureline-radius);
	padding: 28px;
	box-shadow: var(--aureline-shadow);
}

.aureline-feature-card h3 {
	margin-bottom: 10px;
	font-size: 1.125rem;
}

.aureline-feature-card p {
	margin: 0;
	color: var(--aureline-text-muted);
	font-size: 0.9375rem;
}

/* ==========================================================================
   Gutenberg block compatibility
   ========================================================================== */

.entry-content > .alignwide {
	max-width: var(--aureline-container);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-button__link {
	border-radius: 980px !important;
	padding: 0.75rem 1.75rem !important;
}

.has-accent-background-color {
	background-color: var(--aureline-accent) !important;
}

.has-background-background-color {
	background-color: var(--aureline-bg) !important;
}

.has-text-color,
.has-text-color p {
	color: inherit;
}

.site-main--front .page-content--front {
	background: transparent;
	box-shadow: none;
	border: none;
	padding: 0;
}

.site-main--front .entry-content {
	padding-top: 0;
}

