/* ==========================================================================
   Theme CSS - Only styles that Tailwind doesn't handle
   (header layout, footer layout, dark toggle, hero bg, accordion, print)
   ========================================================================== */

/* ==========================================================================
   Header
   ========================================================================== */

.cprf-header {
	border-bottom: 1px solid hsl(var(--border));
	background: hsl(var(--card));
}

.cprf-header > div {
	max-width: 64rem;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
}

.cprf-header__logo {
	display: flex;
	align-items: center;
	transition: opacity 0.15s;
}

.cprf-header__logo:hover {
	opacity: 0.8;
}

.cprf-header__logo img {
	width: 75%;
	max-width: 350px;
	height: auto;
}

/* Dark mode toggle */
.cprf-dark-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: none;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	cursor: pointer;
	color: hsl(var(--foreground));
	transition: all 0.15s;
}

.cprf-dark-toggle:hover {
	background: hsl(var(--muted));
}

.cprf-dark-toggle svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.cprf-footer {
	border-top: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	padding: 1.5rem 0;
	margin-top: auto;
}

.cprf-footer__disclaimer {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.cprf-footer__disclaimer p {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
}

.cprf-footer__title {
	font-weight: 600;
	color: hsl(var(--foreground));
	opacity: 0.7;
}

/* ==========================================================================
   Hero Background - light mode only
   ========================================================================== */

.cprf-hero[data-bg] {
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.dark .cprf-hero[data-bg] {
	background-image: none !important;
}

/* ==========================================================================
   FAQ Accordion (custom behavior, not using Tailwind)
   ========================================================================== */

.cprf-accordion__trigger {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	text-align: left;
	line-height: 1.4;
	transition: all 0.15s;
}

.cprf-accordion__trigger:hover {
	text-decoration: underline;
}

.cprf-accordion__trigger svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	margin-left: 1rem;
	transition: transform 0.2s;
	color: hsl(var(--muted-foreground));
}

.cprf-accordion__item--open .cprf-accordion__trigger svg {
	transform: rotate(180deg);
}

.cprf-accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.cprf-accordion__item--open .cprf-accordion__content {
	max-height: 500px;
	padding-bottom: 1rem;
}

.cprf-accordion__content p {
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
	line-height: 1.7;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 639px) {
	.cprf-header__logo img {
		width: 65%;
	}
}
