@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* 
 * Looma Dreelio Theme Main CSS
 * 
 * Replicating the Dreelio framer template design language
 */


/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
:root {
	/* Colors */
	--color-bg: #F9F9F9;
	--color-bg-white: #FFFFFF;
	--color-text-dark: #1A1A1A;
	--color-text-muted: #666666;
	--color-border: #E5E5E5;
	
	/* Accent Colors */
	--color-primary: #000000;
	--color-primary-hover: #333333;
	--color-cat-tools: #2DB18C; /* Green */
	--color-cat-insight: #FFA500; /* Orange */
	--color-cat-management: #4A90E2; /* Blue */

	/* Typography */
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	
	/* Spacing & Sizes */
	--container-width: 1200px;
	--content-width: 800px;
	--border-radius-lg: 24px;
	--border-radius-pill: 999px;
	
	/* Layout Grids */
	--grid-gap: 32px;
	
	/* Transitions */
	--transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Resets & Basics
   ========================================================================== */
* {
	box-sizing: border-box;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-bg);
	color: var(--color-text-dark);
	margin: 0;
	padding: 0;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	background: #FEFEFE;
	z-index: 100;
	padding: 20px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	font-family: 'Poppins', sans-serif;
	transition: var(--transition-smooth);
}

.site-header.is-scrolled {
	padding: 12px 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.site-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-branding {
	order: 2;
}

.custom-logo {
	width: 150px !important;
	height: auto !important;
	max-height: 35px !important;
	object-fit: contain !important;
	display: block !important;
}


.main-navigation {
	order: 1;
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 32px;
}

.main-navigation a {
	font-weight: 500;
	font-size: 16px;
	color: rgb(59, 52, 78);
	transition: color 0.2s ease;
}

.main-navigation a:hover {
	color: rgb(0, 0, 0);
}

.header-cta {
	order: 3;
}

.button-header {
	background-color: rgb(0, 0, 0) !important;
	color: rgb(255, 255, 255) !important;
	padding: 12px 24px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border-radius: 99px !important;
	border: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.button-header:hover {
	background-color: rgb(80, 76, 93) !important;
	transform: translateY(-1px) !important;
}

.menu-toggle {
	display: none;
}

@media (max-width: 768px) {
	.site-header {
		padding: 12px 0;
	}
	.site-header-inner {
		position: relative;
	}
	.main-navigation {
		order: 3;
	}
	.site-branding {
		order: 1;
	}
	.custom-logo {
		width: 120px !important;
		height: auto !important;
		max-height: 28px !important;
	}

	.header-cta {
		order: 2;
		margin-left: auto;
		margin-right: 16px;
	}
	.button-header {
		padding: 8px 16px !important;
		font-size: 14px !important;
	}
	
	/* Hamburger Menu Button */
	.menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 24px;
		height: 18px;
		background: transparent;
		border: none;
		padding: 0;
		cursor: pointer;
		z-index: 101;
	}
	
	.hamburger-bar {
		display: block;
		width: 100%;
		height: 2px;
		background-color: rgb(59, 52, 78);
		border-radius: 2px;
		transition: all 0.3s ease;
	}
	
	/* Mobile Menu Dropdown */
	.main-navigation ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #FEFEFE;
		padding: 20px 16px;
		border-bottom: 1px solid var(--color-border);
		box-shadow: 0 10px 20px rgba(0,0,0,0.05);
		gap: 16px;
		z-index: 99;
	}
	
	.main-navigation ul.toggled {
		display: flex;
	}
}


/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--border-radius-pill);
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: var(--transition-smooth);
	border: none;
}

.button-primary {
	background-color: var(--color-primary);
	color: var(--color-bg-white);
}

.button-primary:hover {
	background-color: var(--color-primary-hover);
	transform: translateY(-2px);
}

.button-white {
	background-color: var(--color-bg-white);
	color: var(--color-text-dark);
}

.button-white:hover {
	background-color: #f1f1f1;
}

.pill-tag {
	display: inline-flex;
	padding: 6px 16px;
	border-radius: var(--border-radius-pill);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background-color: rgba(0,0,0,0.05); /* default */
	color: var(--color-text-dark);
	margin-bottom: 16px;
}

.tag-must-read {
	background-color: #FFEFE5;
	color: var(--color-cat-insight);
}

