/* ==========================================================================
   CineNest Media — shared menu bar, footer and back-to-top button.
   Used on every page. Colours come from the Home page design.
   ========================================================================== */

:root {
	--cn-green: hsl(120 40% 8%);      /* dark brand green */
	--cn-lime: hsl(71 70% 51%);       /* lime accent */
	--cn-white: #fff;
	--cn-border: hsl(214.3 31.8% 91.4%);
	--cn-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--cn-ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cn-nav, .cn-footer, .cn-totop { font-family: var(--cn-font); -webkit-font-smoothing: antialiased; line-height: 1.5; }
.cn-nav *, .cn-footer *, .cn-totop * { box-sizing: border-box; }
.cn-nav a, .cn-footer a { text-decoration: none; color: inherit; }
.cn-nav img, .cn-footer img { display: block; max-width: none; }
.cn-accent { color: var(--cn-lime); }
.cn-icon { width: 20px; height: 20px; flex-shrink: 0; }
.cn-icon--sm { width: 16px; height: 16px; }

.cn-container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 1400px) { .cn-container { max-width: 1400px; } }

/* ---------- Buttons ---------- */
.cn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 2.5rem; padding: .5rem 1rem; border-radius: calc(.5rem - 2px);
	font-size: .875rem; line-height: 1.25rem; font-weight: 500; white-space: nowrap;
	transition: background-color .15s, color .15s; cursor: pointer;
}
.cn-btn--lime { background: var(--cn-lime); color: var(--cn-green) !important; }
.cn-btn--lime:hover { background: hsl(71 70% 51% / .8); }
.cn-btn--block { width: 100%; }

/* ---------- Menu bar ---------- */
.cn-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: var(--cn-ease); background: transparent; color: var(--cn-green); }
.cn-header-dark .cn-nav { color: var(--cn-white); }
.cn-nav.is-solid, .cn-nav.is-open { background: var(--cn-white); color: var(--cn-green); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }
.admin-bar .cn-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .cn-nav { top: 46px; } }

.cn-nav__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.cn-logo { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.cn-logo img { width: 40px; height: 40px; }
.cn-logo__text { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }

.cn-nav__links { display: none; align-items: center; gap: 1.5rem; position: absolute; left: 50%; transform: translateX(-50%); }
.cn-nav__link { font-size: .875rem; line-height: 1.25rem; font-weight: 500; padding: .5rem 0; opacity: .9; transition: var(--cn-ease); border-bottom: 2px solid transparent; }
.cn-nav__link:hover { color: var(--cn-lime); }
.cn-nav__link.is-active { opacity: 1; border-bottom-color: var(--cn-lime); }

.cn-nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.cn-nav__cta { display: none; }
.cn-nav__toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
	border: 0; border-radius: calc(.5rem - 2px); background: transparent; color: inherit; cursor: pointer; transition: var(--cn-ease); padding: 0;
}
.cn-nav__toggle:hover { background: hsl(71 70% 51% / .2); color: var(--cn-lime); }
.cn-nav__toggle .cn-icon--close { display: none; }
.cn-nav.is-open .cn-nav__toggle .cn-icon--open { display: none; }
.cn-nav.is-open .cn-nav__toggle .cn-icon--close { display: block; }

.cn-nav__mobile { background: var(--cn-white); color: var(--cn-green); border-top: 1px solid var(--cn-border); padding: 1rem 0; border-radius: 0 0 .5rem .5rem; }
.cn-nav__mobile[hidden] { display: none; }
.cn-nav__mobile > * + * { margin-top: .5rem; }
.cn-nav__mlink { display: block; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; opacity: .9; }
.cn-nav__mlink:hover { opacity: 1; }
.cn-nav__mlink.is-active { opacity: 1; text-decoration: underline !important; text-decoration-color: var(--cn-lime) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }

