/*
Theme Name: EasyBanner
Theme URI: https://www.easy-banner.net/
Author: EasyBanner
Description: A bilingual, editorial WordPress theme for EasyBanner and practical web banner guides.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: easybanner
*/

:root {
	--ink: #132d2b;
	--muted: #647572;
	--paper: #f7f8f3;
	--surface: #fff;
	--line: #e2e9e3;
	--green: #086b52;
	--green-dark: #064b3d;
	--gold: #e7bf4b;
	--blue: #dce8f7;
	--radius: 22px;
	--shadow: 0 18px 50px rgba(19, 45, 43, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #7bbd9e; outline-offset: 3px; }
.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;
}
.skip-link {
	position: fixed;
	z-index: 20;
	top: 12px;
	left: 12px;
	padding: 10px 16px;
	transform: translateY(-160%);
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
	position: relative;
	z-index: 5;
	background: rgba(247, 248, 243, .94);
	border-bottom: 1px solid rgba(19, 45, 43, .08);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 82px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 168px; max-height: 46px; object-fit: contain; object-position: left center; }
.brand-logo { width: 168px; max-height: 46px; object-fit: contain; object-position: left center; }
.brand-mark {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 13px;
	background: var(--green);
	color: #fff;
	font-size: 21px;
	font-weight: 850;
	letter-spacing: -2px;
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.7px; }
.brand-name span { color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav summary { display: none; }
.site-nav > .primary-nav { display: block; }
.primary-nav .menu, .primary-nav ul {
	display: flex;
	align-items: center;
	gap: 27px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.primary-nav a {
	color: #3c504c;
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}
.primary-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-switcher { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; }
.language-switcher ul { display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; }
.language-switcher a { color: var(--muted); text-decoration: none; }
.language-switcher .current-lang a { color: var(--ink); }
.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--green);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--green-dark); color: #fff; }
.button-light { border-color: var(--line); background: #fff; color: var(--ink); }
.button-light:hover { background: #f4f7f2; color: var(--ink); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #d8ad32; color: var(--ink); }
.text-link { font-size: 14px; font-weight: 750; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
	position: absolute;
	top: -210px;
	right: -135px;
	width: 570px;
	height: 570px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(215, 245, 138, .48), rgba(215, 245, 138, 0) 68%);
	content: "";
	pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 60px; align-items: center; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	color: var(--green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #79b96a; content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.045em; }
h1 { max-width: 640px; margin-bottom: 20px; font-size: clamp(42px, 5.2vw, 66px); font-weight: 790; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 570px; margin-bottom: 25px; color: #50625e; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trust-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.hero-art {
	position: relative;
	min-height: 430px;
	display: grid;
	align-items: center;
	padding: 32px;
	border: 1px solid #dfe8de;
	border-radius: 30px;
	background:
		radial-gradient(ellipse at 86% 12%, rgba(216, 240, 178, .75), transparent 34%),
		linear-gradient(145deg, #eaf1e9, #e7edf4 58%, #e4eee6);
}
.hero-art::before, .hero-art::after {
	position: absolute;
	z-index: 0;
	border: 1px solid rgba(6, 75, 61, .10);
	border-radius: 50%;
	content: "";
}
.hero-art::before { inset: 20px; }
.hero-art::after { inset: 42px; }
.hero-window {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border: 1px solid #dfe5e1;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 26px 56px rgba(22, 53, 49, .19);
	transform: rotate(-2deg);
}
.window-bar { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-bottom: 1px solid #edf0ed; }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cdd8d1; }
.window-title { margin-left: 7px; color: #9aa8a2; font-size: 9px; }
.window-body { padding: 16px; }
.window-ribbon { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.window-ribbon span { height: 7px; flex: 1; border-radius: 8px; background: #edf2ee; }
.window-ribbon span:first-child { background: #cfe7d2; }
.banner-preview {
	display: flex;
	min-height: 178px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 9px;
	background: linear-gradient(120deg, #142d3d, #235c66 55%, #77a88c);
	color: #fff;
	text-align: center;
}
.banner-preview img { width: 100%; object-fit: cover; }
.banner-preview span { max-width: 260px; padding: 20px; font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.window-footer { display: flex; justify-content: space-between; margin-top: 13px; color: #82918b; font-size: 9px; }
.floating-note {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 30px;
	padding: 13px 17px;
	border: 1px solid rgba(19, 45, 43, .08);
	border-radius: 14px;
	background: rgba(255,255,255,.94);
	box-shadow: var(--shadow);
	font-size: 12px;
	font-weight: 750;
}
.floating-note strong { display: block; color: var(--green); font-size: 17px; }

.proof-strip { border-block: 1px solid var(--line); background: #fff; }
.proof-inner { display: flex; justify-content: space-between; gap: 22px; padding: 19px 0; color: #52635f; font-size: 13px; font-weight: 700; }
.proof-item { display: flex; align-items: center; gap: 9px; }
.proof-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e9f4e4; color: var(--green); font-size: 12px; }
.section { padding: 84px 0; }
.section-compact { padding-top: 0; }
.section-heading { max-width: 690px; margin: 0 auto 38px; text-align: center; }
.section-heading h2 { margin-bottom: 13px; font-size: clamp(32px, 4vw, 46px); font-weight: 780; }
.section-heading p { color: var(--muted); font-size: 16px; }
.section-kicker { margin-bottom: 13px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .guide-card {
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}
.feature-grid > *, .guide-grid > *, .resource-grid > * { min-width: 0; }
.feature-icon {
	display: grid;
	width: 46px;
	height: 46px;
	margin-bottom: 20px;
	place-items: center;
	border-radius: 14px;
	background: #e8f3e7;
	color: var(--green);
	font-size: 20px;
	font-weight: 800;
}
.feature-card:nth-child(2) .feature-icon { background: #f2eedf; color: #947338; }
.feature-card:nth-child(3) .feature-icon { background: #e7eef9; color: #41689a; }
.feature-card h3, .guide-card h3 { margin-bottom: 9px; font-size: 20px; font-weight: 760; }
.feature-card p, .guide-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.size-section { padding: 76px 0; background: #eef3eb; }
.size-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 58px; align-items: center; }
.size-intro h2 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 44px); }
.size-intro p { margin-bottom: 22px; color: var(--muted); }
.size-table-wrap { overflow: hidden; border: 1px solid #dce6da; border-radius: 18px; background: #fff; }
.size-table { width: 100%; border-collapse: collapse; text-align: left; }
.size-table th, .size-table td { padding: 16px 19px; border-bottom: 1px solid #edf0eb; }
.size-table th { color: #71807a; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.size-table td { font-size: 14px; }
.size-table tr:last-child td { border-bottom: 0; }
.size-table td:first-child { color: var(--green-dark); font-weight: 800; white-space: nowrap; }
.size-note { margin: 11px 0 0; color: #75827d; font-size: 12px; }

.guides-section { background: #fff; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { position: relative; display: flex; min-height: 215px; flex-direction: column; }
.guide-number { margin-bottom: 25px; color: #8ca398; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.guide-card h3 { max-width: 270px; }
.guide-card .text-link { margin-top: auto; padding-top: 22px; }
.guide-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.guide-post { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.guide-post h3 { margin-bottom: 8px; font-size: 19px; }
.guide-post p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.resource-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.resource-card h3 { margin-bottom: 12px; font-size: 22px; }
.resource-card p, .resource-card li { color: var(--muted); font-size: 14px; }
.check-list { padding-left: 20px; margin-bottom: 0; }
.check-list li { padding: 4px 0; }
.code-sample { overflow-x: auto; padding: 16px; border-radius: 12px; background: #173b36; color: #e5eee9; font-size: 12px; line-height: 1.65; }
.faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.faq-list summary { color: var(--ink); font-size: 16px; font-weight: 750; cursor: pointer; }
.faq-list details p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.cta-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	padding: 42px 48px;
	border-radius: 27px;
	background: var(--green-dark);
	color: #e5eee9;
}
.cta-panel h2 { max-width: 600px; margin-bottom: 10px; color: #fff; font-size: clamp(30px, 4vw, 42px); }
.cta-panel p { margin: 0; color: #c4d7ce; }
.cta-panel .section-kicker { color: var(--gold); }
.cta-panel .button { flex: 0 0 auto; }
.content-area { min-height: 52vh; padding: 64px 0 88px; }
.page-header { max-width: 760px; margin-bottom: 35px; }
.page-header h1 { overflow-wrap: anywhere; font-size: clamp(38px, 5vw, 56px); }
.entry-content { max-width: 780px; color: #455954; }
.entry-content h2 { margin-top: 1.7em; font-size: 32px; }
.entry-content h3 { margin-top: 1.5em; font-size: 23px; }
.entry-content img { border-radius: 14px; }
.entry-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); }
.download-panel {
	max-width: 850px;
	margin: 34px auto 0;
	padding: 35px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--shadow);
	text-align: center;
}
.download-panel h2 { margin-bottom: 10px; font-size: 30px; }
.download-panel > p { color: var(--muted); }
.store-badge { display: flex; justify-content: center; min-height: 65px; margin: 22px auto; }
.store-link-fallback { margin: 12px 0 22px; }
.download-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: #52635f; font-size: 13px; }
.download-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 24px; text-align: left; }
.download-detail { padding: 18px; border-radius: 14px; background: var(--paper); }
.download-detail strong { display: block; margin-bottom: 5px; font-size: 14px; }
.download-detail span { color: var(--muted); font-size: 13px; }
.archive-intro { max-width: 670px; margin-bottom: 34px; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.example-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.example-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.example-card img { width: 100%; min-height: 120px; object-fit: contain; background: #f0f3ed; }
.example-card figcaption { padding: 14px 18px; color: var(--muted); font-size: 13px; }
.back-to-guides { margin-top: 42px; }
.cta-panel-spaced { margin-top: 42px; }
.section-bottomless { padding-bottom: 0; }
.archive-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.archive-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.archive-card-body { padding: 22px; }
.archive-card h2 { margin-bottom: 9px; font-size: 21px; }
.archive-card h2 a { color: var(--ink); text-decoration: none; }
.archive-card p { color: var(--muted); font-size: 14px; }
.guide-meta { margin-bottom: 12px; color: var(--green); font-size: 12px; font-weight: 750; }
.pagination { display: flex; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pagination .current { background: var(--green); color: #fff; }
.search-form { display: flex; max-width: 500px; gap: 8px; margin: 22px 0 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-submit { min-height: 48px; padding: 0 17px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.site-footer { padding: 45px 0 25px; border-top: 1px solid var(--line); background: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.footer-copy { max-width: 365px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px 22px; align-content: flex-start; }
.footer-links a { color: #52635f; font-size: 13px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid var(--line); color: #7a8983; font-size: 12px; }

@media (max-width: 920px) {
	.hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.hero-art { min-height: 350px; padding: 23px; }
	.size-layout { grid-template-columns: 1fr; gap: 28px; }
	.size-layout > * { min-width: 0; }
	.primary-nav .menu, .primary-nav ul { gap: 16px; }
	.site-nav { gap: 15px; }
}
@media (max-width: 720px) {
	.wrap { width: min(100% - 36px, 560px); }
	.header-inner { min-height: 72px; gap: 12px; }
	.site-nav { position: static; display: block; }
	.site-nav summary {
		display: block;
		padding: 8px 12px;
		border: 1px solid var(--line);
		border-radius: 9px;
		background: #fff;
		color: var(--ink);
		font-size: 13px;
		font-weight: 700;
		list-style: none;
		cursor: pointer;
	}
	.site-nav summary::-webkit-details-marker { display: none; }
	.primary-nav { position: absolute; top: 62px; right: 18px; left: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
	.site-nav:not([open]) .primary-nav { display: none; }
	.primary-nav .menu, .primary-nav ul { align-items: stretch; flex-direction: column; gap: 14px; }
	.primary-nav a { display: block; padding: 5px 0; }
	.header-actions { gap: 10px; }
	.header-actions > .button { display: none; }
	.language-switcher { font-size: 12px; }
	.hero { padding: 52px 0 43px; }
	.hero::before { display: none; }
	.hero-grid { grid-template-columns: 1fr; gap: 33px; }
	h1 { font-size: clamp(39px, 10vw, 55px); }
	.hero-copy { font-size: 16px; }
	.hero-art { min-height: 320px; }
	.proof-inner { flex-wrap: wrap; justify-content: flex-start; gap: 13px 24px; }
	.proof-item { font-size: 12px; }
	.section { padding: 62px 0; }
	.feature-grid, .guide-grid, .guide-posts, .archive-grid { grid-template-columns: 1fr; }
	.resource-grid, .example-grid { grid-template-columns: 1fr; }
	.feature-card { padding: 23px; }
	.size-section { padding: 60px 0; }
	.size-table-wrap { overflow-x: auto; }
	.size-table { min-width: 480px; }
	.size-table th, .size-table td { padding: 12px 10px; font-size: 12px; }
	.cta-panel { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
	.download-panel { padding: 25px 19px; }
	.download-details { grid-template-columns: 1fr; }
	.footer-top, .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