/* Depending on WP Category Slugs */
.cat-tools { background-color: #E6F7F3; color: var(--color-cat-tools); }
.cat-insight { background-color: #FFEFE5; color: var(--color-cat-insight); }
.cat-management { background-color: #EAF3FC; color: var(--color-cat-management); }


/* ==========================================================================
   Blog Hero Section (Archive)
   ========================================================================== */
.blog-hero {
	padding: 100px 0 80px;
	text-align: center;
	background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(230,240,255,0.3) 100%);
}

.hero-title {
	font-size: 4.5rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
	color: var(--color-text-dark);
}

@media (max-width: 768px) {
	.hero-title { font-size: 3rem; }
}

/* ==========================================================================
   Post Cards (Grid & Featured)
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--grid-gap);
	margin-top: 48px;
	margin-bottom: 80px;
}

.post-card-inner {
	background-color: var(--color-bg-white);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--color-border);
	transition: var(--transition-smooth);
	position: relative;
}

.post-card-inner:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.post-thumbnail {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.post-card-inner:hover .post-thumbnail img,
.featured-post:hover .post-image img {
	transform: scale(1.05);
}

.post-content {
	padding: 32px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.post-title {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 16px 0;
	letter-spacing: -0.01em;
}

/* Stretched Link to make whole card clickable */
.post-title a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

/* Ensure other links map properly above the stretched link if needed */
.post-categories, .post-author-meta a {
	position: relative;
	z-index: 2;
}

/* Featured Post Layout */
.featured-post {
	margin-bottom: 64px;
}

.featured-post .post-card-inner {
	flex-direction: row;
	align-items: center;
}

.featured-post .post-image {
	width: 55%;
	padding: 24px;
}

.featured-post-image-wrapper {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
}

.featured-post .post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-post .post-content {
	width: 45%;
	padding: 48px;
}

.featured-post .post-title {
	font-size: 2.5rem;
}

@media (max-width: 992px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.featured-post .post-card-inner { flex-direction: column; }
	.featured-post .post-image, .featured-post .post-content { width: 100%; }
	.featured-post .post-title { font-size: 2rem; }
}

@media (max-width: 600px) {
	.post-grid { grid-template-columns: 1fr; }
}

/* Author Meta */
.post-author-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.post-author-meta img {
	border-radius: 50%;
}

.author-details {
	display: flex;
	flex-direction: column;
}

.author-name {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--color-text-dark);
}

.author-role, .post-date {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.center-meta {
	justify-content: center;
	margin-top: 32px;
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-header {
	text-align: center;
	padding: 80px 0 40px;
}

.single-post-title {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 auto 24px;
	max-width: 900px;
}

.single-post-subtitle {
	font-size: 1.4rem;
	color: var(--color-text-muted);
	max-width: 700px;
	margin: 0 auto;
}

.single-post-thumbnail img {
	width: 100%;
	border-radius: var(--border-radius-lg);
	aspect-ratio: 2 / 1;
	object-fit: cover;
	margin-bottom: 64px;
}

.single-post-content {
	max-width: var(--content-width);
	margin: 0 auto 100px;
	font-size: 1.15rem;
	line-height: 1.8;
	color: #333;
}

.single-post-content h2 {
	font-size: 2rem;
	font-weight: 700;
	margin: 48px 0 24px;
	letter-spacing: -0.02em;
}

.single-post-content p {
	margin-bottom: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-cta-section {
	background-color: rgb(29, 30, 32);
	color: var(--color-bg-white);
	padding: 100px 0;
	text-align: center;
	font-family: 'Poppins', sans-serif;
}

.footer-cta-title {
	font-size: 3.5rem;
	font-weight: 800;
	margin: 0 0 16px;
	letter-spacing: -0.03em;
}

.footer-cta-desc {
	font-size: 1.2rem;
	color: #A0A0A0;
	margin-bottom: 40px;
}

.site-footer {
	background-color: #FEFEFE;
	padding: 60px 0 40px;
	border-top: 1px solid var(--color-border);
	font-family: 'Poppins', sans-serif;
	text-align: center;
}

.footer-inner {
	max-width: 1224px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.footer-links-grid {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
}

.footer-link-item {
	font-weight: 500;
	font-size: 16px;
	color: rgb(29, 30, 32);
	transition: color 0.2s ease;
}

.footer-link-item:hover {
	color: rgb(128, 90, 242);
}

.footer-socials {
	display: flex;
	justify-content: center;
	gap: 32px;
}

.social-icon-link {
	color: rgb(0, 0, 0);
	transition: color 0.2s ease;
}

.social-icon-link:hover {
	color: rgb(128, 90, 242);
}

.footer-copyright {
	color: rgb(80, 76, 93);
	font-size: 14px;
	font-weight: 400;
}