@media (min-width: 1024px) {
	.cn-nav__links { display: flex; }
	.cn-nav__cta { display: inline-flex; }
	.cn-nav__toggle, .cn-nav__mobile { display: none !important; }
}

/* Pages that start light get room for the fixed menu bar. */
.cn-header-light .cn-page { padding-top: 4rem; }

/* ---------- Footer ---------- */
.cn-footer { background: var(--cn-green); color: var(--cn-white); }
.cn-footer__inner { padding-top: 3rem; padding-bottom: 3rem; }
.cn-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .cn-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cn-footer__brand { grid-column: span 2 / span 2; } }
.cn-footer__logo { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: 1.25rem; font-weight: 700; }
.cn-footer__logo img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.cn-footer__tagline { color: rgb(255 255 255 / .8); margin: 0 0 1.5rem; max-width: 28rem; }
.cn-footer__social { display: flex; gap: 1rem; }
.cn-footer__social a { width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: rgb(255 255 255 / .1); display: flex; align-items: center; justify-content: center; transition: var(--cn-ease); }
.cn-footer__social a:hover { background: rgb(255 255 255 / .2); }
.cn-footer__heading { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; }
.cn-footer__links { list-style: none; margin: 0; padding: 0; }
.cn-footer__links li + li { margin-top: .5rem; }
.cn-footer__links a, .cn-footer__contact a { color: rgb(255 255 255 / .8); transition: var(--cn-ease); }
.cn-footer__links a:hover, .cn-footer__contact a:hover { color: var(--cn-white); }
.cn-footer__contact { font-size: .875rem; }
.cn-footer__contact div { display: flex; align-items: center; gap: .5rem; }
.cn-footer__contact div + div { margin-top: .75rem; }
.cn-footer__sep { height: 1px; background: rgb(255 255 255 / .2); margin: 2rem 0; }
.cn-footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-size: .875rem; color: rgb(255 255 255 / .6); }
.cn-footer__bottom p { margin: 0; }
.cn-footer__legal { display: flex; gap: 1.5rem; margin-top: 1rem; }
.cn-footer__legal a:hover { color: var(--cn-white); }
@media (min-width: 768px) { .cn-footer__bottom { flex-direction: row; } .cn-footer__legal { margin-top: 0; } }

/* ---------- Back to top ---------- */
.cn-totop { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; transition: all .3s; opacity: 0; transform: translateY(1rem); pointer-events: none; }
.cn-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cn-totop button {
	width: 3rem; height: 3rem; border-radius: 9999px; border: 0; padding: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	background: var(--cn-green); color: var(--cn-white); box-shadow: 0 0 40px hsl(71 70% 51% / .4); transition: var(--cn-ease);
}
.cn-totop button:hover { background: hsl(120 40% 8% / .9); }

/* ---------- Blog (All Blogs list + single articles + other pages) ---------- */
.cn-prose { color: hsl(var(--muted-foreground)); font-size: 1.125rem; line-height: 1.75rem; }
.cn-prose > * + * { margin-top: 1.5rem; }
.cn-prose h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: hsl(var(--primary)); padding-top: 1.5rem; }
.cn-prose h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: hsl(var(--primary)); padding-top: 1rem; }
.cn-prose ul { list-style: disc; padding-left: 1.5rem; }
.cn-prose ol { list-style: decimal; padding-left: 1.5rem; }
.cn-prose li + li { margin-top: .75rem; }
.cn-prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 4px; }
.cn-prose img { max-width: 100%; height: auto; border-radius: .5rem; }
.cn-prose blockquote { border-left: 4px solid var(--cn-lime); padding-left: 1rem; font-style: italic; }
.cn-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.cn-pagination .page-numbers { padding: .5rem .9rem; border-radius: .5rem; border: 1px solid hsl(var(--border)); color: hsl(var(--primary)); }
.cn-pagination .page-numbers.current { background: hsl(var(--primary)); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.cn-nav, .cn-totop, .cn-totop button { transition: none; }
}
