:root {
	--green: rgb(174, 200, 44);
	--green-dark: rgb(140, 165, 30);
	--black: rgb(0, 0, 0);
	--white: rgb(255, 255, 255);
	--off-white: rgb(255, 254, 243);
	--gray-600: rgb(102, 102, 102);
	--gray-300: rgb(204, 204, 204);
	--orange-accent: rgb(255, 145, 77);
	--cyan-accent: rgb(0, 196, 204);
	--pink-accent: rgb(230, 0, 126);
	--font-display: "Figtree", "Noto Sans", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, sans-serif;
	--header-h: 117px;
	--sidebar-w: 48%;
	--main-w: 52%;
}

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

html, body {
	height: 100%;
}

body {
	font-family: var(--font-body);
	color: var(--black);
	background: var(--white);
	line-height: 1.66;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* ── HEADER / GREEN BAR ── */
.site-header {
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
}

.green-bar {
	display: flex;
	align-items: center;
	height: 100%;
	background: var(--green);
	padding: 0 32px;
	position: relative;
}

.green-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1368px;
	margin: 0 auto;
}

/* ── HEADER LOGO ── */
.header-logo-img {
	display: block;
	height: 75px;
	width: auto;
}

/* ── NAV ── */
.site-nav {
	display: flex;
	gap: 24px;
	align-items: center;
}

.site-nav a {
	text-decoration: none;
	color: var(--off-white);
	font-size: 1.16rem;
	font-weight: 400;
	padding: 0;
	border-radius: 0;
	background: none;
	transition: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	text-decoration: underline;
}

.site-nav a.active {
	text-decoration: underline;
}

/* ── PER-PAGE NAV THEME ── */
.site-header[data-active-page="home"] .green-bar {
	background: var(--green);
}
.site-header[data-active-page="show"] .green-bar {
	background: var(--orange-accent);
}
.site-header[data-active-page="looking-for"] .green-bar {
	background: var(--cyan-accent);
}
.site-header[data-active-page="songlist"] .green-bar {
	background: var(--pink-accent);
}

/* ── MAIN (flex host for pages) ── */
main {
	flex: 1;
	display: flex;
	overflow-y: auto;
	position: relative;
	scroll-behavior: smooth;
}

/* ── PAGES (slide switcher) ── */
.page {
	display: none;
	align-items: stretch;
	background: var(--white);
	position: relative;
}

.page.active {
	display: flex;
	flex: 1;
	width: 100%;
	min-height: 0;
}

.page-inner {
	display: flex;
	width: 100%;
	max-width: 1368px;
	margin: 0 auto;
	flex: 1;
	min-height: 0;
}

.page-sidebar {
	width: var(--sidebar-w);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.page-main {
	width: var(--main-w);
	display: flex;
	flex-direction: column;
	padding: 32px 60px 70px 48px;
}

/* ── SONGLIST: full width on desktop ── */
#songlist .page-inner {
	display: block;
}

#songlist .page-sidebar {
	display: none;
}

#songlist .page-main {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

/* ── SIDEBAR PHOTOS ── */
.sidebar-photo-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 670px;
	max-width: 100%;
	height: 504px;
}

.sidebar-photo-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background-repeat: no-repeat;
}

.sidebar-photo {
	width: 504px;
	height: 504px;
	object-fit: cover;
	clip-path: circle(50%);
	flex-shrink: 0;
}

.sidebar-photo-wrap--about::after {
	background-image: url('assets/deco-element.png');
	background-size: auto 55%;
	background-position: right bottom;
}

.sidebar-photo-wrap--show::after {
	background-image: url('assets/deco-element3.png');
	background-size: auto 45%;
	background-position: left top;
}

.sidebar-photo-wrap--looking::after {
	background-image: url('assets/deco-element2.png');
	background-size: auto 50%;
	background-position: right bottom;
}

/* ── SIDEBAR PHOTOS + DECO ELEMENTS ── */

/* ── SECTION HEADINGS (SVG) ── */
.about-heading,
.section-heading {
	margin-bottom: 0.5em;
	text-align: center;
}

.heading-svg {
	display: inline-block;
	max-width: 55%;
	height: auto;
}

/* ── CONTENT ── */
.content p {
	font-size: 1.16rem;
	margin-bottom: 1.2em;
}

.content strong {
	font-weight: 700;
}

.section-intro {
	margin-bottom: 1.5em;
}

/* ── SONG TABLE ── */
.song-table-wrap {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	border: 1px solid var(--gray-300);
	margin-top: 20px;
	max-height: calc(100vh - var(--header-h) - 160px);
}

.song-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.16rem;
}

