/* =========================================================
   CloudySocial — main stylesheet
   Design concept: "sky full of stickers" — a playful, high-
   contrast take on social/meme culture. Deep midnight-indigo
   grounds the brand; sticker-style cards with hard offset
   shadows and a slight rotation stand in for the generic
   soft-shadow SaaS card. Coral + gold pop against indigo &
   cloud-white the way a meme caption pops against a photo.
   ========================================================= */

:root {
	--ink: #1B1E3C;
	--ink-soft: #383B63;
	--cloud: #F6F7FB;
	--cloud-dim: #E7EAF6;
	--coral: #FF6B4D;
	--coral-dark: #E85436;
	--gold: #FFC857;
	--white: #FFFFFF;
	--border-w: 2px;
	--radius: 14px;
	--shadow-offset: 6px;
	--font-display: 'Poppins', 'Segoe UI', sans-serif;
	--font-body: 'Inter', 'Segoe UI', sans-serif;
	--max-width: 1160px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--cloud);
	line-height: 1.6;
	font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; top: -50px; left: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 999; }
.skip-link:focus { top: 0; }

/* Buttons */
.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 12px 22px;
	border-radius: 10px;
	border: var(--border-w) solid var(--ink);
	cursor: pointer;
	transition: transform 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); text-decoration: none; }
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink); }
.btn-primary:hover { box-shadow: 8px 8px 0 var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-ghost:hover { text-decoration: underline; transform: none; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* Header */
.site-header { background: var(--cloud); border-bottom: var(--border-w) solid var(--ink); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; }
.site-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.logo-cloud { color: var(--ink); }
.logo-social { color: var(--coral-dark); }
.custom-logo-link img { max-height: 44px; width: auto; }

.main-navigation { flex: 1; display: flex; justify-content: center; }
#primary-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; position: relative; }
#primary-menu > li { position: relative; }
#primary-menu > li > a { font-weight: 600; color: var(--ink); }
#primary-menu ul { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; background: var(--white); border: var(--border-w) solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); min-width: 220px; display: none; }
#primary-menu li:hover > ul { display: block; }
#primary-menu ul li a { display: block; padding: 8px 10px; white-space: nowrap; border-radius: 6px; }
#primary-menu ul li a:hover { background: var(--cloud-dim); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: var(--border-w) solid var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin: 20px 0; }
.breadcrumbs a { color: var(--ink-soft); }

/* Hero */
.hero { background: var(--ink); color: var(--cloud); padding: 90px 0 80px; }
.hero-inner { text-align: left; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero-subtitle { font-size: 1.15rem; color: var(--cloud-dim); max-width: 620px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero .breadcrumbs, .hero .breadcrumbs a { color: var(--cloud-dim); }
.hero-tool { padding: 60px 0 60px; }

/* Tools grid */
.tools-section { padding: 80px 0; }
.section-title { text-align: left; margin-bottom: 40px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tool-card {
	background: var(--white);
	border: var(--border-w) solid var(--ink);
	border-radius: var(--radius);
	padding: 30px;
	box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink);
	transition: transform 0.15s ease;
}
.tool-card:nth-child(2) { transform: rotate(-0.6deg); }
.tool-card:nth-child(3) { transform: rotate(0.6deg); }
.tool-card:hover { transform: translate(-3px, -3px); }
.tool-icon { font-size: 2.2rem; margin-bottom: 10px; }
.tool-card .btn { margin-top: 14px; }

/* How it works */
.how-it-works { padding: 60px 0 90px; background: var(--cloud-dim); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: left; }
.step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--gold); border: var(--border-w) solid var(--ink);
	font-family: var(--font-display); font-weight: 700; margin-bottom: 12px;
}

/* CTA band */
.cta-band { background: var(--coral); text-align: center; padding: 70px 24px; border-top: var(--border-w) solid var(--ink); border-bottom: var(--border-w) solid var(--ink); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--white); border-color: var(--white); }

/* Home editor content + general entry content */
.home-editor-content { padding: 70px 0; }
.entry-content, .home-editor-content, .tool-content-section .content-narrow { max-width: 760px; }
.entry-content h2, .home-editor-content h2 { margin-top: 1.3em; }
.tool-content-section { padding: 70px 0; }

/* Pricing */
.pricing-cards-section { padding: 70px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.price-card { background: var(--white); border: var(--border-w) solid var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--ink); position: relative; }
.price-card.featured { background: var(--gold); transform: translateY(-10px); }
.price-badge { position: absolute; top: -14px; right: 20px; background: var(--ink); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.price { font-family: var(--font-display); font-size: 1rem; margin: 10px 0 20px; }
.price span { font-size: 2.4rem; font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-card ul li { padding: 6px 0; border-bottom: 1px solid var(--cloud-dim); }

/* Contact */
.contact-section { padding: 70px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.cloudysocial-contact-form input, .cloudysocial-contact-form textarea {
	width: 100%; padding: 12px; border: var(--border-w) solid var(--ink); border-radius: 8px;
	font-family: var(--font-body); font-size: 1rem; margin-top: 6px;
}
.cloudysocial-contact-form label { font-weight: 600; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Blog / archive layouts */
.content-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 80px; }
.content-layout.single-page { grid-template-columns: 1fr; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { background: var(--white); border: var(--border-w) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 5px 5px 0 var(--ink); }
.post-card-thumb img { width: 100%; }
.post-card-body { padding: 22px; }
.post-card .cat-links { font-size: 0.8rem; color: var(--coral-dark); font-weight: 600; }
.post-card .entry-title { font-size: 1.2rem; }
.post-card .entry-title a { color: var(--ink); }
.entry-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 0.85rem; }
.page-header { margin-bottom: 20px; }

.single-post-content .entry-title { margin-top: 10px; }
.entry-meta { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 14px; }
.post-thumb { margin: 24px 0; border-radius: var(--radius); overflow: hidden; border: var(--border-w) solid var(--ink); }
.post-navigation { display: flex; justify-content: space-between; margin: 40px 0; font-weight: 600; }
.entry-tags { margin-top: 30px; font-size: 0.9rem; }

.widget-area { border-top: var(--border-w) solid var(--ink); padding-top: 24px; }
.widget { margin-bottom: 30px; }
.widget-title { font-family: var(--font-display); font-size: 1.05rem; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }

.error-tool-links { list-style: none; padding: 0; }
.error-tool-links li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cloud-dim); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand .site-logo-text { font-size: 1.3rem; }
.footer-brand .logo-cloud { color: var(--white); }
.footer-brand .logo-social { color: var(--coral); }
.footer-brand p { color: var(--cloud-dim); margin-top: 10px; max-width: 280px; }
.footer-col h4 { color: var(--white); margin-bottom: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: var(--cloud-dim); }
.footer-menu a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--ink-soft); padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
	.tools-grid, .pricing-grid, .post-grid, .steps-grid { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.main-navigation { display: none; }
	.header-actions .btn-ghost { display: none; }
	.menu-toggle { display: block; }
	.price-card.featured { transform: none; }

	.main-navigation.nav-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--cloud);
		border-bottom: var(--border-w) solid var(--ink);
		padding: 16px 24px;
	}
	.nav-open #primary-menu { flex-direction: column; gap: 14px; }
	.nav-open #primary-menu ul { position: static; box-shadow: none; border: none; padding-left: 14px; display: block; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 2px; }
