/* ==========================================================================
   Scrappy Botanist — Homepage Styles
   Desktop-first. Single breakpoint at max-width: 768px.
   ========================================================================== */

/* --------------------------------
   CSS Custom Properties
   -------------------------------- */
:root {
	--teal:         #3D7A8A;
	--teal-light:   #e8f4f7;
	--teal-mid:     #c2dfe6;
	--salmon:       #F4A8A0;
	--salmon-light: #fdf0ee;
	--green:        #8DB87A;
	--green-light:  #eef6ea;
	--bg:           #F7F5F0;
	--bg-white:     #FFFFFF;
	--text:         #2A2A2A;
	--text-muted:   #6B6868;
	--border:       #E5E1D8;
}

/* --------------------------------
   Base
   -------------------------------- */
.sb-homepage {
	font-family: 'DM Sans', sans-serif;
	color: var(--text);
	font-size: 16px;
	line-height: 1.6;
}

.sb-homepage *,
.sb-homepage *::before,
.sb-homepage *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* --------------------------------
   Shared — section inner container
   -------------------------------- */
.sb-section-inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* --------------------------------
   Shared — section label + title
   -------------------------------- */
.sb-section-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 10px;
}

.sb-section-title {
	font-family: 'Fraunces', serif;
	font-size: 2rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 48px;
	letter-spacing: -0.5px;
}

/* --------------------------------
   Shared — headings
   -------------------------------- */
.sb-homepage h1,
.sb-homepage h2,
.sb-homepage h3 {
	font-family: 'Fraunces', serif;
	line-height: 1.2;
}

/* --------------------------------
   Shared — buttons
   -------------------------------- */
.sb-btn-primary {
	background: var(--teal);
	color: #fff;
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	display: inline-block;
	transition: background 0.2s, transform 0.15s;
}

.sb-btn-primary:hover {
	background: #2f6070;
	transform: translateY(-1px);
}

.sb-btn-secondary {
	background: transparent;
	color: var(--teal);
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	border: 1.5px solid var(--teal-mid);
	display: inline-block;
	transition: border-color 0.2s, background 0.2s;
}

.sb-btn-secondary:hover {
	border-color: var(--teal);
	background: var(--teal-light);
}

/* --------------------------------
   Screen-reader only utility
   -------------------------------- */
.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;
}

/* ==========================================================================
   SECTION 1: Hero
   ========================================================================== */
.sb-hero {
	background: var(--bg);
	padding: 48px 2rem 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Subtle radial gradient overlay */
.sb-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 600px;
	background: radial-gradient(ellipse at center, var(--teal-mid) 0%, transparent 70%);
	opacity: 0.25;
	pointer-events: none;
}

/* Tag badge */
.sb-hero-tag {
	display: inline-block;
	background: var(--teal-light);
	color: var(--teal);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 24px;
}

.sb-hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--text);
	max-width: 700px;
	margin: 0 auto 24px;
	letter-spacing: -1px;
}

.sb-hero h1 em {
	font-style: italic;
	color: var(--teal);
}

.sb-hero p {
	font-size: 18px;
	color: var(--text-muted);
	max-width: 520px;
	margin: 0 auto 28px;
	font-weight: 300;
	line-height: 1.7;
}

/* ==========================================================================
   SECTION 2: Category Cards
   ========================================================================== */
.sb-categories {
	background: var(--bg-white);
	padding: 40px 2rem 60px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

/* Card grid */
.sb-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

/* Card */
.sb-card {
	background: var(--bg);
	border-radius: 12px;
	padding: 32px 28px;
	text-decoration: none;
	color: var(--text);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	border-color: var(--teal-mid);
}

/* Icon box */
.sb-card-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: 4px;
}

.sb-card-icon.teal   { background: var(--teal-light); }
.sb-card-icon.green  { background: var(--green-light); }
.sb-card-icon.salmon { background: var(--salmon-light); }