.song-table th {
	background: var(--pink-accent);
	color: var(--off-white);
	font-weight: 600;
	text-align: center;
	padding: 12px 16px;
	position: sticky;
	top: 0;
}

.song-table td {
	padding: 10px 16px;
	border: 2px solid #000;
	text-align: center;
	vertical-align: top;
}

.song-table td:first-child {
	font-weight: 700;
	font-style: italic;
}

.song-table tbody tr:hover {
	background: rgba(174, 200, 44, 0.08);
}

.song-table a {
	color: var(--pink-accent);
	text-decoration: none;
	font-weight: 500;
}

.song-table a:hover {
	text-decoration: underline;
}

/* ── FOOTER ── */
.site-footer {
  flex-shrink: 0;
  background: var(--black);
  color: var(--off-white);
  padding: 6px 32px;
  text-align: center;
  font-size: 0.67rem;
  line-height: 1.6;
}

.footer-content {
	max-width: 1000px;
	margin: 0 auto;
}

.footer-content p {
	margin: 0;
}

/* ── CTA FOOTER (revealed after visiting all pages) ── */
.cta-footer {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 32px 24px;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-footer.revealed {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cta-footer-inner {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-display);
}

.cta-footer-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-footer-link:hover {
  transform: scale(1.05);
}

.cta-footer-svg {
  display: block;
  height: 60px;
  width: auto;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cta-footer {
    padding: 24px 16px;
  }

  .cta-footer-svg {
    height: 48px;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
	.header-logo-img {
		/* height: 65px; */
	}
}

@media (max-width: 1024px) {
	.page-inner {
		flex-direction: column;
	}

	.page-sidebar {
		width: 100%;
		min-height: 40vh;
		max-height: 50vh;
	}

	.page-main {
		width: 100%;
		padding: 40px 24px;
	}

	.sidebar-photo-wrap {
		width: 300px;
		height: 300px;
	}

	.sidebar-photo {
		width: 250px;
		height: 250px;
	}

	.site-header .green-bar {
		padding: 0 16px;
	}
}

@media (max-width: 900px) {
	.header-logo-img {
		height: 50px;
	}

	.site-nav a {
		font-size: 1rem;
	}
}

@media (max-width: 768px) {
	:root {
		--header-h: auto;
	}

	.green-bar {
		flex-wrap: wrap;
		height: auto;
		padding: 8px 16px;
		gap: 6px 0;
	}

	.site-nav {
		position: static;
		transform: none;
		opacity: 1;
		pointer-events: auto;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 16px;
		padding: 4px 0 2px;
		background: none;
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.site-nav a {
		padding: 2px 0;
		font-size: 0.9rem;
	}

	.page-sidebar {
		min-height: 35vh;
		max-height: 45vh;
	}

	.page-main {
		padding: 32px 20px;
	}

	.content p {
		font-size: 1rem;
	}

  .about-heading,
  .section-heading {
    text-align: center;
  }

  .heading-svg {
    max-width: 80%;
  }

	.header-logo-img {
		height: 131px;
		margin: auto;
	}

	.footer-content {
		font-size: 0.67rem;
		padding: 0 12px;
	}

	.song-table,
	.song-table thead,
	.song-table tbody,
	.song-table tr,
	.song-table td {
		display: block;
	}

	.song-table thead {
		display: none;
	}

	.song-table-wrap {
		border: none;
		border-radius: 0;
		overflow: visible;
		margin-top: 16px;
	}

	.song-table tr {
		border: 2px solid #000;
		border-radius: 8px;
		margin-bottom: 12px;
	}

	.song-table td {
		border: none;
		border-bottom: 1px solid #ddd;
		text-align: right;
		padding: 8px 12px;
		font-size: 0.95rem;
	}

	.song-table td:last-child {
		border-bottom: none;
	}

	.song-table td::before {
		content: attr(data-label);
		float: left;
		font-weight: 700;
		font-style: normal;
	}

	.song-table td:first-child {
		font-weight: 700;
		font-style: italic;
	}

	.song-table a {
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	:root {
		--header-h: 70px;
	}

	.green-bar {
		padding: 0 12px;
	}

	.header-logo-img {
		height: 65px;
		margin: auto;
	}

	.sidebar-photo-wrap,
	.sidebar-photo {
		display: none;
	}

	.page-sidebar {
		min-height: 0;
		max-height: none;
		height: 0;
	}

	.page-main {
		padding: 48px 16px 24px;
	}

	.site-footer {
		padding: 10px 16px;
		font-size: 0.6rem;
	}
}

@media (max-width: 400px) {
	.page-main {
		padding-top: 80px;
	}
}

@media (max-width: 320px) {
	.page-main {
		padding-top: 100px;
	}
}