.sb-card h3 {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.3px;
}

.sb-card p {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
	flex: 1;
}

/* "Explore →" link inside card */
.sb-card-link {
	font-size: 13px;
	font-weight: 500;
	color: var(--teal);
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
}

.sb-card-link::after {
	content: '\2192';
}

/* ==========================================================================
   SECTION 3: Latest Posts
   ========================================================================== */
.sb-latest {
	padding: 70px 2rem;
	background: var(--bg);
}

.sb-latest .sb-section-title {
	margin-bottom: 36px;
}

/* Posts grid */
.sb-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
}

/* Post card */
.sb-post-card {
	background: var(--bg-white);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--text);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.sb-post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Thumbnail placeholder */
.sb-post-thumb {
	height: 180px;
	background: var(--teal-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--teal);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.sb-post-thumb.green  { background: var(--green-light); color: var(--green); }
.sb-post-thumb.salmon { background: var(--salmon-light); color: #c47a72; }

/* Thumbnail with actual image */
.sb-post-thumb--has-image {
	height: auto;
	background: none;
}

.sb-post-thumb--has-image img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

/* Post body */
.sb-post-body {
	padding: 24px 22px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sb-post-cat {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--teal);
}

.sb-post-title {
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

.sb-post-excerpt {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
	flex: 1;
}

.sb-post-meta {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 8px;
}

.sb-no-posts {
	text-align: center;
	color: var(--text-muted);
	grid-column: 1 / -1;
}

/* ==========================================================================
   SECTION 4: About Strip
   ========================================================================== */
.sb-about-strip {
	background: var(--teal);
	padding: 64px 2rem;
	color: #fff;
}

.sb-about-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

/* Left: about text */
.sb-about-text h2 {
	font-size: 1.8rem;
	font-weight: 600;
	margin-bottom: 16px;
	letter-spacing: -0.4px;
	line-height: 1.2;
}

.sb-about-text p {
	font-size: 15px;
	opacity: 0.85;
	line-height: 1.7;
	margin-bottom: 20px;
	font-weight: 300;
}

.sb-about-text a {
	color: #fff;
	font-weight: 500;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: 0.9;
}

/* Right: email signup */
.sb-email-signup h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.sb-email-signup p {
	font-size: 13px;
	opacity: 0.75;
	margin-bottom: 20px;
	font-weight: 300;
}

.sb-email-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sb-email-form input {
	flex: 1;
	min-width: 200px;
	padding: 12px 16px;
	border-radius: 7px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 14px;
	font-family: 'DM Sans', sans-serif;
	outline: none;
	transition: border-color 0.2s;
}

.sb-email-form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.sb-email-form input:focus {
	border-color: rgba(255, 255, 255, 0.7);
}

.sb-email-form button {
	background: var(--salmon);
	color: #fff;
	padding: 12px 22px;
	border-radius: 7px;
	border: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	white-space: nowrap;
	transition: background 0.2s;
}

.sb-email-form button:hover {
	background: #e8918a;
}

/* ==========================================================================
   SECTION 5: Footer Nav
   ========================================================================== */
.sb-footer {
	background: var(--text);
	color: rgba(255, 255, 255, 0.5);
	padding: 32px 2rem;
	text-align: center;
	font-size: 13px;
}

.sb-footer__links {
	margin-bottom: 12px;
}

.sb-footer__links a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	margin: 0 12px;
	transition: color 0.2s;
}

.sb-footer__links a:hover {
	color: #fff;
}

.sb-footer__copy {
	margin: 0;
}

/* ==========================================================================
   BREAKPOINT: max-width 768px — Mobile
   ========================================================================== */
@media (max-width: 768px) {

	/* Hero */
	.sb-hero {
		padding: 36px 1.5rem 32px;
	}

	/* Categories + Latest */
	.sb-categories,
	.sb-latest {
		padding: 50px 1.5rem;
	}

	/* About strip — stack columns */
	.sb-about-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}
